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
sequencelengths 768
768
|
---|---|---|---|---|---|---|
724,835 | scipy.sparse._dok | get | This provides dict.get method functionality with type checking | def get(self, key, default=0.0):
"""This provides dict.get method functionality with type checking"""
if key in self._dict:
return self._dict[key]
if isintlike(key) and self.ndim == 1:
key = (key,)
if self.ndim != len(key):
raise IndexError(f'Index {key} length needs to match self.shape')
try:
for i in key:
assert isintlike(i)
except (AssertionError, TypeError, ValueError) as e:
raise IndexError('Index must be or consist of integers.') from e
key = tuple(i + M if i < 0 else i for i, M in zip(key, self.shape))
if any(i < 0 or i >= M for i, M in zip(key, self.shape)):
raise IndexError('Index out of bounds.')
if self.ndim == 1:
key = key[0]
return self._dict.get(key, default)
| (self, key, default=0.0) | [
0.07493139058351517,
-0.04491564631462097,
-0.04988228157162666,
0.04667916148900986,
0.030537601560354233,
-0.006289270240813494,
0.014171102084219456,
0.0008536402019672096,
0.08472070097923279,
-0.020820273086428642,
-0.018462922424077988,
0.011147934012115002,
0.008714103139936924,
-0.049990251660346985,
0.01858888752758503,
0.036098070442676544,
0.06003148853778839,
0.01648346707224846,
0.014890904538333416,
0.033452797681093216,
0.030105719342827797,
-0.03172527253627777,
0.03262502700090408,
-0.01625852845609188,
-0.011300891637802124,
0.017860088497400284,
0.07000074535608292,
0.0034145608078688383,
0.09335832297801971,
-0.047758862376213074,
-0.06388243287801743,
-0.017194271087646484,
-0.0005730299162678421,
0.08673614263534546,
-0.005573967006057501,
0.00480467826128006,
-0.005699932109564543,
-0.01028417143970728,
-0.0009908524807542562,
0.02218789793550968,
0.023285595700144768,
-0.06650970876216888,
0.04336807131767273,
-0.046571191400289536,
0.01278548315167427,
0.030159704387187958,
-0.004381794948130846,
0.0442318357527256,
-0.0455634668469429,
-0.027172526344656944,
0.00829571858048439,
-0.02409537322819233,
0.036260027438402176,
0.003909424878656864,
-0.060319408774375916,
0.0018501161830499768,
-0.010446126572787762,
0.04268426075577736,
-0.02836019918322563,
0.0035900126677006483,
-0.029223961755633354,
-0.013883181847631931,
0.00034162477822974324,
-0.031257402151823044,
0.0033605757635086775,
-0.05017020180821419,
-0.006676163524389267,
0.01278548315167427,
0.01069805771112442,
-0.0005176388658583164,
0.006712154019623995,
0.020226437598466873,
-0.020838268101215363,
-0.0067571415565907955,
0.02206193283200264,
0.0077828592620790005,
-0.034100621938705444,
-0.03706980496644974,
0.06424233317375183,
-0.00738696800544858,
-0.014522005803883076,
0.029403911903500557,
-0.004026392474770546,
-0.006784134078770876,
-0.022331858053803444,
0.0017353977309539914,
0.03732173517346382,
0.052581537514925,
0.03572017699480057,
0.02056834287941456,
-0.03850940987467766,
0.006775136571377516,
0.002739746356382966,
0.05013421177864075,
-0.006181299686431885,
-0.01864287257194519,
0.03323685750365257,
-0.05934767797589302,
0.054704952985048294,
0.0006062082829885185,
-0.030717551708221436,
0.006208292208611965,
0.030465619638562202,
0.009348428808152676,
-0.01925470493733883,
-0.012470570392906666,
0.02470720373094082,
0.0017365224193781614,
-0.05517282336950302,
0.001213541254401207,
-0.005569468252360821,
-0.013253354467451572,
-0.04016495123505592,
0.02699257619678974,
-0.017950063571333885,
0.026668664067983627,
-0.03661992773413658,
0.014845917001366615,
-0.032049186527729034,
0.04178450629115105,
-0.043008171021938324,
0.0026047835126519203,
-0.029169976711273193,
-0.012569542974233627,
0.0154757434502244,
0.006221788935363293,
0.0032593535725027323,
0.0213601253926754,
0.025157080963253975,
0.020964233204722404,
0.03174326941370964,
-0.014800929464399815,
-0.028000298887491226,
0.05805203318595886,
0.0059248702600598335,
0.016843367367982864,
0.02895403653383255,
0.02411336824297905,
-0.01766214147210121,
0.04275624081492424,
0.074427530169487,
-0.0006073329714126885,
0.03858138993382454,
0.003790207440033555,
0.025804903358221054,
-0.018750842660665512,
0.03796955570578575,
-0.02278173342347145,
-0.012848465703427792,
0.02747844159603119,
-0.03523430973291397,
0.054776933044195175,
0.03714178502559662,
-0.025930868461728096,
0.0482267364859581,
-0.06010346859693527,
0.014962884597480297,
-0.07500337064266205,
0.016060583293437958,
-0.007530928589403629,
-0.03098747693002224,
0.007018069736659527,
-0.006599684711545706,
-0.08212941139936447,
-0.01616855338215828,
0.02074829302728176,
-0.01678038388490677,
0.02974581904709339,
0.044447775930166245,
0.04261228069663048,
-0.01916472800076008,
-0.0007929069106467068,
-0.04207242652773857,
-0.00552448071539402,
0.028720101341605186,
0.021072203293442726,
-0.06964084506034851,
0.03181524947285652,
0.04228837043046951,
-0.015916621312499046,
0.021684035658836365,
-0.00020160080748610198,
-0.05164579674601555,
-0.037537675350904465,
0.00499362638220191,
0.08990327268838882,
0.014018144458532333,
0.013280346989631653,
-0.029457896947860718,
0.07198020070791245,
0.0056864358484745026,
0.015664691105484962,
-0.0029624351300299168,
-0.01936267502605915,
0.00043413060484454036,
0.019776560366153717,
0.02765839174389839,
0.010617080144584179,
0.006118317134678364,
0.11243307590484619,
0.00479118200019002,
-0.02202594093978405,
0.006896602921187878,
0.04415985569357872,
-0.05535277724266052,
-0.01855289749801159,
0.034910399466753006,
-0.0024563244078308344,
-0.05715227872133255,
0.02753242664039135,
-0.04667916148900986,
-0.025732921436429024,
-0.03789757564663887,
-0.02416735328733921,
0.06593386828899384,
-0.03509034961462021,
-0.04624728113412857,
-0.030807526782155037,
-0.005385018885135651,
0.031149432063102722,
0.09479792416095734,
-0.04430381581187248,
0.07874634116888046,
0.05585663765668869,
0.02270975336432457,
-0.012074679136276245,
-0.012272624298930168,
0.007189022842794657,
-0.034892402589321136,
-0.006379245314747095,
0.03865336999297142,
-0.0007647896418347955,
0.01683436892926693,
-0.021810000762343407,
0.017806101590394974,
-0.0550648532807827,
0.027190521359443665,
-0.028450174257159233,
0.05186173692345619,
0.025085100904107094,
0.0007079927599988878,
0.012200644239783287,
-0.00018655805615708232,
0.03879733011126518,
-0.05574866756796837,
-0.008025792427361012,
-0.008354201912879944,
0.06784134358167648,
-0.022925693541765213,
0.049234457314014435,
-0.03742970526218414,
0.0207842830568552,
0.014674963429570198,
0.01867886260151863,
0.038221485912799835,
0.011300891637802124,
-0.04613931104540825,
-0.03600809723138809,
0.00754892360419035,
-0.014665965922176838,
-0.05438104271888733,
0.014629975892603397,
0.021612055599689484,
0.020982228219509125,
-0.04628327116370201,
0.01992052048444748,
0.05726025253534317,
0.04318812116980553,
0.004728199448436499,
0.060319408774375916,
0.0021256653126329184,
0.0827772319316864,
0.011354876682162285,
-0.082417331635952,
0.04880257695913315,
0.007805353030562401,
0.05168178677558899,
0.02279972843825817,
0.014728948473930359,
0.025786906480789185,
0.009038014337420464,
-0.02416735328733921,
-0.04639124125242233,
0.0221159178763628,
-0.06751742959022522,
0.022223887965083122,
-0.03309289738535881,
-0.04527554661035538,
0.019776560366153717,
-0.010967982932925224,
0.019038762897253036,
-0.00008800704381428659,
-0.07572317123413086,
0.013325334526598454,
-0.03660193458199501,
-0.03464047238230705,
-0.06337856501340866,
-0.00498462887480855,
0.06784134358167648,
0.03289495408535004,
0.0162765234708786,
-0.004215340595692396,
-0.02197195589542389,
0.01939866505563259,
0.01725725270807743,
0.006320761516690254,
0.028468169271945953,
-0.006428731605410576,
0.0017252754187211394,
0.045851387083530426,
-0.016330508515238762,
-0.013631250709295273,
-0.0068201241083443165,
0.035414259880781174,
0.04210841655731201,
-0.01104896143078804,
-0.01687035895884037,
0.028630126267671585,
0.01659143716096878,
0.10624277591705322,
-0.01939866505563259,
0.012101671658456326,
-0.06532203406095505,
-0.030447624623775482,
0.0023056159261614084,
-0.05700831860303879,
-0.01031116396188736,
-0.027208516374230385,
0.007436454761773348,
0.06787732988595963,
0.012308614328503609,
-0.02767638862133026,
-0.026074828580021858,
0.03323685750365257,
-0.030429629608988762,
-0.01666341722011566,
0.011939715594053268,
0.050746042281389236,
-0.0017387717962265015,
-0.013820198364555836,
-0.021792005747556686,
-0.01934468001127243,
0.007922320626676083,
-0.0050701056607067585,
0.03186923265457153,
-0.02148609049618244,
0.052689507603645325,
-0.03593611717224121,
0.025229061022400856,
-0.031149432063102722,
-0.02134213037788868,
-0.047758862376213074,
-0.02335757575929165,
0.007198020350188017,
-0.01751818135380745,
0.009627352468669415,
0.02609282359480858,
-0.07126040011644363,
0.011489839293062687,
0.01544875092804432,
0.05873584374785423,
-0.0005440691020339727,
-0.031257402151823044,
-0.005717927124351263,
-0.047111041843891144,
0.0023798453621566296,
-0.011894728057086468,
-0.038185495883226395,
0.004132113419473171,
0.005115093197673559,
0.008529653772711754,
-0.005825897678732872,
-0.08306515216827393,
0.03647596761584282,
0.01920071803033352,
0.03320086747407913,
-0.03778960555791855,
0.05538876727223396,
-0.0061678034253418446,
-0.05362525209784508,
0.005385018885135651,
0.016897352412343025,
-0.0032593535725027323,
0.07543525099754333,
-0.02279972843825817,
-0.028378194198012352,
-0.016051584854722023,
-0.0009385543526150286,
-0.02416735328733921,
-0.017158281058073044,
-0.03109544701874256,
-0.03937317058444023,
-0.017725124955177307,
-0.04739896208047867,
-0.021720025688409805,
-0.009145984426140785,
0.06895703077316284,
-0.002924195723608136,
-0.023069655522704124,
-0.002166154095903039,
0.009861287660896778,
-0.0036844864953309298,
-0.05085401237010956,
0.0440518818795681,
0.02062232792377472,
-0.025121090933680534,
-0.0007681637071073055,
0.04012896120548248,
-0.02819824405014515,
0.034802429378032684,
0.022475818172097206,
0.06244282424449921,
0.009699332527816296,
-0.011939715594053268,
-0.006419734098017216,
-0.0071305385790765285,
-0.01510684471577406,
0.006005848292261362,
-0.030033739283680916,
0.04826272651553154,
-0.003776711178943515,
-0.05535277724266052,
0.018948787823319435,
-0.014468020759522915,
-0.01555672101676464,
-0.03375871479511261,
-0.036206040531396866,
-0.0024113368708640337,
-0.0027937316335737705,
0.004264826886355877,
-0.041712526232004166,
-0.03933718055486679,
-0.009717327542603016,
0.01000524777919054,
-0.0005730299162678421,
-0.01038314402103424,
-0.01313638687133789,
0.009267451241612434,
0.00369348400272429,
0.011912723071873188,
0.04074079543352127,
0.012227636761963367,
-0.012434580363333225,
0.03980505093932152,
-0.015754666179418564,
-0.05600059777498245,
0.011174926534295082,
0.028738096356391907,
0.01342430803924799,
-0.08083377033472061,
0.03392067179083824,
0.0026250279042869806,
0.052041687071323395,
0.028000298887491226,
0.08831971138715744,
-0.03865336999297142,
-0.12121465802192688,
-0.03284096717834473,
0.05733223259449005,
-0.01239858940243721,
-0.01929069496691227,
0.04279223084449768,
-0.024977130815386772,
-0.0580880232155323,
-0.042396340519189835,
-0.008561145514249802,
0.03239108994603157,
0.002030066680163145,
-0.013802203349769115,
-0.018417933955788612,
0.02479717880487442,
-0.021863985806703568,
-0.02341156080365181,
-0.06694158911705017,
-0.014674963429570198,
-0.0013023917563259602,
0.0413886159658432,
0.04635525122284889,
0.01546674594283104,
-0.03433455526828766,
0.011669790372252464,
-0.023825446143746376,
-0.01751818135380745,
-0.0442318357527256,
-0.028522154316306114,
0.03100547194480896,
-0.0577281229197979,
0.07144035398960114,
-0.014027141965925694,
0.03944515064358711,
-0.017581164836883545,
0.039625100791454315,
0.015970608219504356,
0.03228311985731125,
0.020226437598466873,
0.0047192019410431385,
0.01515183225274086,
-0.015295793302357197,
0.04124465584754944,
0.025229061022400856,
0.019848540425300598,
-0.03179725259542465,
0.014369048178195953,
-0.0009936641436070204,
-0.04192846640944481,
-0.06143510341644287,
-0.020406387746334076,
0.02067631296813488,
0.03523430973291397,
-0.052725497633218765,
-0.013694233261048794,
0.036997824907302856,
-0.008340706117451191,
-0.030537601560354233,
0.040236931294202805,
-0.005785408895462751,
-0.009141485206782818,
-0.01760815642774105,
0.0009481142042204738,
0.01065307017415762,
0.050566092133522034,
0.008214741013944149,
-0.020964233204722404,
0.017563169822096825,
-0.03919322043657303,
0.0482267364859581,
0.017086300998926163,
-0.06276673823595047,
0.012866460718214512,
0.060931239277124405,
-0.06726549565792084,
-0.015367773361504078,
-0.008930044248700142,
0.10458723455667496,
-0.016393490135669708,
-0.0007619779207743704,
0.005641448311507702,
-0.000053176780056674033,
-0.04473569616675377,
0.0014272324042394757,
0.021540075540542603,
-0.015295793302357197,
0.06291069835424423,
-0.03800554573535919,
0.04552747681736946,
0.009154981933534145,
-0.02339356578886509,
0.03379470482468605,
0.02413136325776577,
-0.036098070442676544,
-0.032013196498155594,
0.02064032293856144,
0.04146059602499008,
-0.019776560366153717,
0.03257104009389877,
0.022295868024230003,
-0.030033739283680916,
-0.004201844334602356,
0.014171102084219456,
0.01644747704267502,
-0.005578465759754181,
-0.031221412122249603,
0.06391841918230057,
0.022583788260817528,
-0.05769213289022446,
-0.0055109839886426926,
-0.05517282336950302,
0.017824098467826843,
0.03021368943154812,
-0.029367921873927116,
-0.03800554573535919,
0.022457823157310486,
-0.006860612891614437,
-0.014683960936963558,
0.0006028342177160084,
0.012128664180636406,
-0.054740943014621735,
0.00498462887480855,
-0.07637099176645279,
-0.028720101341605186,
-0.009168478660285473,
0.0254450011998415,
0.0911269336938858,
0.02683062106370926,
0.014081127010285854,
-0.014162104576826096,
-0.028486164286732674,
-0.02074829302728176,
-0.05798005312681198,
-0.0008154007373377681,
-0.01851690746843815,
-0.028702106326818466,
-0.016915347427129745,
0.014054134488105774,
0.0550648532807827,
0.03537826985120773,
-0.031329382210969925,
-0.021756015717983246,
0.011588812805712223,
-0.009762315079569817,
0.027964308857917786,
-0.021684035658836365,
-0.004242333117872477,
0.052149657160043716,
0.008025792427361012,
0.012002699077129364,
0.03456849232316017,
0.015241807326674461,
0.019704580307006836,
-0.08666416257619858,
-0.040272921323776245,
-0.024473268538713455,
-0.009654344990849495,
0.006977580953389406,
-0.0254450011998415,
-0.02348354086279869,
-0.025031115859746933,
0.06251480430364609,
-0.01516082976013422,
-0.022565793246030807,
0.005942865274846554,
0.0031828745268285275,
-0.026668664067983627,
-0.03159930929541588,
0.02760440669953823,
-0.06276673823595047,
0.04750693216919899,
-0.04743495211005211,
0.008421683683991432,
-0.0016814125701785088,
0.03361475467681885,
0.03577416017651558,
0.06582589447498322,
-0.036835867911577225,
-0.03172527253627777,
-0.005938366521149874,
0.018822822719812393,
0.01941666007041931,
-0.014378045685589314,
0.10545099526643753,
0.003252605441957712,
0.02900802157819271,
0.011264901608228683,
0.044447775930166245,
0.05387718230485916,
-0.008336206898093224,
0.014854914508759975,
0.009546373970806599,
0.07946614176034927,
-0.009852290153503418,
-0.05218564718961716,
-0.03861737996339798,
-0.0455634668469429,
-0.018822822719812393,
0.0035202817525714636,
-0.05085401237010956,
0.03980505093932152,
-0.07046861946582794,
-0.09954862296581268,
-0.019002772867679596,
-0.07500337064266205,
-0.023231610655784607,
-0.06773336976766586,
-0.051321882754564285,
0.013523280620574951,
-0.053337328135967255,
-0.052581537514925,
-0.038221485912799835,
0.03168928250670433,
-0.04142460599541664,
0.03775361552834511,
-0.04354802146553993,
-0.03706980496644974,
-0.01925470493733883,
-0.006104820873588324,
-0.013235359452664852,
0.05528079345822334,
0.01786908507347107,
0.01941666007041931,
-0.02267376333475113,
0.11596010625362396,
0.05394916236400604,
-0.05024218186736107,
0.08702406287193298,
0.016456473618745804,
0.01751818135380745,
0.02216990292072296,
-0.025121090933680534,
-0.005807902663946152,
0.012173651717603207,
0.0051330882124602795,
-0.04837069660425186,
0.04678713157773018,
-0.042324360460042953,
-0.061111193150281906,
-0.03850940987467766,
-0.06974881887435913,
0.06193896383047104,
-0.01751818135380745,
-0.006460223346948624,
-0.03658393770456314,
-0.013910174369812012,
-0.058160003274679184,
0.031131437048316002,
-0.028666116297245026,
0.01616855338215828,
-0.022997675463557243,
0.04128064587712288,
0.0011854239273816347,
-0.05013421177864075,
-0.020838268101215363,
0.039013270288705826,
0.04016495123505592,
-0.06866911053657532,
-0.01757216639816761,
0.05020619183778763,
-0.03262502700090408,
0.00960935652256012,
-0.056756388396024704,
0.04117267578840256,
-0.0150978472083807,
-0.010554097592830658,
0.012920446693897247,
0.0006669415743090212,
-0.02130614034831524,
0.00020441252854652703,
0.051285892724990845,
-0.10185198485851288,
-0.07629901170730591,
0.07435555011034012,
0.03528829291462898,
-0.01278548315167427,
0.03883332014083862,
0.008705105632543564,
-0.0045684934593737125,
-0.026362748816609383,
-0.023285595700144768,
-0.024275323376059532,
0.038149505853652954,
0.05668440833687782,
-0.006505210883915424,
0.04322411119937897,
-0.029835794121026993,
-0.014602983370423317,
0.029331931844353676,
-0.02884606644511223,
-0.010122216306626797,
0.044447775930166245,
-0.023141635581851006,
-0.02141411043703556,
0.026326758787035942,
0.0262907687574625,
0.015025867149233818,
0.029313936829566956,
0.02486916072666645,
-0.06697757542133331,
-0.013820198364555836,
-0.02261977829039097,
0.06543000042438507,
0.02420334331691265,
-0.0468951016664505,
-0.036188047379255295,
-0.058807823807001114,
0.07989802211523056,
-0.07349178940057755,
0.007261002901941538,
0.001620679278858006,
0.03557621315121651
] |
724,837 | scipy.sparse._dok | get_shape | Get shape of a sparse matrix. | def get_shape(self):
"""Get shape of a sparse matrix."""
return self._shape
| (self) | [
-0.0038608757313340902,
-0.025809457525610924,
0.061875224113464355,
0.008603152818977833,
0.02839040383696556,
0.006077030673623085,
0.004019021987915039,
0.04318445175886154,
0.07125435024499893,
-0.0030743619427084923,
-0.05502643808722496,
-0.055330079048871994,
-0.0009689090074971318,
-0.005005854181945324,
0.024459943175315857,
0.024291254580020905,
0.049797073006629944,
-0.060222070664167404,
-0.01340236235409975,
0.030094165354967117,
-0.011614256538450718,
-0.005229367408901453,
0.019955940544605255,
-0.041969891637563705,
-0.008042261004447937,
0.03454756364226341,
0.07503298670053482,
-0.011209402233362198,
0.09048492461442947,
-0.046591974794864655,
-0.11059268563985825,
0.023700842633843422,
0.015207337215542793,
0.05195629596710205,
0.032320864498615265,
0.0512140616774559,
-0.0017680743476375937,
0.012381792068481445,
0.07422327995300293,
-0.004143430385738611,
-0.017003878951072693,
-0.010880458168685436,
-0.008109736256301403,
-0.025269651785492897,
0.020495746284723282,
0.025691375136375427,
0.0065240575931966305,
0.002648421563208103,
-0.05037061497569084,
-0.020377663895487785,
-0.008033826015889645,
-0.03243894502520561,
-0.003628927981480956,
-0.005533007904887199,
-0.08306259661912918,
-0.03372098505496979,
0.030667709186673164,
-0.027698777616024017,
-0.02670351043343544,
-0.016860492527484894,
0.015839923173189163,
0.016109826043248177,
0.042745862156152725,
-0.029824262484908104,
-0.012710736133158207,
-0.05985095351934433,
-0.02472984604537487,
0.03004355914890766,
0.03835994005203247,
0.02631552517414093,
-0.023768318817019463,
-0.00770488241687417,
0.009691198356449604,
0.018926935270428658,
0.004487134516239166,
-0.024645501747727394,
0.017948538064956665,
-0.027816860005259514,
0.013857823796570301,
-0.083265021443367,
-0.022908002138137817,
0.049797073006629944,
-0.011310615576803684,
0.0041286698542535305,
-0.005351666826754808,
-0.0064734504558146,
0.08900045603513718,
0.08097084611654282,
-0.05809658393263817,
0.0082278186455369,
-0.0005174016114324331,
0.06595750153064728,
0.02272244356572628,
0.03173045068979263,
-0.010610555298626423,
-0.005642656236886978,
-0.001323156408034265,
-0.03616698086261749,
0.04692935571074486,
-0.05026940256357193,
-0.054689060896635056,
0.04284707456827164,
-0.009589985013008118,
0.015198903158307076,
-0.06312352418899536,
0.017729241400957108,
0.024999748915433884,
-0.0338221974670887,
-0.0065577952191233635,
0.0010052826255559921,
0.009471902623772621,
0.006405975203961134,
-0.00009159299952443689,
0.05910871922969818,
0.022182639688253403,
-0.08137570321559906,
0.033063095062971115,
0.03835994005203247,
-0.052192460745573044,
0.020107761025428772,
-0.035525958985090256,
0.03046528249979019,
-0.013410796411335468,
-0.034783728420734406,
0.04207110404968262,
0.0469968318939209,
0.023970745503902435,
0.034783728420734406,
0.03329925984144211,
0.004025347530841827,
-0.017779849469661713,
-0.03751649335026741,
0.02592753991484642,
0.06275241076946259,
-0.01472657360136509,
0.00687830476090312,
0.07489803433418274,
-0.01860642619431019,
-0.03984440490603447,
0.027462612837553024,
0.04156503453850746,
0.007186162751168013,
-0.02204768732190132,
-0.028508486226201057,
-0.015654364600777626,
0.044365279376506805,
0.036268193274736404,
-0.018943805247545242,
0.013731306418776512,
0.012744474224746227,
0.01806662045419216,
-0.008236253634095192,
0.04993202164769173,
-0.043521832674741745,
-0.030887005850672722,
-0.027462612837553024,
0.02722644805908203,
-0.06140289455652237,
0.048919886350631714,
-0.020495746284723282,
-0.06150410696864128,
0.01273604016751051,
-0.04075532779097557,
-0.03856236860156059,
-0.018960673362016678,
0.06548517197370529,
-0.012035978958010674,
-0.060222070664167404,
-0.04227352887392044,
-0.024223778396844864,
-0.020242711529135704,
-0.02476358413696289,
-0.04328566789627075,
-0.012744474224746227,
0.003502410836517811,
0.027749383822083473,
-0.030532756820321083,
0.07658492773771286,
0.029048291966319084,
-0.028862733393907547,
0.023380331695079803,
0.013697568327188492,
-0.08184803277254105,
0.018724508583545685,
0.003734358586370945,
0.0751679390668869,
-0.01034065242856741,
-0.030482150614261627,
0.045849744230508804,
0.05506017804145813,
-0.0061065517365932465,
0.02343093976378441,
-0.01072863768786192,
0.03572838753461838,
0.001961012836545706,
-0.014692835509777069,
0.01799914427101612,
-0.004436527844518423,
-0.04379173368215561,
0.025488948449492455,
-0.00795791670680046,
-0.02184526063501835,
0.002559859538450837,
0.05678080767393112,
0.02022584341466427,
-0.007725968491286039,
-0.018926935270428658,
-0.003059601644054055,
-0.07840677350759506,
0.04945969209074974,
-0.041902415454387665,
-0.026264918968081474,
0.005026940256357193,
0.042644646018743515,
0.08319754898548126,
-0.07024221122264862,
-0.038663581013679504,
-0.00013033881259616464,
-0.005128153599798679,
0.002393278991803527,
0.060964301228523254,
-0.006671660579741001,
0.004951030015945435,
0.012440833263099194,
-0.02980739437043667,
-0.04601843282580376,
-0.0019567955750972033,
-0.018488343805074692,
-0.036268193274736404,
-0.03120751492679119,
-0.0172231737524271,
-0.036268193274736404,
0.017526814714074135,
0.03761770576238632,
0.0022414587438106537,
-0.0012683324748650193,
-0.003042732598260045,
0.008236253634095192,
-0.0029541708063334227,
-0.016953270882368088,
-0.039574503898620605,
-0.029689311981201172,
0.02388640120625496,
-0.017324388027191162,
-0.04078906401991844,
0.014330153353512287,
0.026197442784905434,
0.047536637634038925,
-0.0021803088020533323,
-0.01884259097278118,
-0.06234755367040634,
-0.05640969052910805,
0.034328266978263855,
-0.02926758863031864,
0.03812377527356148,
-0.04217231646180153,
-0.05495896190404892,
0.007291593588888645,
-0.021221110597252846,
-0.03883226960897446,
-0.009522508829832077,
0.04966212064027786,
0.049797073006629944,
0.034615036100149155,
0.0043184454552829266,
0.02204768732190132,
0.04895362630486488,
0.05364318564534187,
-0.019922202453017235,
0.021760916337370872,
0.08677376061677933,
0.060896825045347214,
-0.04618712142109871,
-0.05111284926533699,
0.00954781286418438,
-0.07260385900735855,
-0.03036406822502613,
0.04568105563521385,
0.021356061100959778,
0.04622086137533188,
-0.0075277588330209255,
-0.015198903158307076,
-0.0179654061794281,
0.024881666526198387,
-0.056983236223459244,
0.015629060566425323,
0.0049552470445632935,
-0.04561357945203781,
-0.047469161450862885,
-0.01983785815536976,
-0.01137809082865715,
0.009598419070243835,
-0.03454756364226341,
0.03771892189979553,
0.05182134360074997,
-0.026129968464374542,
-0.019989678636193275,
0.032455816864967346,
0.00039668334648013115,
0.02860970050096512,
0.013275844976305962,
0.006743353325873613,
-0.0584002248942852,
-0.004651606548577547,
0.021609095856547356,
-0.0065324921160936356,
-0.0017090331530198455,
0.04230726882815361,
0.020529484376311302,
0.04638954997062683,
-0.0244093369692564,
0.0059589482843875885,
-0.04966212064027786,
0.022908002138137817,
-0.009050179272890091,
-0.00790730956941843,
-0.006713832728564739,
0.006587315816432238,
0.02191273681819439,
0.10580191016197205,
0.002937301993370056,
-0.052259936928749084,
-0.006452364381402731,
-0.049898285418748856,
-0.07537036389112473,
-0.042779598385095596,
-0.03208469972014427,
-0.0781368687748909,
-0.017290649935603142,
0.034260790795087814,
0.0016331230290234089,
-0.030887005850672722,
0.014625359326601028,
0.017779849469661713,
-0.037246592342853546,
-0.06072813645005226,
0.050640519708395004,
0.0182521790266037,
-0.06150410696864128,
-0.015570019371807575,
0.0037638794165104628,
-0.019955940544605255,
0.0018260612851008773,
-0.000004377849109005183,
-0.021693440154194832,
-0.03198348358273506,
-0.02483106032013893,
-0.0512140616774559,
0.02666977420449257,
0.01034065242856741,
0.01178294513374567,
-0.022739313542842865,
0.009589985013008118,
0.015797749161720276,
0.023751448839902878,
0.06788056343793869,
-0.05586988478899002,
0.01673397608101368,
0.03078579157590866,
0.03405836224555969,
0.03984440490603447,
0.017341256141662598,
-0.005790259223431349,
-0.013309583067893982,
-0.020866863429546356,
0.010155093856155872,
-0.03647061809897423,
-0.006005337927490473,
0.0541829913854599,
-0.04770532622933388,
-0.031123170629143715,
-0.05161891505122185,
-0.06804925203323364,
0.022503148764371872,
0.01456631813198328,
0.06703711301088333,
-0.04055289924144745,
0.02068130485713482,
-0.04308323934674263,
-0.05408177897334099,
-0.007569930981844664,
-0.0258938018232584,
0.014422932639718056,
-0.004723299294710159,
-0.06642983108758926,
0.008603152818977833,
-0.06157158315181732,
0.011901027522981167,
-0.059479836374521255,
0.016430335119366646,
-0.04993202164769173,
0.0025704028084874153,
-0.0299423448741436,
-0.05556624382734299,
0.01715569943189621,
0.030245985835790634,
0.04001309350132942,
0.027395136654376984,
0.03208469972014427,
-0.01624477654695511,
0.008763407357037067,
-0.0584002248942852,
-0.02100181393325329,
0.03728032857179642,
-0.034328266978263855,
-0.008021174930036068,
-0.03294501453638077,
0.032573897391557693,
-0.00398106686770916,
-0.010998540557920933,
0.06656478345394135,
0.012255275622010231,
0.027209579944610596,
-0.03886600583791733,
-0.018134096637368202,
-0.028660306707024574,
0.012381792068481445,
0.07874415069818497,
0.07806939631700516,
0.0383262000977993,
0.012390227057039738,
0.06454051285982132,
0.018994411453604698,
0.02553955465555191,
-0.020377663895487785,
-0.01115036103874445,
-0.06265119463205338,
0.016320686787366867,
0.00917669665068388,
0.01259265374392271,
-0.07030968368053436,
0.005634221713989973,
0.03751649335026741,
0.008645324967801571,
-0.08724609017372131,
-0.044264063239097595,
-0.017914799973368645,
-0.004196145571768284,
-0.05485774949193001,
0.025792589411139488,
0.11565336585044861,
0.026517953723669052,
-0.012828818522393703,
-0.005440229084342718,
0.05482401326298714,
-0.021575357764959335,
0.019854726269841194,
0.005596266593784094,
0.0292001124471426,
-0.004508220590651035,
0.023616498336195946,
-0.04146382212638855,
0.03178105875849724,
-0.007844051346182823,
0.005701697431504726,
-0.0055203563533723354,
-0.008932096883654594,
-0.08582910150289536,
0.006625270936638117,
-0.051450226455926895,
0.0073590693064033985,
0.04291455075144768,
-0.06069440022110939,
-0.027530089020729065,
-0.0038397894240915775,
-0.0302291177213192,
0.004288924857974052,
-0.0015624843072146177,
0.028660306707024574,
-0.02709149569272995,
0.059277407824993134,
0.02007402293384075,
-0.045073773711919785,
-0.10033638030290604,
0.0013041789643466473,
0.008965834975242615,
-0.00982614979147911,
0.034716252237558365,
0.003352699102833867,
0.011631124652922153,
-0.033872805535793304,
-0.03643688187003136,
-0.039439551532268524,
-0.01179981417953968,
0.023937007412314415,
0.01701231300830841,
-0.034075234085321426,
-0.02278991974890232,
0.022638099268078804,
-0.008485070429742336,
0.030347200110554695,
0.02687220089137554,
0.03250642120838165,
0.01063585840165615,
0.058501437306404114,
-0.0027749384753406048,
0.03900095820426941,
-0.02162596397101879,
-0.01726534590125084,
0.07105191797018051,
-0.027277054265141487,
-0.0019747186452150345,
-0.022924872115254402,
0.0275469571352005,
-0.01828591711819172,
-0.03449695557355881,
0.003799725789576769,
-0.03687547519803047,
-0.013638527132570744,
-0.039473287761211395,
-0.044365279376506805,
0.009092351421713829,
0.0045461757108569145,
0.009994839318096638,
-0.01884259097278118,
0.01923057623207569,
-0.004419658798724413,
0.01987159624695778,
0.020411401987075806,
0.03819125145673752,
0.028542224317789078,
-0.02046200819313526,
-0.009075482375919819,
0.04490508511662483,
-0.07968880981206894,
0.048245131969451904,
-0.0032999839168041945,
-0.020883731544017792,
0.04166625067591667,
0.07638250291347504,
0.0035614522639662027,
-0.023835793137550354,
-0.029689311981201172,
0.09716501832008362,
0.005393839441239834,
0.0220139492303133,
0.03336673602461815,
-0.0425434336066246,
0.010804547928273678,
-0.005469749681651592,
-0.0014338587643578649,
-0.057927895337343216,
0.00298580015078187,
0.01944987289607525,
0.007350634783506393,
0.06929755210876465,
0.00576917314901948,
-0.02483106032013893,
-0.011082884855568409,
-0.06683468818664551,
-0.013849388808012009,
0.003605733159929514,
0.022098293527960777,
-0.06281988322734833,
0.11700287461280823,
0.04838008061051369,
0.0282891895622015,
-0.025843195617198944,
-0.006827698089182377,
-0.005410708487033844,
0.006827698089182377,
-0.04004683345556259,
0.06201017647981644,
-0.00016552634770050645,
-0.04281333461403847,
-0.019955940544605255,
-0.028660306707024574,
0.010846720077097416,
-0.00016618528752587736,
0.006009555421769619,
0.000012075120139343198,
-0.0431169755756855,
0.022671837359666824,
0.020917469635605812,
0.005499270278960466,
-0.016194170340895653,
-0.024510551244020462,
0.028626568615436554,
-0.04146382212638855,
-0.0057565211318433285,
0.029402539134025574,
0.004837164655327797,
0.008400725200772285,
0.029368801042437553,
-0.008856186643242836,
0.01155521534383297,
-0.10526210069656372,
-0.011158795095980167,
-0.04628833383321762,
-0.0057438695803284645,
0.00979241169989109,
-0.028828995302319527,
0.02194647304713726,
-0.011588952504098415,
-0.018150964751839638,
0.014962738379836082,
-0.004613651428371668,
-0.059344884008169174,
0.017712373286485672,
0.021997081115841866,
-0.015106123872101307,
0.01627851463854313,
0.028238583356142044,
0.03194974735379219,
0.02842414192855358,
-0.03340047597885132,
0.0015371809713542461,
0.06535021960735321,
0.023768318817019463,
-0.03721285238862038,
-0.011049146763980389,
-0.04372425749897957,
0.007211466319859028,
-0.06720580160617828,
-0.05242862552404404,
-0.009885190986096859,
0.0013178848894312978,
0.008932096883654594,
0.02106929011642933,
-0.03690921142697334,
0.028727782890200615,
-0.047367945313453674,
0.015721838921308517,
-0.044972557574510574,
0.011445567011833191,
0.07132182270288467,
-0.019922202453017235,
-0.04922352731227875,
-0.00569747993722558,
-0.0440278984606266,
0.008143474347889423,
-0.008130822330713272,
0.05232740938663483,
-0.07024221122264862,
0.043353140354156494,
0.001236703246831894,
-0.028491618111729622,
0.030347200110554695,
0.012086586095392704,
0.09028249979019165,
-0.04645702615380287,
0.05964852496981621,
0.04075532779097557,
-0.021052420139312744,
-0.004419658798724413,
-0.052934691309928894,
0.020563222467899323,
-0.028373535722494125,
0.04541115090250969,
0.024780454114079475,
-0.052293673157691956,
0.005288408603519201,
-0.013908430002629757,
-0.037988822907209396,
0.0913621112704277,
0.019112493842840195,
-0.016683368012309074,
-0.0013790347147732973,
-0.05843396112322807,
-0.03829246386885643,
-0.03744901716709137,
-0.02980739437043667,
-0.010112921707332134,
-0.002661073114722967,
0.015198903158307076,
-0.0023405635729432106,
-0.009277909994125366,
0.024780454114079475,
0.03606576472520828,
-0.03441261127591133,
-0.034294527024030685,
0.07604512572288513,
0.015477240085601807,
-0.0021550054661929607,
-0.02430812269449234,
0.04051916301250458,
0.0188763290643692,
-0.032067831605672836,
0.030600233003497124,
0.0015825162408873439,
0.025809457525610924,
0.05161891505122185,
0.0011818791972473264,
0.017813587561249733,
0.03569464758038521,
-0.05374440178275108,
-0.030094165354967117,
-0.00032920765806920826,
-0.011749207973480225,
-0.020833125337958336,
-0.010450299829244614,
-0.052192460745573044,
0.0961528867483139,
0.026754118502140045,
-0.00001884575431176927,
0.04159877449274063,
-0.0007659547263756394,
0.0700397863984108,
0.03243894502520561,
0.02402135170996189,
-0.023397201672196388,
0.035525958985090256,
-0.024190040305256844,
0.012870991602540016,
0.02000654675066471,
0.05570119619369507,
-0.04466891661286354,
0.02307669259607792,
-0.0042488607577979565,
0.03495241701602936,
0.009994839318096638,
0.0011671188985928893,
0.03454756364226341,
-0.04247595742344856,
-0.01176607608795166,
0.009244171902537346,
-0.010576817207038403,
0.007797661237418652,
-0.002926758723333478,
0.037820134311914444,
0.006405975203961134,
-0.009244171902537346,
0.057927895337343216,
0.03539101034402847,
-0.06963492929935455,
0.0026420955546200275,
-0.009986404329538345,
-0.03216904401779175,
0.030482150614261627,
-0.020951207727193832,
-0.004820296075195074,
-0.03424392268061638,
-0.049021102488040924,
0.020833125337958336,
0.014009643346071243,
0.0412951335310936,
0.03886600583791733,
-0.001266223844140768,
0.012483005411922932,
0.0127191711217165,
0.03287753835320473,
0.046591974794864655,
0.019989678636193275,
0.021305454894900322,
0.002270979341119528,
0.015257944352924824,
-0.012027544900774956,
0.035424746572971344,
-0.032253388315439224,
-0.026197442784905434,
0.03987814486026764,
0.009961101226508617,
0.03329925984144211,
-0.053879354149103165,
-0.01099010556936264,
-0.03191601112484932,
0.013706003315746784,
-0.045040033757686615,
0.0009388612234033644,
-0.024358730763196945,
-0.009606854058802128,
-0.07213152945041656,
-0.0560048371553421,
0.09925676882266998,
-0.021372931078076363,
0.02916637435555458,
0.015645930543541908,
0.02246941067278385
] |
724,843 | scipy.sparse._dok | items | null | def items(self):
return self._dict.items()
| (self) | [
0.029128050431609154,
-0.03728660196065903,
-0.06078457832336426,
-0.05289573222398758,
0.029785454273223877,
0.023160846903920174,
-0.02053122967481613,
-0.06048116087913513,
0.12730036675930023,
0.021289773285388947,
0.0027918596751987934,
0.0003890166699420661,
0.00512437941506505,
0.015019151382148266,
-0.014235323294997215,
-0.006544540170580149,
-0.021239204332232475,
0.012794091366231441,
-0.01643509790301323,
0.024576792493462563,
-0.01120958011597395,
0.023211415857076645,
0.07787708193063736,
-0.010012767277657986,
-0.02139091305434704,
-0.04952443018555641,
0.0015866190660744905,
-0.07410122454166412,
0.08853039890527725,
0.016081111505627632,
-0.09500329196453094,
-0.022082028910517693,
0.010392039082944393,
0.007210372481495142,
-0.02000867761671543,
-0.0007706586038693786,
0.018053323030471802,
-0.04453490301966667,
0.022638294845819473,
0.03607293218374252,
0.006106270942837,
-0.01299636997282505,
0.0044880458153784275,
-0.029195476323366165,
0.04932215064764023,
0.0005515239899978042,
0.06917911767959595,
0.02985288016498089,
0.06853857636451721,
-0.04338865727186203,
0.018778152763843536,
0.0077118538320064545,
-0.010139191523194313,
-0.0025959026534110308,
-0.013089080341160297,
0.01689022406935692,
-0.01992439664900303,
0.01326607447117567,
-0.012043977156281471,
0.08623790740966797,
0.002073350828140974,
-0.03779229894280434,
-0.014867442660033703,
-0.09743063151836395,
0.06341419368982315,
-0.04996269941329956,
-0.014269036240875721,
0.014614595100283623,
-0.020548086613416672,
-0.0033607669174671173,
-0.0021544727496802807,
-0.015625985339283943,
0.010729169473052025,
0.036713480949401855,
-0.038196854293346405,
-0.012971085496246815,
-0.01120958011597395,
0.013375641778111458,
0.011782701127231121,
-0.046726249158382416,
-0.008563107810914516,
0.008419827558100224,
-0.027273833751678467,
0.04898501932621002,
0.007475862745195627,
0.03241506963968277,
-0.004593399353325367,
0.001915321103297174,
-0.02691984735429287,
0.06381875276565552,
0.00039770829607732594,
0.0559973306953907,
-0.025605039671063423,
0.029178621247410774,
-0.04908616095781326,
-0.019317561760544777,
-0.03539867326617241,
-0.0018099679145962,
-0.0539071224629879,
0.0348929762840271,
-0.048108480870723724,
-0.020885217934846878,
0.004812533967196941,
0.04244469478726387,
-0.029718028381466866,
0.014597738161683083,
-0.024155380204319954,
-0.04740050807595253,
0.023632828146219254,
0.045141737908124924,
-0.009667209349572659,
0.07942788302898407,
0.027678390964865685,
0.02439137175679207,
0.012195685878396034,
-0.006030416581779718,
-0.047771353274583817,
-0.03293762356042862,
0.020143531262874603,
0.003141632303595543,
-0.05990803986787796,
0.051614634692668915,
0.041770435869693756,
0.0409950353205204,
0.005389869213104248,
0.054648809134960175,
-0.03603922203183174,
-0.02395310252904892,
-0.016721658408641815,
0.021138064563274384,
0.020733509212732315,
-0.016628947108983994,
-0.008048984222114086,
-0.02986973710358143,
0.028824632987380028,
-0.04679367318749428,
0.09021604806184769,
-0.02653214894235134,
0.04625426605343819,
0.052760880440473557,
-0.00597984716296196,
0.045141737908124924,
0.008424041792750359,
0.06772945821285248,
-0.014791588298976421,
-0.04938957840204239,
0.016704801470041275,
0.055660199373960495,
-0.02150890789926052,
-0.06924654543399811,
-0.017084073275327682,
0.017235781997442245,
0.009515500627458096,
0.04928843677043915,
-0.038668837398290634,
-0.0037653231993317604,
-0.040253348648548126,
-0.049558140337467194,
-0.02754353918135166,
-0.04544515162706375,
-0.04800734296441078,
-0.03789343684911728,
0.003971815574914217,
-0.0035440814681351185,
-0.0097262067720294,
0.035735804587602615,
0.025200484320521355,
-0.056098468601703644,
-0.009448074735701084,
0.010206617414951324,
-0.007501147221773863,
-0.056604161858558655,
-0.06837000697851181,
-0.027223264798521996,
0.0008623158792033792,
0.004660825245082378,
-0.02295856736600399,
0.043220095336437225,
0.03944423422217369,
0.017766762524843216,
-0.037185464054346085,
-0.06354904919862747,
-0.04756907373666763,
-0.028234655037522316,
0.027341261506080627,
-0.02402052842080593,
0.0017646659398451447,
0.03447156399488449,
0.038163140416145325,
-0.013232361525297165,
0.0189298614859581,
-0.01445445790886879,
-0.016148537397384644,
-0.02941461093723774,
-0.051210079342126846,
-0.014488170854747295,
-0.0448383204638958,
-0.024222806096076965,
-0.05842466652393341,
0.006603538058698177,
-0.06324563175439835,
-0.09574498236179352,
-0.031235115602612495,
0.006692034658044577,
-0.03641006350517273,
0.01549956202507019,
-0.012397963553667068,
-0.0765959843993187,
0.027796385809779167,
-0.010973588563501835,
-0.007623357232660055,
-0.012777235358953476,
-0.014016188681125641,
-0.03039228916168213,
0.017766762524843216,
-0.058694370090961456,
-0.03600550815463066,
-0.048715315759181976,
-0.014538740739226341,
-0.019368130713701248,
0.0046355403028428555,
-0.024307088926434517,
-0.03339274972677231,
-0.018087036907672882,
-0.03654491528868675,
-0.007838277146220207,
-0.0006595110171474516,
0.011605707928538322,
-0.031673382967710495,
-0.03556723892688751,
0.033746734261512756,
0.014564025215804577,
0.015044435858726501,
0.002073350828140974,
-0.015625985339283943,
0.02041323482990265,
-0.01742963306605816,
-0.015448992140591145,
0.01803646609187126,
0.029785454273223877,
0.020160386338829994,
0.0273918304592371,
0.018710726872086525,
0.03475812450051308,
-0.049591854214668274,
0.05491851270198822,
0.02848750352859497,
0.04224241524934769,
0.04075904190540314,
-0.010434180498123169,
0.042107563465833664,
-0.02744239941239357,
0.028200943022966385,
0.03239821270108223,
0.03098226711153984,
-0.025638753548264503,
-0.022267451509833336,
0.01602211408317089,
0.002796073677018285,
-0.03093169815838337,
0.045613717287778854,
0.010560603812336922,
-0.02142462506890297,
0.07194358855485916,
0.026346726343035698,
0.06078457832336426,
0.024357657879590988,
0.030055159702897072,
-0.0816529393196106,
0.056739017367362976,
0.09709350019693375,
-0.01299636997282505,
-0.027088413015007973,
-0.024054240435361862,
-0.024340800940990448,
0.030324863269925117,
0.02447565458714962,
0.01447131484746933,
-0.09702607989311218,
0.010653315111994743,
-0.015743982046842575,
-0.0016034756554290652,
-0.009802061133086681,
-0.02499820478260517,
0.0046692537143826485,
-0.03185880556702614,
0.001620332128368318,
0.0339321568608284,
-0.03799457475543022,
0.006068343762308359,
0.043658364564180374,
0.00002528476579755079,
-0.01602211408317089,
-0.06574039161205292,
0.03199365735054016,
-0.003341803327202797,
-0.059200067073106766,
-0.006426544860005379,
0.04038820043206215,
0.059638336300849915,
0.025116201490163803,
0.008179621770977974,
-0.05222146958112717,
0.018070179969072342,
0.005137021653354168,
0.05279459059238434,
0.05603104084730148,
0.04905244708061218,
-0.019368130713701248,
-0.003952851984649897,
-0.010602745227515697,
-0.016055826097726822,
0.04824333265423775,
0.02351483330130577,
-0.0917668491601944,
-0.045141737908124924,
-0.056064754724502563,
0.03705061227083206,
0.01172370370477438,
0.05845838040113449,
-0.04760278761386871,
0.027779530733823776,
0.0025980097707360983,
-0.020851504057645798,
0.041096173226833344,
-0.0004804105556104332,
0.015651270747184753,
0.030560854822397232,
0.00868953112512827,
0.0026654358953237534,
0.012541243806481361,
-0.042141277343034744,
-0.007648641709238291,
0.023194558918476105,
0.002726540667936206,
0.04429890960454941,
0.023784536868333817,
0.0450068823993206,
0.0036410063039511442,
-0.06729119271039963,
-0.02501506172120571,
-0.038702547550201416,
-0.0040877037681639194,
0.011226436123251915,
-0.046726249158382416,
-0.023666542023420334,
-0.0029077481012791395,
0.0289594866335392,
0.03290390968322754,
-0.03792715072631836,
0.003919138573110104,
0.016586806625127792,
0.05404197424650192,
0.040624190121889114,
0.011605707928538322,
-0.027796385809779167,
-0.028588643297553062,
-0.01946927048265934,
-0.0011019944213330746,
0.06102056801319122,
0.0795627310872078,
0.007973129861056805,
-0.03799457475543022,
-0.036106646060943604,
0.03325789421796799,
-0.05299687013030052,
0.021795468404889107,
-0.021812325343489647,
0.046220552176237106,
-0.046085700392723083,
0.006687820889055729,
-0.012296824716031551,
-0.04905244708061218,
0.011782701127231121,
0.039275672286748886,
-0.024694789201021194,
0.018053323030471802,
0.03627521172165871,
-0.0270378440618515,
0.022638294845819473,
0.022267451509833336,
-0.04736679419875145,
0.013097508810460567,
0.0047914632596075535,
0.024172237142920494,
0.012263111770153046,
0.022065171971917152,
-0.03587065637111664,
-0.021154921501874924,
0.0025600825902074575,
-0.025739891454577446,
0.0043700505048036575,
-0.09399190545082092,
0.04136587679386139,
-0.03829799219965935,
-0.0357695147395134,
0.04652396962046623,
-0.04035448655486107,
-0.013738056644797325,
-0.04348979890346527,
0.07025793939828873,
-0.03684833273291588,
-0.021559476852416992,
-0.01642666943371296,
-0.00020728241361211985,
-0.08043926954269409,
-0.016148537397384644,
-0.00472825113683939,
0.004340551793575287,
-0.023717110976576805,
0.0450068823993206,
0.0063127633184194565,
-0.01694922149181366,
-0.05973947420716286,
0.01744648814201355,
-0.04723194241523743,
-0.008849668316543102,
-0.00400763563811779,
0.043590936809778214,
0.023818250745534897,
0.010400467552244663,
-0.020143531262874603,
-0.0009919003350660205,
0.03475812450051308,
0.007796136196702719,
-0.033763591200113297,
-0.046625107526779175,
0.024290231987833977,
0.024104811251163483,
-0.012448533438146114,
0.03258363530039787,
-0.026768138632178307,
-0.02889205887913704,
-0.03853398561477661,
0.017168356105685234,
0.010543747805058956,
-0.0029435681644827127,
-0.054648809134960175,
-0.015828263014554977,
0.04510802403092384,
0.012709809467196465,
0.018221888691186905,
0.028099803254008293,
-0.02949889376759529,
0.06884199380874634,
-0.019604122266173363,
-0.027290690690279007,
0.029785454273223877,
0.0786861926317215,
-0.00710501940920949,
-0.0239025317132473,
-0.006974381394684315,
0.058087535202503204,
-0.07140418142080307,
0.016165394335985184,
0.05721099674701691,
-0.06139141321182251,
-0.02943146787583828,
-0.02486335299909115,
0.0037863936740905046,
0.05137864500284195,
-0.026144448667764664,
-0.004201485309749842,
-0.02051437459886074,
-0.0008343972731381655,
-0.041096173226833344,
-0.0549522265791893,
0.04976041987538338,
0.009313222020864487,
0.07544974237680435,
0.03179137781262398,
0.05296315625309944,
-0.05501965060830116,
-0.10255501419305801,
0.004698752425611019,
0.02595902606844902,
0.025655610486865044,
0.003769537201151252,
-0.0518169142305851,
-0.05555906146764755,
0.026043308898806572,
-0.027728959918022156,
-0.0054867942817509174,
-0.006734176073223352,
-0.04591713473200798,
-0.007480076514184475,
0.00217870413325727,
-0.01793532818555832,
-0.018373597413301468,
-0.019300704821944237,
0.02946518175303936,
-0.043590936809778214,
-0.03988250344991684,
0.028538072481751442,
0.044568613171577454,
0.022166311740875244,
0.011361287906765938,
0.006194767542183399,
-0.026178160682320595,
0.05431167781352997,
0.03239821270108223,
0.02199774608016014,
0.06486385315656662,
0.050266116857528687,
-0.027712104842066765,
-0.030830558389425278,
0.029060624539852142,
-0.047771353274583817,
0.023194558918476105,
-0.061627402901649475,
0.017109358683228493,
0.0036072933580726385,
0.014412316493690014,
-0.03930938243865967,
0.010889305733144283,
-0.025284767150878906,
-0.05684015527367592,
0.028032377362251282,
-0.01120115164667368,
0.03051028400659561,
0.00997062586247921,
-0.009827345609664917,
-0.003851712681353092,
0.005086452234536409,
-0.021138064563274384,
0.04224241524934769,
-0.06557182967662811,
-0.013097508810460567,
-0.011689990758895874,
0.055154502391815186,
0.06732490658760071,
-0.028133517131209373,
-0.03260049223899841,
0.004783034790307283,
-0.0304428581148386,
-0.008284974843263626,
0.02004239149391651,
-0.0348929762840271,
-0.0448383204638958,
0.051075227558612823,
0.04443376138806343,
0.01646881178021431,
0.0608857162296772,
-0.016873367130756378,
0.05828981474041939,
0.0054910085164010525,
-0.04507431015372276,
-0.029633745551109314,
-0.006456043571233749,
0.01196812279522419,
-0.03093169815838337,
-0.04247840866446495,
-0.0071387323550879955,
-0.06725747883319855,
0.04001735523343086,
0.00019253295613452792,
0.011546709574759007,
-0.02445879764854908,
-0.035196393728256226,
-0.01803646609187126,
0.07565201818943024,
0.010054908692836761,
-0.06745975464582443,
0.007602286525070667,
-0.023683397099375725,
0.025284767150878906,
0.005406725686043501,
0.0832037404179573,
-0.02346426248550415,
0.017117787152528763,
-0.011824842542409897,
0.006009346339851618,
0.025284767150878906,
0.011352860368788242,
0.08030442148447037,
0.01049317792057991,
-0.01444602943956852,
-0.01756448484957218,
-0.008891809731721878,
-0.057716693729162216,
0.04783877730369568,
0.04537772759795189,
0.06752718240022659,
0.01272666547447443,
-0.010097050108015537,
0.023548545315861702,
-0.025874745100736618,
0.038196854293346405,
-0.005179163068532944,
0.010164475999772549,
0.004922101274132729,
-0.0027012559585273266,
-0.024307088926434517,
-0.004121416714042425,
0.03934309631586075,
-0.0458834245800972,
-0.020345808938145638,
0.03381416201591492,
-0.08515909314155579,
-0.009330078959465027,
0.059132639318704605,
0.036747194826602936,
0.01446288637816906,
0.026178160682320595,
0.024104811251163483,
-0.021694328635931015,
0.04851303994655609,
0.03394901379942894,
0.010838736779987812,
0.023885676637291908,
-0.07747252285480499,
-0.050266116857528687,
0.013569490984082222,
-0.06752718240022659,
-0.008478824980556965,
-0.007871991023421288,
0.02140776813030243,
0.019199565052986145,
0.0329713337123394,
-0.009136228822171688,
-0.015583843924105167,
-0.024593649432063103,
-0.029195476323366165,
0.08118095993995667,
-0.0000172022009792272,
-0.06641465425491333,
-0.01744648814201355,
0.015777694061398506,
0.02193032018840313,
-0.0164435263723135,
0.015364709310233593,
-0.019671548157930374,
0.04793991893529892,
0.015381566248834133,
-0.016763800755143166,
0.056604161858558655,
-0.03701689839363098,
-0.03194308653473854,
-0.008095338940620422,
0.02452622354030609,
0.027678390964865685,
0.03725288808345795,
-0.03543238714337349,
0.024661075323820114,
-0.0056174322962760925,
0.017800476402044296,
-0.04726565629243851,
0.03836541995406151,
0.051075227558612823,
-0.0319262333214283,
-0.0031395251862704754,
-0.008074268698692322,
-0.005971419159322977,
-0.0003152694262098521,
-0.044703468680381775,
-0.012271540239453316,
0.009380647912621498,
-0.03826427832245827,
-0.05488479882478714,
-0.0169660784304142,
-0.0359380804002285,
0.0043658362701535225,
-0.0359380804002285,
-0.07356180995702744,
0.07976500689983368,
-0.024273375049233437,
-0.03182509168982506,
0.03934309631586075,
0.0189298614859581,
0.02700413018465042,
0.07147160917520523,
0.021138064563274384,
-0.005676430184394121,
-0.007707639597356319,
-0.005141235888004303,
0.06634722650051117,
0.008533609099686146,
0.017143070697784424,
0.09608211368322372,
-0.013080652803182602,
-0.03298819065093994,
-0.005318229086697102,
-0.044602327048778534,
0.06139141321182251,
-0.002273521851748228,
-0.014547169208526611,
-0.047063376754522324,
0.015727125108242035,
-0.034656986594200134,
-0.04075904190540314,
0.024745358154177666,
-0.07160645723342896,
0.0037842867895960808,
0.016325531527400017,
0.0299203060567379,
0.05431167781352997,
0.06462786346673965,
-0.04389435425400734,
0.04874902963638306,
0.03496040403842926,
0.0024294445756822824,
0.004281553905457258,
0.05427796393632889,
-0.03290390968322754,
0.030274294316768646,
0.022166311740875244,
0.010678599588572979,
0.020868360996246338,
-0.0006753139896318316,
0.01524671446532011,
-0.014505027793347836,
0.08536136895418167,
-0.0378597229719162,
-0.009422789327800274,
0.0024463010486215353,
-0.010982017032802105,
0.029768599197268486,
0.012827805243432522,
-0.016148537397384644,
0.03042600303888321,
-0.00672574806958437,
0.038635123521089554,
-0.03187566250562668,
0.07491033524274826,
0.05090666189789772,
0.0537385568022728,
-0.006734176073223352,
0.018120748922228813,
-0.057076144963502884,
0.0490187332034111,
-0.0011409750441089272,
-0.04254583269357681,
-0.0341007225215435,
-0.003925459925085306,
-0.02648157812654972,
0.021154921501874924,
-0.00919522624462843,
0.0144797433167696,
-0.004037134349346161,
0.021846037358045578,
0.02754353918135166,
0.00650239922106266,
0.027071556076407433,
0.029633745551109314,
-0.011841698549687862,
-0.0706624910235405,
0.019856970757246017,
-0.0022018817253410816,
-0.032667919993400574,
0.007109233643859625,
0.011841698549687862,
0.08529394865036011,
-0.0067426045425236225,
-0.0018394667422398925,
0.006928026210516691,
0.028875203803181648,
-0.008432469330728054,
-0.05441281571984291,
-0.013384069316089153,
-0.015592272393405437,
-0.03435356914997101,
-0.05333400145173073,
-0.03647749125957489,
0.04244469478726387,
-0.020177243277430534,
0.026582717895507812,
0.04591713473200798,
-0.01396561972796917
] |
724,844 | scipy.sparse._dok | keys | null | def keys(self):
return self._dict.keys()
| (self) | [
-0.005706848111003637,
-0.021404864266514778,
-0.04157129302620888,
-0.0053135608322918415,
0.04116963595151901,
0.03291897475719452,
0.0012206545798107982,
-0.04829901456832886,
0.09639719873666763,
-0.0019277348183095455,
-0.029337549582123756,
-0.04649156704545021,
0.025404678657650948,
-0.006422296166419983,
-0.009154386818408966,
-0.04799777269363403,
-0.0028492400888353586,
0.004924457520246506,
-0.03218260779976845,
-0.03184789419174194,
-0.01342197135090828,
0.007204686291515827,
0.0684821754693985,
-0.030827021226286888,
-0.0429101437330246,
-0.002631677081808448,
0.0014371718280017376,
-0.04913579300045967,
0.08448143303394318,
0.04120310768485069,
-0.1239105686545372,
0.0012666776310652494,
0.013221143744885921,
-0.032584261149168015,
-0.0401654988527298,
-0.04019897058606148,
0.040667567402124405,
-0.033270422369241714,
0.05338664352893829,
0.00637208903208375,
0.03022453933954239,
0.004489331506192684,
-0.020969737321138382,
-0.03511134162545204,
0.025923483073711395,
0.006949468050152063,
0.062256526201963425,
0.016007624566555023,
0.0483994260430336,
-0.03842499479651451,
0.015965785831212997,
-0.00809167418628931,
-0.009037237614393234,
-0.021053416654467583,
-0.02418297715485096,
-0.02026684209704399,
0.018543072044849396,
-0.015513923950493336,
-0.0471944622695446,
0.056298643350601196,
-0.018308773636817932,
-0.0053512160666286945,
0.01449305098503828,
-0.0324336402118206,
0.06962019950151443,
-0.05907675623893738,
0.002173539251089096,
0.025287529453635216,
-0.015237786807119846,
-0.013522384688258171,
-0.015036959201097488,
-0.03922830522060394,
0.020668497309088707,
0.04381386563181877,
-0.047428760677576065,
-0.03718655928969383,
-0.023379668593406677,
0.028701595962047577,
-0.010217098519206047,
-0.03511134162545204,
-0.024400541558861732,
-0.018710428848862648,
-0.03365534171462059,
0.0444498211145401,
0.029822884127497673,
0.042073361575603485,
0.01810794696211815,
-0.0031044583301991224,
-0.03357166424393654,
0.06844870746135712,
-0.03422435373067856,
0.06754498183727264,
-0.005016503389924765,
0.05024034529924393,
-0.04100228101015091,
-0.024517690762877464,
-0.038592349737882614,
0.016283763572573662,
0.01307052280753851,
-0.00819627195596695,
-0.016275394707918167,
-0.0070959050208330154,
0.03959648683667183,
0.05834038928151131,
-0.021053416654467583,
-0.008413835428655148,
-0.040667567402124405,
-0.042742785066366196,
0.017873646691441536,
0.02684394270181656,
-0.02635861001908779,
0.04260890185832977,
0.05224861949682236,
0.0015564131317660213,
0.05700153857469559,
-0.05556227266788483,
-0.011078983545303345,
-0.018409186974167824,
0.017321372404694557,
0.000460752664366737,
-0.03164706751704216,
0.08053182810544968,
0.022559622302651405,
0.029889825731515884,
0.002870159689337015,
0.04451676085591316,
0.01373994816094637,
0.02294454164803028,
-0.004476779606193304,
0.026592908427119255,
0.05124448239803314,
0.01748872734606266,
-0.016057832166552544,
0.019296174868941307,
0.021103622391819954,
-0.01644275151193142,
0.13435359299182892,
-0.0029224585741758347,
0.03986425697803497,
0.07711775600910187,
0.012660500593483448,
0.005639905575662851,
0.037320442497730255,
0.06282553821802139,
0.015522291883826256,
-0.014267120510339737,
0.0068239509128034115,
0.034073732793331146,
0.029253872111439705,
-0.0442824624478817,
0.01876063458621502,
-0.020635025575757027,
0.0030772630125284195,
0.010150156915187836,
-0.07069128006696701,
0.008844777941703796,
-0.03839152306318283,
-0.05365441367030144,
-0.030743343755602837,
-0.052181679755449295,
-0.04029938578605652,
-0.04244154319167137,
0.013388499617576599,
-0.03208219259977341,
0.0028241367544978857,
0.026023896411061287,
0.028550976887345314,
-0.0268606785684824,
0.0028199527878314257,
0.0006322928238660097,
-0.0019204129930585623,
-0.023714380338788033,
-0.04849984124302864,
0.0032446193508803844,
0.0010355167323723435,
-0.013873833231627941,
-0.01956394501030445,
0.07624750584363937,
0.004635768011212349,
0.03450885787606239,
0.024049092084169388,
-0.046056438237428665,
-0.050675470381975174,
-0.02028357796370983,
0.031161732971668243,
-0.025823069736361504,
0.015354936011135578,
0.01573985442519188,
0.02829994075000286,
-0.007493375800549984,
0.0009989076061174273,
-0.028768539428710938,
-0.019697830080986023,
0.0268606785684824,
-0.02970573492348194,
-0.007363675162196159,
-0.03164706751704216,
-0.04930315166711807,
-0.06105155870318413,
-0.02080238237977028,
-0.02421644888818264,
-0.05998047813773155,
-0.05111059918999672,
-0.019212497398257256,
-0.0012865511234849691,
-0.010267306119203568,
-0.014593465253710747,
-0.05700153857469559,
0.05107712745666504,
0.006434847600758076,
0.02635861001908779,
-0.0779210701584816,
-0.005953698419034481,
-0.014300591312348843,
0.01755567081272602,
-0.054223425686359406,
-0.018007531762123108,
-0.011539213359355927,
-0.007961973547935486,
-0.0162168201059103,
0.051411841064691544,
0.02023337036371231,
-0.01650969311594963,
-0.02620798908174038,
-0.032617732882499695,
-0.02297801338136196,
0.016727257519960403,
0.009807076305150986,
-0.05870857089757919,
-0.07885826379060745,
0.02480219677090645,
0.036048535257577896,
-0.028082378208637238,
0.02751336805522442,
-0.006493422668427229,
0.00788666307926178,
-0.017170751467347145,
0.006652411073446274,
0.04234113171696663,
0.006941100582480431,
-0.0013869649264961481,
0.042006418108940125,
0.04177211970090866,
0.028768539428710938,
-0.023714380338788033,
0.030107388272881508,
0.005907675717025995,
0.05244944989681244,
0.041972946375608444,
-0.004706894513219595,
0.0007625169237144291,
-0.0674445703625679,
0.0066942498087882996,
0.004098135977983475,
0.013237879611551762,
-0.037420857697725296,
-0.029789412394165993,
0.05499326437711716,
0.00014238356379792094,
-0.01548045314848423,
0.009639719501137733,
0.02953837811946869,
-0.053420115262269974,
0.0403328575193882,
0.05254986137151718,
0.04762958735227585,
0.05716889351606369,
0.03362186998128891,
-0.07678304612636566,
0.03584770858287811,
0.09104179590940475,
-0.023011483252048492,
-0.0822053924202919,
-0.015070430003106594,
-0.023095162585377693,
-0.006187997292727232,
-0.009447259828448296,
0.02363070286810398,
-0.07370369136333466,
0.03571382164955139,
0.005016503389924765,
-0.03313653543591499,
-0.016191717237234116,
-0.020333783701062202,
-0.032550789415836334,
0.027078241109848022,
-0.04056715592741966,
-0.037922926247119904,
-0.041336994618177414,
-0.013865465298295021,
0.054056067019701004,
0.0261745173484087,
-0.00243712542578578,
-0.07356980443000793,
0.0296889990568161,
-0.015764959156513214,
-0.027915021404623985,
-0.050675470381975174,
0.03909441828727722,
0.06824787706136703,
0.03839152306318283,
0.01309562660753727,
-0.06707638502120972,
-0.012183534912765026,
-0.01275254599750042,
0.03708614408969879,
0.0604156069457531,
0.0564659982919693,
-0.0017541026463732123,
-0.013246246613562107,
-0.03778903931379318,
0.006267491728067398,
0.03809028118848801,
-0.0005381549126468599,
-0.04595602676272392,
-0.0743061751127243,
-0.03027474507689476,
0.019329646602272987,
0.0006699479999952018,
0.09151040017604828,
-0.013037052005529404,
0.034676216542720795,
-0.0021860909182578325,
-0.01071080006659031,
0.013781786896288395,
-0.03591465204954147,
0.03216587007045746,
0.0020375624299049377,
0.008497513830661774,
-0.0010606201831251383,
-0.019831715151667595,
-0.08073265105485916,
-0.005581330973654985,
0.015262889675796032,
-0.0054223425686359406,
0.03842499479651451,
0.032600998878479004,
0.03447538614273071,
0.015513923950493336,
-0.013488913886249065,
-0.0030416997615247965,
-0.05656641349196434,
-0.005292641464620829,
-0.002598205814138055,
-0.08829715847969055,
-0.016350705176591873,
-0.024751989170908928,
0.0175891425460577,
0.02480219677090645,
0.0012227465631440282,
0.006401376333087683,
0.011505741626024246,
0.02749663218855858,
0.05191390961408615,
0.06988796591758728,
-0.013622798956930637,
-0.01516247633844614,
-0.004451676271855831,
-0.00009400714043295011,
0.06754498183727264,
0.0779210701584816,
0.0034851939417421818,
-0.043311797082424164,
-0.048834554851055145,
0.01961415261030197,
-0.04357956722378731,
-0.004832411650568247,
-0.043278325349092484,
0.04029938578605652,
-0.03104458376765251,
-0.01611640676856041,
-0.0002680314937606454,
-0.03973037376999855,
0.0006328158196993172,
0.024333598092198372,
-0.028015436604619026,
0.03634977713227272,
0.06202222406864166,
-0.03377249091863632,
0.011664730496704578,
-0.0023137000389397144,
-0.02550509199500084,
0.029789412394165993,
0.033236950635910034,
-0.04923620820045471,
0.04920273646712303,
0.022693507373332977,
-0.039998143911361694,
0.00035327859222888947,
0.025337735190987587,
-0.000013001161278225482,
-0.011271443217992783,
-0.07999628782272339,
0.017187487334012985,
-0.0024475851096212864,
-0.01949700340628624,
0.059612296521663666,
-0.02493608184158802,
0.006087583489716053,
-0.052014321088790894,
0.08093348145484924,
-0.035312168300151825,
-0.038659293204545975,
0.0009952466934919357,
0.014367533847689629,
-0.02828320674598217,
0.005075078457593918,
-0.02625819481909275,
-0.0033345732372254133,
-0.05385524034500122,
0.004142066929489374,
0.00876109953969717,
0.008137697353959084,
-0.0526837483048439,
0.018476130440831184,
-0.0688168928027153,
-0.02547162026166916,
-0.019128819927573204,
0.050775885581970215,
0.0403328575193882,
-0.009773604571819305,
-0.041370466351509094,
-0.007690019439905882,
0.037286970764398575,
0.04240807518362999,
0.030810285359621048,
-0.05633211508393288,
0.0015522291650995612,
0.017254428938031197,
-0.00048402565880678594,
-0.003748779883608222,
-0.001116056926548481,
0.006321882363408804,
-0.013129097409546375,
-0.03291897475719452,
0.004493515472859144,
0.012501511722803116,
-0.011037144809961319,
-0.021856725215911865,
0.045387014746665955,
-0.017706291750073433,
0.004656687844544649,
0.022007346153259277,
-0.03342104330658913,
0.08059877157211304,
0.01814141683280468,
-0.006844870746135712,
0.04424899071455002,
0.09653108566999435,
0.019363118335604668,
-0.0024434011429548264,
-0.008610478602349758,
0.028099114075303078,
-0.10168565809726715,
0.023915207013487816,
0.06396355479955673,
-0.09572777152061462,
0.009949329309165478,
-0.03447538614273071,
0.0008697294979356229,
0.034609273076057434,
0.020668497309088707,
-0.022074289619922638,
0.003683929331600666,
-0.0014005625853314996,
-0.05599740147590637,
-0.035948123782873154,
0.03568035364151001,
0.014057924970984459,
0.059478409588336945,
0.02684394270181656,
0.033170007169246674,
-0.05375482887029648,
-0.0779210701584816,
-0.028417091816663742,
0.024601368233561516,
0.012375994585454464,
0.02747989632189274,
-0.04689322039484978,
-0.04173864796757698,
0.0024162058252841234,
-0.02615778148174286,
-0.010869788005948067,
-0.03966343030333519,
-0.006359537597745657,
-0.0241997130215168,
-0.026626378297805786,
-0.019329646602272987,
-0.050106462091207504,
-0.020434197038412094,
0.03618242219090462,
-0.03434150293469429,
-0.017622612416744232,
0.007677468005567789,
0.08950211852788925,
0.02351355366408825,
0.023011483252048492,
0.006974571850150824,
-0.04890149459242821,
0.06459951400756836,
-0.009823812171816826,
0.015580866485834122,
0.04394775256514549,
0.050909772515296936,
-0.009505835361778736,
-0.0389605350792408,
0.047462232410907745,
-0.034642744809389114,
0.009807076305150986,
-0.05455813556909561,
0.017011763527989388,
-0.006551997270435095,
0.020635025575757027,
-0.012903166934847832,
0.015354936011135578,
-0.03755474090576172,
-0.03842499479651451,
0.015187579207122326,
-0.025287529453635216,
0.07738552987575531,
-0.00940542109310627,
0.013681373558938503,
0.020618289709091187,
0.01002463884651661,
-0.029237136244773865,
0.0763813927769661,
-0.051478780806064606,
-0.031931571662425995,
-0.010191995650529861,
0.06342801451683044,
0.07169541716575623,
-0.027781136333942413,
-0.005334480199962854,
0.03214913606643677,
-0.04287667199969292,
0.005003951955586672,
0.015296361409127712,
-0.023764587938785553,
-0.012217005714774132,
0.04997257515788078,
0.04886802285909653,
-0.02011622115969658,
0.04127005115151405,
0.0004011320124845952,
0.060181308537721634,
0.04180559143424034,
-0.047562647610902786,
-0.04357956722378731,
-0.03345451503992081,
-0.00038648833287879825,
-0.0026107574813067913,
-0.0362158939242363,
0.012509879656136036,
-0.07557807862758636,
0.03511134162545204,
0.008292501792311668,
0.037922926247119904,
-0.02896936610341072,
-0.02553856372833252,
-0.011171029880642891,
0.03645019233226776,
-0.022509414702653885,
-0.03240016847848892,
-0.0030145044438540936,
-0.04224071651697159,
-0.021070152521133423,
0.02697782777249813,
0.035412583500146866,
-0.018492866307497025,
0.02895263023674488,
-0.025438150390982628,
0.04689322039484978,
0.029086515307426453,
0.001942378468811512,
0.037387385964393616,
0.0401654988527298,
-0.03584770858287811,
-0.004798940382897854,
-0.013388499617576599,
-0.06510157883167267,
0.06861606240272522,
0.0170787051320076,
0.06513505429029465,
0.04692669212818146,
-0.011706569232046604,
0.02500302344560623,
-0.008501697331666946,
0.027044769376516342,
-0.03091069869697094,
0.005221514962613583,
-0.024450747296214104,
-0.016057832166552544,
-0.01891125552356243,
-0.010409558191895485,
0.025421414524316788,
-0.02341313846409321,
0.008560271933674812,
0.019697830080986023,
-0.01516247633844614,
-0.020685233175754547,
0.06379619985818863,
0.012242109514772892,
0.013221143744885921,
0.04441634938120842,
-0.0009675283217802644,
-0.024685047566890717,
0.04652503877878189,
0.06128585711121559,
0.024065827950835228,
0.013497281819581985,
-0.10884850472211838,
-0.03892706334590912,
0.013237879611551762,
-0.0767161026597023,
0.0026923436671495438,
0.014953280799090862,
0.05797220394015312,
-0.009698295034468174,
0.020501140505075455,
0.026710057631134987,
-0.018643485382199287,
-0.02896936610341072,
0.008070754818618298,
0.055394917726516724,
0.0008514249348081648,
-0.05840732902288437,
-0.033387571573257446,
0.03424108773469925,
0.024668311700224876,
-0.0268606785684824,
-0.00242875749245286,
-0.02277718484401703,
0.03812375292181969,
-0.011229604482650757,
-0.003696481231600046,
0.04120310768485069,
-0.04448328912258148,
-0.0418725349009037,
-0.02550509199500084,
0.022710243239998817,
-0.019363118335604668,
0.05432383716106415,
-0.021220771595835686,
0.011271443217992783,
-0.00361907877959311,
0.017304636538028717,
-0.031161732971668243,
0.015179211273789406,
0.0629928931593895,
-0.0578383207321167,
0.00845985859632492,
-0.0009842639556154609,
-0.012175166979432106,
-0.0028136768378317356,
-0.05834038928151131,
-0.014643671922385693,
-0.02624145895242691,
-0.03695226088166237,
-0.043981220573186874,
-0.04515271633863449,
-0.010183627717196941,
-0.002863883739337325,
-0.022542886435985565,
-0.07691693305969238,
0.05127795413136482,
0.0018304589902982116,
-0.019798243418335915,
0.03437497466802597,
-0.008074939250946045,
0.02498628757894039,
0.038625821471214294,
0.008961927145719528,
0.016894612461328506,
-0.04287667199969292,
-0.03678490221500397,
0.060951147228479385,
0.012894799001514912,
0.0029852171428501606,
0.08849798142910004,
-0.05512714758515358,
-0.02627493068575859,
0.021187301725149155,
-0.026525964960455894,
0.03785598278045654,
0.004010274074971676,
-0.029739204794168472,
-0.019028404727578163,
0.0022634933702647686,
0.010476500727236271,
-0.03024127334356308,
0.02426665648818016,
-0.06101808696985245,
0.01953047327697277,
0.02552182786166668,
0.01176514383405447,
0.035446055233478546,
0.05178002268075943,
-0.0181916244328022,
0.01640927977859974,
0.002175631234422326,
-0.01683603785932064,
0.02297801338136196,
0.02682720683515072,
0.0007028962718322873,
-0.015547395683825016,
0.025187116116285324,
0.05445772409439087,
0.007359491195529699,
-0.0056524574756622314,
0.023279253393411636,
-0.03444191440939903,
0.04287667199969292,
-0.011673098430037498,
-0.037320442497730255,
0.008853145875036716,
-0.026710057631134987,
0.039328716695308685,
0.0004066233814228326,
0.009832179173827171,
0.04521965980529785,
0.00938868522644043,
0.01743852160871029,
-0.0216224268078804,
0.09325090050697327,
0.025354471057653427,
0.04458370432257652,
0.005288457497954369,
0.007367858663201332,
-0.0846153199672699,
0.01892799139022827,
0.0067862956784665585,
-0.05559574440121651,
-0.06064990535378456,
0.008045651949942112,
0.007660732138901949,
0.014292223379015923,
0.009053973481059074,
-0.030743343755602837,
0.016685418784618378,
0.045487429946660995,
0.017639348283410072,
0.003056343412026763,
0.016551533713936806,
0.004644135944545269,
0.048734139651060104,
-0.0550936758518219,
0.0033031939528882504,
0.0008760053897276521,
-0.00453535420820117,
-0.012543350458145142,
-0.001607665908522904,
0.0736367478966713,
-0.0053805033676326275,
-0.06295941770076752,
-0.04441634938120842,
0.03434150293469429,
-0.03578076511621475,
-0.027094976976513863,
-0.00012205239181639627,
0.00243712542578578,
-0.03768862783908844,
-0.07952769100666046,
-0.058273445814847946,
0.031948309391736984,
0.008158616721630096,
0.020969737321138382,
0.07249872386455536,
-0.03214913606643677
] |
724,845 | scipy.sparse._base | maximum | Element-wise maximum between this and another array/matrix. | def maximum(self, other):
"""Element-wise maximum between this and another array/matrix."""
return self.tocsr().maximum(other)
| (self, other) | [
0.011187615804374218,
0.016640476882457733,
0.057787999510765076,
0.07498345524072647,
-0.04594850912690163,
-0.07293973118066788,
-0.04985976964235306,
0.010641449131071568,
0.05683661252260208,
-0.015292678028345108,
-0.03735078126192093,
-0.037949804216623306,
0.013733459636569023,
0.016217639669775963,
-0.0029863007366657257,
0.07441966980695724,
-0.010808822698891163,
-0.02138860709965229,
0.03844311460852623,
0.06395440548658371,
-0.02466561086475849,
-0.04651229456067085,
-0.03498993068933487,
0.011821874417364597,
0.011495936661958694,
0.06138213351368904,
0.029158275574445724,
-0.015116495080292225,
-0.0005467176670208573,
-0.039183083921670914,
-0.08026894181966782,
-0.03312239050865173,
0.010606212541460991,
-0.04876743629574776,
0.033827122300863266,
0.007139813154935837,
-0.035853225737810135,
0.001831201370805502,
-0.03120199777185917,
0.0020228002686053514,
-0.015072450041770935,
-0.06427153199911118,
0.021212425082921982,
-0.0021307123824954033,
0.014323672279715538,
-0.008756292052567005,
0.010218610055744648,
0.022128576412796974,
-0.02741406485438347,
0.021335752680897713,
0.004721702542155981,
-0.03763267397880554,
0.061029765754938126,
0.032858118414878845,
-0.10021284967660904,
0.094997838139534,
0.021952392533421516,
0.023520421236753464,
-0.0689932331442833,
-0.05933840945363045,
-0.006791851948946714,
-0.035853225737810135,
0.010491693392395973,
0.004175535403192043,
0.02723788097500801,
0.04446857050061226,
-0.03567704185843468,
0.015865273773670197,
0.023256147280335426,
0.09351789951324463,
-0.04256579652428627,
0.011125952005386353,
-0.026550767943263054,
-0.010359556414186954,
0.044820938259363174,
0.022251904010772705,
-0.033827122300863266,
0.010077663697302341,
-0.059549830853939056,
-0.045913271605968475,
0.027396446093916893,
-0.005276678595691919,
-0.006554005201905966,
-0.016138356178998947,
-0.03174816444516182,
-0.04277721419930458,
0.0340561605989933,
0.05503954738378525,
-0.04087444022297859,
-0.0497540608048439,
-0.020771967247128487,
0.03615273907780647,
0.02505321241915226,
0.05856320634484291,
-0.004897885490208864,
0.010227419435977936,
-0.038795482367277145,
0.02669171430170536,
0.037808857858181,
-0.04947216808795929,
0.04238961264491081,
0.03830216825008392,
-0.011566409841179848,
-0.025775562971830368,
0.016129547730088234,
-0.016314540058374405,
0.016138356178998947,
0.00355228828266263,
0.027273118495941162,
0.011249280534684658,
-0.03335142880678177,
0.03622321039438248,
-0.031166760250926018,
0.03717459738254547,
-0.048238884657621384,
0.023819932714104652,
-0.01010409090667963,
0.02766072005033493,
0.008822360076010227,
0.03907737508416176,
0.01116118859499693,
0.022498561069369316,
0.01416510809212923,
-0.0551452562212944,
0.0037504942156374454,
0.022833308205008507,
0.04809793829917908,
-0.01814684271812439,
0.03692794218659401,
-0.030638212338089943,
-0.024454191327095032,
-0.053876738995313644,
-0.010896914638578892,
0.07064935564994812,
0.004448619205504656,
-0.05225585773587227,
0.017274735495448112,
-0.016226448118686676,
0.02466561086475849,
0.0024093014653772116,
0.02239285036921501,
0.06871134042739868,
0.054123397916555405,
0.02653314918279648,
-0.0019688443280756474,
-0.02441895380616188,
0.04334099963307381,
0.015407197177410126,
0.008492017164826393,
-0.01599740982055664,
-0.0442923903465271,
0.02172335609793663,
0.04615992680191994,
-0.03844311460852623,
0.044362861663103104,
0.03525420278310776,
0.04608945548534393,
-0.022040484473109245,
0.016957607120275497,
-0.0345318540930748,
-0.047851283103227615,
0.036434631794691086,
-0.0799870491027832,
0.007734430488198996,
0.004563137888908386,
-0.03312239050865173,
0.03262908011674881,
0.03123723343014717,
-0.05310153588652611,
0.03365093842148781,
-0.03102581389248371,
-0.07237594574689865,
-0.06916941702365875,
-0.04929598420858383,
-0.04284768924117088,
-0.00810441467911005,
-0.012905399315059185,
0.0035721089225262403,
0.05123399570584297,
0.04876743629574776,
0.03717459738254547,
-0.0005984713789075613,
-0.014966740272939205,
-0.02054292894899845,
0.03225909546017647,
0.01052692998200655,
-0.008064773865044117,
0.00009015610703499988,
0.022516177967190742,
-0.0005643359618261456,
0.01811160519719124,
-0.048062704503536224,
-0.033950451761484146,
-0.032963827252388,
-0.008853192441165447,
0.023696603253483772,
0.005655472166836262,
0.06458866596221924,
0.047639865428209305,
0.052784405648708344,
-0.04369336739182472,
0.018340643495321274,
0.029704442247748375,
-0.006007838062942028,
0.017248308286070824,
0.008870810270309448,
-0.0014711274998262525,
-0.028242124244570732,
-0.05940888449549675,
0.000861644628457725,
0.02126527950167656,
0.03402092307806015,
-0.02387278713285923,
-0.012878972105681896,
0.09577304124832153,
0.017098553478717804,
-0.028048323467373848,
-0.045279014855623245,
-0.0073027824983000755,
0.017398064956068993,
0.014702465385198593,
-0.031395796686410904,
-0.029528258368372917,
0.014341290108859539,
0.022410469129681587,
-0.06969796866178513,
0.006813874933868647,
-0.008963306434452534,
0.028347833082079887,
-0.0034113419242203236,
0.02602221816778183,
-0.0009794669458642602,
0.011460700072348118,
-0.011328562162816525,
-0.05310153588652611,
0.009205558337271214,
-0.010200991295278072,
-0.00032373613794334233,
-0.05215014889836311,
-0.001553713227622211,
-0.0023013895843178034,
-0.03268193453550339,
-0.02383754961192608,
0.010341937653720379,
-0.02972206100821495,
-0.01814684271812439,
0.00013021020276937634,
0.03731554374098778,
0.020948151126503944,
0.01941535808146,
-0.039183083921670914,
-0.04933122172951698,
-0.02750215493142605,
-0.007293973118066788,
0.035888463258743286,
-0.053277719765901566,
0.01708093471825123,
-0.03971163183450699,
0.017160218209028244,
-0.007769667077809572,
0.055215731263160706,
0.04105062410235405,
-0.027607865631580353,
-0.0029180299025028944,
-0.05644901096820831,
0.034760892391204834,
0.010341937653720379,
0.02463037334382534,
-0.009734107181429863,
0.01902775652706623,
0.08224219083786011,
0.005831655114889145,
-0.018763482570648193,
-0.06916941702365875,
0.013574894517660141,
0.004215176682919264,
0.023608513176441193,
-0.007192668039351702,
-0.00026386146782897413,
-0.010518120601773262,
-0.04034589231014252,
-0.03506040200591087,
-0.07170645147562027,
0.004457428120076656,
-0.05190348997712135,
0.009152702987194061,
-0.0264802947640419,
-0.07533582299947739,
-0.033069536089897156,
-0.0019214950734749436,
0.05257298797369003,
0.026216020807623863,
0.009848625399172306,
0.05602617189288139,
-0.004598374478518963,
-0.05422910675406456,
0.015283869579434395,
0.011302134953439236,
0.054299578070640564,
0.01848158985376358,
-0.025581762194633484,
0.01714259944856167,
-0.02290378138422966,
-0.02366136759519577,
-0.011099524796009064,
-0.0367165245115757,
-0.007694789674133062,
0.021952392533421516,
0.020243419334292412,
0.09788723289966583,
-0.00024651846615597606,
0.013072773814201355,
-0.013680604286491871,
0.017794476822018623,
-0.06021932512521744,
0.09041707962751389,
0.04573708772659302,
0.010773586109280586,
0.0573299266397953,
0.027590246871113777,
0.05380626767873764,
-0.032188620418310165,
-0.029651587828993797,
-0.03495469316840172,
-0.03461994603276253,
-0.03699841722846031,
-0.051551125943660736,
-0.04816841334104538,
0.004038993734866381,
-0.009443405084311962,
0.016076693311333656,
-0.0010945365065708756,
0.02623363770544529,
0.010306701064109802,
0.02438371814787388,
0.05440529063344002,
0.011751401238143444,
0.02336185611784458,
0.007064935751259327,
-0.008267384022474289,
-0.058422259986400604,
0.02071911282837391,
-0.025123685598373413,
-0.007549438625574112,
-0.012350423261523247,
-0.009795770980417728,
-0.04682942479848862,
-0.020560547709465027,
0.0046820612624287605,
-0.0442219153046608,
-0.02829497866332531,
0.010412410832941532,
0.015821227803826332,
-0.004212974105030298,
-0.05211491137742996,
0.025863654911518097,
-0.004252615384757519,
0.027977850288152695,
0.028770672157406807,
0.007078149355947971,
-0.023467566817998886,
0.02644505724310875,
-0.0051181139424443245,
-0.03541276976466179,
-0.03171292692422867,
0.04253055900335312,
-0.052784405648708344,
0.010394793003797531,
-0.007338019087910652,
-0.06113547831773758,
0.004151310306042433,
-0.038125984370708466,
0.03911260887980461,
0.04129727929830551,
-0.02908780239522457,
0.04298863559961319,
-0.1250898838043213,
0.029651587828993797,
-0.02084244042634964,
-0.019732488319277763,
0.023767076432704926,
-0.030426792800426483,
-0.032822880893945694,
-0.03957068547606468,
0.020366746932268143,
0.04605421796441078,
-0.024154679849743843,
-0.07110743224620819,
-0.02344994805753231,
0.031061051413416862,
-0.005417624954134226,
-0.027607865631580353,
-0.06649143993854523,
-0.0518682561814785,
-0.03535991534590721,
0.01657000556588173,
0.006562814116477966,
0.021582409739494324,
0.021776210516691208,
-0.06645619869232178,
-0.06677333265542984,
0.058668915182352066,
-0.005747968330979347,
-0.012235904112458229,
-0.02914065681397915,
-0.00499919056892395,
0.02632172964513302,
0.025652235373854637,
-0.018375879153609276,
0.039006900042295456,
-0.012588270008563995,
0.04016970843076706,
-0.018552063032984734,
-0.03153674304485321,
0.02193477563560009,
-0.01516054105013609,
0.03692794218659401,
0.022304758429527283,
0.07498345524072647,
0.0005676393629983068,
0.020366746932268143,
0.015856463462114334,
0.0024555495474487543,
-0.07667481154203415,
-0.05271393433213234,
-0.09358837455511093,
-0.047639865428209305,
-0.039887815713882446,
-0.04682942479848862,
-0.021582409739494324,
-0.03759743645787239,
-0.059479355812072754,
0.014931503683328629,
0.0030898081604391336,
-0.04661800339818001,
-0.005448457319289446,
-0.008795932866632938,
-0.032963827252388,
0.015354342758655548,
-0.003050166880711913,
0.06550481170415878,
-0.03861929848790169,
-0.03491945564746857,
-0.0008682514890097082,
-0.07632244378328323,
-0.07864806056022644,
0.010835249908268452,
0.011064288206398487,
-0.047428444027900696,
-0.011187615804374218,
0.04658276587724686,
-0.023273766040802002,
0.01848158985376358,
0.0021945785265415907,
0.027255499735474586,
-0.02632172964513302,
0.0068667298182845116,
-0.10317272692918777,
0.07836616784334183,
0.019485831260681152,
-0.05215014889836311,
0.0156274251639843,
0.02656838670372963,
-0.024242771789431572,
-0.05169207230210304,
0.047498919069767,
0.012174240313470364,
-0.04573708772659302,
0.023256147280335426,
-0.0026889920700341463,
0.0798461064696312,
-0.023678986355662346,
-0.04492664709687233,
-0.05574427917599678,
-0.008985329419374466,
0.008778314106166363,
0.0033562849275767803,
0.025211777538061142,
-0.009425787255167961,
0.0005310263368301094,
-0.021917156875133514,
-0.033703792840242386,
-0.035218968987464905,
-0.032770026475191116,
0.039006900042295456,
0.011539981700479984,
0.0014127668691799045,
-0.04154393449425697,
0.023309001699090004,
0.04767509922385216,
0.02348518557846546,
0.04453904554247856,
0.028400689363479614,
0.0778728574514389,
-0.01920393854379654,
-0.02820688672363758,
0.037949804216623306,
-0.0156274251639843,
-0.004571947269141674,
0.020490074530243874,
-0.018041132017970085,
0.002224309602752328,
-0.09894433617591858,
-0.008699032478034496,
0.019432976841926575,
0.004177737515419722,
-0.022410469129681587,
-0.008531657978892326,
0.007681575603783131,
0.010685495100915432,
-0.04411620646715164,
-0.04291816055774689,
-0.037456490099430084,
0.025017976760864258,
0.022287141531705856,
0.009214367717504501,
0.004173333290964365,
0.021406225860118866,
0.06532862782478333,
0.003499433398246765,
0.010782395489513874,
-0.009179131127893925,
-0.03329857438802719,
0.010077663697302341,
-0.026515530422329903,
-0.005902128294110298,
-0.008166078478097916,
-0.0009161512134596705,
0.006395440548658371,
0.03932403028011322,
-0.036857470870018005,
-0.010165754705667496,
0.016279302537441254,
0.05532144010066986,
-0.056308064609766006,
0.04238961264491081,
0.007320400793105364,
-0.011469508521258831,
0.00007301956793526188,
0.008469994179904461,
0.01198043953627348,
-0.007716812193393707,
0.07632244378328323,
0.053876738995313644,
-0.05556809529662132,
-0.0077872853726148605,
-0.07142455875873566,
0.015741944313049316,
0.04087444022297859,
0.004545519594103098,
-0.032770026475191116,
0.04601898044347763,
0.027255499735474586,
0.03435567021369934,
0.03423234447836876,
0.013037537224590778,
-0.02387278713285923,
0.0432705283164978,
0.009320077486336231,
0.04517330229282379,
-0.0073071871884167194,
0.0028739841654896736,
0.08358117938041687,
0.016138356178998947,
-0.0312548503279686,
0.019591541960835457,
0.0011027950095012784,
0.019591541960835457,
-0.00588450999930501,
0.029493022710084915,
-0.02357327565550804,
-0.034549470990896225,
-0.05211491137742996,
-0.020789586007595062,
0.02441895380616188,
0.07878900319337845,
-0.0068711345084011555,
0.01292301807552576,
-0.06406011432409286,
0.03636415675282478,
-0.01599740982055664,
0.039641160517930984,
0.037068888545036316,
-0.025793181732296944,
0.016437867656350136,
0.0016473104478791356,
-0.06525816023349762,
-0.007144217845052481,
-0.013936069793999195,
0.007897400297224522,
0.011302134953439236,
-0.015107686631381512,
-0.005311915185302496,
-0.016525959596037865,
0.01772400364279747,
0.06057169288396835,
-0.014402954839169979,
0.02017294615507126,
0.026638859882950783,
0.017459727823734283,
-0.0020349128171801567,
-0.024489426985383034,
-0.0032263498287647963,
0.00610473845154047,
0.014138679951429367,
-0.006056288257241249,
-0.06409534811973572,
-0.04045160114765167,
0.005329533480107784,
0.02108909748494625,
-0.00434070685878396,
0.015988601371645927,
-0.03465518355369568,
-0.006593646015971899,
-0.0036756163462996483,
-0.0014700263272970915,
-0.038548823446035385,
0.00709576765075326,
-0.00763312540948391,
0.0002840949746314436,
0.02071911282837391,
0.005047640763223171,
0.006888752803206444,
-0.03495469316840172,
0.01220947690308094,
0.07244642078876495,
-0.0062016393058001995,
-0.019644396379590034,
-0.004510283004492521,
0.11973392218351364,
-0.02063102088868618,
-0.019274411723017693,
0.06723140925168991,
0.0030149302911013365,
-0.01599740982055664,
-0.058210838586091995,
0.05465194582939148,
0.0226923618465662,
0.007249927613884211,
0.0529605895280838,
-0.06455342471599579,
0.044820938259363174,
0.004774557426571846,
-0.015151731669902802,
-0.03173054754734039,
-0.030832013115286827,
-0.012279950082302094,
0.03484898433089256,
-0.01219185907393694,
-0.02396087907254696,
-0.04214295744895935,
0.004426596220582724,
-0.04090967774391174,
-0.014587946236133575,
0.052361566573381424,
-0.060360271483659744,
0.0012431908398866653,
0.07385588437318802,
-0.009478641673922539,
-0.02665647678077221,
0.041367750614881516,
-0.032734788954257965,
0.008549276739358902,
-0.02981015108525753,
0.04464475437998772,
-0.002274962142109871,
0.007483370136469603,
0.00331664364784956,
-0.00767276668921113,
-0.023943260312080383,
0.021124333143234253,
0.0077388351783156395,
0.0014303851639851928,
-0.024119442328810692,
-0.002374064875766635,
-0.017908994108438492,
0.01983819715678692,
-0.026039836928248405,
0.0012288759462535381,
0.009945526719093323,
0.05546238645911217,
0.061452604830265045,
-0.012508988380432129,
0.040733493864536285,
0.04281245172023773,
-0.03335142880678177,
-0.013222528621554375,
0.0907694473862648,
-0.028136413544416428,
-0.03763267397880554,
0.03675175830721855,
-0.08562490344047546,
0.0421781949698925,
-0.02020818181335926,
-0.03217100352048874,
0.10239751636981964,
-0.015107686631381512,
0.05091686546802521,
0.005822845734655857,
0.05141017958521843,
-0.027854520827531815,
0.05891557037830353,
-0.050423555076122284,
0.033457137644290924,
-0.02041960135102272,
0.017856139689683914,
-0.0011049973545596004,
0.04002876207232475,
0.03865453600883484,
-0.041367750614881516,
0.00860653631389141,
0.02741406485438347,
0.04996547847986221,
-0.016191210597753525,
-0.002614114200696349,
0.006946011912077665,
-0.016517149284482002,
0.01936250366270542,
-0.008721055462956429,
0.08231266587972641,
-0.04041636362671852,
0.03611750155687332,
0.07582913339138031,
-0.0625097006559372,
-0.02787213958799839,
0.0340561605989933,
0.04926074668765068,
-0.06737235188484192,
0.001608770340681076,
0.01052692998200655,
-0.010015999898314476,
-0.0031867087818682194,
0.02984538860619068,
0.04143822565674782,
-0.00531631987541914,
0.019767723977565765,
0.019344884902238846,
-0.0421077199280262,
0.052361566573381424,
0.03604702651500702,
-0.034760892391204834,
0.03380950540304184,
0.05662519484758377,
0.0324176587164402,
-0.03287573531270027,
-0.0007416200242005289,
-0.07434919476509094,
0.057259451597929,
-0.03720983490347862,
0.014869838953018188,
0.005113709717988968,
0.004571947269141674,
0.02993348054587841,
-0.009020566008985043,
0.021230043843388557,
0.06793613731861115,
0.040698256343603134,
-0.05806989222764969,
-0.032012440264225006,
-0.009610778652131557,
-0.004554328974336386,
0.005981410387903452,
-0.004411180038005114,
0.05680137872695923,
-0.056308064609766006,
0.014006542973220348,
-0.0026845873799175024,
0.019397741183638573
] |
724,847 | scipy.sparse._base | minimum | Element-wise minimum between this and another array/matrix. | def minimum(self, other):
"""Element-wise minimum between this and another array/matrix."""
return self.tocsr().minimum(other)
| (self, other) | [
-0.015730176120996475,
-0.01667381264269352,
0.07147403806447983,
0.059007637202739716,
-0.00014392634329851717,
-0.03450769558548927,
0.010605099610984325,
-0.003930379636585712,
0.051631685346364975,
0.00983460620045662,
-0.035234902054071426,
-0.07708392292261124,
0.025954358279705048,
0.026456477120518684,
-0.046021804213523865,
-0.007930017076432705,
0.003348181489855051,
-0.0177646242082119,
-0.023080158978700638,
0.057345449924468994,
-0.0012260793009772897,
-0.04141616076231003,
-0.013141665607690811,
0.06479066610336304,
-0.011687252670526505,
0.05959632992744446,
0.019496068358421326,
-0.03308790922164917,
0.003592747962102294,
-0.056964535266160965,
-0.010977360419929028,
0.013929473236203194,
0.009981779381632805,
-0.07133552432060242,
0.031650811433792114,
0.007094595115631819,
-0.008986198343336582,
-0.037399206310510635,
-0.020985111594200134,
-0.019876986742019653,
-0.05405570566654205,
-0.05495605617761612,
0.017729993909597397,
-0.027027852833271027,
0.025660011917352676,
0.003601405071094632,
0.021158255636692047,
0.01899394951760769,
0.017695365473628044,
0.03774549812078476,
0.03173738345503807,
0.003731263568624854,
0.03996174409985542,
0.008847682736814022,
-0.11808453500270844,
0.08574114739894867,
0.01701144501566887,
-0.02817060612142086,
-0.09142028540372849,
-0.03923453763127327,
0.008449451066553593,
-0.007657314650714397,
0.02242220938205719,
0.02682008035480976,
-0.005661824252456427,
-0.01511551346629858,
-0.054090335965156555,
0.023409133777022362,
0.02022327482700348,
0.05118150636553764,
-0.02365153655409813,
0.01953069679439068,
-0.022595355287194252,
-0.006406345870345831,
0.022387580946087837,
0.05048893019556999,
-0.03475009649991989,
-0.022889699786901474,
-0.010380011983215809,
-0.057483967393636703,
0.02747802808880806,
-0.008761110715568066,
-0.00851438008248806,
0.0004666784661822021,
-0.037676237523555756,
-0.04564088582992554,
-0.00809883326292038,
0.052739810198545456,
-0.024292171001434326,
-0.03322642669081688,
-0.038507331162691116,
0.07957720011472702,
0.0008321756613440812,
0.0684266984462738,
0.03154692426323891,
0.07209736108779907,
0.0033438527025282383,
0.012830005958676338,
0.024378743022680283,
-0.016448725014925003,
0.030317598953843117,
0.05623732879757881,
-0.038299560546875,
-0.025919727981090546,
-0.0023764080833643675,
-0.00703832320868969,
0.00909008551388979,
-0.01641409657895565,
0.0334688276052475,
0.04467127472162247,
-0.029988624155521393,
-0.035234902054071426,
-0.07736095041036606,
0.011505451053380966,
-0.04283594340085983,
-0.00944503117352724,
-0.016717098653316498,
0.05980410426855087,
0.020760023966431618,
0.05100836232304573,
0.0396847128868103,
0.014786538667976856,
0.023045530542731285,
-0.025521496310830116,
0.0045926570892333984,
-0.00044909349526278675,
0.08276306092739105,
-0.0029824136290699244,
0.020465677604079247,
-0.06818429380655289,
0.014059332199394703,
-0.035910166800022125,
0.008626923896372318,
0.05086984857916832,
-0.01598123461008072,
-0.05713767930865288,
0.007804487366229296,
-0.008241677656769753,
0.0492422915995121,
0.003149065189063549,
0.046818267554044724,
0.01353124063462019,
0.028378380462527275,
0.01927098073065281,
-0.0273741427809,
-0.03490592539310455,
0.033503457903862,
0.02927873097360134,
0.025227149948477745,
0.02488086186349392,
-0.014067988842725754,
0.01792045310139656,
0.06524083763360977,
-0.06101611629128456,
-0.00865289568901062,
0.002618810161948204,
0.04020414873957634,
-0.06008113548159599,
0.028205236420035362,
-0.043424636125564575,
-0.02172963134944439,
0.012812691740691662,
-0.017175931483507156,
-0.003423932008445263,
-0.0068651787005364895,
-0.005977813154459,
-0.037537723779678345,
0.012959863990545273,
-0.0752832219004631,
0.010639728046953678,
0.023582277819514275,
-0.04498293623328209,
-0.03322642669081688,
-0.017323104664683342,
-0.008709167130291462,
-0.0033503456506878138,
-0.011678595095872879,
0.035200271755456924,
0.027322199195623398,
0.0105964420363307,
0.04006563127040863,
0.06319773197174072,
-0.03197978436946869,
-0.018284056335687637,
0.008717824704945087,
0.014743252657353878,
0.00010550992010394111,
-0.018907377496361732,
0.06032353639602661,
0.00039200991159304976,
0.03419603407382965,
-0.022075921297073364,
-0.02063882164657116,
-0.00215348438359797,
-0.0327935628592968,
0.037122175097465515,
-0.020552249625325203,
0.009566232562065125,
0.001796373981051147,
0.0396154560148716,
-0.038645848631858826,
0.010483898222446442,
0.035459987819194794,
0.044221099466085434,
0.038334187120199203,
-0.0016567762941122055,
-0.013453326188027859,
0.001985750859603286,
-0.04197022318840027,
0.026058243587613106,
0.02176426164805889,
-0.033278368413448334,
-0.05183945596218109,
0.0013321302831172943,
0.06395956873893738,
0.011176476255059242,
-0.004432498477399349,
-0.05959632992744446,
-0.008934254758059978,
-0.02898438647389412,
0.012596260756254196,
-0.03580627962946892,
-0.007077280431985855,
-0.018543774262070656,
-0.0003700963279698044,
-0.05526771768927574,
-0.032603103667497635,
-0.04543311148881912,
-0.027010539546608925,
0.025331037119030952,
0.057657111436128616,
-0.06371717154979706,
0.03530415892601013,
-0.04816879332065582,
-0.05523308739066124,
-0.007843445055186749,
-0.0033092238008975983,
-0.0043307761661708355,
-0.020482992753386497,
-0.03701828792691231,
-0.015089541673660278,
-0.01641409657895565,
0.0335380844771862,
0.015496430918574333,
0.00543673662468791,
-0.01659589819610119,
-0.011237076483666897,
0.0065491897985339165,
-0.011141846887767315,
0.032083671540021896,
-0.04571014270186424,
-0.015929292887449265,
-0.015989892184734344,
-0.018976634368300438,
0.027737746015191078,
-0.03405752032995224,
0.057414710521698,
-0.013072407804429531,
-0.03379780426621437,
0.0105964420363307,
0.0016448725946247578,
0.00833690632134676,
0.015522402711212635,
-0.042316511273384094,
-0.04065432399511337,
0.05540623515844345,
-0.010198209434747696,
0.06641822308301926,
-0.00823734886944294,
0.024101711809635162,
0.07258216291666031,
0.015686890110373497,
0.023461077362298965,
-0.019496068358421326,
0.03239533305168152,
-0.01073495764285326,
-0.04456738755106926,
0.012890606187283993,
0.011306334286928177,
0.010518527589738369,
-0.047372329980134964,
-0.012423116713762283,
-0.0807545855641365,
0.004345926456153393,
-0.07701466232538223,
-0.02079465240240097,
-0.003852464724332094,
-0.1026400476694107,
-0.04432498663663864,
-0.030577315017580986,
0.026906652376055717,
0.052566662430763245,
0.02323598973453045,
-0.020465677604079247,
-0.0003443952009547502,
-0.021504543721675873,
0.00976534839719534,
0.014474878087639809,
0.026872023940086365,
0.03509638458490372,
0.026369905099272728,
0.005354492925107479,
-0.07019276916980743,
-0.0266815647482872,
-0.004679229576140642,
-0.02146991528570652,
-0.006856521591544151,
0.04571014270186424,
-0.049553949385881424,
0.043944068253040314,
-0.034646209329366684,
0.013011807575821877,
-0.031200634315609932,
-0.01593794859945774,
-0.03708754852414131,
0.04456738755106926,
0.048480454832315445,
0.06271293014287949,
0.057899512350559235,
0.04536385461688042,
0.07019276916980743,
-0.0040342663414776325,
-0.03513101488351822,
-0.00628947326913476,
-0.06260904669761658,
-0.012016226537525654,
0.003744249464944005,
-0.06534472852945328,
-0.030179083347320557,
0.01982504315674305,
0.027824318036437035,
0.021573802456259727,
0.005233292002230883,
0.009211285971105099,
-0.014552793465554714,
0.04990023747086525,
0.0438055545091629,
0.015002968721091747,
-0.034802041947841644,
0.002042022766545415,
-0.013107037171721458,
0.003761563915759325,
-0.016232294961810112,
0.014059332199394703,
-0.03840344399213791,
-0.03778012469410896,
-0.007994946092367172,
-0.015297315083444118,
0.017617451027035713,
-0.03701828792691231,
-0.02955576218664646,
0.03500981256365776,
0.04037729278206825,
-0.06679914146661758,
0.021400658413767815,
0.03126989305019379,
-0.051631685346364975,
0.012847320176661015,
0.03940768539905548,
0.003915229346603155,
0.009557574987411499,
0.009332487359642982,
-0.003949858248233795,
-0.05086984857916832,
-0.0252964086830616,
0.03369391709566116,
-0.04501756653189659,
-0.01572151854634285,
-0.04169319197535515,
-0.03210098668932915,
-0.009817291982471943,
-0.026040930300951004,
-0.04051580652594566,
-0.005493008531630039,
-0.03954619914293289,
0.026594992727041245,
-0.0793694257736206,
0.03542536124587059,
-0.07729169726371765,
-0.02269924059510231,
0.04131227359175682,
0.003244294784963131,
-0.024690402671694756,
-0.010154923424124718,
-0.03172006830573082,
0.01401604525744915,
-0.010414640419185162,
-0.049311548471450806,
0.0011297677410766482,
0.027426086366176605,
0.011514107696712017,
-0.06617581844329834,
-0.021504543721675873,
-0.010025065392255783,
-0.0369144044816494,
-0.016509326174855232,
0.03791864216327667,
0.012821348384022713,
-0.010492555797100067,
-0.0698118507862091,
-0.023010902106761932,
0.004527728073298931,
0.0011340962955728173,
-0.020154017955064774,
-0.02969427779316902,
-0.016466040164232254,
-0.025469552725553513,
0.01346198283135891,
0.002404544036835432,
0.08581040054559708,
-0.04692215472459793,
0.04941543564200401,
0.046437349170446396,
-0.028239864856004715,
-0.039303798228502274,
-0.0396154560148716,
0.030023252591490746,
0.019894300028681755,
0.024534571915864944,
-0.00814644806087017,
0.01353124063462019,
-0.003906572237610817,
-0.03372854366898537,
-0.02472503110766411,
-0.04016951844096184,
-0.07053906470537186,
-0.000742898031603545,
-0.05086984857916832,
-0.0017520056571811438,
-0.008899626322090626,
-0.007215796038508415,
-0.03530415892601013,
0.017530879005789757,
-0.00529822101816535,
-0.0642366036772728,
0.005821983329951763,
-0.0014100453117862344,
-0.022318324074149132,
0.017747309058904648,
-0.010232838802039623,
0.08054681122303009,
-0.010579127818346024,
0.019063206389546394,
-0.006207229569554329,
-0.08463302254676819,
-0.062297385185956955,
-0.012881949543952942,
0.03784938156604767,
-0.05637584254145622,
0.00828496366739273,
0.05911152437329292,
-0.02268192730844021,
0.02313210256397724,
0.02011938765645027,
-0.009799977764487267,
-0.00574839673936367,
0.011037960648536682,
-0.10430223494768143,
0.0005784107488580048,
0.01954801194369793,
0.00550599442794919,
0.041485417634248734,
0.00040472522960044444,
-0.025227149948477745,
-0.019080521538853645,
0.06344013661146164,
0.000958246469963342,
-0.001128685544244945,
0.014137246645987034,
-0.0005767875700257719,
0.09051993489265442,
-0.037676237523555756,
-0.03743383660912514,
-0.07853833585977554,
-0.006449631880968809,
0.030975546687841415,
-0.040411923080682755,
0.04415184259414673,
0.04744158685207367,
0.014682651497423649,
-0.09467539936304092,
-0.036291081458330154,
0.02093316800892353,
-0.002045269124209881,
0.054090335965156555,
-0.0025387308560311794,
-0.02611018717288971,
-0.0368797741830349,
0.01613706536591053,
0.04893063008785248,
0.019201721996068954,
0.08040829747915268,
0.026733508333563805,
0.04754547402262688,
-0.011392906308174133,
0.006354402285069227,
0.0002870410680770874,
0.023339875042438507,
0.03177201375365257,
0.038507331162691116,
-0.02462114579975605,
0.005808997433632612,
-0.10132414847612381,
0.029053643345832825,
0.007722243666648865,
0.016171693801879883,
-0.030525371432304382,
0.003954187035560608,
-0.00206691212952137,
0.007804487366229296,
-0.031252577900886536,
-0.008488408289849758,
-0.027824318036437035,
0.0464719794690609,
0.0198077280074358,
0.01984235644340515,
-0.015262685716152191,
0.04335537925362587,
0.04962320625782013,
-0.038368817418813705,
0.049173031002283096,
-0.0005984306335449219,
-0.009670118801295757,
-0.03061194345355034,
-0.05183945596218109,
0.004540713969618082,
0.011470821686089039,
-0.05308609828352928,
-0.007449541240930557,
0.05253203585743904,
-0.03130452334880829,
-0.014180532656610012,
-0.0021816203370690346,
0.06122388690710068,
-0.044221099466085434,
0.05132002383470535,
-0.0009831360075622797,
0.001133014215156436,
0.02313210256397724,
0.010657042264938354,
0.03161618113517761,
-0.008709167130291462,
0.0862259492278099,
0.05582178011536598,
-0.0005605552578344941,
0.03170275315642357,
-0.07403657585382462,
0.044913679361343384,
-0.08518708497285843,
-0.02680276520550251,
-0.05222037434577942,
-0.01457010768353939,
0.020673450082540512,
0.06901539117097855,
0.032880134880542755,
-0.02640453353524208,
-0.03584090620279312,
0.03764161095023155,
0.01695084385573864,
0.05502531677484512,
0.04293983057141304,
-0.020569564774632454,
0.0792309120297432,
-0.0017552521312609315,
-0.0697425976395607,
-0.0013213087804615498,
-0.008626923896372318,
0.023010902106761932,
0.005047161597758532,
0.028655411675572395,
-0.011159162037074566,
-0.011055274866521358,
-0.058349691331386566,
0.020413734018802643,
-0.014327705837786198,
0.03791864216327667,
-0.00488267419859767,
0.002067994326353073,
-0.12542586028575897,
-0.0020171331707388163,
0.010146266780793667,
-0.014829824678599834,
0.043978698551654816,
-0.027581915259361267,
0.022526096552610397,
-0.0009679858339950442,
-0.06804578006267548,
-0.01052718423306942,
-0.04830731078982353,
0.002579852705821395,
-0.010492555797100067,
-0.05630658566951752,
-0.020292533561587334,
0.01793776825070381,
0.023841995745897293,
0.031512293964624405,
0.019340237602591515,
-0.02394588105380535,
0.04442887380719185,
0.002670753514394164,
-0.009323829784989357,
-0.03622182458639145,
0.009791320189833641,
-0.010908102616667747,
0.010986017063260078,
0.00793867465108633,
-0.05322461202740669,
-0.05540623515844345,
0.03267236426472664,
-0.006159614771604538,
0.04415184259414673,
-0.009064113721251488,
-0.038334187120199203,
-0.028135977685451508,
-0.03989248722791672,
0.011799796484410763,
-0.028395693749189377,
-0.026906652376055717,
0.035910166800022125,
0.010570470243692398,
0.043147604912519455,
-0.009245915338397026,
0.0123019153252244,
-0.05537160485982895,
0.024396056309342384,
0.06253978610038757,
0.05114687979221344,
0.002456487389281392,
0.010328068397939205,
0.05159705504775047,
0.032776251435279846,
0.0011032549664378166,
0.09135102480649948,
-0.016864271834492683,
-0.015271343290805817,
-0.04352852329611778,
0.020811965689063072,
0.009107399731874466,
-0.03431723639369011,
0.0710584968328476,
-0.033832430839538574,
0.02486354671418667,
-0.0031815296970307827,
-0.023045530542731285,
-0.015574346296489239,
-0.04186633601784706,
-0.051216136664152145,
-0.005912884138524532,
0.038507331162691116,
-0.009635490365326405,
-0.04858434200286865,
0.01663052663207054,
-0.0478917621076107,
0.021954720839858055,
0.03175469860434532,
-0.015331943519413471,
-0.029313361272215843,
0.013643785379827023,
0.03483666852116585,
-0.0024132011458277702,
0.029226787388324738,
0.009990436024963856,
0.03442112356424332,
-0.009453688748180866,
0.03778012469410896,
0.010934073477983475,
0.011462164111435413,
-0.047926392406225204,
-0.005120748188346624,
-0.019184408709406853,
-0.048999886959791183,
0.03978860005736351,
0.008890968747437,
-0.024292171001434326,
0.020482992753386497,
0.027685802429914474,
0.0246038306504488,
-0.05904226750135422,
-0.027720430865883827,
-0.003832985879853368,
0.053813304752111435,
0.04276668652892113,
0.04446350410580635,
0.019876986742019653,
-0.031806640326976776,
-0.08304009586572647,
-0.02829180844128132,
0.044255729764699936,
0.004475784953683615,
0.001985750859603286,
0.028811240568757057,
-0.052185747772455215,
0.05665287375450134,
-0.020863909274339676,
-0.02093316800892353,
0.06177794933319092,
-0.020050130784511566,
0.06517158448696136,
0.0018299206858500838,
0.04633346199989319,
0.04086209833621979,
0.033157166093587875,
-0.03213561698794365,
0.023305246606469154,
-0.03163349628448486,
0.006756963208317757,
-0.006384702865034342,
0.04141616076231003,
0.05727619305253029,
-0.010882130824029446,
0.03584090620279312,
0.004428170155733824,
0.0478917621076107,
-0.0016005042707547545,
0.002592838602140546,
0.02008475922048092,
-0.029850108548998833,
-0.013920816592872143,
0.030023252591490746,
0.09322098642587662,
-0.048203423619270325,
-0.01586003415286541,
0.02952113375067711,
-0.01572151854634285,
-0.017833881080150604,
0.05699916183948517,
0.05976947396993637,
-0.10658774524927139,
-0.04280131682753563,
0.01843988709151745,
0.0006179093616083264,
0.03021371178328991,
0.018768861889839172,
0.041243016719818115,
0.04127764329314232,
0.040688954293727875,
-0.011202448047697544,
0.008626923896372318,
0.06001187488436699,
0.0642712339758873,
-0.01805896870791912,
0.01901126466691494,
0.04823805019259453,
-0.01790313981473446,
0.03172006830573082,
-0.011765167117118835,
-0.015565688721835613,
0.041623931378126144,
-0.02515789307653904,
0.026456477120518684,
-0.016639184206724167,
0.0036944702733308077,
0.017046073451638222,
0.0042615183629095554,
0.0056401812471449375,
0.03611793741583824,
-0.015989892184734344,
-0.021816205233335495,
-0.006406345870345831,
-0.015141484327614307,
-0.027737746015191078,
-0.03104480542242527,
-0.04706066846847534,
0.09813828766345978,
-0.04979635402560234,
0.0280320905148983,
0.018284056335687637,
0.06489454954862595
] |
724,848 | scipy.sparse._base | multiply | Point-wise multiplication by another array/matrix. | def multiply(self, other):
"""Point-wise multiplication by another array/matrix."""
return self.tocsr().multiply(other)
| (self, other) | [
-0.01577613316476345,
-0.01773178018629551,
0.08360390365123749,
0.0749431848526001,
-0.057028062641620636,
-0.07599085569381714,
-0.05664391815662384,
-0.00757813174277544,
0.07054297626018524,
0.028741026297211647,
-0.02879340946674347,
-0.05538671463727951,
0.07050805538892746,
0.07710836827754974,
-0.05468827113509178,
0.04092889651656151,
0.016212662681937218,
-0.04379252344369888,
0.026034550741314888,
0.058459874242544174,
-0.03754143789410591,
-0.034555584192276,
0.026925068348646164,
0.05538671463727951,
-0.029649004340171814,
0.06848256289958954,
0.02062159776687622,
-0.038624025881290436,
0.01277281902730465,
-0.04344329982995987,
-0.021494654938578606,
0.021721649914979935,
-0.01004015188664198,
-0.0007213630597107112,
0.03551594540476799,
-0.00993538461625576,
-0.030871283262968063,
-0.016937298700213432,
-0.0040335217490792274,
0.00033285285462625325,
0.0026060740929096937,
-0.03228563442826271,
0.04106858745217323,
-0.04546879231929779,
0.021704189479351044,
-0.0004676309763453901,
-0.011664037592709064,
0.015147533267736435,
-0.02357253059744835,
0.02159942127764225,
-0.011009244248270988,
-0.05231355503201485,
0.048786405473947525,
0.00763051537796855,
-0.051789723336696625,
0.07787665724754333,
0.023974135518074036,
0.012886316515505314,
-0.0706128254532814,
-0.045364025980234146,
-0.012912508100271225,
-0.0290204044431448,
-0.007661072537302971,
0.01988823153078556,
0.0447005033493042,
0.004282343201339245,
-0.013349036686122417,
0.014580046758055687,
0.045294180512428284,
0.05905355513095856,
-0.02833941951394081,
0.003751961048692465,
-0.05311676859855652,
-0.013218077830970287,
0.03350791335105896,
0.05433904752135277,
-0.035376258194446564,
-0.010083804838359356,
-0.03778589144349098,
-0.028374342247843742,
-0.013672067783772945,
-0.0211279708892107,
-0.03544609993696213,
-0.014457818120718002,
-0.025440871715545654,
0.011856109835207462,
0.03546356037259102,
0.014021290466189384,
-0.05018329620361328,
-0.02133750542998314,
-0.020499370992183685,
0.0031866568606346846,
-0.01378556527197361,
0.0392526276409626,
0.029195014387369156,
0.02458527684211731,
-0.02332807518541813,
0.0003557706077117473,
0.004688314162194729,
-0.006923339329659939,
0.03471273183822632,
0.027152063325047493,
0.01117512583732605,
-0.024742426350712776,
0.046097394078969955,
-0.019818386062979698,
-0.007997198961675167,
-0.0033372591715306044,
0.037646204233169556,
0.030696673318743706,
-0.017950044944882393,
0.04173211008310318,
-0.06579355150461197,
-0.025702787563204765,
-0.06579355150461197,
0.013104580342769623,
-0.02858387492597103,
0.019434241577982903,
-0.017007144168019295,
0.076619453728199,
0.017024604603648186,
0.0062336246483027935,
0.0471450611948967,
-0.035900089889764786,
0.009734582155942917,
0.01330538373440504,
0.041103508323431015,
0.006089570466428995,
0.05786619707942009,
-0.03471273183822632,
-0.05412951484322548,
0.0015704106772318482,
0.01378556527197361,
0.05605023726820946,
-0.011402119882404804,
-0.007691629230976105,
0.01568009704351425,
-0.006722536403685808,
0.022682012990117073,
0.011122741736471653,
0.023712219670414925,
0.059751998633146286,
0.05168495327234268,
0.04438620060682297,
-0.0071896216832101345,
-0.015496755950152874,
0.04298930987715721,
0.022524861618876457,
-0.020988281816244125,
0.014056212268769741,
-0.033403147011995316,
0.0790640115737915,
0.09079789370298386,
-0.03883356228470802,
0.017173023894429207,
0.009769503958523273,
0.07382567226886749,
-0.028741026297211647,
0.03750651329755783,
-0.008848429657518864,
-0.015357066877186298,
-0.004601008724421263,
-0.056539151817560196,
0.023188386112451553,
-0.010109996423125267,
-0.012327560223639011,
0.037157293409109116,
0.020796209573745728,
-0.020219992846250534,
-0.02280423976480961,
0.012039451859891415,
-0.07214940339326859,
-0.002101883990690112,
-0.013672067783772945,
-0.012065643444657326,
-0.019783463329076767,
-0.026872685179114342,
0.01714683324098587,
0.061009202152490616,
-0.011148933321237564,
0.047564126551151276,
0.010136188007891178,
-0.031953874975442886,
-0.02559802122414112,
0.002189189661294222,
0.049275320023298264,
-0.018456418067216873,
0.005928054917603731,
0.02708221785724163,
-0.007866241037845612,
0.06268546730279922,
-0.0416971854865551,
-0.021494654938578606,
0.01279901061207056,
-0.011367198079824448,
0.022437555715441704,
-0.022524861618876457,
0.022664550691843033,
0.026436155661940575,
0.1021825522184372,
-0.05412951484322548,
-0.005539544392377138,
0.013165694661438465,
0.03754143789410591,
0.04511956870555878,
-0.03170941770076752,
-0.0007230000337585807,
0.01864849030971527,
-0.08192763477563858,
-0.01913740299642086,
0.042116254568099976,
0.009926654398441315,
0.01478084921836853,
0.02509164810180664,
0.06834287941455841,
0.06282515823841095,
-0.05095158889889717,
-0.04295438900589943,
-0.027710819616913795,
-0.010494140908122063,
0.02809496410191059,
-0.031133200973272324,
-0.02039460465312004,
0.03197133541107178,
0.005906228441745043,
-0.02111051045358181,
0.023974135518074036,
0.01716429367661476,
0.003208483336493373,
-0.005871306173503399,
0.01864849030971527,
-0.006932070013135672,
0.0025449602399021387,
-0.02388683147728443,
-0.04176703095436096,
-0.06188225746154785,
-0.005530814174562693,
0.014204632490873337,
-0.011183856055140495,
0.034136515110731125,
-0.014021290466189384,
-0.038658950477838516,
0.009027405641973019,
0.0010083804372698069,
0.0050157103687524796,
0.02437574230134487,
-0.003012045519426465,
0.026471078395843506,
0.036144547164440155,
0.016125356778502464,
-0.019766002893447876,
-0.016745226457715034,
0.004627200309187174,
0.023782063275575638,
0.0336126834154129,
-0.030714133754372597,
0.028007658198475838,
-0.023485224694013596,
-0.001603150274604559,
-0.0034965919330716133,
0.011681498028337955,
0.057516973465681076,
-0.025126570835709572,
-0.010275877080857754,
-0.04078920930624008,
0.016701573505997658,
-0.02257724478840828,
0.06726028770208359,
0.009114711545407772,
0.03006807155907154,
0.09380120784044266,
0.033647604286670685,
-0.008748027496039867,
-0.005989168770611286,
0.00821546372026205,
0.018421495333313942,
-0.006595943123102188,
0.08618815243244171,
-0.010764788836240768,
-0.03005061112344265,
-0.014972922392189503,
-0.015592792071402073,
-0.06635230779647827,
-0.010983052663505077,
-0.06013614311814308,
-0.012266445904970169,
0.009202017448842525,
-0.01503403577953577,
0.019992997869849205,
-0.034415893256664276,
0.023921752348542213,
0.046551380306482315,
0.04637677222490311,
0.03181418403983116,
-0.015688829123973846,
-0.025982165709137917,
-0.05343106761574745,
0.02978869341313839,
0.028898175805807114,
0.022664550691843033,
-0.047319673001766205,
0.020062841475009918,
-0.026959989219903946,
0.0010471222922205925,
-0.0037126734387129545,
-0.027972735464572906,
0.03792558237910271,
0.05437396839261055,
-0.027448901906609535,
0.09002960473299026,
-0.0014143518637865782,
-0.010581446811556816,
-0.07620038837194443,
0.017199216410517693,
-0.05231355503201485,
0.03796050325036049,
0.04445604607462883,
0.06767935305833817,
0.05049759894609451,
0.034346047788858414,
0.03932247310876846,
-0.028269575908780098,
-0.020534293726086617,
-0.006159415002912283,
-0.016203932464122772,
-0.0016064242227002978,
-0.007460269145667553,
-0.05632961541414261,
-0.014702274464070797,
-0.013261730782687664,
0.03471273183822632,
0.021442271769046783,
-0.0026257180143147707,
0.011437042616307735,
-0.025475794449448586,
0.0031473692506551743,
-0.02757113054394722,
-0.01673649623990059,
-0.011515617370605469,
0.0004894573939964175,
-0.04665615037083626,
0.011183856055140495,
-0.059193242341279984,
-0.02654092200100422,
-0.046795837581157684,
-0.012720435857772827,
-0.04672599211335182,
-0.016256315633654594,
0.005063728895038366,
-0.061183810234069824,
-0.031115740537643433,
0.02580755576491356,
0.06652691960334778,
-0.02207087352871895,
-0.002503490075469017,
0.05545656010508537,
-0.037890657782554626,
0.009123442694544792,
-0.011341006495058537,
-0.03272216394543648,
0.022228023037314415,
0.015025305561721325,
0.003492226591333747,
-0.0462021604180336,
0.00639950530603528,
0.006757458671927452,
-0.04595770314335823,
0.005391125101596117,
-0.035131800919771194,
-0.023747142404317856,
-0.004044434987008572,
-0.06279023736715317,
-0.024410665035247803,
0.04379252344369888,
-0.017696859315037727,
0.023747142404317856,
-0.10783995687961578,
0.03998599573969841,
-0.041592419147491455,
0.01550548616796732,
0.009280592203140259,
-0.04466557875275612,
-0.017251599580049515,
-0.01936439611017704,
0.003511870512738824,
0.028863253071904182,
-0.000131367749418132,
-0.020167609676718712,
-0.002852712757885456,
0.04400205612182617,
-0.0033285284880548716,
-0.0310808178037405,
-0.018718335777521133,
-0.044595733284950256,
-0.07047313451766968,
-0.014798310585319996,
0.010590177029371262,
0.004797446541488171,
-0.04050983116030693,
-0.07131127268075943,
-0.05280246585607529,
0.044351279735565186,
-0.041382886469364166,
-0.005465334746986628,
-0.03694775700569153,
-0.004061896353960037,
-0.02231532894074917,
0.014772119000554085,
-0.01711191050708294,
0.059228163212537766,
-0.03083636239171028,
0.02011522650718689,
0.03149988502264023,
-0.01592455431818962,
-0.014248284511268139,
-0.011594193056225777,
0.038379572331905365,
-0.030958589166402817,
0.0377509705722332,
0.05608516186475754,
0.036389000713825226,
-0.001845423597842455,
0.04270993173122406,
-0.029247399419546127,
-0.03357775881886482,
-0.10148410499095917,
-0.013349036686122417,
-0.050532519817352295,
-0.0044635022059082985,
-0.016518231481313705,
-0.04965946450829506,
-0.07522255927324295,
0.02210579439997673,
0.02727429009974003,
-0.02008030377328396,
-0.003208483336493373,
0.014082403853535652,
0.00003415493119973689,
-0.008782950229942799,
-0.009909193031489849,
0.04026537388563156,
-0.02287408523261547,
-0.009760773740708828,
-0.07173033803701401,
-0.09219478815793991,
-0.06383790075778961,
0.025161493569612503,
-0.008211097680032253,
-0.08779457956552505,
-0.00708048976957798,
0.05063728615641594,
0.020464448258280754,
0.046097394078969955,
-0.03459050506353378,
0.020656520500779152,
0.0035358795430511236,
0.02035968191921711,
-0.14625445008277893,
0.047319673001766205,
0.04724982753396034,
-0.03509688004851341,
0.007154699414968491,
-0.009664737619459629,
-0.01752224750816822,
-0.013139503076672554,
0.033385686576366425,
0.009018675424158573,
-0.006080839782953262,
0.0377509705722332,
0.007015010342001915,
0.0531516894698143,
0.007167795207351446,
-0.00004740424992633052,
-0.013864140026271343,
-0.005840749014168978,
0.012135487981140614,
-0.06820318847894669,
0.03184910863637924,
-0.02931724302470684,
-0.04173211008310318,
-0.06369821727275848,
-0.04347822070121765,
0.020691443234682083,
-0.006696344818919897,
0.04295438900589943,
-0.019294552505016327,
0.06415220350027084,
0.0008714196737855673,
0.040125682950019836,
0.01936439611017704,
0.0270472951233387,
0.05395490303635597,
0.05416443571448326,
0.036354079842567444,
-0.038658950477838516,
0.0026213526725769043,
-0.008900812827050686,
0.012633129954338074,
-0.006643961183726788,
0.033857136964797974,
-0.008870256133377552,
0.004306352231651545,
-0.08353406190872192,
0.00577090447768569,
0.044840190559625626,
0.04239563271403313,
-0.03160465136170387,
-0.002136806258931756,
-0.0009150725090876222,
0.003538062097504735,
-0.0631045326590538,
-0.026436155661940575,
-0.03125542774796486,
0.017548440024256706,
0.03729698061943054,
0.03373491019010544,
-0.03995107486844063,
0.021302582696080208,
0.031237967312335968,
-0.04030029475688934,
0.055247027426958084,
0.0004147019062656909,
-0.01835165172815323,
-0.012790280394256115,
-0.013078388758003712,
0.00657848222181201,
-0.06394267082214355,
-0.019434241577982903,
-0.00015619529585819691,
0.04463065788149834,
-0.08297530561685562,
-0.014449087902903557,
-0.02633138932287693,
0.036109622567892075,
-0.05598039552569389,
0.01680634170770645,
-0.005762174259871244,
-0.011332275345921516,
0.031430039554834366,
0.022262945771217346,
-0.007543209474533796,
0.0033088847994804382,
0.048786405473947525,
0.02631392888724804,
-0.04896101728081703,
0.015959475189447403,
-0.09568700939416885,
0.00757813174277544,
0.01082590315490961,
-0.009979037567973137,
-0.04078920930624008,
0.006809841841459274,
0.03645884618163109,
0.07836556434631348,
0.06879686564207077,
0.01117512583732605,
-0.012432326562702656,
0.03132527321577072,
-0.017199216410517693,
0.0666666105389595,
-0.012266445904970169,
-0.015339605510234833,
0.11957383900880814,
-0.008398804813623428,
0.004184124059975147,
0.009778235107660294,
-0.03275708481669426,
-0.0015311231836676598,
0.011760073713958263,
-0.017452402040362358,
-0.012537093833088875,
-0.04889117553830147,
-0.009332975372672081,
0.00888335146009922,
-0.04030029475688934,
0.008577781729400158,
0.005299454089254141,
-0.018002428114414215,
-0.06659676134586334,
0.01742621138691902,
-0.021966105327010155,
0.0270472951233387,
0.013864140026271343,
-0.014440357685089111,
0.048786405473947525,
-0.043338533490896225,
-0.059193242341279984,
-0.027204446494579315,
0.026034550741314888,
-0.007844414561986923,
-0.012973622418940067,
-0.02458527684211731,
-0.018665950745344162,
-0.0032674146350473166,
0.01884056255221367,
0.0057883658446371555,
-0.027152063325047493,
0.007211448159068823,
0.04986899718642235,
-0.00273703271523118,
0.009044867008924484,
-0.018927868455648422,
0.027396518737077713,
-0.0297712329775095,
-0.010144918225705624,
0.024515431374311447,
-0.09638545662164688,
-0.014396704733371735,
0.022891545668244362,
-0.003125542774796486,
0.020289836451411247,
0.005456604063510895,
-0.009839348495006561,
0.014038750901818275,
-0.0016566250706091523,
-0.008381344377994537,
-0.034869883209466934,
0.0024423759896308184,
0.018246885389089584,
-0.013960176147520542,
-0.022524861618876457,
0.004332543816417456,
-0.03275708481669426,
-0.03431112691760063,
-0.01934693567454815,
0.07050805538892746,
0.009821887128055096,
-0.0531516894698143,
0.0070673939771950245,
0.06767935305833817,
-0.00031320907874032855,
0.004740697797387838,
0.06369821727275848,
-0.0032739625312387943,
0.02585993893444538,
-0.056504227221012115,
0.005137938540428877,
0.013165694661438465,
-0.006155049428343773,
0.08898193389177322,
-0.02910771034657955,
0.006927704904228449,
-0.01773178018629551,
-0.03520164638757706,
-0.024917038157582283,
-0.02910771034657955,
-0.03149988502264023,
-0.032652318477630615,
0.022455018013715744,
0.027169523760676384,
-0.06111396849155426,
0.01815957948565483,
-0.035673096776008606,
0.03410159423947334,
0.04368775710463524,
-0.03209356218576431,
-0.023467764258384705,
0.0377509705722332,
-0.008992483839392662,
-0.006181241013109684,
0.013191886246204376,
-0.01960885338485241,
-0.013837948441505432,
-0.027693357318639755,
-0.0031168123241513968,
-0.00009085245983442292,
-0.005028806626796722,
-0.04340837895870209,
-0.022245483472943306,
0.024026520550251007,
0.005666137672960758,
0.03445081785321236,
-0.012624399736523628,
-0.005068094003945589,
0.0003901472082361579,
-0.011585461907088757,
0.04246547818183899,
-0.06530463695526123,
-0.01915486343204975,
0.004256151150912046,
0.005508987698704004,
0.026436155661940575,
0.034677810966968536,
0.04812288284301758,
0.009874271228909492,
-0.04277977719902992,
-0.0035969933960586786,
0.07773696631193161,
-0.05346599221229553,
-0.06624753773212433,
0.0471450611948967,
-0.03076651692390442,
0.04288454353809357,
-0.012214062735438347,
-0.04197656363248825,
0.07382567226886749,
-0.01791512221097946,
0.00919328723102808,
0.010005229152739048,
0.035149261355400085,
-0.027640974149107933,
0.0555962473154068,
-0.01808973401784897,
-0.021529577672481537,
-0.007150334306061268,
0.06680629402399063,
-0.04889117553830147,
0.01941678114235401,
0.030190300196409225,
-0.00254714279435575,
0.017417481169104576,
0.013514917343854904,
0.05545656010508537,
-0.0290204044431448,
0.01755717024207115,
-0.0028265209402889013,
-0.034869883209466934,
0.008673817850649357,
0.01577613316476345,
0.1014142632484436,
-0.04428143426775932,
-0.012589477002620697,
0.042570244520902634,
-0.053291380405426025,
-0.05395490303635597,
0.029893459752202034,
0.008800411596894264,
-0.07326691597700119,
0.014580046758055687,
0.04197656363248825,
-0.010625099763274193,
0.03722713515162468,
0.040125682950019836,
0.0411384291946888,
-0.03555086627602577,
0.004531164187937975,
-0.021197816357016563,
-0.060205988585948944,
0.06586339324712753,
0.02158196084201336,
-0.04550371319055557,
0.023956675082445145,
0.05346599221229553,
-0.011445772834122181,
-0.07515271753072739,
0.021040664985775948,
-0.05929800868034363,
0.030137917026877403,
0.006124492734670639,
0.013803025707602501,
0.004120827652513981,
0.03596993535757065,
-0.017688129097223282,
-0.03546356037259102,
0.05755189433693886,
0.02505672723054886,
0.047564126551151276,
-0.05636454001069069,
-0.029229937121272087,
-0.023502685129642487,
-0.03851925954222679,
0.014719735831022263,
-0.0074733649380505085,
0.09415043145418167,
-0.031901489943265915,
0.0050157103687524796,
0.05391997843980789,
0.05570101737976074
] |
724,849 | scipy.sparse._base | nonzero | Nonzero indices of the array/matrix.
Returns a tuple of arrays (row,col) containing the indices
of the non-zero elements of the array.
Examples
--------
>>> from scipy.sparse import csr_array
>>> A = csr_array([[1,2,0],[0,0,3],[4,0,5]])
>>> A.nonzero()
(array([0, 0, 1, 2, 2]), array([0, 1, 2, 0, 2]))
| def nonzero(self):
"""Nonzero indices of the array/matrix.
Returns a tuple of arrays (row,col) containing the indices
of the non-zero elements of the array.
Examples
--------
>>> from scipy.sparse import csr_array
>>> A = csr_array([[1,2,0],[0,0,3],[4,0,5]])
>>> A.nonzero()
(array([0, 0, 1, 2, 2]), array([0, 1, 2, 0, 2]))
"""
# convert to COOrdinate format
A = self.tocoo()
nz_mask = A.data != 0
return (A.row[nz_mask], A.col[nz_mask])
| (self) | [
-0.019292781129479408,
-0.006664779037237167,
0.052370183169841766,
0.0006405250751413405,
0.06643921881914139,
-0.027095217257738113,
-0.033086881041526794,
0.04459618777036667,
0.03418662026524544,
-0.029048196971416473,
-0.035570770502090454,
-0.0014031113823875785,
0.016372792422771454,
-0.02590067684650421,
-0.02861209586262703,
-0.0037305697333067656,
-0.009641650132834911,
-0.0447099544107914,
-0.005920561030507088,
0.035722456872463226,
-0.0035765119828283787,
-0.04501333087682724,
0.02885858714580536,
0.04133490100502968,
-0.03394012525677681,
-0.001356894033960998,
0.011992810294032097,
-0.010656061582267284,
0.028005344793200493,
-0.05529017373919487,
-0.049905259162187576,
-0.007669710088521242,
-0.06416390091180801,
-0.044444501399993896,
0.010257882066071033,
0.05187719687819481,
0.058475613594055176,
0.030375465750694275,
0.06389845162630081,
0.016884738579392433,
0.04459618777036667,
-0.07925683259963989,
-0.033617790788412094,
-0.0020371186546981335,
0.01593669131398201,
-0.04410320147871971,
0.02317029796540737,
-0.03215779736638069,
-0.04106944799423218,
0.013225272297859192,
0.012988260947167873,
0.035172589123249054,
0.05176343396306038,
0.0219567958265543,
-0.03031858243048191,
0.023359907791018486,
0.048957210034132004,
0.010807749815285206,
-0.054038748145103455,
0.004214074462652206,
-0.0866895318031311,
0.02667807601392269,
0.04489956423640251,
0.00040588315459899604,
0.06590831279754639,
0.0018937262939289212,
0.008210097439587116,
0.030337542295455933,
0.011367098428308964,
0.04106944799423218,
-0.03485025092959404,
-0.008252759464085102,
0.018439536914229393,
0.011215410195291042,
0.08957159519195557,
-0.02836560271680355,
-0.009049120359122753,
0.03615855798125267,
-0.03344714269042015,
0.006702701095491648,
0.004202223848551512,
-0.02135004661977291,
0.006186014506965876,
0.027379631996154785,
-0.008029968477785587,
0.010864632204174995,
0.08653783798217773,
0.06154729053378105,
-0.05009486898779869,
0.07159660011529922,
0.030640918761491776,
0.04251048341393471,
0.0096653513610363,
0.009774377569556236,
-0.00395573116838932,
0.04288970306515694,
0.005057837348431349,
0.03697387874126434,
0.04759202152490616,
-0.01822148635983467,
0.02184303104877472,
0.05839977040886879,
-0.0029010274447500706,
-0.004135860130190849,
-0.03551388531923294,
0.003860926255583763,
0.010693984106183052,
-0.014268125407397747,
0.02901027537882328,
-0.011205930262804031,
0.015121368691325188,
-0.006641077809035778,
-0.0022847962100058794,
-0.00809159129858017,
-0.007171984761953354,
-0.05953742936253548,
0.04907097667455673,
0.04876760020852089,
-0.06116807088255882,
-0.016012534499168396,
-0.0010262621799483895,
0.016477078199386597,
-0.001945868949405849,
-0.030546113848686218,
0.012438392266631126,
0.04288970306515694,
0.011149046942591667,
0.022829001769423485,
0.008949575014412403,
-0.0017799605848267674,
0.04042477533221245,
-0.05984080210328102,
0.02980663627386093,
0.022980688139796257,
-0.045468393713235855,
-0.012372029013931751,
0.10777412354946136,
-0.02707625739276409,
-0.006020106375217438,
0.06431559473276138,
0.010371647775173187,
-0.012485794723033905,
-0.017150191590189934,
0.08153214305639267,
0.05661743879318237,
0.0024767760187387466,
0.047288645058870316,
0.03847179561853409,
0.061471447348594666,
-0.018723951652646065,
-0.014400852844119072,
-0.028915470466017723,
0.004394203424453735,
0.020250309258699417,
-0.03403493016958237,
-0.011092164553701878,
0.019946934655308723,
-0.06276079267263412,
0.008868991397321224,
-0.03729621693491936,
-0.0011429906589910388,
0.016657207161188126,
0.013102026656270027,
0.0037519007455557585,
0.018411096185445786,
0.02785365656018257,
-0.04315515607595444,
-0.0033181686885654926,
-0.034812331199645996,
0.004112159367650747,
-0.020743295550346375,
-0.011869563721120358,
-0.0920744463801384,
-0.005124200601130724,
0.05642782896757126,
-0.022942766547203064,
-0.013130467385053635,
0.03970425948500633,
0.029199885204434395,
-0.0018759503727778792,
0.02965494804084301,
0.056010689586400986,
-0.0666288286447525,
0.020231349393725395,
0.02743651531636715,
0.02976871468126774,
0.01682785525918007,
-0.02368224412202835,
0.03145623952150345,
0.0006079359445720911,
-0.01899888552725315,
0.006432507187128067,
-0.009935545735061169,
0.03716348856687546,
0.026469506323337555,
0.021293163299560547,
-0.04277593642473221,
0.03970425948500633,
-0.02652638964354992,
-0.06518779695034027,
0.009229249320924282,
-0.04300346598029137,
0.009684312157332897,
0.0366705060005188,
0.0027943721506744623,
0.009181846864521503,
-0.021918874233961105,
-0.03644297271966934,
-0.04372398555278778,
0.021008748561143875,
0.04903305321931839,
-0.020079661160707474,
-0.008650939911603928,
-0.014998123049736023,
0.047667864710092545,
0.02745547704398632,
0.023359907791018486,
0.009973467327654362,
-0.02459237165749073,
-0.007034517824649811,
0.03170273080468178,
-0.030337542295455933,
-0.002048969268798828,
0.01054229587316513,
0.025805871933698654,
-0.008390226401388645,
0.009124964475631714,
-0.020572645589709282,
-0.033504024147987366,
0.001271569635719061,
-0.03003416769206524,
0.018079278990626335,
-0.018430057913064957,
-0.052332259714603424,
-0.05214265361428261,
0.016477078199386597,
0.043117232620716095,
0.011149046942591667,
-0.024535488337278366,
-0.020326154306530952,
-0.06746310740709305,
-0.00805841013789177,
0.03558972850441933,
-0.0015512439422309399,
0.008537174202501774,
-0.007257309276610613,
-0.026166129857301712,
0.017197594046592712,
-0.022999649867415428,
0.008584576658904552,
-0.035836223512887955,
-0.033864282071590424,
0.02030719257891178,
-0.012305665761232376,
0.07292386889457703,
-0.03490713611245155,
-0.023340947926044464,
0.020231349393725395,
-0.05252186954021454,
0.013102026656270027,
-0.015007602982223034,
0.0117747588083148,
-0.01261852215975523,
-0.014789552427828312,
-0.0093998983502388,
-0.0027232684660702944,
0.05290108919143677,
0.02042095921933651,
-0.018543822690844536,
0.07394775748252869,
0.1043611466884613,
0.026905609294772148,
0.0005397949717007577,
-0.061205994337797165,
-0.012523717246949673,
-0.03577933833003044,
0.022222250699996948,
-0.012296185828745365,
-0.010324245318770409,
0.0465681292116642,
-0.028043266385793686,
0.015908248722553253,
-0.05346991866827011,
0.0460372231900692,
-0.033219609409570694,
-0.03898374363780022,
-0.00483267568051815,
0.0018297330243512988,
-0.05346991866827011,
-0.04960188269615173,
0.0390595868229866,
0.07004180550575256,
0.0012644593371078372,
-0.02472509816288948,
0.024383800104260445,
0.013073584996163845,
-0.051042914390563965,
0.04850214719772339,
-0.013974230736494064,
0.0042662168852984905,
0.0230186115950346,
0.020231349393725395,
-0.047554098069667816,
-0.060144178569316864,
0.031664811074733734,
0.03996971249580383,
-0.010001908987760544,
0.08805471658706665,
-0.006612636148929596,
0.06518779695034027,
0.013974230736494064,
-0.051042914390563965,
0.011651512235403061,
-0.052218496799468994,
-0.026564311236143112,
0.018278369680047035,
0.03196818754076958,
0.02574899047613144,
0.03248013183474541,
0.04144866764545441,
0.05214265361428261,
-0.03593102842569351,
-0.02171030454337597,
-0.010902554728090763,
-0.04224503040313721,
0.017007984220981598,
0.00942359957844019,
-0.10018973797559738,
-0.03215779736638069,
0.03750478848814964,
0.02070537395775318,
-0.001981420675292611,
-0.06920751929283142,
0.019567715004086494,
0.04205542057752609,
-0.02161549963057041,
0.021255241706967354,
0.00460040383040905,
-0.04171412065625191,
0.01293137762695551,
-0.026052365079522133,
0.0061338720843195915,
-0.0003285579732619226,
-0.01673305034637451,
-0.015386822633445263,
-0.02523704431951046,
-0.10724321752786636,
-0.001981420675292611,
-0.0011281773913651705,
-0.007480100262910128,
0.05722419172525406,
0.02459237165749073,
-0.008442369289696217,
0.03304896131157875,
0.06090261787176132,
0.057565487921237946,
0.049639806151390076,
-0.003306318074464798,
0.025407692417502403,
0.022411860525608063,
-0.009281392209231853,
0.006574714556336403,
0.004197483416646719,
-0.08304902166128159,
-0.01509292796254158,
-0.0559348464012146,
0.01054229587316513,
-0.00042217771988362074,
-0.03367467224597931,
-0.04459618777036667,
-0.011935926973819733,
0.0020098623353987932,
-0.03996971249580383,
-0.0452408604323864,
0.026241974905133247,
-0.05070161819458008,
-0.023511596024036407,
0.013054624199867249,
-0.05900651961565018,
-0.058323927223682404,
0.010039830580353737,
-0.06856285035610199,
0.024137306958436966,
-0.0001295419060625136,
-0.07299971580505371,
-0.003865666687488556,
-0.04334476590156555,
0.05813431739807129,
-0.05896859988570213,
-0.005565043073147535,
0.024611331522464752,
-0.054455891251564026,
-0.05475926399230957,
-0.07311347872018814,
0.0687524601817131,
0.0066458177752792835,
0.06022002175450325,
0.048843443393707275,
0.03430038318037987,
-0.13530543446540833,
-0.029958324506878853,
-0.017188115045428276,
-0.003055085428059101,
-0.010257882066071033,
-0.006100690457969904,
0.013613972812891006,
-0.024668214842677116,
-0.03758063167333603,
0.040121398866176605,
0.0022492443677037954,
-0.01593669131398201,
0.052483949810266495,
0.060295864939689636,
-0.05517640709877014,
-0.003702128306031227,
-0.05176343396306038,
-0.006233416963368654,
0.06128183752298355,
-0.0014564390294253826,
0.004887188784778118,
-0.016059936955571175,
-0.027739889919757843,
0.03996971249580383,
-0.037637513130903244,
0.006148092914372683,
-0.012741767801344395,
0.006693220231682062,
-0.014599942602217197,
0.00403394503518939,
0.03352298587560654,
-0.025180160999298096,
-0.060675084590911865,
0.0015062115853652358,
-0.03371259570121765,
-0.10352686792612076,
0.0031759615521878004,
0.004915629979223013,
0.0004766905040014535,
-0.03403493016958237,
0.06886622309684753,
0.05320446565747261,
0.039628416299819946,
0.04288970306515694,
0.0021390337496995926,
0.03989386931061745,
0.018183564767241478,
0.00721464678645134,
0.02654534950852394,
0.04618890956044197,
0.050398241728544235,
0.050284478813409805,
0.0023914517369121313,
0.011613590642809868,
-0.045316703617572784,
-0.015652276575565338,
0.05020863190293312,
-0.06860076636075974,
0.009072821587324142,
-0.022525625303387642,
-0.012827092781662941,
-0.008845290169119835,
0.03316272795200348,
-0.045847613364458084,
-0.07072439789772034,
-0.0005946040037088096,
-0.05278732627630234,
-0.029598064720630646,
-0.03562765195965767,
-0.030621957033872604,
-0.013035663403570652,
0.02652638964354992,
-0.012438392266631126,
-0.0478953942656517,
-0.09040588140487671,
0.02379601076245308,
0.022980688139796257,
-0.0548730306327343,
-0.00019760879513341933,
0.00901119876652956,
0.011660993099212646,
-0.08183552324771881,
-0.016107339411973953,
-0.03551388531923294,
-0.043117232620716095,
0.015860846266150475,
0.02070537395775318,
0.006968154571950436,
-0.054683420807123184,
-0.02197575755417347,
-0.05817223712801933,
0.03594999015331268,
-0.008195877075195312,
-0.02993936277925968,
-0.04205542057752609,
0.03526739403605461,
0.011300735175609589,
0.044444501399993896,
0.0073284124955534935,
0.01593669131398201,
0.05843769386410713,
-0.02095186524093151,
0.00981229916214943,
0.001121659530326724,
0.036727387458086014,
-0.04387567192316055,
-0.058589380234479904,
0.043496452271938324,
-0.022866923362016678,
0.01853434182703495,
-0.05642782896757126,
-0.03029962070286274,
-0.02468717470765114,
-0.01580396294593811,
-0.024668214842677116,
0.009219768457114697,
0.044027358293533325,
-0.012116055935621262,
-0.02798638306558132,
-0.020743295550346375,
0.045316703617572784,
-0.008380746468901634,
0.019008366391062737,
0.0072051663883030415,
0.1001138910651207,
-0.05786886438727379,
0.07459243386983871,
-0.030128972604870796,
-0.024004580453038216,
-0.028289759531617165,
0.03253701329231262,
-0.03437623009085655,
-0.06962466239929199,
-0.019681481644511223,
0.06507402658462524,
-0.04812292754650116,
0.0390595868229866,
0.05320446565747261,
-0.05346991866827011,
0.012817611917853355,
0.03403493016958237,
0.0357414186000824,
0.02237393707036972,
0.06230572983622551,
0.02028823271393776,
0.0018463239539414644,
0.010855152271687984,
-0.05817223712801933,
0.03160792589187622,
-0.010855152271687984,
-0.03657570108771324,
0.0040931981056928635,
-0.0232840646058321,
0.044141124933958054,
-0.07527502626180649,
0.016391754150390625,
0.0364050529897213,
-0.028782743960618973,
0.04489956423640251,
-0.04634059593081474,
0.019927972927689552,
0.020383035764098167,
-0.04148659110069275,
-0.012078134343028069,
-0.022279134020209312,
-0.053811218589544296,
-0.0021971017122268677,
0.03604479506611824,
-0.07045894116163254,
0.026867685839533806,
0.04690942540764809,
0.0025336588732898235,
-0.033352337777614594,
-0.06473273038864136,
0.012011771090328693,
-0.0038419654592871666,
-0.0022978319320827723,
-0.03287831321358681,
-0.03615855798125267,
-0.018411096185445786,
0.016391754150390625,
0.046378519386053085,
-0.04087983816862106,
-0.055479779839515686,
-0.02432691678404808,
0.000797545537352562,
0.018439536914229393,
-0.03314376622438431,
0.011006839573383331,
0.014647345058619976,
-0.028706900775432587,
0.04243463650345802,
-0.05036032199859619,
-0.0008781296783126891,
0.023321986198425293,
0.012722807005047798,
0.033257532864809036,
-0.02954118326306343,
0.0019304631277918816,
0.03981802612543106,
-0.006020106375217438,
-0.008741004392504692,
0.002434113761410117,
0.007380555383861065,
-0.0020323784556239843,
0.015955651178956032,
-0.02639366313815117,
-0.022013679146766663,
0.02836560271680355,
-0.02468717470765114,
0.010845671407878399,
-0.007077179849147797,
-0.03631024807691574,
-0.012021251022815704,
-0.009726975113153458,
-0.03665154427289963,
0.0045814430341124535,
0.017368244007229805,
0.071748286485672,
-0.03820634260773659,
0.04304138943552971,
-0.02717106230556965,
-0.08039449155330658,
-0.008878471329808235,
-0.008570356294512749,
0.0050341361202299595,
0.017965514212846756,
0.05654159560799599,
0.048995133489370346,
0.017662137746810913,
0.0947289764881134,
0.04626475274562836,
0.044937483966350555,
-0.047023192048072815,
0.013955269940197468,
0.008764705620706081,
-0.024800941348075867,
-0.024023542180657387,
0.016628766432404518,
-0.01105424202978611,
0.09116431325674057,
-0.051042914390563965,
0.05115668103098869,
0.06867661327123642,
-0.07114154100418091,
0.02108459174633026,
-0.07011764496564865,
0.018562784418463707,
-0.012997740879654884,
0.04106944799423218,
-0.054569654166698456,
-0.017074348405003548,
-0.0021034819073975086,
0.012324626557528973,
-0.0091676265001297,
-0.05373537167906761,
0.034395188093185425,
-0.03043234720826149,
-0.012789170257747173,
-0.012969299219548702,
-0.01078878901898861,
0.005446536932140589,
-0.03083052858710289,
0.009267170913517475,
-0.03598790988326073,
0.035324275493621826,
-0.011082683689892292,
0.04288970306515694,
0.012201380915939808,
0.02404250204563141,
0.0032778766471892595,
0.0009598988108336926,
0.09252950549125671,
0.011300735175609589,
-0.008560875430703163,
0.006674259435385466,
0.019387586042284966,
0.03989386931061745,
-0.02497158944606781,
-0.014220722950994968,
-0.005470238160341978,
0.009290872141718864,
0.024270033463835716,
0.020250309258699417,
0.0005187601200304925,
0.012978780083358288,
-0.05426628142595291,
0.014315527863800526,
-0.03215779736638069,
0.02497158944606781,
-0.024952629581093788,
0.005934781860560179,
-0.021672382950782776,
0.06761480122804642,
0.030773645266890526,
-0.026185091584920883,
0.04634059593081474,
-0.028024304658174515,
0.052483949810266495,
0.011044762097299099,
0.029199885204434395,
0.025692107155919075,
0.05604860931634903,
-0.012959819287061691,
0.06829739362001419,
-0.04588553309440613,
0.009267170913517475,
0.008636719547212124,
0.004221184644848108,
-0.016287468373775482,
0.015832405537366867,
-0.06731142103672028,
-0.007432697806507349,
-0.005702510010451078,
-0.04888136684894562,
-0.03538116067647934,
-0.020989786833524704,
-0.005764133296906948,
0.016685647889971733,
0.035722456872463226,
0.036499857902526855,
0.02017446607351303,
-0.026734959334135056,
0.004827935714274645,
0.06890414655208588,
-0.006669519003480673,
0.017007984220981598,
-0.02313237637281418,
-0.06549116969108582,
-0.009935545735061169,
-0.009627429768443108,
0.024232111871242523,
-0.05741380155086517,
-0.00650835083797574,
0.01236254908144474,
0.05244602635502815,
0.00341297360137105,
0.021899914368987083,
-0.039742182940244675,
-0.010106193833053112,
-0.011793719604611397,
0.005181083455681801,
0.011935926973819733,
0.05786886438727379,
0.01636331155896187,
0.024763019755482674,
-0.01079826895147562,
-0.00702029699459672,
0.010551776736974716,
-0.02967390976846218,
0.0368032306432724,
-0.007200426422059536,
0.015111888758838177,
0.008394966833293438,
-0.01099735964089632,
0.0034627460408955812,
0.010580218397080898,
-0.009020678699016571,
-0.01975732482969761,
-0.014562021009624004,
0.013832023367285728,
-0.009489962831139565,
-0.03655673936009407,
-0.08289733529090881,
0.04133490100502968,
-0.036765310913324356,
0.006091209594160318,
-0.008053669705986977,
0.0238149706274271
] |
724,850 | scipy.sparse._dok | pop | null | def pop(self, key, default=None, /):
return self._dict.pop(key, default)
| (self, key, default=None, /) | [
0.050738267600536346,
-0.005588275380432606,
-0.04050099477171898,
-0.02154308184981346,
-0.054667726159095764,
-0.012064126320183277,
-0.004916131496429443,
0.04791181534528732,
0.11119677126407623,
-0.04463726654648781,
-0.013632462359964848,
0.007565930485725403,
-0.05749417841434479,
0.00355676282197237,
-0.013253304176032543,
0.057356301695108414,
0.046395182609558105,
0.011504005640745163,
0.006811922881752253,
-0.02483486570417881,
0.07148856669664383,
-0.015200799331068993,
0.042500194162130356,
0.002824298106133938,
-0.022525446489453316,
-0.013546289876103401,
0.06635269522666931,
-0.03265931457281113,
0.06480158865451813,
-0.016140077263116837,
-0.013710017316043377,
-0.049325041472911835,
-0.043499793857336044,
0.04722243547439575,
0.0032357710879296064,
0.009634066373109818,
-0.049773138016462326,
0.033296987414360046,
-0.02921242080628872,
-0.02480039745569229,
0.0148905785754323,
-0.00016036132001318038,
0.005868335720151663,
-0.060699790716171265,
0.03677834942936897,
0.05146211385726929,
0.04043205827474594,
0.07424607872962952,
0.040121838450431824,
0.006480159237980843,
0.048084158450365067,
0.03943245857954025,
-0.006139778532087803,
0.004571442026644945,
-0.06931702047586441,
-0.013468734920024872,
-0.010168335400521755,
0.02523125894367695,
-0.006036371923983097,
0.03472745046019554,
0.04480961337685585,
-0.01602805405855179,
-0.06290580332279205,
-0.05135870724916458,
0.04770500212907791,
-0.0038906806148588657,
0.03009137697517872,
-0.0046489969827234745,
0.03967374190688133,
-0.0026153302751481533,
-0.03950139507651329,
0.013236070051789284,
-0.011788374744355679,
-0.00207998463883996,
0.027316628023982048,
-0.022715026512742043,
0.031401198357343674,
-0.03801923245191574,
0.032125044614076614,
-0.059941474348306656,
-0.022077351808547974,
0.006967032793909311,
-0.034055303782224655,
0.07658996433019638,
-0.02097434550523758,
0.02362845279276371,
0.09575469046831131,
-0.013296390883624554,
-0.0024085165932774544,
0.04649858921766281,
-0.017906609922647476,
0.00934108067303896,
-0.029350295662879944,
0.010633665136992931,
0.0487046018242836,
-0.0456368662416935,
-0.002697193995118141,
-0.015269736759364605,
0.026610014960169792,
-0.02459358237683773,
-0.012210619635879993,
0.012262322939932346,
-0.004937674384564161,
-0.020440077409148216,
0.01663987711071968,
0.04001843184232712,
0.06597353518009186,
-0.003573997411876917,
-0.032935064285993576,
0.0333486907184124,
-0.03929458186030388,
-0.04298275709152222,
-0.04425811022520065,
0.022973543033003807,
0.027471737936139107,
0.06697313487529755,
-0.07362563908100128,
0.002283566864207387,
0.022852901369333267,
0.04019077494740486,
-0.053392376750707626,
-0.022973543033003807,
-0.04184528440237045,
-0.005562423728406429,
0.002688576700165868,
0.00007136146450648084,
0.0033822639379650354,
0.02821282111108303,
0.028057711198925972,
0.06145810708403587,
-0.003668786957859993,
0.022042881697416306,
-0.027557911351323128,
-0.010556110180914402,
0.0017019035294651985,
0.000005099651389173232,
0.020957110449671745,
0.01197795383632183,
0.00745390634983778,
0.03736432269215584,
0.03612343966960907,
0.03365891054272652,
0.04174187779426575,
0.06149257346987724,
0.02788536623120308,
-0.07100600004196167,
0.018664926290512085,
-0.0006145164370536804,
-0.04867013171315193,
0.021922240033745766,
-0.01707935519516468,
0.042293380945920944,
-0.019923042505979538,
-0.02948817051947117,
0.042500194162130356,
0.007725349627435207,
-0.02414548769593239,
0.0010276050306856632,
-0.03169418126344681,
-0.04343085363507271,
0.03290059417486191,
0.031194383278489113,
0.019940277561545372,
-0.09230779856443405,
-0.020164325833320618,
-0.02788536623120308,
0.06414668262004852,
0.03846732899546623,
0.01591602899134159,
0.0638364627957344,
-0.05532263591885567,
0.0011837923666462302,
0.0034835163969546556,
-0.0010313750244677067,
0.0068033053539693356,
0.033900193870067596,
-0.06711100786924362,
0.009694387204945087,
0.01819959655404091,
0.01219338458031416,
-0.001928105833940208,
-0.019474945962429047,
0.010159717872738838,
-0.039846085011959076,
0.024042079225182533,
0.006579257547855377,
0.01042685192078352,
0.01719999685883522,
-0.032848890870809555,
0.04773947224020958,
-0.024059314280748367,
-0.02374909445643425,
0.02238757163286209,
0.005036772694438696,
0.018354706466197968,
-0.01279659103602171,
0.0028286066371947527,
-0.002161848358809948,
-0.01101282425224781,
0.04294829070568085,
-0.053461313247680664,
-0.06618034839630127,
0.04539558291435242,
-0.018544284626841545,
-0.060010410845279694,
-0.021749896928668022,
0.025627650320529938,
-0.03395189717411995,
-0.028988372534513474,
0.03074628673493862,
-0.01688115857541561,
0.026248091831803322,
0.03476191684603691,
-0.06183726340532303,
0.017630858346819878,
-0.07204006612300873,
-0.03348656743764877,
0.003451201831921935,
0.010883565060794353,
0.02576552703976631,
0.03338316082954407,
-0.04284488409757614,
0.053909409791231155,
0.017303403466939926,
-0.004409869201481342,
0.018027251586318016,
-0.048325441777706146,
-0.0285747442394495,
-0.011297192424535751,
-0.02423165924847126,
0.05897634103894234,
-0.006721441633999348,
0.05015229433774948,
-0.0540817528963089,
0.010737072676420212,
-0.07007534056901932,
-0.02836793102324009,
-0.03546852990984917,
0.04529217630624771,
0.07045450061559677,
0.05404728651046753,
0.04177634418010712,
0.01543346419930458,
0.05401281639933586,
0.02269779145717621,
0.05215149372816086,
-0.010823244228959084,
0.03407254070043564,
0.04046652466058731,
0.01213306374847889,
0.06580118834972382,
0.01578677073121071,
0.004993686452507973,
0.04412023350596428,
0.06773145496845245,
0.019940277561545372,
-0.06769698113203049,
-0.042293380945920944,
0.013580759055912495,
-0.00669989874586463,
-0.018216829746961594,
-0.02118115872144699,
0.003711873199790716,
0.03371061384677887,
-0.0007270790520124137,
0.032125044614076614,
0.018957912921905518,
0.010116631165146828,
0.02797153778374195,
0.0438789501786232,
0.04098356142640114,
-0.050979550927877426,
0.007316031027585268,
-0.08231180906295776,
0.04194869101047516,
0.03901883214712143,
-0.0017428353894501925,
-0.04067334160208702,
0.01571783237159252,
-0.008138976991176605,
0.017665328457951546,
-0.034382760524749756,
0.002520540729165077,
0.018423644825816154,
-0.047153498977422714,
0.08562082797288895,
-0.000972131616435945,
-0.02467975579202175,
0.046153899282217026,
0.018182361498475075,
0.06824848800897598,
0.021026048809289932,
-0.06742122769355774,
0.039639271795749664,
-0.014183965511620045,
-0.041535064578056335,
-0.086654894053936,
0.0025463923811912537,
0.0751422718167305,
0.07934748381376266,
-0.0054891775362193584,
-0.06104447692632675,
-0.03496873006224632,
0.007104908581823111,
0.002481763018295169,
0.01077154092490673,
0.04722243547439575,
0.008841280825436115,
-0.008750800043344498,
0.05273746699094772,
-0.010133866220712662,
0.007087673991918564,
-0.052220430225133896,
0.017941080033779144,
0.007531461771577597,
-0.00926352571696043,
0.004855810664594173,
0.005338375922292471,
0.027454504743218422,
0.045705802738666534,
-0.023852501064538956,
-0.05377153307199478,
-0.10319998115301132,
0.0034468933008611202,
-0.008604306727647781,
-0.0714196264743805,
-0.08141561597585678,
0.016622642055153847,
0.04098356142640114,
0.030229253694415092,
0.0065017021261155605,
-0.045878149569034576,
-0.042052097618579865,
0.0008240229217335582,
-0.021801600232720375,
-0.012831060215830803,
-0.01582985743880272,
0.03081522509455681,
0.01599358394742012,
-0.012012423016130924,
-0.04894588515162468,
-0.0540817528963089,
0.008070038631558418,
-0.03822604566812515,
0.04263806715607643,
0.027661317959427834,
0.06063085049390793,
-0.01101282425224781,
0.03066011518239975,
-0.05963125079870224,
0.02990179881453514,
0.013692783191800117,
0.05335790663957596,
0.03801923245191574,
0.028040476143360138,
-0.005036772694438696,
0.03857073560357094,
0.004898896906524897,
0.04239678755402565,
-0.04725690558552742,
0.02981562539935112,
0.005506412126123905,
-0.060217224061489105,
0.01197795383632183,
0.005170339718461037,
-0.021508613601326942,
-0.03908776864409447,
-0.004515429958701134,
-0.04343085363507271,
-0.038605205714702606,
0.01743266172707081,
-0.019268132746219635,
-0.03726091608405113,
0.04270700737833977,
0.008712022565305233,
0.011340278200805187,
-0.0005741231725551188,
0.059769127517938614,
-0.007910619489848614,
-0.04119037464261055,
0.008841280825436115,
0.009418635629117489,
-0.019871339201927185,
0.0721779465675354,
0.005148796830326319,
0.04236231744289398,
0.00009566474909661338,
-0.018613222986459732,
0.015984967350959778,
-0.012003805488348007,
-0.022732261568307877,
-0.029798392206430435,
-0.049325041472911835,
-0.0016771289519965649,
-0.050048887729644775,
0.003444738918915391,
-0.018716629594564438,
-0.06349176913499832,
-0.04849778860807419,
0.013968534767627716,
0.10554386675357819,
0.058493778109550476,
-0.03066011518239975,
0.010857713408768177,
0.028316227719187737,
-0.02106051705777645,
-0.028988372534513474,
0.027178753167390823,
-0.024042079225182533,
-0.007048896513879299,
0.03667494282126427,
-0.021922240033745766,
-0.029436467215418816,
-0.04418917000293732,
0.05552944913506508,
-0.02604127861559391,
0.012184767052531242,
0.04891141504049301,
0.016493383795022964,
-0.008763725869357586,
-0.017415428534150124,
-0.03653706982731819,
-0.043292976915836334,
0.003767885034903884,
-0.006389678455889225,
0.016657112166285515,
-0.01997474581003189,
-0.051220834255218506,
-0.07155749946832657,
-0.005648596212267876,
-0.003638626541942358,
-0.10237272828817368,
0.03231462463736534,
0.047877345234155655,
0.04722243547439575,
-0.0016146540874615312,
-0.009668535552918911,
-0.020078152418136597,
-0.01743266172707081,
0.027144283056259155,
-0.020560717210173607,
-0.0019938123878091574,
-0.016252102330327034,
0.0007970940787345171,
-0.004519738722592592,
0.013089576736092567,
-0.028109414502978325,
0.04987654462456703,
0.0721779465675354,
-0.052944280207157135,
0.017906609922647476,
-0.017854906618595123,
0.02812664769589901,
0.036020033061504364,
0.031728651374578476,
-0.06552544236183167,
-0.10230378806591034,
0.016002202406525612,
0.010633665136992931,
-0.03167694807052612,
0.028919434174895287,
0.02821282111108303,
0.017820438370108604,
0.004345239605754614,
-0.031969934701919556,
0.07824447751045227,
0.011288574896752834,
0.01386512815952301,
-0.04194869101047516,
-0.0151663301512599,
-0.006182864774018526,
-0.0351066067814827,
-0.04088015481829643,
-0.06449136883020401,
-0.030522238463163376,
0.004401251673698425,
0.06500840932130814,
0.029074544087052345,
-0.008436270989477634,
-0.007285870611667633,
0.02616192027926445,
-0.004459417890757322,
-0.054909009486436844,
-0.008138976991176605,
-0.03410700708627701,
0.026541078463196754,
0.0036407809238880873,
0.022732261568307877,
0.010926651768386364,
0.03667494282126427,
-0.04184528440237045,
-0.001751452567987144,
-0.005622744560241699,
0.011745288968086243,
0.023973142728209496,
-0.0132446875795722,
-0.010418234393000603,
0.004683466162532568,
0.03591662645339966,
-0.036709412932395935,
0.013348094187676907,
-0.0222152266651392,
-0.013175749219954014,
0.001615731162019074,
-0.02957434393465519,
-0.05425409972667694,
-0.008776651695370674,
0.01736372523009777,
-0.012960318475961685,
-0.022939074784517288,
0.013296390883624554,
0.023731859400868416,
0.02395590767264366,
-0.013675549067556858,
0.021198393777012825,
-0.00908256322145462,
0.008892984129488468,
-0.020681358873844147,
0.02142244204878807,
0.00399839598685503,
0.047877345234155655,
0.036468129605054855,
-0.009694387204945087,
0.011840078048408031,
-0.028040476143360138,
-0.011133464984595776,
-0.02933306060731411,
-0.016217632219195366,
0.021250097081065178,
0.009875348769128323,
-0.01840640977025032,
0.0031711417250335217,
-0.020060919225215912,
0.02969498559832573,
0.04425811022520065,
-0.006730059161782265,
-0.019509416073560715,
0.013899596408009529,
-0.026058511808514595,
-0.024921037256717682,
0.013434266671538353,
-0.012994787655770779,
0.02990179881453514,
-0.009375549852848053,
-0.017174145206809044,
0.011383364908397198,
-0.03114267997443676,
0.02061242051422596,
0.03343486413359642,
0.021767130121588707,
-0.11423004418611526,
-0.005820940714329481,
0.018509816378355026,
-0.021956710144877434,
0.018182361498475075,
0.01988857425749302,
-0.028471337631344795,
0.014675147831439972,
0.0330212377011776,
0.004567133728414774,
0.0038303600158542395,
0.03708856925368309,
0.04094909131526947,
0.027919834479689598,
0.02209458500146866,
0.023456107825040817,
-0.060458507388830185,
0.0020950648467987776,
0.07155749946832657,
0.0195266492664814,
-0.009022243320941925,
-0.03853626549243927,
0.03517554700374603,
0.01691562868654728,
-0.002830761019140482,
0.0324697345495224,
0.010874948464334011,
-0.0010518409544602036,
-0.02667895331978798,
-0.00697134155780077,
-0.0067171333357691765,
0.038915425539016724,
0.1009250357747078,
-0.029436467215418816,
-0.017889374867081642,
0.009961521252989769,
0.0015446390025317669,
0.030108612030744553,
-0.03472745046019554,
0.0034167328849434853,
0.01098697166889906,
0.021077752113342285,
0.015485167503356934,
0.021439675241708755,
0.019440477713942528,
-0.006885169073939323,
0.04539558291435242,
0.0014757011085748672,
-0.05797674506902695,
0.0469466857612133,
0.02226692996919155,
-0.026713421568274498,
0.04194869101047516,
0.046153899282217026,
-0.005041081458330154,
0.04456833004951477,
-0.04287935048341751,
0.03753666579723358,
0.025782762095332146,
-0.06156151369214058,
-0.03908776864409447,
-0.05501241609454155,
-0.04677433893084526,
0.033331457525491714,
0.018785567954182625,
-0.0234216395765543,
0.03398636728525162,
-0.015321440063416958,
-0.07638315111398697,
-0.02595510520040989,
-0.04305169731378555,
-0.005230660550296307,
-0.06907574087381363,
0.024783162400126457,
0.00813466776162386,
-0.06662844866514206,
-0.03546852990984917,
0.009160119108855724,
-0.012753505259752274,
0.02025049738585949,
-0.028591979295015335,
-0.0222152266651392,
0.031246086582541466,
0.0529787503182888,
0.0004246680182404816,
0.003914378117769957,
0.03588216006755829,
-0.002630410483106971,
-0.0027338170912116766,
-0.006536171305924654,
-0.0011719437316060066,
-0.0324697345495224,
0.015984967350959778,
0.04653305932879448,
-0.05404728651046753,
0.02378356270492077,
0.009091180749237537,
0.04315510392189026,
0.027781959623098373,
-0.026903001591563225,
-0.028436869382858276,
-0.028316227719187737,
0.008867132477462292,
-0.029384763911366463,
-0.010978355072438717,
-0.038880955427885056,
0.05580520257353783,
-0.002501151990145445,
-0.07824447751045227,
-0.03974267840385437,
-0.05411622300744057,
-0.024490175768733025,
-0.06204407662153244,
0.015286971814930439,
0.003009568667039275,
-0.0679037943482399,
-0.06731782108545303,
0.005812323652207851,
0.02142244204878807,
-0.02109498716890812,
0.013029255904257298,
-0.08527613431215286,
-0.058735061436891556,
-0.021629255264997482,
-0.03615790978074074,
-0.045705802738666534,
0.0246280524879694,
0.049325041472911835,
0.02326652966439724,
0.017751500010490417,
0.05839037150144577,
0.05401281639933586,
-0.007208315189927816,
0.012684566900134087,
-0.014459717087447643,
0.0888609066605568,
-0.006398295518010855,
0.009496190585196018,
-0.011098995804786682,
-0.020440077409148216,
0.05625329539179802,
-0.09899476915597916,
-0.0222152266651392,
-0.05677033215761185,
-0.0756937712430954,
0.01973346434533596,
-0.04987654462456703,
-0.050290171056985855,
0.0018408563919365406,
0.006518936716020107,
-0.00879819504916668,
0.021370738744735718,
-0.01388236228376627,
-0.03650259971618652,
0.008936070837080479,
0.00406733388081193,
-0.002473145956173539,
0.049842074513435364,
-0.03114267997443676,
-0.017372341826558113,
0.00980641134083271,
0.036020033061504364,
-0.01602805405855179,
-0.02157755196094513,
-0.0034835163969546556,
0.030953101813793182,
-0.05397834628820419,
-0.004317233804613352,
-0.0655943751335144,
0.030315425246953964,
-0.009892583824694157,
0.004433566238731146,
0.030642880126833916,
-0.032573141157627106,
0.05818355828523636,
-0.024162720888853073,
0.011753905564546585,
-0.0920320451259613,
-0.052013617008924484,
0.11016270518302917,
0.00914288405328989,
0.009177353233098984,
0.03777794912457466,
0.007557313423603773,
0.02109498716890812,
-0.07121281325817108,
-0.014433865435421467,
-0.01440801378339529,
0.07376351207494736,
0.009815027937293053,
-0.05332343652844429,
0.0176050066947937,
0.015312823466956615,
0.033176347613334656,
-0.01460621040314436,
-0.05215149372816086,
-0.022921839728951454,
0.01258116029202938,
-0.02576552703976631,
0.005704608280211687,
-0.014494186267256737,
0.006734367460012436,
0.01940600946545601,
0.04994548112154007,
0.0076650287955999374,
-0.05380600318312645,
-0.019716229289770126,
0.03114267997443676,
0.029850095510482788,
0.04646411910653114,
-0.0764520913362503,
-0.022680556401610374,
-0.02860921435058117,
-0.01321883499622345,
-0.0162348672747612,
0.016743283718824387,
0.002124147955328226,
0.0121761504560709
] |
724,851 | scipy.sparse._dok | popitem | null | def popitem(self):
return self._dict.popitem()
| (self) | [
0.07176396995782852,
0.02234317921102047,
-0.06435500085353851,
-0.039038270711898804,
-0.030964823439717293,
-0.05342428758740425,
-0.012400880455970764,
0.03118078038096428,
0.12379284203052521,
-0.042958710342645645,
-0.03174559026956558,
0.008804375305771828,
-0.03857313469052315,
0.022924600169062614,
-0.03717772290110588,
0.05584964528679848,
-0.01573989726603031,
0.0306658074259758,
-0.0012168311513960361,
0.012359349988400936,
0.028938155621290207,
0.017309734597802162,
0.060102324932813644,
0.026678919792175293,
-0.012176617980003357,
-0.05182953178882599,
0.05232789367437363,
-0.03990209475159645,
0.08232922106981277,
-0.013513886369764805,
-0.059803307056427,
-0.03767608478665352,
0.0035965044517070055,
0.004746887367218733,
-0.019984271377325058,
0.008762845769524574,
-0.058407895267009735,
-0.021927880123257637,
0.04020111262798309,
-0.0009069130173884332,
-0.009360878728330135,
-0.0196188073605299,
0.01045727264136076,
-0.0441880002617836,
0.054121993482112885,
0.019535746425390244,
0.05236111953854561,
0.06033489108085632,
0.011919131502509117,
-0.0015698368661105633,
0.041795868426561356,
0.06276024878025055,
0.0020619682036340237,
0.017110390588641167,
-0.07322582602500916,
-0.0005871314206160605,
-0.007840878330171108,
-0.011453994549810886,
0.009103392250835896,
0.04747718200087547,
0.03013422153890133,
-0.004030493553727865,
-0.07176396995782852,
-0.0826614573597908,
0.0786745697259903,
-0.037210945039987564,
0.019535746425390244,
0.02194449119269848,
0.005000221077352762,
-0.015482411719858646,
-0.033589523285627365,
0.004101094789803028,
0.009510386735200882,
0.008563501760363579,
-0.018040664494037628,
-0.05249401554465294,
0.04548373818397522,
-0.013680006377398968,
0.039569854736328125,
-0.040633026510477066,
-0.017874544486403465,
0.022243507206439972,
0.001581257558427751,
0.04604854807257652,
-0.039702750742435455,
0.034619469195604324,
0.09867545962333679,
0.001178415841422975,
-0.052194997668266296,
0.06578363478183746,
0.011404158547520638,
0.013729842379689217,
-0.03986887261271477,
-0.017243286594748497,
0.019137058407068253,
-0.03654646500945091,
-0.0036650290712714195,
-0.0017297276062890887,
-0.012508857995271683,
-0.03134689852595329,
0.020449409261345863,
0.006229510996490717,
-0.06279347091913223,
0.002952788257971406,
0.020482633262872696,
0.06917249411344528,
0.05355718359351158,
-0.026180559769272804,
-0.005091587081551552,
0.046713028103113174,
-0.025266896933317184,
0.044786032289266586,
-0.05378975346684456,
0.021678699180483818,
0.03377225622534752,
0.021014217287302017,
-0.07282713800668716,
-0.018505800515413284,
0.04604854807257652,
0.02300766110420227,
-0.02011716738343239,
-0.019319791346788406,
-0.03274231031537056,
0.007292680907994509,
-0.0012625142699107528,
0.020715201273560524,
-0.010058583691716194,
-0.012558694928884506,
0.016728313639760017,
0.028772035613656044,
0.012517164461314678,
-0.019137058407068253,
-0.03157946839928627,
-0.02221028320491314,
-0.006437161471694708,
-0.0018688533455133438,
0.04844067990779877,
-0.02064875327050686,
-0.005947106517851353,
0.02169531024992466,
0.028007881715893745,
0.048174887895584106,
0.03362274914979935,
0.08392397314310074,
0.02275848016142845,
-0.061398062855005264,
-0.04149685055017471,
0.02938668057322502,
-0.03405465930700302,
-0.003098143497481942,
-0.03641356900334358,
0.007271916139870882,
0.014386017806828022,
0.003098143497481942,
-0.0030711491126567125,
0.01122973207384348,
-0.028306899592280388,
-0.03043323941528797,
-0.05545095354318619,
-0.07216265797615051,
0.028755422681570053,
0.010565251111984253,
0.050234779715538025,
-0.05016832798719406,
-0.030699031427502632,
-0.01136262807995081,
0.08179763704538345,
0.00008669403177918866,
-0.041662972420454025,
0.05435455963015556,
-0.028290286660194397,
-0.01676153764128685,
-0.020765036344528198,
-0.02405421994626522,
-0.056580573320388794,
0.05883980914950371,
-0.03691193088889122,
0.051530517637729645,
0.01898754946887493,
-0.0013694541994482279,
-0.01676153764128685,
-0.04651368409395218,
-0.004738581366837025,
-0.04850712791085243,
0.03442012518644333,
-0.01663694716989994,
0.0005305467057041824,
0.038539908826351166,
0.02325684204697609,
0.03508460521697998,
-0.027509521692991257,
-0.02938668057322502,
0.01507541723549366,
-0.02430339902639389,
0.026678919792175293,
-0.005942953750491142,
-0.03628067299723625,
0.027991270646452904,
0.0027970504015684128,
0.010855961591005325,
-0.07894036173820496,
-0.08731282502412796,
0.01267497893422842,
0.011586890555918217,
-0.08006998151540756,
-0.016213340684771538,
0.009568529203534126,
-0.05664702132344246,
-0.00009525960922474042,
0.029087664559483528,
-0.014269733801484108,
0.03960308060050011,
0.03973597660660744,
-0.04525116831064224,
0.019269954413175583,
-0.10924071073532104,
-0.05993620306253433,
-0.021911267191171646,
-0.006997817661613226,
0.008347544819116592,
-0.022027552127838135,
-0.04770974814891815,
0.028273673728108406,
-0.03147979453206062,
-0.023356514051556587,
-0.009842627681791782,
-0.04292548447847366,
-0.001403716509230435,
0.02898799255490303,
0.019186893478035927,
0.041895538568496704,
-0.0036837176885455847,
0.08930627256631851,
-0.059803307056427,
-0.0020775420125573874,
-0.013364378362894058,
-0.059570737183094025,
-0.02716066874563694,
0.010855961591005325,
0.05691281333565712,
0.03588198497891426,
0.05455390736460686,
0.028688974678516388,
0.0672454982995987,
-0.019685255363583565,
0.10053600370883942,
0.04053335264325142,
0.04754363000392914,
0.03093159943819046,
-0.009767873212695122,
0.08212987333536148,
-0.0020951922051608562,
0.010365906171500683,
0.06996987015008926,
0.056746695190668106,
-0.0377093069255352,
-0.024851595982909203,
-0.05448745936155319,
-0.001482623629271984,
0.02051585726439953,
0.018422741442918777,
-0.02156241424381733,
0.038672804832458496,
0.05043412372469902,
0.0025084165390580893,
0.03777575492858887,
0.015316291712224483,
0.027459684759378433,
0.005120658315718174,
0.05986975505948067,
0.06422210484743118,
-0.06668068468570709,
0.021861430257558823,
-0.0485735759139061,
0.012143393978476524,
0.043988656252622604,
-0.021379683166742325,
-0.0031479797326028347,
-0.008820988237857819,
-0.008629949763417244,
0.04388898238539696,
-0.009693119674921036,
-0.004030493553727865,
0.020748425275087357,
-0.02194449119269848,
0.046978820115327835,
0.04687914624810219,
0.015349515713751316,
0.0668468102812767,
0.04638078808784485,
0.03211105242371559,
0.008027763105928898,
-0.02051585726439953,
-0.0011483065318316221,
0.02274186909198761,
-0.02847301959991455,
-0.06259413063526154,
0.004030493553727865,
0.04432089626789093,
0.08385752886533737,
-0.008505359292030334,
-0.03458624705672264,
-0.10379195958375931,
0.000620355480350554,
0.0032165043521672487,
0.048806142061948776,
0.05767696723341942,
0.05339106544852257,
-0.032277174293994904,
0.03844023868441582,
0.0019757933914661407,
-0.017874544486403465,
-0.022193672135472298,
0.028938155621290207,
-0.025698810815811157,
-0.03897182270884514,
0.00941902119666338,
0.014178367331624031,
0.015690062195062637,
0.03754318878054619,
-0.048806142061948776,
-0.058407895267009735,
-0.04604854807257652,
-0.007604156620800495,
0.010515415109694004,
-0.051796309649944305,
-0.10924071073532104,
0.0384734608232975,
0.019203506410121918,
0.02353924699127674,
0.028290286660194397,
-0.036446794867515564,
-0.010083502158522606,
-0.016429297626018524,
0.04741073399782181,
0.019269954413175583,
0.015249843709170818,
0.06070035696029663,
0.010000442154705524,
-0.04707849398255348,
-0.042161330580711365,
-0.04066624864935875,
0.033739034086465836,
-0.010706453584134579,
0.01469334028661251,
0.025781869888305664,
-0.00496699707582593,
-0.0025437171570956707,
0.021263398230075836,
-0.03834056481719017,
0.03830733895301819,
0.01306536141782999,
0.045284394174814224,
0.015200006775557995,
0.0034656845964491367,
-0.003966121934354305,
-0.004518472123891115,
0.0398024246096611,
0.023705366998910904,
0.007828419096767902,
0.03131367638707161,
-0.03442012518644333,
-0.049703191965818405,
-0.017708424478769302,
0.010158256627619267,
-0.03993532061576843,
-0.06485336273908615,
-0.0018242085352540016,
-0.026097498834133148,
-0.034752365201711655,
-0.010025359690189362,
-0.03747674077749252,
-0.03245990723371506,
0.020715201273560524,
0.016869517043232918,
0.00411978317424655,
0.0042485264129936695,
0.07654823362827301,
-0.01513355877250433,
-0.04744395613670349,
0.023040885105729103,
-0.028888320550322533,
-0.026446351781487465,
0.029702309519052505,
0.02325684204697609,
0.042659692466259,
-0.030582746490836143,
-0.0449521541595459,
-0.0002530739002395421,
-0.016337931156158447,
-0.03624744713306427,
-0.01571498066186905,
-0.03648001700639725,
-0.006408090703189373,
-0.024718699976801872,
0.0008622681489214301,
-0.028489630669355392,
-0.08006998151540756,
-0.03797509893774986,
-0.007122407667338848,
0.07349161803722382,
0.024619027972221375,
-0.02935345657169819,
-0.030615970492362976,
0.025549301877617836,
-0.032426681369543076,
-0.041530072689056396,
0.03518427908420563,
-0.01495082676410675,
-0.03455302119255066,
0.026712143793702126,
-0.019652031362056732,
-0.03182864934206009,
-0.05973685905337334,
0.04146362468600273,
-0.02402099408209324,
0.011346016079187393,
0.07202976197004318,
0.043324172496795654,
0.00740896537899971,
-0.010698147118091583,
0.012874322943389416,
-0.04734428599476814,
-0.000045812863390892744,
-0.06375697255134583,
-0.016728313639760017,
-0.02003410831093788,
-0.010523720644414425,
-0.05551740154623985,
0.03264264017343521,
-0.009709731675684452,
-0.11229731887578964,
0.0400017686188221,
0.011146672070026398,
0.025881541892886162,
0.007305140141397715,
-0.03392176330089569,
-0.034619469195604324,
-0.02299105003476143,
0.08073446154594421,
0.04681269824504852,
0.025947989895939827,
0.005947106517851353,
-0.005328308325260878,
0.041895538568496704,
0.029652472585439682,
0.00497114984318614,
0.014410935342311859,
0.05668024718761444,
0.008995413780212402,
0.018240008503198624,
0.008870824240148067,
0.041895538568496704,
-0.016587112098932266,
-0.014984050765633583,
-0.061796750873327255,
-0.076946921646595,
-0.019402850419282913,
-0.02169531024992466,
-0.021911267191171646,
-0.017176838591694832,
0.014626892283558846,
0.013787984848022461,
-0.016794761642813683,
-0.006678035948425531,
0.023622306063771248,
-0.021147113293409348,
0.043191276490688324,
-0.05329139158129692,
0.03043323941528797,
-0.02714405581355095,
-0.030067773535847664,
-0.059072379022836685,
-0.06943828612565994,
-0.00327879935503006,
0.025433016940951347,
0.045417290180921555,
0.014892684295773506,
0.025134000927209854,
-0.0280909426510334,
0.01202710997313261,
-0.020582305267453194,
-0.016022302210330963,
0.006877380423247814,
-0.03395498916506767,
0.028539467602968216,
0.0007802462787367404,
-0.007209620904177427,
-0.003507214831188321,
0.02714405581355095,
-0.005893117748200893,
-0.044387344270944595,
-0.01950252242386341,
0.020715201273560524,
0.038274116814136505,
-0.017226675525307655,
-0.0030545368790626526,
-0.012558694928884506,
0.002755520399659872,
-0.0457163043320179,
0.022143835201859474,
0.03363936021924019,
-0.00800284557044506,
-0.026429738849401474,
-0.0061672162264585495,
-0.044619910418987274,
0.006977052427828312,
0.01857224851846695,
-0.007446342147886753,
-0.0542881116271019,
-0.02211061120033264,
0.010889185592532158,
0.0281906146556139,
-0.0055941008031368256,
0.0007657107198610902,
0.012575306929647923,
0.003629728453233838,
0.02312394604086876,
0.03367258608341217,
0.023937935009598732,
0.037875428795814514,
0.009792791679501534,
-0.027360012754797935,
-0.015399351716041565,
-0.03207783028483391,
-0.014194979332387447,
-0.029968101531267166,
0.01539104524999857,
0.02443629503250122,
-0.008272790350019932,
-0.0010953557211905718,
-0.002302842680364847,
-0.015573778189718723,
-0.018622085452079773,
0.04246034845709801,
-0.016852904111146927,
-0.035948432981967926,
-0.006295959465205669,
-0.011071917600929737,
0.0022550830617547035,
0.02948635257780552,
-0.015615307725965977,
0.056082211434841156,
-0.018655309453606606,
-0.004244373645633459,
0.01201049704104662,
-0.0384734608232975,
0.013572027906775475,
-0.02988504059612751,
0.05475325137376785,
-0.0897049605846405,
-0.0299016535282135,
0.05079958587884903,
-0.04873969405889511,
0.02961924858391285,
0.062428008764982224,
-0.013223175890743732,
0.03013422153890133,
0.03797509893774986,
-0.01610536314547062,
0.005290931556373835,
0.03986887261271477,
0.019535746425390244,
0.002001749584451318,
0.02792482264339924,
0.038672804832458496,
-0.05000220984220505,
0.04040045663714409,
0.04289226233959198,
0.006794319953769445,
0.006291806232184172,
-0.03651324287056923,
0.025017715990543365,
0.0010055468883365393,
0.020216839388012886,
0.019801540300250053,
-0.005660549271851778,
-0.01280787494033575,
0.005427980795502663,
-0.012334432452917099,
0.0245691929012537,
0.04066624864935875,
0.0639895349740982,
-0.027492908760905266,
-0.03207783028483391,
0.0220940001308918,
0.00800284557044506,
0.048174887895584106,
-0.03525072708725929,
0.0060094017535448074,
0.03186187148094177,
0.012641754932701588,
0.0038436083123087883,
0.008746233768761158,
0.04691237211227417,
-0.02729356475174427,
0.0464804582297802,
0.00838907528668642,
-0.09063523262739182,
0.028772035613656044,
0.042659692466259,
-0.0013995635090395808,
0.04119783267378807,
0.012940770946443081,
0.0038000016938894987,
0.02418711595237255,
-0.04312482848763466,
0.020316513255238533,
0.026712143793702126,
-0.022708645090460777,
-0.028755422681570053,
-0.056082211434841156,
-0.03900504484772682,
-0.00342830759473145,
0.0014898914378136396,
-0.03641356900334358,
0.019419463351368904,
-0.010291152633726597,
-0.05986975505948067,
-0.025914765894412994,
-0.03498493507504463,
-0.01990121230483055,
-0.07202976197004318,
0.06272702664136887,
0.006819238420575857,
-0.06747806817293167,
0.01622995361685753,
0.03973597660660744,
0.01572328619658947,
0.04212810844182968,
-0.03754318878054619,
-0.055816419422626495,
0.031380124390125275,
0.025399792939424515,
-0.022775093093514442,
0.045284394174814224,
-0.004780111368745565,
0.029336843639612198,
-0.008027763105928898,
0.004883936606347561,
0.045550186187028885,
-0.009576834738254547,
-0.06103259697556496,
0.017741648480296135,
-0.03339017927646637,
0.00630011223256588,
-0.007608309853821993,
0.01674492657184601,
0.032576192170381546,
-0.056713469326496124,
-0.0029507118742913008,
-0.0009842627914622426,
-0.002068197587504983,
-0.03342340514063835,
-0.0031168321147561073,
-0.017376182600855827,
0.04830778390169144,
0.0029237172566354275,
-0.08226276934146881,
-0.014626892283558846,
-0.029968101531267166,
-0.027775313705205917,
-0.05611543729901314,
-0.025499464944005013,
0.0668468102812767,
-0.037343841046094894,
-0.044786032289266586,
0.04966996982693672,
0.016022302210330963,
-0.01674492657184601,
-0.018937714397907257,
-0.07282713800668716,
-0.06877380609512329,
-0.01156197302043438,
-0.04006821662187576,
-0.027908209711313248,
0.0006509839440695941,
0.044752806425094604,
0.026861652731895447,
0.03317422419786453,
0.0031189084984362125,
0.03013422153890133,
-0.022924600169062614,
0.026977935805916786,
0.004784264601767063,
0.028522854670882225,
-0.012608530931174755,
0.03551651909947395,
-0.046214666217565536,
-0.04601532220840454,
0.013256399892270565,
-0.09787807613611221,
-0.017342958599328995,
-0.010556944645941257,
-0.03744351491332054,
-0.00019584025721997023,
0.008513664826750755,
-0.038407012820243835,
0.02679520472884178,
0.025250285863876343,
0.006624046713113785,
-0.004717816598713398,
0.04641401022672653,
-0.04415477439761162,
0.03717772290110588,
0.05172986164689064,
-0.004233991261571646,
0.03367258608341217,
-0.035283952951431274,
-0.004107324406504631,
-0.0045143188908696175,
0.07349161803722382,
-0.030632583424448967,
0.017891155555844307,
0.01539104524999857,
0.050234779715538025,
-0.041264280676841736,
0.005444592796266079,
-0.06996987015008926,
-0.00015599734615534544,
-0.030449850484728813,
0.018771594390273094,
0.0003244536928832531,
0.048174887895584106,
0.060368116945028305,
0.01196066103875637,
0.008144048042595387,
-0.05535128340125084,
-0.07282713800668716,
0.08392397314310074,
-0.012982301414012909,
-0.04315805435180664,
0.0006966670043766499,
0.012243065983057022,
0.02363891899585724,
-0.0026080887764692307,
0.0348520390689373,
0.01742601953446865,
0.05163018777966499,
0.0025250285398215055,
-0.03664613887667656,
0.0338054820895195,
-0.001675738487392664,
0.03794187679886818,
-0.02340634912252426,
-0.032825369387865067,
-0.04445379227399826,
0.00724284490570426,
-0.023738591000437737,
-0.03893859684467316,
0.032426681369543076,
0.046978820115327835,
0.015241537243127823,
0.043722860515117645,
0.020216839388012886,
-0.0045350841246545315,
-0.000757404719479382,
0.0377093069255352,
0.009958911687135696,
0.03558296710252762,
-0.044254448264837265,
-0.017176838591694832,
-0.016711702570319176,
0.01755891554057598,
-0.04844067990779877,
0.02443629503250122,
-0.016055526211857796,
-0.0033203293569386005
] |
724,852 | scipy.sparse._base | power | Element-wise power. | def power(self, n, dtype=None):
"""Element-wise power."""
return self.tocsr().power(n, dtype=dtype)
| (self, n, dtype=None) | [
-0.030379490926861763,
0.01052709948271513,
0.1122649610042572,
0.011313242837786674,
0.03386744111776352,
0.0036844846326857805,
-0.04145779460668564,
-0.049409594386816025,
-0.010653604753315449,
0.043951768428087234,
-0.0018682212103158236,
-0.014358420856297016,
0.09187943488359451,
0.024759013205766678,
-0.04987947270274162,
0.023204797878861427,
-0.05725296214222908,
-0.05891561135649681,
-0.030560214072465897,
0.03155418857932091,
-0.006054211407899857,
0.030487924814224243,
0.06860234588384628,
0.012289145961403847,
-0.040951769798994064,
0.048722848296165466,
0.05078308656811714,
-0.01007529255002737,
-0.028789130970835686,
-0.027668649330735207,
-0.04319273307919502,
0.016192756593227386,
0.016798177734017372,
-0.003499243874102831,
0.046626463532447815,
-0.022030100226402283,
-0.06744572520256042,
-0.01398793887346983,
-0.047963812947273254,
-0.031933706253767014,
0.013409626670181751,
0.0034811715595424175,
-0.023024076595902443,
0.009135534055531025,
-0.01064456906169653,
-0.05233730375766754,
0.028102384880185127,
0.06466259062290192,
-0.05136140063405037,
-0.033126477152109146,
-0.019734922796487808,
0.013400590047240257,
-0.0009262039675377309,
-0.0736987292766571,
-0.03612647205591202,
0.05222886800765991,
-0.011954808607697487,
-0.03997586667537689,
-0.04420477896928787,
-0.049626462161540985,
-0.01995178870856762,
-0.023909617215394974,
-0.003539906581863761,
-0.01915660873055458,
0.03578310087323189,
0.003083581570535898,
-0.016237936913967133,
0.03260238096117973,
0.0416746623814106,
0.04731320962309837,
0.011240953579545021,
0.010129508562386036,
-0.0068448735401034355,
-0.04499996080994606,
-0.024361424148082733,
0.057216815650463104,
-0.012921675108373165,
-0.014502999372780323,
-0.023746967315673828,
0.010834327898919582,
-0.06599994003772736,
-0.01571384072303772,
-0.04601200670003891,
-0.00610391004011035,
-0.044385503977537155,
-0.0015621221391484141,
0.024975880980491638,
-0.03556623309850693,
-0.052192725241184235,
-0.015469865873456001,
0.00011210457159904763,
0.0021336576901376247,
-0.020656608045101166,
0.01639155112206936,
0.01213553175330162,
-0.021361427381634712,
0.0063795121386647224,
0.03921683132648468,
0.032114427536726,
-0.004382526036351919,
0.012225892394781113,
-0.006993969436734915,
0.0028554191812872887,
0.01007529255002737,
0.03565659373998642,
-0.019536126405000687,
-0.026006000116467476,
0.010499990545213223,
0.020421668887138367,
0.02338552102446556,
-0.05334934964776039,
0.06007223576307297,
0.019572271034121513,
-0.07344571501016617,
-0.07084330916404724,
0.02929515391588211,
-0.031698767095804214,
0.0494457371532917,
0.025536121800541878,
0.04008430242538452,
0.0354578010737896,
0.03509635478258133,
0.00968673825263977,
-0.02062046341598034,
-0.026765035465359688,
0.025789134204387665,
0.03453611209988594,
-0.01872287504374981,
0.042397551238536835,
0.00869728159159422,
0.0026114434003829956,
0.054542120546102524,
0.05996380001306534,
0.09108425676822662,
-0.056313201785087585,
0.05295176059007645,
-0.016852393746376038,
-0.010716858319938183,
-0.002986443229019642,
-0.021325282752513885,
0.0039036108646541834,
0.01758432202041149,
0.05468669906258583,
0.06383126974105835,
0.036252979189157486,
-0.01724998466670513,
0.02504817023873329,
0.012966855429112911,
-0.0124789047986269,
0.014774083159863949,
0.010743966326117516,
0.039831288158893585,
0.07026499509811401,
-0.023331305012106895,
0.023801183328032494,
0.051072243601083755,
0.05580718070268631,
-0.03556623309850693,
-0.015795165672898293,
-0.041819240897893906,
-0.04340960085391998,
0.043734900653362274,
-0.07156620174646378,
0.013888541609048843,
-0.025879494845867157,
0.004423188976943493,
0.008986437693238258,
-0.020566247403621674,
0.03688550740480423,
-0.044963814318180084,
0.02360238879919052,
-0.014512035064399242,
0.05685536935925484,
0.006727403495460749,
-0.018849380314350128,
0.00985842477530241,
0.0015079053118824959,
0.016012033447623253,
-0.027144553139805794,
-0.02618672326207161,
-0.010554207488894463,
-0.027542144060134888,
-0.05103609710931778,
-0.014177697710692883,
0.028915636241436005,
0.035819243639707565,
-0.0008844118565320969,
-0.000704253907315433,
-0.04156622663140297,
-0.005042164120823145,
0.007188246585428715,
-0.04066261276602745,
0.02172287181019783,
-0.008408124558627605,
-0.013798180036246777,
-0.003722888184711337,
-0.0063840304501354694,
0.033469848334789276,
-0.01069878600537777,
0.05493970960378647,
0.017105406150221825,
0.02672889083623886,
0.01703311689198017,
0.020783113315701485,
0.012894567102193832,
-0.03462647646665573,
-0.009587340988218784,
0.006230416242033243,
0.03621683642268181,
0.013608421199023724,
0.02461443655192852,
0.010518062859773636,
0.023421665653586388,
0.03896382078528404,
0.0208373311907053,
0.037590328603982925,
-0.001774471253156662,
-0.05071079730987549,
-0.02906021475791931,
-0.012469868175685406,
0.0008448787848465145,
-0.04702405259013176,
0.022246968001127243,
0.03668671473860741,
-0.00429216492921114,
-0.004276351537555456,
0.03243973106145859,
0.05891561135649681,
-0.026566240936517715,
0.036144547164440155,
-0.013310229405760765,
0.02105419896543026,
-0.006483427714556456,
-0.0088057154789567,
-0.012225892394781113,
-0.016400586813688278,
-0.022228896617889404,
0.014412637799978256,
0.029367443174123764,
0.02828310802578926,
-0.008543667383491993,
-0.001206324202939868,
-0.0015180709306150675,
0.010987942107021809,
0.02551804855465889,
0.03722888231277466,
-0.004332827404141426,
0.030343346297740936,
0.06213247403502464,
0.02528310939669609,
0.03417466953396797,
-0.0581565760076046,
0.010599387809634209,
0.03305418789386749,
0.040734902024269104,
0.020313234999775887,
0.05009634047746658,
0.021108414977788925,
0.0009612190187908709,
-0.029819250106811523,
-0.02092769183218479,
0.03253009170293808,
-0.017882514744997025,
-0.03722888231277466,
-0.012984927743673325,
-0.04865055903792381,
-0.02951202169060707,
-0.02072889730334282,
0.003413400612771511,
0.07225294411182404,
0.14891552925109863,
0.08002402633428574,
0.020114440470933914,
0.0037183701060712337,
0.005548187997192144,
-0.027759011834859848,
0.0628192201256752,
0.03166262060403824,
-0.027596360072493553,
-0.0034789126366376877,
-0.013400590047240257,
-0.011728905141353607,
-0.01738552749156952,
0.026493951678276062,
-0.04463851451873779,
0.010671677067875862,
0.01715058647096157,
0.009180714376270771,
0.03719273954629898,
-0.04297586530447006,
0.09021678566932678,
0.08465052396059036,
0.02906021475791931,
0.011204808950424194,
0.018090344965457916,
-0.06813246756792068,
-0.007649089675396681,
0.037807196378707886,
0.038927674293518066,
0.07203608006238937,
0.0118554113432765,
-0.033361416310071945,
-0.006713849492371082,
0.008484932594001293,
0.015795165672898293,
-0.019463837146759033,
0.0365421362221241,
0.05266260355710983,
-0.020566247403621674,
0.07116860896348953,
-0.030831297859549522,
0.009054209105670452,
-0.10004810243844986,
0.006090356037020683,
0.0038674664683640003,
-0.04778309166431427,
0.05024091899394989,
0.03375900536775589,
0.01375299971550703,
0.040156591683626175,
0.01984335482120514,
0.02251805178821087,
0.034373462200164795,
-0.02750599943101406,
-0.037698760628700256,
0.012984927743673325,
0.021578293293714523,
-0.08183125406503677,
0.006736439652740955,
-0.07384330779314041,
0.024993954226374626,
-0.011439749039709568,
0.02381925657391548,
0.03863852098584175,
-0.1246986836194992,
0.0285361185669899,
0.025789134204387665,
-0.02985539473593235,
-0.0639035552740097,
-0.010816255584359169,
0.0003247361455578357,
0.08110836148262024,
-0.05606019124388695,
-0.05746982991695404,
-0.07691559195518494,
-0.009194268845021725,
0.012605410069227219,
-0.012605410069227219,
-0.03222286328673363,
0.020638536661863327,
0.03874695301055908,
-0.03518671542406082,
0.060325246304273605,
-0.012578302063047886,
0.032710812985897064,
0.022698774933815002,
-0.012740952894091606,
0.04637345299124718,
-0.04575899615883827,
-0.033686716109514236,
-0.04915658384561539,
-0.006899090018123388,
0.01826203241944313,
-0.027234915643930435,
0.0648433119058609,
-0.025933710858225822,
0.015469865873456001,
0.015442756935954094,
-0.02828310802578926,
0.018243959173560143,
-0.00784788466989994,
-0.0623493418097496,
-0.056783080101013184,
0.002509786980226636,
0.012578302063047886,
0.015966853126883507,
-0.05627705901861191,
-0.013346374034881592,
-0.016635527834296227,
-0.00004758090653922409,
-0.02642166242003441,
-0.05833729729056358,
0.02137949876487255,
0.010373484343290329,
0.039180688560009,
0.041493937373161316,
0.024379495531320572,
0.02761443331837654,
0.023692749440670013,
-0.01421384233981371,
-0.010219870135188103,
0.010617460124194622,
-0.02842768467962742,
-0.049192726612091064,
-0.044385503977537155,
-0.018668657168745995,
0.057216815650463104,
-0.008277101442217827,
-0.04221682995557785,
-0.035927679389715195,
-0.04977104067802429,
0.06184331700205803,
-0.012713843956589699,
-0.008941257372498512,
-0.035692740231752396,
-0.0021585070062428713,
-0.04901200532913208,
0.0012876495020464063,
-0.006835837382823229,
-0.03744575008749962,
-0.041493937373161316,
0.04554212838411331,
0.004743971861898899,
-0.03430117294192314,
0.03307225927710533,
-0.028120456263422966,
0.025319254025816917,
-0.00796535424888134,
-0.012885530479252338,
0.017683718353509903,
0.042614419013261795,
-0.05989151448011398,
-0.01215360313653946,
0.013075289316475391,
0.0499156191945076,
-0.07583125680685043,
-0.00010857482993742451,
-0.042289119213819504,
-0.009587340988218784,
0.0530240498483181,
-0.034373462200164795,
-0.026548169553279877,
-0.02618672326207161,
0.0229337140917778,
0.05071079730987549,
-0.08255414664745331,
-0.042722854763269424,
-0.006415656767785549,
-0.09542160481214523,
-0.019120464101433754,
0.044710803776979446,
0.0032349368557333946,
0.032710812985897064,
-0.041204784065485,
0.007676198147237301,
-0.009361437521874905,
0.07019270956516266,
0.019192753359675407,
-0.04402405768632889,
-0.050060197710990906,
0.0405903235077858,
0.004802706651389599,
0.0822649896144867,
-0.022572269663214684,
-0.017466852441430092,
0.012623482383787632,
-0.03128310292959213,
-0.06285536289215088,
0.02549997717142105,
-0.00423343013972044,
-0.017548177391290665,
-0.00576053699478507,
-0.02282528020441532,
-0.030686719343066216,
-0.00980420783162117,
0.003119726199656725,
0.0018004501471295953,
0.03516864404082298,
0.05913247540593147,
-0.03914454206824303,
0.05287947133183479,
0.01759335771203041,
-0.018442753702402115,
-0.017304200679063797,
0.03961442410945892,
0.011349387466907501,
-0.0634336769580841,
-0.03518671542406082,
0.024433713406324387,
-0.08356618881225586,
-0.07532523572444916,
-0.00417695427313447,
0.037048161029815674,
-0.006659632548689842,
-0.007938246242702007,
-0.04359032213687897,
0.04445779323577881,
0.02271684631705284,
0.01691564731299877,
0.008905112743377686,
0.04666261002421379,
0.0811806470155716,
0.05772284045815468,
0.03936140984296799,
-0.029385516420006752,
0.004131773486733437,
0.008823786862194538,
0.03397587314248085,
0.006338849663734436,
0.019969861954450607,
-0.05067465454339981,
0.05703609436750412,
-0.021307209506630898,
0.05248188227415085,
-0.0015112938126549125,
0.05895175412297249,
-0.012487940490245819,
0.047530077397823334,
-0.011204808950424194,
-0.015560227446258068,
-0.015641551464796066,
0.014584324322640896,
-0.008832823485136032,
-0.006311741191893816,
0.03565659373998642,
-0.003356924746185541,
-0.026096362620592117,
0.03733731433749199,
0.010897580534219742,
-0.007387041579931974,
0.10727701336145401,
0.008385534398257732,
-0.04879513755440712,
-0.040373459458351135,
-0.00204668496735394,
-0.0074096317403018475,
-0.04922887310385704,
-0.010798183269798756,
-0.005073790438473225,
0.10373484343290329,
-0.012009025551378727,
-0.035024065524339676,
-0.0311746709048748,
0.02875298634171486,
-0.0670119896531105,
-0.025355398654937744,
-0.05624091252684593,
0.04565056040883064,
0.04453008249402046,
0.031265031546354294,
-0.033596355468034744,
-0.03251202031970024,
0.07283125817775726,
0.012930711731314659,
-0.02362046018242836,
0.00581927178427577,
-0.04980718344449997,
0.015614443458616734,
0.04066261276602745,
0.009605413302779198,
0.037265025079250336,
-0.0029277082066982985,
0.022969858720898628,
0.048758991062641144,
0.060325246304273605,
0.03506020829081535,
0.005566260311752558,
0.011006014421582222,
-0.045939717441797256,
-0.025897568091750145,
-0.049192726612091064,
-0.05269874632358551,
0.07662643492221832,
-0.06946981698274612,
-0.013518060557544231,
-0.013734927400946617,
0.03910839930176735,
-0.031030092388391495,
-0.002706322818994522,
0.026475880295038223,
-0.0530240498483181,
0.026493951678276062,
-0.012451795861124992,
-0.027252987027168274,
0.006740957964211702,
0.03007226251065731,
0.01628311723470688,
-0.07872281968593597,
-0.0416746623814106,
-0.004874995443969965,
-0.03383129462599754,
-0.02015058510005474,
-0.005335838533937931,
0.016843358054757118,
-0.02215660735964775,
0.014954806305468082,
-0.06657825410366058,
-0.01553311850875616,
-0.01638251543045044,
-0.01883130893111229,
-0.005832826253026724,
-0.06169873848557472,
-0.024361424148082733,
0.01792769506573677,
-0.01917468197643757,
-0.011873483657836914,
-0.044168636202812195,
-0.006849391385912895,
0.053530070930719376,
0.013265048153698444,
0.000310334813548252,
0.022644558921456337,
0.045722849667072296,
-0.0034066233783960342,
-0.009094871580600739,
0.02784937247633934,
-0.019301187247037888,
0.0018320766976103187,
0.03417466953396797,
-0.050855375826358795,
0.014412637799978256,
-0.023240942507982254,
-0.035584304481744766,
0.0349879190325737,
-0.04709634184837341,
0.010265051387250423,
-0.010463845916092396,
-0.0035082800313830376,
0.0009956692811101675,
-0.06553006172180176,
-0.03430117294192314,
-0.007106921169906855,
-0.0367770753800869,
-0.0013350892113521695,
-0.01716865971684456,
0.0027673167642205954,
0.02730720490217209,
0.0349879190325737,
-0.010454810224473476,
0.012216856703162193,
0.006203307770192623,
0.006198789458721876,
0.007698788307607174,
-0.02752407267689705,
-0.007292162161320448,
-0.024759013205766678,
0.0033004488795995712,
-0.02204817347228527,
-0.030325274914503098,
0.0534939281642437,
-0.026132507249712944,
0.03730117157101631,
-0.00629818718880415,
-0.08522883802652359,
0.01421384233981371,
0.05812042951583862,
-0.017891550436615944,
-0.015216853469610214,
0.004192767199128866,
-0.044385503977537155,
-0.021433716639876366,
0.009515051729977131,
-0.024686725810170174,
0.0009860683931037784,
0.07113246619701385,
-0.026331301778554916,
-0.00599095830693841,
0.021885521709918976,
-0.005010537803173065,
-0.010689749382436275,
-0.04109634831547737,
-0.03374093398451805,
-0.054542120546102524,
-0.02662045881152153,
0.004902103915810585,
0.0019834318663924932,
-0.0034088825341314077,
-0.06086741387844086,
-0.06325295567512512,
-0.01041866559535265,
-0.02642166242003441,
0.011963844299316406,
-0.0070572225376963615,
0.015524082817137241,
0.042939718812704086,
0.03798791766166687,
-0.03453611209988594,
-0.03697587177157402,
-0.01948191039264202,
-0.003033882938325405,
-0.01425902359187603,
-0.007640053518116474,
0.0732288509607315,
0.02405419573187828,
-0.01748492382466793,
-0.0634336769580841,
-0.0007483050576411188,
0.04861441254615784,
-0.05624091252684593,
-0.01893974281847477,
0.005227405112236738,
-0.013879505917429924,
-0.047277066856622696,
0.004938248544931412,
0.00992167741060257,
-0.018885524943470955,
-0.005277103744447231,
0.0049969833344221115,
0.056096334010362625,
0.02360238879919052,
0.017231911420822144,
-0.002706322818994522,
0.011069267056882381,
-0.018027091398835182,
0.04189153015613556,
0.031265031546354294,
-0.010816255584359169,
-0.024036122485995293,
-0.03130117803812027,
0.05403609573841095,
-0.03777104988694191,
0.0007646830636076629,
0.03267467021942139,
-0.00997589435428381,
-0.02998190000653267,
0.031030092388391495,
0.0004215922381263226,
0.0024804193526506424,
-0.05157826840877533,
0.08204811811447144,
-0.013391554355621338,
-0.05233730375766754,
-0.00217319093644619,
0.011891555972397327,
-0.01937347650527954,
0.027560215443372726,
0.008823786862194538,
0.038710810244083405,
0.010563243180513382,
0.046626463532447815,
-0.014638541266322136,
-0.05801199749112129,
0.05526500940322876,
-0.017629502341151237,
0.018243959173560143,
0.0013068512780591846,
-0.010942760854959488,
-0.03453611209988594,
0.00028110857238061726,
-0.04579513892531395,
-0.003822285681962967,
0.061987895518541336,
0.04865055903792381,
-0.047060199081897736,
-0.04232526198029518,
0.03990357741713524,
-0.003605418372899294,
-0.03139153867959976,
0.054433684796094894,
-0.06419271230697632,
-0.022319257259368896,
0.012984927743673325,
-0.03562045097351074,
-0.01928311586380005,
0.017015045508742332,
-0.009587340988218784,
0.039036110043525696,
-0.01059035211801529,
-0.05168670043349266,
0.014918661676347256,
-0.0210722703486681,
-0.017204804345965385,
-0.008774088695645332,
0.059204764664173126,
-0.0715300589799881,
-0.015786129981279373,
0.09339750558137894,
-0.009542159736156464
] |
724,854 | scipy.sparse._dok | resize | Resize the array/matrix in-place to dimensions given by ``shape``
Any elements that lie within the new shape will remain at the same
indices, while non-zero elements lying outside the new shape are
removed.
Parameters
----------
shape : (int, int)
number of rows and columns in the new array/matrix
Notes
-----
The semantics are not identical to `numpy.ndarray.resize` or
`numpy.resize`. Here, the same data will be maintained at each index
before and after reshape, if that index is within the new bounds. In
numpy, resizing maintains contiguity of the array, moving elements
around in the logical array but not within a flattened representation.
We give no guarantees about whether the underlying data attributes
(arrays, etc.) will be modified in place or replaced with new objects.
| def resize(self, *shape):
is_array = isinstance(self, sparray)
shape = check_shape(shape, allow_1d=is_array)
if len(shape) != len(self.shape):
# TODO implement resize across dimensions
raise NotImplementedError
if self.ndim == 1:
newN = shape[-1]
for i in list(self._dict):
if i >= newN:
del self._dict[i]
self._shape = shape
return
newM, newN = shape
M, N = self.shape
if newM < M or newN < N:
# Remove all elements outside new dimensions
for i, j in list(self.keys()):
if i >= newM or j >= newN:
del self._dict[i, j]
self._shape = shape
| (self, *shape) | [
0.006301202345639467,
-0.0215372946113348,
-0.0306125245988369,
-0.01820659264922142,
-0.04775254428386688,
-0.04842616990208626,
-0.013715757988393307,
0.03276438266038895,
0.05538696423172951,
0.033456720411777496,
-0.020171333104372025,
-0.021948955953121185,
0.014080638065934181,
-0.020526858046650887,
0.0053843236528337,
0.021125635132193565,
0.07986201345920563,
-0.011161595582962036,
-0.036263491958379745,
0.007339708041399717,
0.01975967362523079,
-0.0017074528150260448,
0.0057258144952356815,
-0.0341116338968277,
0.0076344190165400505,
0.025111250579357147,
0.03858375549316406,
0.007573605980724096,
0.0612250491976738,
-0.03579569607973099,
-0.025186099112033844,
0.031941063702106476,
-0.0033213465940207243,
0.09849897772073746,
-0.00008486099250148982,
-0.018627608194947243,
-0.01962869055569172,
0.03130486235022545,
0.06066369265317917,
0.0500728078186512,
-0.03910768777132034,
0.014258400537073612,
0.02262257970869541,
-0.044085029512643814,
0.09071486443281174,
0.07589510828256607,
0.008598077110946178,
0.07593253254890442,
-0.05029734969139099,
0.054339099675416946,
0.014127417467534542,
-0.027824463322758675,
0.03325089067220688,
0.008686958812177181,
-0.05067158490419388,
0.03536532446742058,
0.034878816455602646,
0.07293864339590073,
0.02127533033490181,
-0.06979505717754364,
-0.0024348744191229343,
-0.021817972883582115,
0.00880858488380909,
-0.051045823842287064,
-0.0022957054898142815,
-0.0764564648270607,
-0.0019892994314432144,
-0.0018629947444424033,
0.020358450710773468,
-0.016148293390870094,
-0.0031295504886657,
0.001648978446610272,
0.009290414862334728,
-0.0025986027903854847,
-0.008841331116855145,
0.04135310277342796,
-0.04842616990208626,
-0.0003625413519330323,
0.014539077877998352,
-0.033101193606853485,
-0.0013215217040851712,
0.02005906216800213,
-0.01522205863147974,
0.03437359631061554,
-0.013154403306543827,
0.03261468932032585,
0.02793673425912857,
0.05815631151199341,
-0.0004096132470294833,
-0.06605269759893417,
0.0403052419424057,
0.034654274582862854,
0.013697045855224133,
-0.0023857560008764267,
0.016241852194070816,
0.013865452259778976,
-0.02978920377790928,
-0.02978920377790928,
-0.002248925855383277,
-0.02200509048998356,
-0.06002749130129814,
-0.06721282750368118,
0.03839663788676262,
-0.0061515080742537975,
-0.02958337403833866,
0.04449668899178505,
0.07843991369009018,
-0.033756107091903687,
-0.06852265447378159,
0.03665643930435181,
0.028479376807808876,
0.05164460092782974,
-0.04636786878108978,
0.04026781767606735,
-0.014127417467534542,
-0.002624331507831812,
0.012284304015338421,
-0.019647402688860893,
-0.003354092128574848,
0.008074146695435047,
-0.06324592232704163,
0.0529170036315918,
0.060813385993242264,
0.0008355993195436895,
0.015615006908774376,
0.02157471887767315,
-0.007063708733767271,
0.0222670566290617,
-0.004568020813167095,
-0.03955677151679993,
-0.04232611879706383,
-0.01662544533610344,
-0.059054479002952576,
0.009786277078092098,
-0.011039968580007553,
0.009608515538275242,
-0.03843406215310097,
-0.04808935523033142,
-0.02331491746008396,
-0.03568342328071594,
0.00729760667309165,
0.0306125245988369,
0.001197555917315185,
0.022285766899585724,
-0.008504518307745457,
-0.015240770764648914,
0.0444592647254467,
-0.008163027465343475,
0.0040932088159024715,
0.03137970715761185,
-0.08225712180137634,
0.0278057511895895,
0.06979505717754364,
-0.02032102830708027,
0.00971143040806055,
-0.04371079057455063,
0.003737684339284897,
-0.03368126228451729,
-0.010300852358341217,
0.057931769639253616,
-0.011227087117731571,
0.013940299861133099,
-0.008584043942391872,
-0.010553461499512196,
-0.10209164768457413,
-0.05849312245845795,
0.07290121912956238,
-0.034916240721940994,
-0.056584518402814865,
0.035739559680223465,
0.06631466001272202,
-0.021425023674964905,
0.00461012264713645,
-0.00986112467944622,
-0.032015908509492874,
0.06710055470466614,
-0.02672046609222889,
-0.023838847875595093,
0.0236143060028553,
-0.028123853728175163,
0.013201182708144188,
-0.03268953412771225,
-0.006324592512100935,
-0.01744876429438591,
-0.0008899805252440274,
0.056322552263736725,
-0.061337318271398544,
0.04026781767606735,
-0.00021182355703786016,
0.01057217363268137,
-0.02526094578206539,
0.008387569338083267,
-0.02632751874625683,
0.005038155242800713,
0.022547733038663864,
0.01827208325266838,
-0.009491566568613052,
-0.016831275075674057,
0.01314504723995924,
0.051831718534231186,
-0.07495951652526855,
0.001486419583670795,
-0.00224658683873713,
-0.00046107074012979865,
0.012920506298542023,
-0.026364943012595177,
0.03532790020108223,
-0.018122389912605286,
0.042139001190662384,
-0.005618221592158079,
-0.024194372817873955,
0.024269219487905502,
-0.008527908474206924,
-0.055723775178194046,
0.07582025974988937,
-0.04457153379917145,
-0.050185080617666245,
-0.021518582478165627,
0.04535743221640587,
-0.01113352831453085,
0.049661148339509964,
0.02499897964298725,
-0.020246179774403572,
-0.011301933787763119,
-0.009379295632243156,
-0.011844576336443424,
-0.0004166301805526018,
-0.056883908808231354,
0.014735551550984383,
-0.012424643151462078,
-0.002537789521738887,
-0.03796626627445221,
-0.005912932567298412,
-0.024755727499723434,
0.033456720411777496,
0.008294010534882545,
-0.025017691776156425,
-0.06463059782981873,
0.022510308772325516,
0.05501272529363632,
-0.03433617576956749,
-0.029471103101968765,
-0.05946613848209381,
0.002358857775107026,
-0.0271134153008461,
-0.008130282163619995,
-0.002947110217064619,
0.04951145499944687,
0.04749057814478874,
-0.0061421520076692104,
-0.0417647622525692,
-0.03021957539021969,
-0.008574687875807285,
0.005875508766621351,
0.00016182793478947133,
0.029733069241046906,
0.015324973501265049,
-0.01314504723995924,
-0.023165222257375717,
-0.017832355573773384,
0.02832968346774578,
-0.0015893344534561038,
0.04666725918650627,
0.040716901421546936,
0.03830307722091675,
0.03605766221880913,
0.04816420376300812,
-0.0013811655808240175,
-0.03152940422296524,
-0.0032371433917433023,
0.006202965509146452,
0.06803614646196365,
-0.028741342946887016,
-0.01037569995969534,
0.042700354009866714,
0.02750636264681816,
0.004865070804953575,
0.014539077877998352,
0.0022021462209522724,
0.0005648627993650734,
0.028123853728175163,
-0.046293020248413086,
0.06990732997655869,
0.004755139350891113,
0.0068391673266887665,
0.03398064896464348,
-0.00023506712750531733,
-0.04509546607732773,
-0.04034266620874405,
0.022285766899585724,
0.017308425158262253,
0.002701517893001437,
-0.053029272705316544,
0.05052189156413078,
-0.03888314589858055,
0.005585475824773312,
-0.0693833976984024,
0.04816420376300812,
0.04067947715520859,
0.010731223970651627,
0.0028395173139870167,
0.02529837004840374,
-0.015296906232833862,
-0.017364561557769775,
0.059653256088495255,
-0.056023165583610535,
-0.018590185791254044,
-0.02200509048998356,
0.012789523229002953,
0.05179429426789284,
-0.012826946564018726,
-0.007582961581647396,
-0.12379734218120575,
0.028516801074147224,
0.062160637229681015,
0.0020746721420437098,
0.08584979176521301,
-0.000730345374904573,
-0.0037330063059926033,
0.04812677949666977,
-0.010665732435882092,
-0.06687601655721664,
-0.09692718088626862,
-0.09370875358581543,
-0.06451832503080368,
-0.06092565879225731,
-0.053515780717134476,
-0.02889103628695011,
-0.008513874374330044,
-0.0016302665462717414,
0.033400584012269974,
-0.006885946728289127,
0.02400725521147251,
0.028460664674639702,
-0.018992489203810692,
-0.0666140466928482,
0.02585972286760807,
0.03373739495873451,
-0.0019963164813816547,
-0.007419233210384846,
-0.015268838033080101,
0.03910768777132034,
-0.00986112467944622,
-0.008172383531928062,
0.014772974886000156,
0.013828028924763203,
-0.015381108969449997,
-0.04262550547719002,
0.011105460114777088,
-0.02110692299902439,
-0.0011800136417150497,
-0.03109903074800968,
-0.005833407398313284,
-0.03074350580573082,
0.022547733038663864,
-0.008317400701344013,
-0.03766687586903572,
-0.0026828059926629066,
0.017336493358016014,
-0.034916240721940994,
0.04917464032769203,
0.02464345656335354,
-0.00687659066170454,
-0.004507207777351141,
0.011788440868258476,
0.009524311870336533,
-0.07918838411569595,
-0.03231529891490936,
-0.0014115723315626383,
0.0014209281653165817,
-0.012480778619647026,
-0.06388212740421295,
-0.022678716108202934,
0.0333070233464241,
0.01705581694841385,
0.08944246172904968,
-0.05564892664551735,
0.04483349993824959,
-0.019441572949290276,
-0.005847441032528877,
0.03955677151679993,
-0.003045347286388278,
0.06507968157529831,
-0.02889103628695011,
0.005758560262620449,
0.022753562778234482,
-0.029527239501476288,
-0.01641961559653282,
-0.03568342328071594,
-0.003379821078851819,
-0.0639195516705513,
0.01949770748615265,
-0.01615764945745468,
-0.008719704113900661,
-0.034485869109630585,
0.07843991369009018,
-0.04535743221640587,
0.07140427082777023,
-0.05231822654604912,
0.033531565219163895,
-0.0004487911064643413,
-0.06062626838684082,
-0.06751221418380737,
0.04895009845495224,
0.025223521515727043,
-0.03843406215310097,
-0.0022734850645065308,
0.1084536612033844,
0.005739848129451275,
0.07151654362678528,
0.09206211566925049,
0.04109113663434982,
0.00670350668951869,
-0.0055199842900037766,
0.010908986441791058,
-0.012527558021247387,
0.030687371268868446,
0.013378945179283619,
0.05804403871297836,
0.030369270592927933,
-0.006558489985764027,
0.05231822654604912,
0.00006329855386866257,
0.024418914690613747,
-0.0005984855815768242,
-0.046854376792907715,
-0.04221384599804878,
-0.013659622520208359,
0.023932406678795815,
-0.012471422553062439,
-0.03117387741804123,
0.034616850316524506,
-0.0062591009773314,
0.04835132136940956,
-0.03132357448339462,
-0.026308806613087654,
0.010908986441791058,
0.008350146003067493,
-0.020433297380805016,
0.007073064800351858,
0.032801806926727295,
-0.0325772650539875,
-0.009313804097473621,
-0.026739178225398064,
0.04311201348900795,
0.003835921408608556,
0.009510278701782227,
-0.02374528907239437,
-0.03248370438814163,
-0.01989065669476986,
0.05501272529363632,
-0.011039968580007553,
-0.011769729666411877,
-0.05916674807667732,
0.0499979592859745,
-0.07121715694665909,
-0.003950531128793955,
-0.03645060956478119,
0.0107686473056674,
-0.07888899743556976,
0.009201533161103725,
-0.0008309214026667178,
-0.034878816455602646,
-0.02962079830467701,
0.0006373710930347443,
-0.021948955953121185,
-0.014005791395902634,
-0.025747451931238174,
0.02499897964298725,
-0.019965503364801407,
0.08457738906145096,
-0.04984826594591141,
-0.00507090101018548,
-0.028610359877347946,
0.01718679815530777,
-0.013865452259778976,
0.06002749130129814,
0.026570772752165794,
-0.03446715697646141,
0.028965884819626808,
0.03588925302028656,
0.01530626229941845,
-0.0030968047212809324,
-0.03594538941979408,
0.01798205077648163,
0.010806071572005749,
-0.011741661466658115,
-0.0008513874490745366,
-0.03289536386728287,
0.0735374167561531,
-0.021219193935394287,
-0.017093239352107048,
-0.014866534620523453,
0.10081923753023148,
0.019020557403564453,
-0.06844780594110489,
-0.018300151452422142,
-0.052355650812387466,
0.023202646523714066,
0.008991025388240814,
-0.014408094808459282,
0.010927697643637657,
0.052355650812387466,
0.001281759119592607,
-0.006647371221333742,
0.014305179938673973,
0.001197555917315185,
0.04696664586663246,
-0.03373739495873451,
-0.005800661630928516,
-0.07701781392097473,
0.009028448723256588,
-0.0264585018157959,
0.0024980269372463226,
0.034616850316524506,
-0.012883082032203674,
-0.030462829396128654,
0.07548344880342484,
0.010169869288802147,
-0.006011169403791428,
-0.0005683712661266327,
-0.015231414698064327,
-0.016578665003180504,
0.035009801387786865,
-0.0584556981921196,
-0.013023421168327332,
0.059952642768621445,
-0.07316318154335022,
0.07552087306976318,
0.005342222284525633,
-0.029901474714279175,
0.001634944579564035,
-0.014829110354185104,
0.04202672839164734,
0.036955829709768295,
0.027001144364476204,
-0.008654212579131126,
-0.004851037170737982,
0.024250507354736328,
0.06302138417959213,
-0.023109087720513344,
-0.004963308107107878,
0.0043060556054115295,
0.022117361426353455,
-0.11953105032444,
0.08742158114910126,
0.022061225026845932,
-0.022042514756321907,
-0.008700991980731487,
-0.051607176661491394,
-0.04165249317884445,
-0.02464345656335354,
0.06088823452591896,
0.034616850316524506,
0.027188261970877647,
-0.02694500796496868,
0.01383738499134779,
-0.06320849806070328,
0.009926616214215755,
-0.0012209457345306873,
-0.018543405458331108,
0.004619478713721037,
0.07263924926519394,
0.0142677566036582,
0.003169313073158264,
0.02447504922747612,
-0.04883782938122749,
0.05400228872895241,
0.034616850316524506,
0.0637698546051979,
0.014080638065934181,
0.03132357448339462,
-0.03209075704216957,
-0.03452329337596893,
0.012789523229002953,
-0.016980968415737152,
0.007199369370937347,
0.03343800827860832,
-0.027656057849526405,
0.020919805392622948,
0.014061926864087582,
0.00029938897932879627,
0.016204429790377617,
0.010450546629726887,
-0.004921206273138523,
0.04221384599804878,
-0.04666725918650627,
0.012770811095833778,
-0.05344093218445778,
0.040230393409729004,
0.025841012597084045,
0.020433297380805016,
0.034916240721940994,
-0.04198930412530899,
-0.024493761360645294,
0.027468940243124962,
0.023240070790052414,
-0.06279683858156204,
-0.048239048570394516,
-0.02170570194721222,
0.0005309476400725543,
-0.006277812644839287,
0.032240450382232666,
0.05067158490419388,
-0.024063389748334885,
-0.0036581591702997684,
0.006899980362504721,
0.05643482506275177,
0.014539077877998352,
0.007975909858942032,
-0.001039090333506465,
0.02750636264681816,
0.02193024381995201,
-0.013594130985438824,
-0.08757127821445465,
0.01748618856072426,
-0.039294805377721786,
-0.034916240721940994,
0.011395493522286415,
-0.041315678507089615,
-0.0166909359395504,
-0.0529170036315918,
-0.010993189178407192,
-0.036300916224718094,
-0.04344882816076279,
0.013341521844267845,
-0.004256937187165022,
-0.024662166833877563,
-0.049099795520305634,
-0.011376781389117241,
0.0022980442736297846,
-0.07159139215946198,
0.03166038542985916,
-0.053777746856212616,
0.017074527218937874,
-0.011217731051146984,
-0.07039383798837662,
0.028310971334576607,
0.004130632616579533,
-0.0034476513974368572,
0.04120340943336487,
-0.022454174235463142,
0.0026711111422628164,
0.020246179774403572,
-0.00021094644034747034,
-0.036525458097457886,
0.0541519820690155,
0.015689853578805923,
-0.029377544298768044,
0.026439789682626724,
0.0066614048555493355,
0.01566178724169731,
-0.05093355104327202,
0.00670350668951869,
0.07552087306976318,
0.039631616324186325,
-0.0034219224471598864,
-0.04146537557244301,
-0.03665643930435181,
0.0014010468730702996,
0.015652431175112724,
-0.056621942669153214,
-0.035907965153455734,
-0.03218431770801544,
0.07671842724084854,
-0.01569920964539051,
-0.02045200951397419,
0.018580829724669456,
0.0429997444152832,
-0.009608515538275242,
-0.030724795535206795,
-0.020526858046650887,
-0.009898548014461994,
-0.011966203339397907,
0.03259597718715668,
0.010684444569051266,
-0.012424643151462078,
0.006553811952471733,
0.0125182019546628,
-0.010609596967697144,
-0.03515949472784996,
0.04468380659818649,
-0.026364943012595177,
0.016812562942504883,
0.029976321384310722,
0.012143965810537338,
-0.012012982740998268,
0.021686989814043045,
-0.041016291826963425,
0.05677163600921631,
0.08128411322832108,
-0.03553372994065285,
0.052430495619773865,
-0.024624744430184364,
-0.026739178225398064,
0.023277493193745613,
0.03733006492257118,
-0.012153321877121925,
-0.010300852358341217,
-0.010235360823571682,
-0.00047393509885296226,
0.03766687586903572,
-0.06635208427906036,
-0.020901093259453773,
0.031548112630844116,
0.06803614646196365,
-0.04112856090068817,
0.03701196238398552,
0.02556033432483673,
0.03645060956478119,
-0.033887092024087906,
0.022341903299093246,
0.06204836815595627,
-0.051083244383335114,
-0.021032076328992844,
0.042662929743528366,
0.04734088480472565,
-0.04674210399389267,
0.010516038164496422,
0.013631554320454597,
-0.04206415265798569,
0.01586761698126793,
0.028217412531375885,
-0.019254453480243683,
-0.04363594576716423,
0.014417450875043869,
0.04198930412530899,
-0.03426132723689079,
0.008144316263496876,
-0.0146139245480299,
-0.025579046458005905,
0.013360233046114445,
-0.021855395287275314,
0.005646289326250553,
0.008860043250024319,
0.017654594033956528,
0.01781364530324936,
-0.0040277172811329365,
-0.0038686669431626797,
0.030331846326589584,
-0.007091776467859745,
-0.01846855878829956,
0.04311201348900795,
0.004762155935168266,
0.05317896977066994,
-0.038190808147192,
-0.03351285308599472,
0.021294042468070984,
-0.03100547194480896,
-0.017897848039865494,
0.017111951485276222,
0.0033330414444208145,
0.021612143144011497,
-0.030668659135699272,
-0.03555244207382202,
-0.03536532446742058,
-0.022884545847773552,
-0.033363159745931625,
-0.02539192885160446,
-0.011844576336443424,
-0.007030963432043791,
-0.0033634481951594353,
0.0076344190165400505,
0.08240681886672974,
0.06403181701898575,
0.008205129764974117,
0.0583060048520565,
-0.02625267207622528
] |
724,855 | scipy.sparse._dok | set_shape | null | def set_shape(self, shape):
new_matrix = self.reshape(shape, copy=False).asformat(self.format)
self.__dict__ = new_matrix.__dict__
| (self, shape) | [
0.011373995803296566,
-0.0063364519737660885,
0.019979264587163925,
-0.01903926581144333,
-0.033036716282367706,
-0.02408108115196228,
-0.00423213467001915,
0.03824944049119949,
0.011963631957769394,
0.03113962523639202,
-0.018782902508974075,
-0.003950134851038456,
0.007669542450457811,
0.02379053644835949,
0.0034950897097587585,
0.038351986557245255,
0.06538979709148407,
-0.015509993769228458,
-0.03356653451919556,
0.0016396584687754512,
0.02413235418498516,
-0.04580361768603325,
-0.014963085763156414,
-0.03671126067638397,
0.02413235418498516,
0.01999635621905327,
-0.006092906929552555,
0.009092359803617,
0.08559124171733856,
-0.05055489018559456,
-0.015954358503222466,
0.009288905188441277,
0.012331086210906506,
0.08743705600500107,
0.029242534190416336,
-0.012749813497066498,
-0.026080718263983727,
0.003977907821536064,
0.07157669961452484,
0.02968689799308777,
0.022389082238078117,
0.00465299841016531,
-0.01601417548954487,
0.009707632474601269,
0.02105599269270897,
0.03438689559698105,
0.01362144947052002,
0.04925598204135895,
-0.02028690092265606,
-0.018270175904035568,
-0.01556981261819601,
-0.024149445816874504,
-0.030233805999159813,
0.005135816056281328,
-0.05663925036787987,
-0.030524352565407753,
0.016919992864131927,
0.026371262967586517,
-0.006263815797865391,
-0.046453073620796204,
-0.04638471081852913,
0.013347995467483997,
-0.020474901422858238,
-0.040847256779670715,
0.00014607381308451295,
-0.06621015816926956,
-0.03257526084780693,
0.017278902232646942,
0.0623817965388298,
0.018970901146531105,
-0.005533179733902216,
0.0504523441195488,
0.0021865672897547483,
-0.029413443058729172,
-0.020423628389835358,
0.03286580741405487,
-0.015279266983270645,
-0.028336716815829277,
-0.01808217540383339,
-0.024918535724282265,
-0.05848506838083267,
0.07458470016717911,
-0.023773444816470146,
0.044641438871622086,
-0.00013752836093772203,
0.015339084900915623,
0.04997380077838898,
0.06368070095777512,
-0.034950897097587585,
-0.08675342053174973,
0.0064902701415121555,
-0.00860954262316227,
0.0018970902310684323,
0.0020007037092000246,
-0.041086528450250626,
-0.008293360471725464,
0.017723266035318375,
-0.009229087270796299,
0.005934815853834152,
-0.01741562969982624,
-0.09065014868974686,
-0.06986761093139648,
-0.032404351979494095,
-0.007229452021420002,
-0.04758107289671898,
-0.006750906351953745,
0.05875852331519127,
-0.029926171526312828,
-0.04047125577926636,
0.009493996389210224,
0.0084642693400383,
0.05387052521109581,
-0.02052617445588112,
0.03924071416258812,
0.01011781394481659,
0.0233632642775774,
0.03471162170171738,
-0.038762167096138,
-0.0037429076619446278,
0.014757994562387466,
-0.05551125109195709,
0.06518470495939255,
0.061048705130815506,
0.037155620753765106,
0.019551992416381836,
0.056194886565208435,
-0.007169633638113737,
0.05311852693557739,
0.09256432950496674,
-0.06607343256473541,
-0.04173598438501358,
0.001630044891498983,
-0.05216143652796745,
0.021192720159888268,
-0.023329082876443863,
0.0477861650288105,
-0.05732288584113121,
-0.06121961399912834,
-0.04344507306814194,
0.011519268155097961,
0.020509082823991776,
-0.013382176868617535,
0.02269671857357025,
-0.03090035170316696,
-0.011792723089456558,
0.03207962587475777,
0.02739671617746353,
0.017962539568543434,
-0.039411623030900955,
0.03613016754388809,
0.003821953199803829,
0.03351525962352753,
0.07226033508777618,
-0.0398218035697937,
0.010416905395686626,
-0.035719987004995346,
-0.0006318293162621558,
-0.026644717901945114,
0.04522252827882767,
0.04816216230392456,
-0.00981017854064703,
0.015313448384404182,
-0.006097179371863604,
-0.02796071767807007,
-0.060706887394189835,
0.05216143652796745,
0.07533670216798782,
-0.08367706090211868,
-0.028746899217367172,
-0.02514071762561798,
-0.0002675794530659914,
-0.06819270551204681,
0.05007634311914444,
0.01999635621905327,
-0.014399085193872452,
0.03305380418896675,
-0.023824717849493027,
0.009605087339878082,
0.009562360122799873,
-0.0012241358635947108,
0.023585446178913116,
0.015168176032602787,
-0.04542762041091919,
0.040505439043045044,
-0.014014540240168571,
0.02240617386996746,
-0.06180070340633392,
-0.013518904335796833,
0.03862544149160385,
0.035138897597789764,
-0.00417445320636034,
0.037873439490795135,
-0.04317162185907364,
-0.004738452844321728,
0.020303992554545403,
-0.014792175963521004,
0.008532633073627949,
-0.030917443335056305,
-0.018526539206504822,
0.04877743497490883,
-0.010886904783546925,
-0.03910398483276367,
-0.018748721107840538,
0.014527266845107079,
0.05851925164461136,
-0.03599344193935394,
0.01914181187748909,
-0.012630176730453968,
0.0013427040539681911,
0.012006359174847603,
-0.011143269017338753,
-0.0018650447018444538,
0.014843448996543884,
0.01900508441030979,
0.043239984661340714,
-0.05021307244896889,
-0.06121961399912834,
0.003448089584708214,
0.0674407035112381,
0.044060345739126205,
0.04313743859529495,
0.002508089877665043,
-0.03206253424286842,
-0.011527813971042633,
-0.053802162408828735,
-0.014715267345309258,
-0.0036937713157385588,
-0.09516214579343796,
-0.03488253057003021,
-0.017193447798490524,
-0.030917443335056305,
-0.08012215048074722,
-0.011835450306534767,
0.012655813246965408,
0.020850900560617447,
0.0023841809015721083,
0.006362088490277529,
-0.0029802261851727962,
-0.012971995398402214,
0.06709888577461243,
-0.010801450349390507,
-0.044538892805576324,
0.007639633491635323,
-0.03985598683357239,
-0.047751981765031815,
0.02004762925207615,
0.030814897269010544,
0.026063626632094383,
-0.020218538120388985,
-0.00731490645557642,
-0.08224142342805862,
0.011621814221143723,
0.057493798434734344,
0.014330721460282803,
0.019415264949202538,
0.017740357667207718,
-0.007930179126560688,
-0.012177268043160439,
-0.03630107641220093,
-0.027123263105750084,
0.015894539654254913,
-0.011160359717905521,
0.04412871226668358,
-0.0096905417740345,
0.06272361427545547,
-0.008314724080264568,
-0.013903449289500713,
0.02705489844083786,
-0.025773081928491592,
-0.0244229007512331,
0.034523624926805496,
0.06986761093139648,
-0.036095988005399704,
0.022816354408860207,
0.026644717901945114,
-0.02033817395567894,
-0.036369439214468,
0.0321308970451355,
0.02724289894104004,
-0.005191361531615257,
0.042624711990356445,
-0.04470980167388916,
0.04081307724118233,
0.037634167820215225,
-0.042863983660936356,
0.029703989624977112,
0.02020144648849964,
0.019739992916584015,
0.0006649429560638964,
-0.026559263467788696,
0.032746169716119766,
0.02139781042933464,
-0.04758107289671898,
0.06655197590589523,
-0.051922161132097244,
-0.005772452335804701,
-0.027704352512955666,
0.05472506955265999,
-0.0076994518749415874,
0.030866170302033424,
0.01760363020002842,
0.012014904990792274,
0.02211562730371952,
0.02984071522951126,
0.019945083186030388,
-0.06600506603717804,
0.019654538482427597,
-0.01515963114798069,
0.035138897597789764,
0.05219561606645584,
-0.0014046585420146585,
0.02925962582230568,
-0.08408723771572113,
-0.00425777118653059,
0.06173234060406685,
0.016868721693754196,
0.0110834501683712,
-0.028627261519432068,
0.03927489370107651,
0.06607343256473541,
-0.009348724037408829,
-0.12572067975997925,
-0.028370898216962814,
-0.05352870747447014,
-0.045974526554346085,
-0.03380580618977547,
-0.05561379715800285,
-0.032301805913448334,
-0.0035976350773125887,
0.051922161132097244,
-0.024251990020275116,
-0.03488253057003021,
0.013390722684562206,
0.04686325415968895,
0.007857542484998703,
-0.05147779732942581,
-0.02004762925207615,
-0.01350181270390749,
-0.0377025306224823,
0.008045542053878307,
-0.00002401739220658783,
0.03688216954469681,
-0.046453073620796204,
-0.008143815211951733,
0.006357815582305193,
0.016415812075138092,
-0.021739628165960312,
-0.03090035170316696,
-0.008677905425429344,
0.025738898664712906,
-0.04843561723828316,
-0.02819998934864998,
0.001484772190451622,
-0.02925962582230568,
0.0032899987418204546,
0.03783925995230675,
-0.06368070095777512,
-0.05506688728928566,
-0.028285443782806396,
-0.011237268336117268,
0.019346902146935463,
0.03471162170171738,
0.01508272159844637,
-0.023294899612665176,
0.002589271869510412,
0.02341453731060028,
-0.0692865177989006,
-0.011348359286785126,
0.02561926282942295,
0.004396634642034769,
0.015005812980234623,
-0.041154894977808,
-0.038454532623291016,
0.056536704301834106,
-0.01895381137728691,
0.1181323230266571,
-0.04436798393726349,
0.013518904335796833,
-0.02105599269270897,
-0.06986761093139648,
0.02450835518538952,
-0.039685074239969254,
0.055955614894628525,
0.024542536586523056,
-0.010690359398722649,
0.0038433168083429337,
-0.014023086056113243,
-0.0036403622943907976,
-0.05075998231768608,
0.039411623030900955,
-0.06757742911577225,
0.019551992416381836,
0.027858171612024307,
-0.021961810067296028,
0.03132762387394905,
0.04098398610949516,
-0.005178543739020824,
0.05592143535614014,
0.0018020221032202244,
-0.001236954121850431,
-0.018441084772348404,
-0.07212360948324203,
-0.05281088873744011,
0.04122325778007507,
0.011980722658336163,
-0.030438898131251335,
-0.023226536810398102,
0.08791560679674149,
-0.02105599269270897,
-0.01225417759269476,
0.08907778561115265,
0.001434567617252469,
0.00918636005371809,
0.010109269060194492,
0.02201308310031891,
0.0032237714622169733,
0.07041452080011368,
0.0020209993235766888,
0.07055124640464783,
0.06685961037874222,
0.010493814013898373,
0.11279995739459991,
0.04635052755475044,
0.02402980998158455,
0.04173598438501358,
0.020611628890037537,
-0.03342980518937111,
-0.00851554237306118,
0.008276269771158695,
0.015749266371130943,
-0.03286580741405487,
0.030062897130846977,
0.0036339531652629375,
0.06552652269601822,
-0.014296540059149265,
-0.04843561723828316,
0.025636354461312294,
0.0007028633845038712,
-0.07882324606180191,
-0.007468724623322487,
0.11286832392215729,
-0.01323690451681614,
-0.002973817056044936,
-0.037736713886260986,
-0.014065813273191452,
0.0008946019224822521,
0.027465080842375755,
0.025055263191461563,
-0.03050726093351841,
-0.001628976664505899,
0.038933075964450836,
0.02197890169918537,
-0.0019718629773706198,
-0.035719987004995346,
0.037736713886260986,
-0.018355630338191986,
0.046453073620796204,
-0.08647996932268143,
0.04843561723828316,
-0.0400952585041523,
0.02527744509279728,
-0.008853087201714516,
-0.08538614958524704,
0.0019504992524161935,
-0.0037258167285472155,
-0.02062871865928173,
0.05684434249997139,
0.0018629083642736077,
0.0037834986578673124,
-0.025431262329220772,
0.05253743380308151,
-0.026952354237437248,
0.00933163333684206,
-0.03862544149160385,
-0.020252719521522522,
0.002563635352998972,
0.03589089587330818,
0.04925598204135895,
-0.06193743273615837,
-0.00661845225840807,
-0.04057380184531212,
-0.01740708388388157,
-0.060706887394189835,
-0.01263872254639864,
0.011852541007101536,
0.06979924440383911,
-0.00040270440513268113,
-0.009391451254487038,
-0.0011215904960408807,
0.03992434963583946,
-0.02038944698870182,
0.034848351031541824,
-0.0033754531759768724,
0.06921815872192383,
0.04754688963294029,
0.007169633638113737,
-0.017278902232646942,
0.00911799632012844,
-0.01750108413398266,
0.03153271600604057,
-0.0010259882546961308,
-0.0063364519737660885,
-0.01362144947052002,
0.04153089225292206,
-0.0034950897097587585,
-0.026952354237437248,
-0.012501995079219341,
-0.014014540240168571,
-0.04006107524037361,
-0.007913087494671345,
-0.06990179419517517,
0.053084343671798706,
-0.03910398483276367,
0.0031425897032022476,
-0.039069805294275284,
-0.009220542386174202,
-0.058929432183504105,
0.026986535638570786,
-0.008972723968327045,
-0.02052617445588112,
0.008878723718225956,
0.039309076964855194,
-0.01275835931301117,
0.04341089352965355,
-0.0706196129322052,
-0.007639633491635323,
0.04580361768603325,
-0.016202175989747047,
0.08189960569143295,
0.011305632069706917,
-0.009152178652584553,
-0.015287812799215317,
-0.0051187253557145596,
0.0916072353720665,
0.02105599269270897,
0.012168723158538342,
0.03920653089880943,
-0.007443088106811047,
-0.008588179014623165,
-0.024457082152366638,
-0.03247271478176117,
-0.012843813747167587,
-0.05328943580389023,
-0.061287976801395416,
-0.04450470954179764,
0.09447851032018661,
0.013963267207145691,
-0.025345807895064354,
-0.003905271179974079,
-0.09652941673994064,
-0.026490898802876472,
-0.005221270956099033,
0.028422171249985695,
0.023756355047225952,
0.016296176239848137,
-0.014732358045876026,
0.05055489018559456,
-0.017928356304764748,
0.02503817155957222,
-0.037155620753765106,
-0.02389308251440525,
0.0015189539408311248,
0.060228340327739716,
0.03488253057003021,
-0.0011215904960408807,
0.0069389063864946365,
-0.07362760603427887,
0.04741016402840614,
-0.012835267931222916,
-0.003358362475410104,
0.027858171612024307,
-0.008635178208351135,
0.027806898579001427,
-0.0010457496391609311,
0.0221669003367424,
-0.00930599682033062,
0.012715631164610386,
0.04306907579302788,
0.0008027383591979742,
0.05339198186993599,
0.02418362721800804,
0.005883543286472559,
-0.019876720383763313,
0.011168904602527618,
0.020611628890037537,
0.024303263053297997,
-0.05434907227754593,
0.001281817676499486,
0.008361724205315113,
-0.04648725688457489,
-0.012228541076183319,
0.017774539068341255,
0.023585446178913116,
-0.020697083324193954,
-0.056673433631658554,
-0.002736680908128619,
0.007566997315734625,
-0.08039560914039612,
-0.0046145436353981495,
0.03896725922822952,
-0.010083632543683052,
0.0273454450070858,
0.025499626994132996,
0.03325889632105827,
-0.01549290306866169,
-0.03920653089880943,
-0.0029033171012997627,
0.08641160279512405,
0.015339084900915623,
0.00631936127319932,
0.0011728631798177958,
-0.009493996389210224,
0.023517081514000893,
-0.04388943687081337,
-0.021261082962155342,
-0.04826470836997032,
-0.027567626908421516,
-0.027174536138772964,
-0.05031561851501465,
-0.0467265285551548,
-0.007451633457094431,
-0.01732162944972515,
-0.0021865672897547483,
-0.044299621134996414,
-0.03334435075521469,
0.04792289063334465,
-0.013296722434461117,
-0.056912705302238464,
-0.020936354994773865,
-0.07820796966552734,
0.016808902844786644,
-0.030097080394625664,
0.008199360221624374,
-0.08319851756095886,
0.02331199124455452,
-0.02902035228908062,
-0.020645810291171074,
0.0522981621325016,
0.03520726040005684,
0.018150538206100464,
0.007631088141351938,
-0.029806533828377724,
0.05858761444687843,
-0.056297432631254196,
-0.0017165675526484847,
-0.027789806947112083,
0.034421078860759735,
-0.04218034818768501,
-0.026935262605547905,
0.05205889046192169,
-0.05099925398826599,
0.007541360799223185,
0.0007162156398408115,
0.02960144355893135,
0.09092359989881516,
0.05817743390798569,
-0.028387989848852158,
-0.02671308070421219,
0.007242269814014435,
0.016954176127910614,
-0.0645010694861412,
-0.006109997630119324,
-0.04720507189631462,
-0.010570723563432693,
0.06962833553552628,
0.032113805413246155,
-0.056058160960674286,
0.023277809843420982,
0.01551853958517313,
0.015390357933938503,
-0.0573570691049099,
0.02346581034362316,
0.023961445316672325,
-0.028558898717164993,
-0.02020144648849964,
0.014860539697110653,
0.005507543217390776,
-0.035378169268369675,
0.07410615682601929,
-0.004798270761966705,
-0.004571816418319941,
0.04320580139756203,
-0.018406901508569717,
0.0039843167178332806,
0.005832270719110966,
0.019210174679756165,
-0.022577082738280296,
0.03520726040005684,
-0.0014089313335716724,
-0.004379543941468,
0.06193743273615837,
-0.024627991020679474,
0.034079261124134064,
0.001828726613894105,
-0.057015251368284225,
0.026883989572525024,
-0.01574072055518627,
-0.05089670792222023,
-0.008160905912518501,
0.034523624926805496,
-0.022149810567498207,
0.006567179225385189,
-0.03332725912332535,
0.014364903792738914,
0.039411623030900955,
0.027328353375196457,
-0.06737233698368073,
0.03339562565088272,
-0.03161817044019699,
0.005392179824411869,
0.005545997992157936,
0.022337809205055237,
0.03944580256938934,
-0.026593444868922234,
0.02527744509279728,
0.012989086098968983,
-0.01254472229629755,
-0.021021809428930283,
-0.024457082152366638,
0.005746815819293261,
-0.004452180117368698,
0.020133083686232567,
0.03865962103009224,
0.0015766357537359,
-0.016381630674004555,
-0.016270538792014122,
0.0016193630872294307,
-0.023534173145890236,
0.006635542958974838,
-0.03947998583316803,
-0.0075029064901173115,
0.042043618857860565,
-0.0072508156299591064,
0.012245631776750088,
-0.00563572533428669,
0.0034779987763613462,
-0.0034459533635526896,
-0.016919992864131927,
0.023910172283649445,
0.042863983660936356,
-0.03156689554452896,
-0.013356540352106094,
-0.0037706803996115923,
0.046794891357421875,
-0.020133083686232567,
-0.00023606809554621577,
-0.00552890682592988,
0.005545997992157936,
-0.024764718487858772,
0.03650616854429245,
-0.024149445816874504,
-0.0046700891107320786,
0.0032899987418204546,
-0.0096905417740345,
0.026901081204414368,
-0.04416289180517197,
0.012895085848867893,
-0.00315968063659966,
0.017620719969272614,
-0.03838616609573364,
-0.020303992554545403,
-0.01684308424592018,
-0.024115264415740967,
0.07342252135276794,
0.03320762515068054,
0.012775450013577938,
0.036540351808071136,
-0.0353098064661026
] |
724,856 | scipy.sparse._dok | setdefault | null | def setdefault(self, key, default=None, /):
return self._dict.setdefault(key, default)
| (self, key, default=None, /) | [
0.023352717980742455,
-0.01853916421532631,
-0.0016274088993668556,
0.04150819405913353,
-0.03784570470452309,
-0.007146210875362158,
0.015181883238255978,
0.04768209904432297,
0.058669563382864,
-0.026596635580062866,
-0.019149577245116234,
0.00797899067401886,
-0.020213443785905838,
0.04063617065548897,
0.0031414551194757223,
-0.004939998034387827,
0.018347319215536118,
0.011440913192927837,
0.0015423869481310248,
-0.0031240147072821856,
0.03700856491923332,
-0.02837555855512619,
0.055251240730285645,
0.004050537012517452,
-0.005419609602540731,
0.023614324629306793,
0.02861972525715828,
0.015853339806199074,
0.051274824887514114,
-0.015338846482336521,
-0.021660998463630676,
-0.06254133582115173,
-0.05741385370492935,
0.03353792056441307,
0.050995778292417526,
-0.00866352766752243,
-0.03652023524045944,
0.08183043450117111,
-0.07007559388875961,
-0.05113530158996582,
0.0469844825565815,
0.02389337122440338,
-0.020108800381422043,
-0.06302966922521591,
0.03627606853842735,
0.08629518747329712,
0.047507695853710175,
0.09501539170742035,
0.07000583410263062,
-0.019079815596342087,
0.03402625396847725,
-0.03465411067008972,
0.013298317790031433,
0.00023966947628650814,
-0.05793706700205803,
0.023771287873387337,
-0.019986718893051147,
0.04272902011871338,
-0.029421983286738396,
0.025637412443757057,
0.04203140363097191,
-0.011118265800178051,
-0.02017856203019619,
-0.04157795384526253,
0.006387552712112665,
0.03631094843149185,
-0.04063617065548897,
-0.0024765392299741507,
0.048868048936128616,
0.022097008302807808,
-0.03798522800207138,
0.004004755988717079,
-0.034357622265815735,
-0.037601538002491,
0.04290342703461647,
0.036450471729040146,
-0.05835563689470291,
-0.036485351622104645,
-0.016725359484553337,
-0.024992117658257484,
-0.0013047611573711038,
-0.020701775327324867,
-0.05253053456544876,
0.03679928183555603,
-0.021678438410162926,
0.01897517405450344,
0.0679129809141159,
0.043008070439100266,
0.06128562614321709,
-0.014911556616425514,
-0.009321902878582478,
-0.0036951883230358362,
0.012217012234032154,
0.03889213129878044,
0.02275974489748478,
-0.02720705047249794,
0.016768960282206535,
-0.025968780741095543,
0.04764721915125847,
-0.03704344481229782,
-0.06920357793569565,
-0.004835355561226606,
0.01873100735247135,
-0.038578201085329056,
-0.016838721930980682,
-0.0352470837533474,
0.05462338775396347,
0.000875835947226733,
-0.024695631116628647,
-0.009156218729913235,
-0.08817874640226364,
-0.08894612640142441,
0.006309071090072393,
0.04133378714323044,
-0.017745625227689743,
0.07373808324337006,
-0.023841049522161484,
-0.014484266750514507,
0.04579853639006615,
0.05577445402741432,
-0.07715640217065811,
0.0072116125375032425,
-0.04970518872141838,
0.009173659607768059,
0.03470642864704132,
-0.044194016605615616,
0.042136047035455704,
0.09194587916135788,
0.051518991589546204,
0.028236035257577896,
0.03359024226665497,
0.06261109560728073,
0.008611205965280533,
0.009025415405631065,
0.0031458153389394283,
-0.02837555855512619,
-0.02980567328631878,
0.0658201351761818,
-0.020318085327744484,
0.08580685406923294,
0.024974677711725235,
0.00345974275842309,
0.04363592341542244,
0.04342664033174515,
0.06414585560560226,
-0.02248069830238819,
0.011580437421798706,
0.03259614109992981,
-0.04520555958151817,
0.03463666886091232,
0.028567403554916382,
0.05256541818380356,
-0.010246245190501213,
0.027311693876981735,
-0.02413753792643547,
-0.00621750857681036,
-0.022567899897694588,
-0.003416141727939248,
0.026648957282304764,
-0.009077737107872963,
0.02882901020348072,
0.0036973683163523674,
0.022428376600146294,
-0.05577445402741432,
-0.013821530155837536,
-0.0014072236372157931,
-0.028689486905932426,
0.04133378714323044,
0.06759905815124512,
0.03707832843065262,
-0.054518744349479675,
-0.018818210810422897,
-0.032212451100349426,
0.025968780741095543,
0.05839051678776741,
0.06358776241540909,
-0.03777594491839409,
-0.007917948998510838,
0.012932069599628448,
0.07604021579027176,
0.011048504151403904,
0.029421983286738396,
0.0027032645884901285,
0.009374224580824375,
-0.011397312395274639,
0.025759495794773102,
0.0491819754242897,
0.017710743471980095,
-0.028096511960029602,
0.057099927216768265,
0.0188007690012455,
-0.01738809607923031,
0.016742801293730736,
-0.010464250110089779,
-0.008898972533643246,
-0.004272902384400368,
-0.0005071346531622112,
-0.08406280726194382,
-0.03969439119100571,
0.07185451686382294,
-0.019742552191019058,
-0.04639150947332382,
0.06184371933341026,
0.0011750480625778437,
-0.01561789307743311,
-0.021626116707921028,
-0.00035071588354185224,
0.001592528074979782,
-0.0634133592247963,
0.017074167728424072,
-0.02012624219059944,
-0.029195258393883705,
-0.0633087158203125,
-0.020806416869163513,
0.001787642715498805,
-0.06365752220153809,
0.026143185794353485,
0.018818210810422897,
-0.024782832711935043,
0.02274230308830738,
0.03209036588668823,
-0.015330126509070396,
0.05329791456460953,
-0.003869592444971204,
0.01944606564939022,
0.011004903353750706,
-0.00598642323166132,
-0.049879591912031174,
-0.03610166162252426,
-0.030363766476511955,
0.007660703267902136,
-0.03093929961323738,
0.006282910238951445,
-0.05807659029960632,
0.011170587502419949,
-0.10638654232025146,
0.010699695907533169,
-0.03256125748157501,
0.0018628545803949237,
0.0446125864982605,
0.03917117789387703,
-0.006204428616911173,
0.051728278398513794,
0.023160874843597412,
0.023596884682774544,
0.00697180675342679,
-0.048902928829193115,
0.012121089734137058,
0.013106473721563816,
0.01972511224448681,
0.025986220687627792,
-0.028079072013497353,
-0.04150819405913353,
0.002042708918452263,
0.06257621943950653,
0.06048336625099182,
-0.039833914488554,
0.05765802040696144,
-0.003941534087061882,
0.006208788603544235,
-0.00094559759600088,
0.03707832843065262,
-0.03451458364725113,
0.0019980177748948336,
-0.03571797534823418,
0.03475875034928322,
0.02200980670750141,
0.027084967121481895,
0.02957894653081894,
0.01277510542422533,
0.03423553705215454,
-0.00621750857681036,
-0.008384480141103268,
-0.05294910818338394,
0.0188007690012455,
-0.004503987729549408,
-0.035299405455589294,
-0.06725025177001953,
-0.013612245209515095,
-0.01054273173213005,
-0.0021974926348775625,
-0.005546052474528551,
0.010089281015098095,
0.017649702727794647,
-0.05504195764660835,
0.0680525079369545,
-0.035787735134363174,
0.00042865274008363485,
-0.035037796944379807,
-0.06442490220069885,
0.030660253018140793,
0.058041706681251526,
-0.06212276592850685,
0.059192776679992676,
-0.04098498076200485,
-0.04154307395219803,
-0.08441162109375,
-0.0030280924402177334,
0.07680759578943253,
0.048170432448387146,
-0.004486547317355871,
-0.025445569306612015,
-0.03582261502742767,
0.008345239795744419,
-0.0017527618911117315,
0.005035920534282923,
-0.00830163899809122,
-0.009417825378477573,
0.01534756738692522,
0.042345333844423294,
-0.045833416283130646,
0.014083136804401875,
-0.031514834612607956,
-0.0010262595023959875,
0.04429866001009941,
-0.015487090684473515,
-0.014763313345611095,
-0.005903581157326698,
0.034584347158670425,
0.05068185180425644,
-0.025672294199466705,
-0.002600802108645439,
-0.11754841357469559,
-0.01006312109529972,
0.016141105443239212,
-0.053856007754802704,
0.038857247680425644,
0.00761710200458765,
0.004399345256388187,
0.04635662958025932,
0.0010213544592261314,
-0.029666149988770485,
-0.045833416283130646,
0.037531778216362,
-0.07666807621717453,
-0.014841794967651367,
0.024939795956015587,
-0.044473063200712204,
-0.0026400431524962187,
0.0004112123278900981,
-0.04907733201980591,
0.016734080389142036,
-0.032508935779333115,
-0.06976167112588882,
0.01848684251308441,
-0.0029670509975403547,
0.06916869431734085,
-0.031305547803640366,
0.013045432046055794,
-0.06732001155614853,
-0.007996431551873684,
0.008048752322793007,
0.01878332905471325,
0.005541692487895489,
0.06533180177211761,
-0.02790466696023941,
0.03582261502742767,
-0.021451713517308235,
0.020701775327324867,
-0.04388009011745453,
0.011048504151403904,
0.00830163899809122,
-0.0678781047463417,
0.012696623802185059,
0.01621086709201336,
0.022794624790549278,
0.006527076009660959,
-0.009365503676235676,
-0.0023544563446193933,
-0.04412425681948662,
0.04719376936554909,
-0.040915217250585556,
-0.05532100424170494,
0.0008763809455558658,
0.0538908876478672,
0.027590740472078323,
-0.05096089839935303,
0.033433280885219574,
-0.026317588984966278,
-0.03924093768000603,
-0.004028736148029566,
0.021033143624663353,
0.01969023048877716,
0.0704244077205658,
0.007215972524136305,
0.014501706697046757,
0.05535588413476944,
0.046775199472904205,
0.029387103393673897,
-0.031113704666495323,
0.0037475095596164465,
0.005541692487895489,
-0.021730760112404823,
0.01826011762022972,
-0.04039200767874718,
-0.03561333194375038,
0.023282956331968307,
-0.025654854252934456,
0.002174602122977376,
-0.016577117145061493,
0.06648287177085876,
0.008441162295639515,
0.04154307395219803,
0.01710904948413372,
0.024329381063580513,
0.000019637500372482464,
-0.007743545342236757,
-0.009060297161340714,
-0.007909229025244713,
-0.04768209904432297,
0.018713567405939102,
0.006723280996084213,
-0.02623038738965988,
-0.02439914271235466,
-0.005367288365960121,
0.015417329035699368,
0.007246493361890316,
0.01902749575674534,
0.015565572306513786,
-0.013089032843708992,
-0.015818458050489426,
-0.020736655220389366,
-0.018015950918197632,
0.0610065795481205,
0.024957237765192986,
0.01805083081126213,
0.013647126033902168,
-0.05479779094457626,
-0.050995778292417526,
-0.036659758538007736,
-0.004652231466025114,
-0.04946102201938629,
0.0563325472176075,
0.039031654596328735,
0.040705934166908264,
-0.020597131922841072,
0.028201155364513397,
-0.02534092590212822,
-0.036938805133104324,
0.004203140735626221,
-0.021050583571195602,
-0.05696040391921997,
-0.0012317294022068381,
-0.014065696857869625,
0.018469402566552162,
-0.015085960738360882,
-0.05270494148135185,
0.06030896306037903,
0.05235613137483597,
-0.05434434115886688,
0.00984511524438858,
-0.02745121717453003,
0.008201356045901775,
0.05350720137357712,
0.013821530155837536,
0.010664815083146095,
-0.08183043450117111,
-0.012618142180144787,
0.06418073177337646,
0.007124410476535559,
0.03254381939768791,
0.03025912307202816,
0.028183713555336,
0.05908813327550888,
-0.06215764582157135,
0.06697120517492294,
0.024957237765192986,
-0.016114944592118263,
0.015094680711627007,
-0.024957237765192986,
-0.0015249464195221663,
-0.011719960719347,
-0.018155474215745926,
-0.06623870134353638,
-0.025236284360289574,
-0.012862307950854301,
0.01640271209180355,
-0.002347916131839156,
-0.012644302099943161,
-0.0059341019950807095,
-0.006422433536499739,
0.01254838053137064,
0.011728680692613125,
-0.00961839035153389,
0.0014366543618962169,
-0.01335063949227333,
-0.005864340346306562,
-0.00645295437425375,
-0.01783282682299614,
0.038124751299619675,
-0.017466578632593155,
0.045414846390485764,
-0.018190355971455574,
-0.008637366816401482,
0.03407857567071915,
0.010281126014888287,
0.00783510785549879,
0.008628645911812782,
0.02701520547270775,
-0.047961145639419556,
0.0029343501664698124,
-0.0374620147049427,
-0.030311444774270058,
0.0292824599891901,
-0.01734449528157711,
-0.048658762127161026,
-0.057588256895542145,
-0.03440994396805763,
-0.016969526186585426,
-0.005611454136669636,
0.03871772438287735,
0.025428127497434616,
-0.02534092590212822,
-0.04335687682032585,
0.039799030870199203,
-0.024974677711725235,
0.001994747668504715,
-0.050298161804676056,
-0.00021173756977077574,
-0.02178308181464672,
0.01827755756676197,
0.02975335158407688,
0.05699528381228447,
0.01689104363322258,
-0.01781538687646389,
0.004144279286265373,
0.012339095585048199,
-0.012391416355967522,
0.017893867567181587,
0.05273982137441635,
-0.01808571256697178,
0.0032635380048304796,
-0.02650943398475647,
0.12403624504804611,
0.002995391609147191,
0.029387103393673897,
0.01619342714548111,
0.018643805757164955,
-0.038822367787361145,
-0.033223994076251984,
-0.014283701777458191,
-0.007896148599684238,
0.02626526728272438,
-0.01901005394756794,
0.024730511009693146,
0.009182379581034184,
-0.03477619215846062,
0.06773857772350311,
0.01944606564939022,
-0.04265926033258438,
-0.06735488772392273,
0.022829506546258926,
0.0038717726711183786,
-0.0010546002304181457,
-0.017510179430246353,
-0.039031654596328735,
-0.008231877349317074,
-0.015277805738151073,
0.028462760150432587,
0.0034226819407194853,
0.01619342714548111,
0.011432193219661713,
0.03704344481229782,
0.0351249985396862,
0.028009310364723206,
-0.025480449199676514,
-0.060832176357507706,
-0.01970767043530941,
0.06491323560476303,
0.04248485714197159,
-0.03308447077870369,
-0.00948758702725172,
0.02884645015001297,
0.021050583571195602,
-0.018364759162068367,
0.0491819754242897,
-0.0037213489413261414,
-0.017440417781472206,
-0.07373808324337006,
-0.03791546821594238,
-0.00015737251669634134,
0.04081057757139206,
0.061320506036281586,
-0.02980567328631878,
-0.000010125319931830745,
-0.05723945051431656,
-0.014588909223675728,
0.05479779094457626,
-0.084481380879879,
0.004530148580670357,
-0.05692552030086517,
0.032212451100349426,
-0.030363766476511955,
-0.002740325639024377,
-0.02417241781949997,
0.017309613525867462,
0.03617142513394356,
-0.05113530158996582,
0.04182212054729462,
0.03728761151432991,
0.007948470301926136,
0.012391416355967522,
-0.03212524950504303,
0.06983143091201782,
0.02157379686832428,
0.0246084276586771,
-0.0018377839587628841,
0.039310701191425323,
0.023527123034000397,
-0.06892453134059906,
-0.04789138585329056,
-0.03658999502658844,
-0.01895773410797119,
0.04150819405913353,
-0.015181883238255978,
-0.02019600383937359,
0.03329375758767128,
-0.014745872467756271,
-0.03850844129920006,
-0.025707174092531204,
-0.04035712406039238,
0.030852098017930984,
-0.01383897103369236,
-0.03606678172945976,
0.010254965163767338,
-0.05294910818338394,
-0.039799030870199203,
0.032229889184236526,
0.01184204313904047,
-0.04063617065548897,
-0.034619227051734924,
0.005092601757496595,
0.019411183893680573,
0.015147002413868904,
0.03910141438245773,
0.003158895531669259,
0.022846946492791176,
0.028236035257577896,
0.0398687943816185,
0.014492986723780632,
-0.0223237331956625,
0.02507931925356388,
0.0821094810962677,
0.019062375649809837,
-0.018765889108181,
0.03308447077870369,
0.013664566911756992,
0.038857247680425644,
0.011920524761080742,
-0.02277718484401703,
-0.0726916566491127,
-0.027259372174739838,
-0.022341175004839897,
-0.014458105899393559,
-0.013716887682676315,
-0.035020358860492706,
0.022655101493000984,
-0.017667142674326897,
-0.019358862191438675,
-0.06146002933382988,
-0.047507695853710175,
0.007678143680095673,
-0.04705424606800079,
0.020684335380792618,
0.002855868311598897,
-0.047263529151678085,
-0.043252233415842056,
-0.021957485005259514,
-0.004626070614904165,
-0.011449634097516537,
0.020073920488357544,
-0.05608838051557541,
-0.03402625396847725,
-0.018382199108600616,
0.003466282971203327,
-0.03613654524087906,
0.014737152494490147,
0.04496139660477638,
0.025445569306612015,
-0.0006218598573468626,
0.048449479043483734,
0.045100919902324677,
-0.027050087228417397,
0.02160867676138878,
-0.031567156314849854,
0.06044848635792732,
-0.008585045114159584,
-0.02553277090191841,
0.04335687682032585,
-0.004026556387543678,
0.02042272873222828,
-0.052844464778900146,
-0.006431153975427151,
-0.03449714556336403,
-0.07848187536001205,
0.02091106027364731,
-0.06414585560560226,
-0.002932170173153281,
-0.03728761151432991,
-0.024939795956015587,
0.007381656672805548,
0.0327879823744297,
-0.061076339334249496,
0.026073424145579338,
-0.011458354070782661,
-0.03798522800207138,
-0.038578201085329056,
0.042101167142391205,
0.00013264254084788263,
0.001183768268674612,
0.04994935542345047,
0.02903829514980316,
-0.025393247604370117,
-0.005973342806100845,
-0.03149739280343056,
-0.01895773410797119,
-0.012461178004741669,
-0.026387350633740425,
-0.050577208399772644,
0.03423553705215454,
-0.0026640237774699926,
-0.04035712406039238,
0.01302799116820097,
-0.04991447553038597,
0.02204468660056591,
-0.03871772438287735,
0.004216220695525408,
-0.06763393431901932,
-0.027294252067804337,
0.04963542893528938,
0.01927166059613228,
0.025899019092321396,
-0.006104146130383015,
0.007359855808317661,
0.03348560258746147,
-0.07007559388875961,
-0.014841794967651367,
-0.0007935389876365662,
0.029631268233060837,
0.030590491369366646,
-0.03613654524087906,
-0.010254965163767338,
0.0019424264319241047,
0.005040280520915985,
-0.03311935067176819,
-0.052181728184223175,
0.026212947443127632,
0.04408937320113182,
-0.0001993385230889544,
0.06421561539173126,
-0.055216360837221146,
0.0036319668870419264,
0.011885643936693668,
0.03958974778652191,
0.020806416869163513,
-0.04565901309251785,
-0.03861308470368385,
0.05542564392089844,
0.0962013378739357,
0.0775052160024643,
-0.06651774793863297,
-0.06187859922647476,
-0.009321902878582478,
-0.0328751876950264,
0.00819263607263565,
0.005471930839121342,
0.04904245212674141,
0.011999007314443588
] |
724,858 | scipy.sparse._base | sum |
Sum the array/matrix elements over a given axis.
Parameters
----------
axis : {-2, -1, 0, 1, None} optional
Axis along which the sum is computed. The default is to
compute the sum of all the array/matrix elements, returning a scalar
(i.e., `axis` = `None`).
dtype : dtype, optional
The type of the returned array/matrix and of the accumulator in which
the elements are summed. The dtype of `a` is used by default
unless `a` has an integer dtype of less precision than the default
platform integer. In that case, if `a` is signed then the platform
integer is used while if `a` is unsigned then an unsigned integer
of the same precision as the platform integer is used.
.. versionadded:: 0.18.0
out : np.matrix, optional
Alternative output matrix in which to place the result. It must
have the same shape as the expected output, but the type of the
output values will be cast if necessary.
.. versionadded:: 0.18.0
Returns
-------
sum_along_axis : np.matrix
A matrix with the same shape as `self`, with the specified
axis removed.
See Also
--------
numpy.matrix.sum : NumPy's implementation of 'sum' for matrices
| def sum(self, axis=None, dtype=None, out=None):
"""
Sum the array/matrix elements over a given axis.
Parameters
----------
axis : {-2, -1, 0, 1, None} optional
Axis along which the sum is computed. The default is to
compute the sum of all the array/matrix elements, returning a scalar
(i.e., `axis` = `None`).
dtype : dtype, optional
The type of the returned array/matrix and of the accumulator in which
the elements are summed. The dtype of `a` is used by default
unless `a` has an integer dtype of less precision than the default
platform integer. In that case, if `a` is signed then the platform
integer is used while if `a` is unsigned then an unsigned integer
of the same precision as the platform integer is used.
.. versionadded:: 0.18.0
out : np.matrix, optional
Alternative output matrix in which to place the result. It must
have the same shape as the expected output, but the type of the
output values will be cast if necessary.
.. versionadded:: 0.18.0
Returns
-------
sum_along_axis : np.matrix
A matrix with the same shape as `self`, with the specified
axis removed.
See Also
--------
numpy.matrix.sum : NumPy's implementation of 'sum' for matrices
"""
validateaxis(axis)
# Mimic numpy's casting.
res_dtype = get_sum_dtype(self.dtype)
if self.ndim == 1:
if axis not in (None, -1, 0):
raise ValueError("axis must be None, -1 or 0")
ret = (self @ np.ones(self.shape, dtype=res_dtype)).astype(dtype)
if out is not None:
if any(dim != 1 for dim in out.shape):
raise ValueError("dimensions do not match")
out[...] = ret
return ret
# We use multiplication by a matrix of ones to achieve this.
# For some sparse array formats more efficient methods are
# possible -- these should override this function.
M, N = self.shape
if axis is None:
# sum over rows and columns
return (
self @ self._ascontainer(np.ones((N, 1), dtype=res_dtype))
).sum(dtype=dtype, out=out)
if axis < 0:
axis += 2
# axis = 0 or 1 now
if axis == 0:
# sum over columns
ret = self._ascontainer(
np.ones((1, M), dtype=res_dtype)
) @ self
else:
# sum over rows
ret = self @ self._ascontainer(
np.ones((N, 1), dtype=res_dtype)
)
if out is not None and out.shape != ret.shape:
raise ValueError("dimensions do not match")
return ret.sum(axis=axis, dtype=dtype, out=out)
| (self, axis=None, dtype=None, out=None) | [
-0.0476047657430172,
-0.025185801088809967,
0.02052386850118637,
0.021206103265285492,
0.03399798646569252,
-0.016856862232089043,
-0.038318801671266556,
0.015359737910330296,
0.056132689118385315,
0.01441219076514244,
-0.021319808438420296,
-0.014639602042734623,
0.04866601526737213,
0.040896132588386536,
0.009721832349896431,
0.056132689118385315,
0.0429428331553936,
-0.0016712361248210073,
-0.03140170872211456,
0.02340441197156906,
0.007727246265858412,
-0.03648056089878082,
0.009807111695408821,
0.06917093694210052,
-0.05245620384812355,
0.039266351610422134,
0.07008057832717896,
-0.09126773476600647,
-0.0007645520381629467,
-0.04078242555260658,
-0.055147238075733185,
0.016894763335585594,
-0.008850089274346828,
-0.044572614133358,
-0.0014900177484378219,
0.01583351194858551,
-0.0021379031240940094,
-0.004358716309070587,
-0.016506269574165344,
0.056777019053697586,
0.05852050706744194,
-0.024541469290852547,
0.03568462282419205,
-0.01523655652999878,
0.05601898208260536,
0.05317633971571922,
0.0049746218137443066,
0.05207718536257744,
-0.053593263030052185,
0.00893063098192215,
0.03297463804483414,
-0.013530971482396126,
0.040479209274053574,
0.005083589814603329,
-0.018088672310113907,
0.02960136905312538,
0.006850765086710453,
-0.027422010898590088,
-0.045937079936265945,
0.020883936434984207,
-0.018647726625204086,
-0.000021597410523099825,
0.03179967775940895,
0.010963119566440582,
-0.04203318804502487,
0.030927935615181923,
-0.04100983589887619,
-0.020069045946002007,
0.05908903479576111,
0.02891913615167141,
-0.006353302858769894,
0.04521694406867027,
0.03378952667117119,
0.005107278469949961,
0.07246840000152588,
-0.0011181054869666696,
0.003214553464204073,
0.015653477981686592,
-0.0011565996101126075,
-0.011778010055422783,
0.01000609714537859,
0.07072491198778152,
-0.014061598107218742,
-0.010546199046075344,
0.008769547566771507,
0.005581052042543888,
-0.05598108097910881,
0.04949985817074776,
-0.04407988861203194,
-0.057345546782016754,
0.04354926198720932,
-0.03636685758829117,
0.04100983589887619,
0.04461051523685455,
0.019377337768673897,
-0.026095446199178696,
-0.04419359564781189,
0.005050425883382559,
-0.03623420000076294,
-0.01080203615128994,
-0.043094441294670105,
0.06594927608966827,
0.03847040981054306,
-0.00959865190088749,
0.021528268232941628,
-0.02603859268128872,
-0.030226750299334526,
-0.0325387641787529,
0.033505264669656754,
0.08171645551919937,
0.02999933995306492,
0.014980718493461609,
-0.017396964132785797,
-0.03215974569320679,
-0.02245686575770378,
-0.03604469075798988,
-0.07728193700313568,
0.02039121277630329,
-0.10597366094589233,
0.052607811987400055,
0.023935038596391678,
0.04483792558312416,
0.050978031009435654,
-0.03119324892759323,
0.060870423913002014,
-0.050030484795570374,
0.009788161143660545,
-0.0175106693059206,
0.020069045946002007,
-0.001777835190296173,
-0.0301698986440897,
-0.02194518968462944,
0.005879529286175966,
0.005377329420298338,
-0.02241896279156208,
0.012602375820279121,
0.0714450478553772,
0.0003328259044792503,
-0.08815977722406387,
0.04248800873756409,
0.047263648360967636,
-0.007026061415672302,
-0.008821663446724415,
0.04298073425889015,
0.02641761116683483,
0.02113029919564724,
0.043056536465883255,
0.013284609653055668,
-0.008125215768814087,
-0.026095446199178696,
-0.030586818233132362,
-0.05283522233366966,
0.018107624724507332,
0.02255162037909031,
0.029279204085469246,
0.03712489455938339,
0.045937079936265945,
-0.028634872287511826,
-0.046581413596868515,
-0.03162911906838417,
-0.0650775283575058,
0.02336651086807251,
-0.03790188208222389,
0.03081423044204712,
-0.04570966958999634,
0.033675823360681534,
-0.02319595217704773,
0.010025047697126865,
-0.051963482052087784,
-0.04805958643555641,
-0.016108300536870956,
-0.08164065331220627,
0.012157028540968895,
0.022646375000476837,
-0.060226090252399445,
0.038148242980241776,
-0.01464907731860876,
0.04809748753905296,
-0.008404741995036602,
-0.024636223912239075,
0.023556020110845566,
0.008987483568489552,
-0.04040340706706047,
-0.017235880717635155,
-0.028066344559192657,
0.011683255434036255,
-0.0072961123660206795,
-0.0604155994951725,
0.023120148107409477,
0.05044740438461304,
0.03566567227244377,
0.016032496467232704,
-0.025849083438515663,
0.004515061620622873,
0.012337062507867813,
-0.009442306123673916,
-0.07898752391338348,
0.06390257179737091,
0.0986206978559494,
-0.008442644029855728,
-0.0018145525828003883,
-0.007893066853284836,
0.0587858185172081,
0.060301896184682846,
-0.01841083914041519,
-0.04521694406867027,
0.00761827826499939,
0.06587347388267517,
-0.05173606798052788,
0.03708699345588684,
0.02465517446398735,
-0.008892728947103024,
-0.02736515924334526,
0.02113029919564724,
0.018780382350087166,
0.03843250870704651,
-0.02685348317027092,
-0.06431949138641357,
-0.014345861971378326,
0.021092398092150688,
0.04002438858151436,
0.02203994430601597,
-0.010318787768483162,
-0.011588500812649727,
-0.012886639684438705,
-0.0412372462451458,
0.02939290925860405,
-0.03287988156080246,
0.0556778647005558,
-0.01368257962167263,
-0.00313638080842793,
-0.010612526908516884,
-0.019993241876363754,
0.015596624463796616,
0.02190728858113289,
0.006699157878756523,
0.004398987162858248,
0.009120140224695206,
0.035305604338645935,
-0.025507966056466103,
-0.04354926198720932,
-0.03396008536219597,
-0.027725227177143097,
0.010546199046075344,
-0.049386151134967804,
0.043435558676719666,
0.00942335557192564,
0.08452119678258896,
0.005495772697031498,
0.012915066443383694,
-0.035476163029670715,
-0.02823690138757229,
0.053214240819215775,
-0.017652802169322968,
-0.006864978466182947,
0.0006502541364170611,
-0.0022871417459100485,
0.031515415757894516,
-0.02241896279156208,
-0.027895785868167877,
0.10961224138736725,
-0.03204604238271713,
0.041502561420202255,
0.003998648375272751,
-0.02268427610397339,
-0.01480068452656269,
0.04900713264942169,
-0.007476146332919598,
0.04407988861203194,
0.058634210377931595,
0.01686633750796318,
0.016316760331392288,
0.0238781850785017,
-0.041161444038152695,
0.016885288059711456,
0.03822404891252518,
0.031098494306206703,
0.05571576580405235,
-0.03318309783935547,
0.00758511433377862,
0.010451444424688816,
0.002098816679790616,
-0.013208805583417416,
-0.013237232342362404,
-0.03900103643536568,
-0.048779722303152084,
-0.06257601082324982,
0.002026566304266453,
-0.0035769902169704437,
-0.013133002445101738,
0.08535503596067429,
0.015435541048645973,
-0.012801360338926315,
0.005159393884241581,
-0.026739777997136116,
0.02001219429075718,
-0.10347213596105576,
0.028634872287511826,
-0.006310663186013699,
0.02056177146732807,
-0.0006467008497565985,
0.02353706955909729,
-0.00828156154602766,
-0.023309657350182533,
0.004931982606649399,
-0.018088672310113907,
0.010375640355050564,
0.040820326656103134,
-0.0010423017665743828,
0.047491058707237244,
0.0033590542152523994,
-0.032254502177238464,
0.019083596765995026,
-0.032633520662784576,
-0.02969612553715706,
-0.016240956261754036,
0.053214240819215775,
0.00828629918396473,
0.05719393864274025,
0.033410508185625076,
0.03155331686139107,
-0.0214714165776968,
-0.019443664699792862,
-0.038110341876745224,
-0.01334146223962307,
0.01824975572526455,
0.0023108304012566805,
-0.07121763378381729,
0.04229849949479103,
-0.020580722019076347,
0.019690027460455894,
-0.021869385614991188,
-0.015587149187922478,
0.060301896184682846,
-0.025754328817129135,
-0.10362374782562256,
0.03708699345588684,
-0.010603051632642746,
-0.05336584895849228,
0.0003390441706869751,
-0.0060311369597911835,
0.05219089239835739,
-0.01953841932117939,
-0.013237232342362404,
0.02241896279156208,
-0.03318309783935547,
-0.04517904296517372,
-0.02509104646742344,
0.03729545325040817,
0.029885634779930115,
0.051015932112932205,
-0.003190864808857441,
-0.01932048425078392,
-0.00867479294538498,
0.02698614075779915,
0.05147075653076172,
-0.0005886636208742857,
-0.008679530583322048,
0.02848326414823532,
-0.05689072608947754,
-0.014885963872075081,
0.0348697304725647,
0.020637575536966324,
0.011417942121624947,
0.021490367129445076,
0.011417942121624947,
-0.03670797124505043,
-0.00867479294538498,
0.05495772883296013,
-0.0031269052997231483,
0.05685282498598099,
-0.08406637609004974,
-0.02939290925860405,
0.04552016034722328,
-0.03081423044204712,
0.03464232012629509,
-0.01777598261833191,
0.03128800541162491,
-0.04552016034722328,
-0.07538684457540512,
0.010451444424688816,
0.019652126356959343,
-0.03217869624495506,
0.019329959526658058,
0.0022267354652285576,
0.002773944055661559,
0.008935368619859219,
-0.038110341876745224,
-0.0634477511048317,
-0.01811710000038147,
-0.0348697304725647,
0.021073445677757263,
-0.026531318202614784,
-0.03248191252350807,
-0.11400885879993439,
0.02181253395974636,
0.012772934511303902,
0.033031489700078964,
-0.062196988612413406,
-0.048135388642549515,
-0.021679876372218132,
-0.044648416340351105,
0.00031772436341270804,
0.0017932327464222908,
-0.047225743532180786,
-0.031174298375844955,
-0.04582337662577629,
-0.0746288076043129,
0.023631824180483818,
0.0636751651763916,
0.004451102111488581,
-0.0027952638920396566,
0.023177001625299454,
0.0012211512075737119,
-0.009053812362253666,
0.017103224992752075,
0.046846725046634674,
-0.011588500812649727,
0.0684128999710083,
0.009124877862632275,
0.014033172279596329,
0.019216254353523254,
0.01015770435333252,
0.03670797124505043,
0.0002778977795969695,
-0.042450107634067535,
0.013076148927211761,
-0.039607465267181396,
-0.06378886848688126,
-0.004417938180267811,
-0.005083589814603329,
-0.029677173122763634,
-0.0492345429956913,
0.016250431537628174,
-0.05056111142039299,
-0.012621326372027397,
-0.03244401142001152,
-0.029620321467518806,
-0.019557371735572815,
0.01643994078040123,
-0.008390529081225395,
-0.0016984781250357628,
0.002338072285056114,
-0.004770899191498756,
-0.0009866333566606045,
-0.046581413596868515,
-0.03900103643536568,
-0.03244401142001152,
-0.06985317170619965,
-0.007930968888103962,
0.07675131410360336,
-0.005083589814603329,
0.0033851119223982096,
-0.012157028540968895,
-0.015141801908612251,
-0.06735164672136307,
0.031174298375844955,
-0.0507885217666626,
0.028881235048174858,
0.006822338793426752,
-0.01888461224734783,
-0.003214553464204073,
0.00836684089154005,
-0.05033370107412338,
-0.008063625544309616,
-0.00927174836397171,
-0.0021189521066844463,
-0.01799391768872738,
-0.0038588852621614933,
0.010991545394062996,
-0.023044344037771225,
0.003152962774038315,
-0.0325387641787529,
-0.017330635339021683,
-0.001741117681376636,
-0.002026566304266453,
-0.019074121490120888,
-0.0012649752898141742,
-0.06511543691158295,
0.00345854670740664,
-0.07792627066373825,
0.004413200542330742,
0.005666331388056278,
0.00691709341481328,
-0.012270734645426273,
0.04290493205189705,
0.09149514138698578,
-0.021281907334923744,
0.06333404779434204,
0.059657562524080276,
0.008295774459838867,
0.0214714165776968,
0.003022675169631839,
-0.004351609852164984,
-0.02482573315501213,
-0.011825387366116047,
0.026758728548884392,
0.003738073166459799,
-0.0206186231225729,
0.06810968369245529,
0.010593576356768608,
-0.0028971252031624317,
-0.04040340706706047,
0.023953989148139954,
-0.017273783683776855,
-0.006898142397403717,
-0.030871082097291946,
0.0222484041005373,
0.009053812362253666,
0.029620321467518806,
-0.09354184567928314,
0.004526906181126833,
-0.037882931530475616,
-0.03744705766439438,
0.04059291630983353,
0.03998648375272751,
-0.0033969562500715256,
0.04896923154592514,
-0.0029658223502337933,
-0.027876833453774452,
0.013777334243059158,
0.03644265979528427,
-0.023461265489459038,
0.06792017072439194,
-0.05662541091442108,
0.07777465879917145,
-0.027422010898590088,
-0.01643994078040123,
-0.04013809189200401,
0.04161626473069191,
-0.03915264457464218,
-0.003946533426642418,
-0.054881926625967026,
0.013587825000286102,
-0.00679865013808012,
0.015653477981686592,
0.027478864416480064,
-0.025507966056466103,
0.027118796482682228,
0.020542820915579796,
-0.009816587902605534,
-0.0060074483044445515,
0.06431949138641357,
0.000876481004524976,
-0.05222879350185394,
0.043132342398166656,
-0.03568462282419205,
-0.025413211435079575,
0.04855231195688248,
-0.030871082097291946,
-0.055488355457782745,
-0.004349241033196449,
0.05636009946465492,
0.06754115223884583,
0.09141933917999268,
0.025015242397785187,
0.0011181054869666696,
0.012318111956119537,
-0.02814214676618576,
0.005514723714441061,
0.0033661609049886465,
-0.009347551502287388,
-0.0509401299059391,
-0.015018620528280735,
-0.03145856037735939,
0.004704571329057217,
0.02397293969988823,
-0.06716213375329971,
-0.005448395386338234,
0.010678855702280998,
-0.04991677775979042,
-0.043094441294670105,
-0.08793236315250397,
-0.05476821959018707,
-0.0031577006448060274,
0.01540711522102356,
-0.021016594022512436,
-0.004998310469090939,
-0.038110341876745224,
-0.037503913044929504,
-0.052948929369449615,
-0.03312624618411064,
-0.013436216861009598,
-0.0366511195898056,
0.0036243675276637077,
-0.034490711987018585,
-0.07553844898939133,
-0.016980042681097984,
-0.03352421522140503,
-0.008726907894015312,
0.009257534518837929,
-0.07027009129524231,
-0.0002163072203984484,
0.018268706277012825,
0.03475602716207504,
-0.02404874376952648,
-0.0350213386118412,
-0.04165416955947876,
0.07504572719335556,
-0.009968195110559464,
0.007191882003098726,
-0.02251371741294861,
0.012100175954401493,
0.022134698927402496,
-0.021869385614991188,
0.0444968082010746,
-0.0890694260597229,
-0.003816245822235942,
0.02736515924334526,
-0.012772934511303902,
-0.010233508422970772,
-0.02258952148258686,
-0.006793912500143051,
-0.011408466845750809,
-0.01737801358103752,
-0.04252591356635094,
-0.032936736941337585,
0.03708699345588684,
0.033031489700078964,
0.012810836546123028,
0.05473031848669052,
0.02512894757091999,
-0.03773132339119911,
-0.04696043208241463,
-0.010764134116470814,
0.037939783185720444,
-0.00339932506904006,
-0.009105927310883999,
0.029639272019267082,
0.0539722815155983,
-0.03274722769856453,
0.010195606388151646,
0.027687324211001396,
-0.0026555005460977554,
0.044383104890584946,
-0.028066344559192657,
-0.028881235048174858,
0.051319148391485214,
0.009380715899169445,
-0.0013514389283955097,
0.06303083151578903,
-0.0020869723521173,
0.026796631515026093,
-0.030586818233132362,
0.021983090788125992,
-0.06314453482627869,
0.0001239954144693911,
-0.039910681545734406,
0.06473641097545624,
0.0073150633834302425,
0.001837056828662753,
0.014829111285507679,
-0.0016546540427953005,
0.004844334442168474,
0.07500782608985901,
0.02556481957435608,
0.009214894846081734,
0.08338414132595062,
-0.021869385614991188,
0.024636223912239075,
-0.010792560875415802,
-0.03718174621462822,
0.007888329215347767,
-0.051357049494981766,
0.03189443424344063,
0.02099764347076416,
0.02336651086807251,
0.003093741135671735,
-0.005363116506487131,
0.019993241876363754,
-0.052418302744627,
0.056398000568151474,
-0.014345861971378326,
0.06613878160715103,
0.02211574837565422,
0.01923520490527153,
0.02495838887989521,
-0.07754725217819214,
0.010896790772676468,
-0.024124547839164734,
-0.013369888998568058,
0.004969884175807238,
-0.014052122831344604,
0.07220308482646942,
-0.04714994132518768,
-0.009352289140224457,
0.03085213154554367,
-0.022324208170175552,
-0.033637918531894684,
-0.08429378271102905,
0.022324208170175552,
-0.061211541295051575,
0.07197567075490952,
0.010451444424688816,
0.009409142658114433,
0.027403060346841812,
-0.0008202203898690641,
0.036594267934560776,
0.015861937776207924,
0.020713377743959427,
0.061173636466264725,
0.015814559534192085,
-0.01000609714537859,
0.006547550205141306,
0.0058890050277113914,
0.0525699108839035,
-0.03081423044204712,
0.022305257618427277,
0.030908985063433647,
0.04870392009615898,
-0.026095446199178696,
0.05112963914871216,
-0.00024414141080342233,
-0.0005978429690003395,
0.04608868807554245,
-0.022153649479150772,
0.018600348383188248,
0.0099208177998662,
-0.05272151902318001,
0.0357983261346817,
-0.005102540832012892,
-0.006954995449632406,
0.04332185164093971,
-0.026190200820565224,
-0.0036812203470617533,
-0.01605144701898098,
0.027118796482682228,
-0.03816719353199005,
0.03198918700218201,
0.06007448211312294,
-0.01997429132461548,
0.02268427610397339,
0.10665589570999146,
0.03941795602440834,
-0.01803182065486908,
-0.00828156154602766,
0.013995270244777203,
-0.026834532618522644,
-0.002068021334707737,
-0.0034751289058476686,
0.00011910962348338217,
0.03157226741313934,
0.035400357097387314,
-0.027744177728891373,
0.04260171577334404,
-0.01794654130935669,
-0.003555670380592346,
0.029771927744150162,
-0.0010476317256689072,
0.0036764824762940407,
0.006490697152912617,
-0.019633175805211067,
-0.020277507603168488,
0.05563996359705925,
0.021547220647335052,
-0.0041573625057935715,
0.02770627662539482,
-0.07906332612037659,
0.022229453548789024,
-0.05654960870742798,
-0.005524199455976486,
-0.025849083438515663,
-0.002243317663669586,
0.07057330757379532,
-0.006599665153771639,
-0.0008681899635121226,
0.019557371735572815,
-0.00037635385524481535
] |
724,859 | scipy.sparse._base | toarray |
Return a dense ndarray representation of this sparse array/matrix.
Parameters
----------
order : {'C', 'F'}, optional
Whether to store multidimensional data in C (row-major)
or Fortran (column-major) order in memory. The default
is 'None', which provides no ordering guarantees.
Cannot be specified in conjunction with the `out`
argument.
out : ndarray, 2-D, optional
If specified, uses this array as the output buffer
instead of allocating a new array to return. The provided
array must have the same shape and dtype as the sparse
array/matrix on which you are calling the method. For most
sparse types, `out` is required to be memory contiguous
(either C or Fortran ordered).
Returns
-------
arr : ndarray, 2-D
An array with the same shape and containing the same
data represented by the sparse array/matrix, with the requested
memory order. If `out` was passed, the same object is
returned after being modified in-place to contain the
appropriate values.
| def toarray(self, order=None, out=None):
"""
Return a dense ndarray representation of this sparse array/matrix.
Parameters
----------
order : {'C', 'F'}, optional
Whether to store multidimensional data in C (row-major)
or Fortran (column-major) order in memory. The default
is 'None', which provides no ordering guarantees.
Cannot be specified in conjunction with the `out`
argument.
out : ndarray, 2-D, optional
If specified, uses this array as the output buffer
instead of allocating a new array to return. The provided
array must have the same shape and dtype as the sparse
array/matrix on which you are calling the method. For most
sparse types, `out` is required to be memory contiguous
(either C or Fortran ordered).
Returns
-------
arr : ndarray, 2-D
An array with the same shape and containing the same
data represented by the sparse array/matrix, with the requested
memory order. If `out` was passed, the same object is
returned after being modified in-place to contain the
appropriate values.
"""
return self.tocoo(copy=False).toarray(order=order, out=out)
| (self, order=None, out=None) | [
-0.006155956536531448,
0.04132396727800369,
0.027981620281934738,
-0.020324427634477615,
0.026116177439689636,
-0.018885372206568718,
-0.026045113801956177,
0.02746640332043171,
0.038765646517276764,
-0.052729807794094086,
-0.04654720053076744,
-0.0761810690164566,
-0.002369554713368416,
-0.02855013497173786,
0.03663371503353119,
0.050242550671100616,
0.03727329522371292,
-0.060227103531360626,
-0.025956282392144203,
0.09053608775138855,
0.008732042275369167,
-0.0450548492372036,
-0.0002519178669899702,
0.01789047010242939,
-0.015012361109256744,
-0.024712655693292618,
0.051983632147312164,
-0.05333385616540909,
0.02821257896721363,
-0.04139503091573715,
0.010872857645154,
0.02286498062312603,
-0.013004790991544724,
0.08257687091827393,
0.026560330763459206,
-0.004219450522214174,
0.012045420706272125,
0.023735519498586655,
0.056958142668008804,
0.023806584998965263,
-0.022545190528035164,
-0.06378033012151718,
-0.008092462085187435,
0.007346285507082939,
0.029598334804177284,
0.053689178079366684,
0.02364668995141983,
0.012436275370419025,
-0.004228333476930857,
0.00840781070291996,
0.06008497625589371,
-0.03585200384259224,
0.017286423593759537,
-0.002456164453178644,
-0.05020701885223389,
-0.012587287463247776,
0.01959601603448391,
-0.04420207440853119,
0.006595667451620102,
-0.012249731458723545,
-0.03137494623661041,
-0.004752433858811855,
0.0753282979130745,
0.005423104390501976,
-0.034057628363370895,
0.01588289998471737,
-0.015465396456420422,
-0.007230805698782206,
0.02215433679521084,
0.037770744413137436,
-0.03656265139579773,
-0.026560330763459206,
0.0053786891512572765,
-0.005232118535786867,
0.021070603281259537,
0.04551676660776138,
-0.02320253662765026,
-0.031019624322652817,
-0.03972501680254936,
0.016860036179423332,
-0.046973589807748795,
0.0380905345082283,
-0.022278698161244392,
0.03670477867126465,
-0.027413103729486465,
0.0037153372541069984,
0.07980535924434662,
0.05873475223779678,
-0.02245636098086834,
0.0022007764782756567,
0.016007263213396072,
0.02201220765709877,
-0.01536768302321434,
0.049460843205451965,
-0.006804419215768576,
-0.033382516354322433,
0.0023784376680850983,
0.004468176048249006,
-0.03180133178830147,
0.04295844957232475,
-0.02791055478155613,
0.025547662749886513,
0.08364283293485641,
0.026329372078180313,
-0.02357562445104122,
-0.0324409119784832,
0.023504560813307762,
0.01640699990093708,
0.04679592698812485,
0.019382823258638382,
0.004863472189754248,
0.07312530279159546,
0.011494671925902367,
-0.01160126831382513,
-0.004601421765983105,
-0.06779547035694122,
0.009682528674602509,
0.060369234532117844,
-0.11206860840320587,
-0.01766839437186718,
-0.025227872654795647,
-0.00877645704895258,
0.03427082300186157,
0.014408313669264317,
-0.01651359722018242,
0.0038041677325963974,
-0.01692221686244011,
-0.014257301576435566,
0.08641434460878372,
0.01436389796435833,
-0.037095632404088974,
-0.046120814979076385,
-0.021727949380874634,
-0.041039709001779556,
-0.005787309724837542,
0.0006207033875398338,
0.0670492872595787,
-0.018565582111477852,
-0.0010865085059776902,
0.027697362005710602,
0.030149085447192192,
-0.024996913969516754,
-0.02000463753938675,
-0.018512284383177757,
0.05187703296542168,
0.025156809017062187,
0.06982080638408661,
0.027892788872122765,
-0.02490808255970478,
-0.01982697658240795,
-0.01867217943072319,
0.0112637123093009,
0.01829909160733223,
-0.022989343851804733,
-0.009495984762907028,
-0.0007667185855098069,
0.0170021653175354,
-0.059303268790245056,
0.029935890808701515,
0.03386219963431358,
-0.032796233892440796,
0.03737989068031311,
-0.03762861713767052,
0.003333366010338068,
0.008345629088580608,
0.052800871431827545,
-0.0070709106512367725,
-0.04967403784394264,
-0.049354247748851776,
-0.03169473633170128,
-0.07568361610174179,
-0.021727949380874634,
0.0007284104358404875,
0.005152171012014151,
-0.03219218552112579,
-0.006537927780300379,
0.00983354076743126,
0.042070142924785614,
0.042816318571567535,
0.04075545072555542,
0.0400092750787735,
0.01979144476354122,
-0.0604402981698513,
0.05212575942277908,
-0.010162213817238808,
0.03737989068031311,
-0.0088919373229146,
-0.045303575694561005,
0.06658737361431122,
0.03384443372488022,
0.06562799960374832,
0.05905454233288765,
-0.001600060029886663,
0.022260932251811028,
0.020519854500889778,
-0.025298938155174255,
-0.10951028764247894,
0.03158814087510109,
-0.018583348020911217,
0.08414028584957123,
0.042780786752700806,
-0.023628924041986465,
0.025103509426116943,
0.04064885526895523,
0.00042138987919315696,
0.053618114441633224,
0.04921211674809456,
-0.06797312945127487,
-0.022101037204265594,
0.08271899819374084,
-0.0018787658773362637,
-0.030575470998883247,
-0.016788972541689873,
-0.0014434962067753077,
0.05020701885223389,
-0.008878611959517002,
-0.03604743257164955,
0.013999693095684052,
0.006911016069352627,
0.006049359682947397,
-0.013493359088897705,
-0.01369766891002655,
-0.03066430240869522,
0.018885372206568718,
-0.06790206581354141,
-0.010926156304776669,
0.01141472440212965,
-0.010108915157616138,
-0.022918278351426125,
0.007346285507082939,
-0.018494518473744392,
-0.02695118449628353,
0.0024050867650657892,
-0.03069983422756195,
0.06832844763994217,
0.02593851648271084,
0.009913488291203976,
-0.0031068481039255857,
-0.009380504488945007,
0.03649158403277397,
-0.03125058487057686,
-0.028638966381549835,
0.01611386053264141,
-0.009673645719885826,
0.003573208348825574,
0.06267882883548737,
0.04651166871190071,
0.017570680007338524,
0.01494129654020071,
0.004841264337301254,
-0.04725784808397293,
-0.0327429361641407,
0.06303414702415466,
-0.027288740500807762,
0.013848681002855301,
-0.020057935267686844,
-0.028230344876646996,
0.007852619513869286,
-0.030628768727183342,
-0.02146145887672901,
-0.002758188173174858,
0.04416654258966446,
0.06047582998871803,
0.0016233781352639198,
0.024375099688768387,
-0.01681562140583992,
0.011014986783266068,
0.008514407090842724,
-0.0043127224780619144,
0.04352696239948273,
0.005414221435785294,
0.05219682306051254,
-0.05518152937293053,
-0.0067289131693542,
0.026311606168746948,
-0.03517689183354378,
0.016833387315273285,
0.022705085575580597,
-0.033613476902246475,
0.0916731134057045,
-0.030202383175492287,
0.02011123299598694,
0.00038974397466517985,
0.02242082729935646,
-0.031126219779253006,
-0.0481816828250885,
-0.04967403784394264,
-0.030006956309080124,
0.009851306676864624,
-0.04402441531419754,
0.011032752692699432,
0.019134098663926125,
-0.053689178079366684,
-0.026968952268362045,
-0.002311814809218049,
-0.0431361086666584,
-0.03258304297924042,
-0.027111079543828964,
0.001223640632815659,
0.06744014471769333,
-0.0030668743420392275,
0.038659051060676575,
0.007661634124815464,
0.03277846798300743,
0.0462629459798336,
-0.007439557462930679,
-0.03499923273921013,
0.04235440120100975,
-0.055998772382736206,
0.06960760802030563,
-0.006751121021807194,
-0.0481816828250885,
-0.021141668781638145,
0.002642708597704768,
-0.08023174107074738,
0.00011908844317076728,
0.019542718306183815,
-0.0020875176414847374,
0.06420671194791794,
0.027448635548353195,
-0.033346984535455704,
-0.011858876794576645,
-0.025067977607250214,
-0.050349149852991104,
-0.04729337990283966,
-0.015349917113780975,
-0.017455201596021652,
-0.04079098254442215,
0.0466182678937912,
0.01648694835603237,
0.03798393905162811,
-0.052054695785045624,
-0.01388421282172203,
0.0497451014816761,
-0.03265410661697388,
-0.03517689183354378,
0.023184770718216896,
-0.04185694828629494,
-0.008900820277631283,
-0.016469182446599007,
-0.029349610209465027,
0.05315619334578514,
-0.05013595521450043,
-0.026773523539304733,
-0.03929863125085831,
-0.03581647202372551,
-0.06605438888072968,
-0.031019624322652817,
-0.002955836243927479,
0.013617721386253834,
0.017064346000552177,
-0.00018751571769826114,
0.010508652776479721,
0.08236367255449295,
0.010011201724410057,
0.03919203206896782,
0.02041325718164444,
0.01241850946098566,
0.03912096843123436,
-0.04889232665300369,
0.012125368230044842,
0.016833387315273285,
0.042851850390434265,
-0.0803738683462143,
0.032902833074331284,
-0.0018154741264879704,
-0.0007267448236234486,
-0.025778621435165405,
0.06058242544531822,
-0.018761008977890015,
0.0027159936726093292,
-0.04647613689303398,
0.004519253503531218,
0.05006489157676697,
0.042105674743652344,
0.003957400564104319,
-0.09735827147960663,
0.011610151268541813,
-0.03890777751803398,
-0.03926309943199158,
0.024215204641222954,
0.0002288774267071858,
0.005303183104842901,
-0.004579214379191399,
-0.02112390287220478,
-0.012356327846646309,
-0.012045420706272125,
0.0557500459253788,
-0.029385142028331757,
-0.0038174923975020647,
-0.026773523539304733,
0.0516638420522213,
-0.0030890819616615772,
-0.042141206562519073,
0.022349763661623,
0.03720222786068916,
0.0143283661454916,
0.03801947087049484,
0.014292833395302296,
-0.03217441961169243,
-0.03192569687962532,
-0.030824197456240654,
-0.03801947087049484,
-0.0005762880900874734,
-0.05493280664086342,
0.008336746133863926,
-0.03132164850831032,
-0.06587672978639603,
0.03144600987434387,
0.023895414546132088,
-0.007417350076138973,
0.02858566679060459,
0.04320717230439186,
-0.0400092750787735,
0.012800480239093304,
0.02419743873178959,
0.011245946399867535,
0.02494361437857151,
0.05020701885223389,
0.00710644293576479,
0.026187242940068245,
0.06083115190267563,
0.014355015009641647,
-0.013724317774176598,
0.0349637009203434,
-0.07504403591156006,
-0.046191878616809845,
0.016007263213396072,
0.0002530282363295555,
0.02657809667289257,
-0.01733083836734295,
0.010064500384032726,
-0.012578404508531094,
-0.006320292595773935,
-0.04473505914211273,
0.024321801960468292,
0.006853275932371616,
0.015527578070759773,
-0.052694275975227356,
0.011663449928164482,
-0.0037153372541069984,
0.05909007415175438,
0.000536314386408776,
0.010659664869308472,
0.04629847779870033,
-0.01666460931301117,
-0.012436275370419025,
0.0269156526774168,
-0.007608335465192795,
-0.05251661315560341,
0.06772439926862717,
-0.013768733479082584,
0.030628768727183342,
0.0008433349430561066,
-0.04327823966741562,
0.01789047010242939,
0.08520625531673431,
-0.040400128811597824,
0.032494209706783295,
0.010766261257231236,
0.013955277390778065,
-0.0374864861369133,
0.006569018121808767,
-0.04793296009302139,
0.01740190200507641,
-0.038730114698410034,
-0.018565582111477852,
0.001519002253189683,
0.01264058519154787,
-0.05486173927783966,
0.013715434819459915,
0.0067999777384102345,
-0.03499923273921013,
-0.06918122619390488,
0.004028465133160353,
-0.004024023190140724,
-0.025139043107628822,
-0.0008533283835276961,
-0.037166696041822433,
0.021017305552959442,
-0.008012514561414719,
-0.0617549903690815,
-0.0368824377655983,
0.017419667914509773,
-0.0031912371050566435,
0.0020153429359197617,
0.08342964202165604,
-0.028834393247961998,
-0.009886838495731354,
0.01740190200507641,
-0.02824811078608036,
0.015971731394529343,
0.00264937081374228,
-0.031019624322652817,
0.07909470796585083,
0.03510582819581032,
0.01736637018620968,
0.034022096544504166,
-0.03180133178830147,
0.07667852193117142,
-0.005014483816921711,
0.0010426484514027834,
-0.058557089418172836,
0.01312027033418417,
-0.021372627466917038,
-0.0516638420522213,
-0.0024028660263866186,
0.004628071095794439,
0.0013968602288514376,
0.014035224914550781,
-0.0885462835431099,
0.049354247748851776,
-0.045410171151161194,
-0.007386259268969297,
-0.014319483190774918,
0.05141511559486389,
-0.038730114698410034,
0.00012110100942663848,
-0.053653646260499954,
0.03006025403738022,
0.023504560813307762,
0.023522326722741127,
-0.00331782060675323,
0.0431361086666584,
-0.05667388439178467,
0.0380905345082283,
-0.02449946291744709,
0.017570680007338524,
0.0015256644692271948,
0.01172563061118126,
-0.04260312765836716,
-0.04580102488398552,
0.0005632411339320242,
0.06132860481739044,
0.0058272834867239,
-0.01867217943072319,
0.07102889567613602,
0.05560791864991188,
0.006653407122939825,
-0.016353702172636986,
0.005773984827101231,
0.038623519241809845,
0.04462846368551254,
-0.001328016514889896,
0.0011670112144201994,
0.034874867647886276,
-0.019844742491841316,
-0.024694889783859253,
-0.002633825410157442,
-0.0472223125398159,
-0.04668933153152466,
-0.026418201625347137,
0.09209950268268585,
-0.005285417195409536,
0.08904372900724411,
-0.012702766805887222,
-0.007141975220292807,
0.009176194667816162,
0.0052543263882398605,
-0.01417735405266285,
0.004730226006358862,
0.03762861713767052,
-0.00978024210780859,
-0.008012514561414719,
-0.060973282903432846,
-0.018849840387701988,
0.018059248104691505,
0.02323806844651699,
-0.021425925195217133,
-0.01630040444433689,
-0.011317010968923569,
-0.06164839491248131,
-0.04732891172170639,
0.03499923273921013,
0.00007425677904393524,
0.009975669905543327,
-0.004956744145601988,
0.0000695376584189944,
0.008234591223299503,
0.027040015906095505,
0.022669553756713867,
-0.03077089786529541,
-0.02423297055065632,
0.003737544873729348,
0.050988730043172836,
-0.03169473633170128,
-0.030042488127946854,
0.016984399408102036,
0.004274969454854727,
-0.042141206562519073,
0.04459293186664581,
-0.05223235487937927,
0.03162367269396782,
0.008936352096498013,
0.024339567869901657,
-0.056958142668008804,
-0.05013595521450043,
-0.016229338943958282,
0.04231886938214302,
-0.05230342224240303,
-0.014248418621718884,
0.02487255074083805,
0.012489574030041695,
-0.006706705782562494,
0.04260312765836716,
-0.013813148252665997,
-0.046973589807748795,
-0.03594083711504936,
0.025512130931019783,
0.007093118503689766,
-0.06772439926862717,
-0.03883671015501022,
-0.03377337008714676,
-0.028834393247961998,
-0.02011123299598694,
0.03473274037241936,
0.00916731171309948,
-0.06289201974868774,
-0.06807972490787506,
-0.03737989068031311,
0.030557705089449883,
-0.0018077014246955514,
0.00020680860325228423,
0.011698981747031212,
0.012987025082111359,
0.008230149745941162,
-0.020129000768065453,
0.014648155309259892,
0.006435772404074669,
0.031055156141519547,
-0.010935039259493351,
0.014017459005117416,
0.03741542249917984,
0.02297157794237137,
0.038730114698410034,
-0.049460843205451965,
-0.0516638420522213,
0.05585664138197899,
0.03126835078001022,
0.04093311354517937,
-0.04189248010516167,
0.016353702172636986,
0.03801947087049484,
-0.061897117644548416,
-0.04967403784394264,
-0.09465782344341278,
0.04128843545913696,
-0.05091766640543938,
0.022331997752189636,
0.004519253503531218,
-0.0016611310420557857,
0.016140509396791458,
-0.03199676051735878,
-0.00840781070291996,
0.007439557462930679,
0.029562802985310555,
-0.004930094815790653,
0.02940290793776512,
-0.03199676051735878,
0.007595011033117771,
-0.0627143606543541,
-0.0007817087462171912,
-0.04008033871650696,
-0.04018693417310715,
0.0037841808516532183,
0.01065078191459179,
-0.026773523539304733,
0.06562799960374832,
0.01097057107836008,
0.0036798049695789814,
-0.10155107080936432,
0.06626757979393005,
0.032902833074331284,
-0.0014668143121525645,
-0.000850552401971072,
-0.00778599688783288,
0.05304959788918495,
-0.04729337990283966,
0.006076009012758732,
-0.02004016935825348,
0.03551444783806801,
0.10588600486516953,
0.055252593010663986,
0.03347134590148926,
-0.02654256485402584,
-0.02842577174305916,
0.0069243405014276505,
0.01867217943072319,
-0.08264793455600739,
-0.09629230201244354,
0.03359571099281311,
0.019169630482792854,
0.08428241312503815,
-0.021870078518986702,
-0.006480187643319368,
0.06306967884302139,
-0.01863664761185646,
0.0613996684551239,
-0.016122743487358093,
0.020555386319756508,
-0.008030280470848083,
-0.004168373066931963,
0.019027501344680786,
0.023326899856328964,
0.05805964022874832,
0.010757378302514553,
-0.03631392493844032,
-0.013928628526628017,
-0.059303268790245056,
0.019169630482792854,
-0.0034732739441096783,
-0.007661634124815464,
0.0003247866698075086,
0.017686160281300545,
-0.0001630873157409951,
-0.00855882279574871,
-0.024730421602725983,
0.007341844029724598,
-0.01996910572052002,
0.06182605400681496,
-0.022278698161244392,
0.006573460064828396,
0.05400896817445755,
-0.011130466125905514,
-0.08726712316274643,
0.015403215773403645,
-0.013839798048138618,
-0.007746023125946522,
0.05404449999332428,
-0.01826355792582035,
-0.004805732052773237,
-0.016788972541689873,
0.0063735912553966045,
0.04796849191188812,
-0.04143056273460388,
0.004121737089008093,
-0.023895414546132088,
-0.02831917628645897,
0.006457980256527662,
0.03649158403277397,
-0.024765953421592712,
0.042709723114967346,
0.01145025622099638,
0.05084659904241562,
-0.010757378302514553,
0.009495984762907028,
0.007910359650850296,
-0.015198905020952225,
-0.05294300243258476,
0.004534799139946699,
0.00005985651660012081,
-0.020537620410323143,
0.02627607248723507,
0.010144447907805443,
0.05088213086128235,
-0.01503012701869011,
-0.03434188663959503,
-0.046049751341342926,
0.016691258177161217,
-0.02290051244199276,
-0.05880581587553024,
-0.029793761670589447,
-0.09472888708114624,
0.08300325274467468,
-0.029562802985310555,
-0.03126835078001022,
0.042709723114967346,
-0.021727949380874634
] |
724,861 | scipy.sparse._dok | tocoo | Convert this array/matrix to COOrdinate format.
With copy=False, the data/indices may be shared between this array/matrix and
the resultant coo_array/matrix.
| def tocoo(self, copy=False):
nnz = self.nnz
if nnz == 0:
return self._coo_container(self.shape, dtype=self.dtype)
idx_dtype = self._get_index_dtype(maxval=max(self.shape))
data = np.fromiter(self.values(), dtype=self.dtype, count=nnz)
# handle 1d keys specially b/c not a tuple
inds = zip(*self.keys()) if self.ndim > 1 else (self.keys(),)
coords = tuple(np.fromiter(ix, dtype=idx_dtype, count=nnz) for ix in inds)
A = self._coo_container((data, coords), shape=self.shape, dtype=self.dtype)
A.has_canonical_format = True
return A
| (self, copy=False) | [
0.007823102176189423,
-0.03205477446317673,
0.01400623470544815,
-0.06996025890111923,
0.019023658707737923,
-0.009432046674191952,
0.0004911600844934583,
0.012011676095426083,
0.07715839892625809,
-0.0028522189240902662,
-0.026806868612766266,
0.013385705649852753,
-0.01708228699862957,
-0.013474352657794952,
0.02590266987681389,
-0.0027192484121769667,
0.016550404950976372,
-0.032746221870183945,
-0.029413092881441116,
0.06793910264968872,
0.02306596376001835,
-0.055883102118968964,
0.013350246474146843,
0.049961481243371964,
-0.022108575329184532,
-0.04786941036581993,
-0.007113926112651825,
0.027214646339416504,
0.0010665348963811994,
-0.04634467884898186,
-0.035636115819215775,
0.02022925764322281,
-0.04804670438170433,
0.03382771462202072,
0.032923515886068344,
-0.018048539757728577,
0.024094268679618835,
-0.03164699673652649,
0.0908455029129982,
-0.026257257908582687,
0.022250410169363022,
-0.0797114297747612,
-0.09963928908109665,
-0.012144646607339382,
0.04063580930233002,
0.04177049174904823,
0.02847343310713768,
0.046734727919101715,
0.026221798732876778,
-0.02230359986424446,
-0.04162865877151489,
-0.023633304983377457,
0.011923029087483883,
0.014671087265014648,
-0.03730268031358719,
-0.021647611632943153,
0.02572537586092949,
0.03223206847906113,
-0.0457773394882679,
0.01737482286989689,
-0.08588126301765442,
0.015752581879496574,
0.016186952590942383,
-0.03391636162996292,
0.03157608211040497,
-0.01950235292315483,
0.007113926112651825,
-0.011754599399864674,
0.06464143097400665,
-0.02308369241654873,
-0.014573575928807259,
-0.010557863861322403,
0.01756098121404648,
-0.030742798000574112,
0.004099926445633173,
-0.004587484989315271,
-0.04911046847701073,
0.022126303985714912,
-0.004472244065254927,
0.004862290807068348,
-0.07765482366085052,
-0.03343766927719116,
-0.0560249388217926,
0.029820868745446205,
0.010114628821611404,
0.05428745597600937,
0.04723115265369415,
0.04556458443403244,
-0.00780094088986516,
0.04354343190789223,
0.03334902226924896,
-0.03200158849358559,
-0.02226814068853855,
0.034980129450559616,
0.0194846224039793,
0.018208105117082596,
-0.0006282859831117094,
0.004840129055082798,
0.04237329214811325,
0.06641437113285065,
-0.04545820876955986,
-0.012561287730932236,
-0.03113284520804882,
0.04623830318450928,
-0.03512196242809296,
0.010194411501288414,
0.035068776458501816,
-0.006280643865466118,
-0.020920705050230026,
-0.01018554624170065,
-0.014742005616426468,
0.08141345530748367,
0.06669804453849792,
-0.020867517217993736,
-0.029501739889383316,
-0.05499663203954697,
0.009715717285871506,
-3.592629695958749e-7,
-0.05641498416662216,
0.018172645941376686,
-0.038047317415475845,
0.021346211433410645,
0.04006846994161606,
0.015300481580197811,
-0.04052943363785744,
0.06219477206468582,
-0.012233293615281582,
-0.024094268679618835,
0.002670492511242628,
0.000462903844891116,
0.03487375006079674,
-0.08531392365694046,
0.021878093481063843,
0.03150516375899315,
-0.008120070211589336,
0.019271869212388992,
0.018970469012856483,
-0.011905299499630928,
-0.055244844406843185,
0.044075313955545425,
0.032267529517412186,
-0.003361939452588558,
0.029714493080973625,
0.03705446794629097,
0.044039856642484665,
-0.005651249550282955,
0.04013938456773758,
-0.008022558875381947,
-0.007291220128536224,
-0.020743411034345627,
-0.00847909040749073,
0.03223206847906113,
0.011577305383980274,
0.012224429287016392,
-0.029572658240795135,
-0.0736125111579895,
0.015105457976460457,
-0.0887179747223854,
0.03107965737581253,
0.032852597534656525,
-0.029218068346381187,
0.03921745717525482,
-0.05173442140221596,
-0.021629881113767624,
-0.004514351487159729,
-0.014990217052400112,
0.020707951858639717,
-0.09077458083629608,
-0.029590386897325516,
-0.052904561161994934,
-0.0199278574436903,
-0.027622422203421593,
0.0006194213056005538,
0.03726722300052643,
-0.02600904554128647,
-0.01747233420610428,
-0.049890562891960144,
0.03193067014217377,
0.052301760762929916,
-0.0572659969329834,
-0.009325670078396797,
0.0008354985038749874,
-0.05354282259941101,
0.030459128320217133,
0.024697069078683853,
-0.005265634972602129,
0.027143727988004684,
0.003173564560711384,
0.049075011163949966,
0.010345111601054668,
-0.0031115117017179728,
0.07822216302156448,
0.0165681354701519,
0.02538851648569107,
0.021807175129652023,
-0.03677079826593399,
-0.04531637579202652,
0.03974933922290802,
-0.04606100916862488,
0.09112916886806488,
-0.06262028217315674,
-0.04850766807794571,
0.047124773263931274,
-0.005908326245844364,
-0.014609034173190594,
0.015504369512200356,
-0.0029896218329668045,
-0.017631899565458298,
0.005549305584281683,
0.035299256443977356,
0.02813657559454441,
-0.030689610168337822,
-0.07244237512350082,
-0.03701901063323021,
-0.010912452824413776,
0.02226814068853855,
-0.02831386961042881,
-0.06464143097400665,
0.00555817037820816,
0.006054593715816736,
0.04478449374437332,
-0.004693861585110426,
-0.03450143337249756,
-0.008993243798613548,
-0.034111388027668,
-0.021949009969830513,
0.006830255500972271,
0.02306596376001835,
-0.017490064725279808,
-0.02230359986424446,
-0.0005338214687071741,
-0.03129240870475769,
-0.06410954892635345,
-0.055705808103084564,
0.0016942668007686734,
-0.02295958809554577,
0.015850093215703964,
0.006519990973174572,
-0.016399705782532692,
0.00244444259442389,
-0.032551199197769165,
-0.02820749208331108,
0.035157423466444016,
0.020761139690876007,
-0.015087728388607502,
-0.023987893015146255,
0.000015721001545898616,
0.05311731621623039,
0.030600963160395622,
0.04808216169476509,
-0.029111692681908607,
-0.005926055833697319,
0.021328480914235115,
-0.014032828621566296,
0.01962645724415779,
-0.02592039853334427,
-0.027214646339416504,
-0.017871245741844177,
-0.040813103318214417,
-0.026487739756703377,
-0.035529740154743195,
0.040954940021038055,
0.038118232041597366,
0.007552728988230228,
0.018793174996972084,
0.02015834115445614,
0.0463092215359211,
-0.010221005417406559,
-0.03095555119216442,
0.0457773394882679,
-0.013500946573913097,
0.02528214082121849,
0.003663339652121067,
0.012729717418551445,
0.010850399732589722,
-0.03377452865242958,
0.05074157565832138,
-0.035919785499572754,
-0.02895212732255459,
0.05609585717320442,
-0.00864752009510994,
0.03669987991452217,
-0.023810598999261856,
-0.041167691349983215,
-0.01657699979841709,
-0.0036212322302162647,
-0.06198202073574066,
-0.026221798732876778,
0.008771626278758049,
-0.06219477206468582,
0.006847985088825226,
0.03404046967625618,
-0.01702909916639328,
-0.00850568525493145,
0.027250105515122414,
-0.012144646607339382,
-0.05957081913948059,
0.03648712858557701,
0.02597358636558056,
0.055883102118968964,
-0.01735709421336651,
0.006431343965232372,
-0.02295958809554577,
0.012162376195192337,
0.06400317698717117,
-0.013749158009886742,
-0.03677079826593399,
0.038047317415475845,
-0.027161458507180214,
0.09495872259140015,
0.007424190640449524,
-0.02320779860019684,
-0.006830255500972271,
0.018722258508205414,
-0.05421653762459755,
0.01980375126004219,
-0.009485234506428242,
-0.012180105783045292,
0.05705324560403824,
0.05074157565832138,
-0.047018397599458694,
-0.061237383633852005,
-0.08446291089057922,
-0.03691263496875763,
-0.05478388071060181,
0.0005606926279142499,
-0.010486946441233158,
-0.061308301985263824,
0.02817203477025032,
-0.02006969228386879,
0.03083144500851631,
0.005651249550282955,
-0.018048539757728577,
0.06166289001703262,
-0.03680625557899475,
0.004773643799126148,
0.030210915952920914,
-0.02838478609919548,
-0.03478510305285454,
-0.017977623268961906,
-0.030335022136569023,
0.032551199197769165,
-0.01681634597480297,
-0.02538851648569107,
-0.10176681727170944,
-0.0463092215359211,
-0.07276150584220886,
-0.05910985544323921,
-0.026186339557170868,
-0.04308246821165085,
-0.009946199133992195,
-0.006373723037540913,
0.03095555119216442,
0.05347190424799919,
0.0029674600809812546,
0.05166350305080414,
0.03164699673652649,
-0.046805646270513535,
0.007339976262301207,
-0.046734727919101715,
0.06020908057689667,
-0.02508711628615856,
0.01556642260402441,
-0.07701656222343445,
0.04173503443598747,
0.046486515551805496,
-0.0021629880648106337,
-0.055173926055431366,
-0.00878049060702324,
-0.023881517350673676,
0.011816652491688728,
0.0024732528254389763,
0.000384783634217456,
0.01994558796286583,
-0.01289814617484808,
0.0072203027084469795,
-0.060563668608665466,
0.021984469145536423,
-0.0676908940076828,
-0.06446413695812225,
0.029554927721619606,
-0.035707034170627594,
-0.015805769711732864,
0.021239833906292915,
-0.035192880779504776,
0.00775661738589406,
0.023331904783844948,
0.027711069211363792,
0.0051149348728358746,
-0.007167114410549402,
-0.03116830438375473,
0.01009689923375845,
-0.018208105117082596,
-0.052230846136808395,
-0.0010676429374143481,
0.035352446138858795,
0.03216115012764931,
0.043472517281770706,
0.012321940623223782,
-0.024679340422153473,
-0.00833725556731224,
-0.058294303715229034,
-0.0011723573552444577,
0.007543864194303751,
-0.038260068744421005,
-0.04535183310508728,
0.009325670078396797,
-0.038224611431360245,
0.049748726189136505,
0.014573575928807259,
0.032267529517412186,
0.044323526322841644,
0.07673288881778717,
0.018722258508205414,
0.0003158051404170692,
-0.027108268812298775,
-0.02515803463757038,
-0.04549366980791092,
0.014777463860809803,
0.013385705649852753,
0.0280124694108963,
0.026824599131941795,
-0.024767987430095673,
-0.02315461076796055,
0.03157608211040497,
-0.011834382079541683,
-0.024360211566090584,
0.02287093922495842,
0.038082774728536606,
0.001564620528370142,
-0.023420551791787148,
-0.02859753929078579,
-0.0005850705783814192,
-0.02035336382687092,
-0.06669804453849792,
0.027622422203421593,
0.038685575127601624,
0.0009994955034926534,
0.004556458443403244,
0.05772696062922478,
0.004671699833124876,
-0.002659411635249853,
-0.024023352190852165,
-0.0036589072551578283,
-0.028828023001551628,
0.032923515886068344,
0.0011108584003522992,
0.008820381946861744,
-0.018403127789497375,
-0.02542397566139698,
0.10077397525310516,
0.03765726834535599,
-0.02879256382584572,
-0.07808032631874084,
0.01756984554231167,
0.02249862253665924,
-0.01436082273721695,
-0.01985694095492363,
0.018899552524089813,
0.021097999066114426,
-0.009272482246160507,
-0.040671270340681076,
0.04474903270602226,
-0.04528091475367546,
0.01141774095594883,
-0.009706852957606316,
0.015929875895380974,
0.015885552391409874,
-0.003020648378878832,
-0.0010848183883354068,
0.02551262266933918,
-0.008177691139280796,
0.005567035172134638,
-0.06574065238237381,
0.005247905850410461,
0.008386011235415936,
0.004902182146906853,
0.020654764026403427,
0.004321543965488672,
-0.0059881084598600864,
-0.03485602140426636,
0.014440605416893959,
-0.00416197907179594,
-0.03694809228181839,
-0.027445128187537193,
0.06616616249084473,
0.06276211142539978,
-0.026452280580997467,
-0.01142660528421402,
0.024732528254389763,
-0.015451181679964066,
0.05875526741147041,
-0.05914531648159027,
0.04762119799852371,
0.061060089617967606,
0.06286849081516266,
-0.015087728388607502,
0.012685393914580345,
-0.03971388190984726,
0.03918199986219406,
-0.021576693281531334,
0.0022826616186648607,
-0.046451058238744736,
0.0334022119641304,
-0.009449776262044907,
-0.02606223337352276,
-0.010885857976973057,
-0.027356481179594994,
0.003929280675947666,
-0.05084795132279396,
-0.02510484680533409,
-0.02503392845392227,
-0.005221311468631029,
-0.0017230771481990814,
0.008820381946861744,
0.02804792858660221,
-0.04492632672190666,
-0.026274986565113068,
-0.04886225610971451,
-0.0194846224039793,
0.02228586934506893,
0.03102646954357624,
-0.041380446404218674,
0.012277617119252682,
-0.0746762752532959,
0.04052943363785744,
0.026257257908582687,
0.00015111552784219384,
0.009077458642423153,
-0.000654880132060498,
-0.0729033350944519,
-0.09368220716714859,
-0.032462552189826965,
0.0662725418806076,
-0.024537505581974983,
0.0034550188574939966,
0.04790486767888069,
0.041061315685510635,
0.060811880975961685,
0.01276517566293478,
-0.015273887664079666,
0.03733813762664795,
0.05882618576288223,
-0.016390839591622353,
0.02567218616604805,
0.0463092215359211,
0.024537505581974983,
-0.010637646540999413,
-0.021612152457237244,
0.013421163894236088,
-0.03960750252008438,
-0.007508405484259129,
0.06957020610570908,
-0.014671087265014648,
0.03076052851974964,
0.028828023001551628,
0.008922326378524303,
-0.041096772998571396,
0.0036589072551578283,
-0.021647611632943153,
0.04318884387612343,
0.007902884855866432,
0.029998162761330605,
-0.030033621937036514,
-0.046734727919101715,
0.023190069943666458,
0.027622422203421593,
0.026079963892698288,
0.014812923036515713,
0.049926020205020905,
-0.00499969394877553,
-0.02283548191189766,
-0.03354404494166374,
0.02565445750951767,
0.002674924908205867,
-0.0038007425609976053,
-0.021505774930119514,
-0.013890993781387806,
0.016461757943034172,
0.012286481447517872,
-0.01116952858865261,
0.0407421849668026,
0.01715320535004139,
0.024360211566090584,
0.0630103275179863,
-0.01155071146786213,
-0.022055387496948242,
0.01978602260351181,
0.055315762758255005,
-0.07956959307193756,
0.05294002220034599,
-0.01742801070213318,
-0.00008075192454271019,
0.0165681354701519,
0.01709115132689476,
-0.05333006754517555,
-0.028969857841730118,
0.013385705649852753,
0.024980740621685982,
-0.013758023269474506,
0.038047317415475845,
-0.002976324874907732,
-0.04276333749294281,
0.06935745477676392,
-0.02272910438477993,
0.037799105048179626,
-0.024980740621685982,
-0.020477470010519028,
0.060953713953495026,
0.026221798732876778,
0.01254355814307928,
0.003831768874078989,
-0.03350858762860298,
-0.015752581879496574,
-0.06467688828706741,
-0.03129240870475769,
-0.04769211634993553,
-0.006710581947118044,
-0.06942837685346603,
0.004082196857780218,
-0.0030538910068571568,
-0.03889832645654678,
-0.03744451701641083,
0.03928837552666664,
-0.04833037406206131,
-0.004458946641534567,
0.04354343190789223,
0.07127223163843155,
0.024572962895035744,
0.09666074812412262,
0.049819644540548325,
-0.01752552203834057,
-0.01653267629444599,
0.029164880514144897,
-0.035494279116392136,
-0.0003914321423508227,
-0.047089315950870514,
0.09304394572973251,
0.04857858642935753,
0.1094968393445015,
0.022197222337126732,
-0.004204086493700743,
0.03960750252008438,
0.017605304718017578,
-0.012729717418551445,
-0.06400317698717117,
0.049784187227487564,
-0.05361373722553253,
-0.010681970044970512,
-0.046734727919101715,
-0.009760040789842606,
0.009192699566483498,
0.01561074610799551,
-0.005429632030427456,
-0.021523505449295044,
-0.014582440257072449,
-0.029182611033320427,
-0.02255181036889553,
-0.018243564292788506,
-0.008230878971517086,
-0.032373905181884766,
-0.015397993847727776,
-0.03723176196217537,
-0.06659166514873505,
0.10311425477266312,
0.032480280846357346,
0.027640150859951973,
0.021683068946003914,
0.024058811366558075,
0.03382771462202072,
-0.02242770418524742,
0.00036317590274848044,
-0.0083505529910326,
0.030051352456212044,
0.026682764291763306,
0.014919299632310867,
0.02326098643243313,
0.08701594918966293,
-0.011080881580710411,
-0.04184141010046005,
0.0615919753909111,
0.03943020850419998,
0.014156934805214405,
-0.015194104984402657,
-0.01128477044403553,
-0.0456000454723835,
-0.012268752790987492,
-0.030175456777215004,
-0.04045851528644562,
-0.049961481243371964,
0.06173380836844444,
0.02886348031461239,
0.05120253935456276,
-0.0012521396856755018,
-0.01740141771733761,
0.05432291701436043,
-0.005128232296556234,
-0.0017363742226734757,
0.01017668191343546,
0.018474046140909195,
0.015743717551231384,
-0.006670691072940826,
0.006320535205304623,
0.024342481046915054,
0.05896802246570587,
0.022019928321242332,
0.009972793981432915,
0.02030017599463463,
0.0055360086262226105,
-0.00031497408053837717,
-0.0021242049988359213,
0.06985387951135635,
-0.029111692681908607,
0.03354404494166374,
0.012118052691221237,
0.05641498416662216,
-0.005425199866294861,
0.008230878971517086,
-0.029820868745446205,
0.02311915159225464,
0.019059116020798683,
0.02317233942449093,
0.009547287598252296,
0.03957204520702362,
0.03405819833278656,
0.05896802246570587,
-0.011541846208274364,
-0.01128477044403553,
-0.038330987095832825,
-0.017871245741844177,
0.012410587631165981,
-0.03630983456969261,
0.009706852957606316,
0.026150880381464958,
-0.013022252358496189,
0.015655070543289185,
-0.04212507978081703,
-0.012525828555226326,
0.01272085215896368,
0.05772696062922478,
-0.04187686741352081,
0.007956073619425297,
0.032267529517412186,
0.10970959812402725,
-0.055883102118968964,
-0.049358680844306946,
0.013483216986060143,
-0.001470432966016233,
-0.013181816786527634,
-0.004341489635407925,
-0.02866845764219761,
0.06602432578802109,
0.030600963160395622,
0.0012975712306797504,
-0.010726293548941612,
-0.04191232845187187,
-0.040033008903265,
0.05598948150873184,
0.008678547106683254,
-0.03946566954255104,
-0.024395668879151344,
-0.04052943363785744,
-0.055883102118968964,
0.07417985796928406,
-0.037799105048179626,
0.007911749184131622,
0.09339853376150131,
0.021044811233878136
] |
724,862 | scipy.sparse._dok | tocsc | Convert this array/matrix to Compressed Sparse Column format.
With copy=False, the data/indices may be shared between this array/matrix and
the resultant csc_array/matrix.
| def tocsc(self, copy=False):
if self.ndim == 1:
raise NotImplementedError("tocsr() not valid for 1d sparse array")
return self.tocoo(copy=False).tocsc(copy=copy)
| (self, copy=False) | [
-0.05078718811273575,
0.03475980460643768,
0.05670446902513504,
-0.04970517009496689,
0.04152241349220276,
-0.009154880419373512,
-0.00819120928645134,
-0.002681796671822667,
0.07824337482452393,
0.006217372603714466,
-0.013001114130020142,
-0.040575649589300156,
0.012772875837981701,
-0.03864830359816551,
-0.023297185078263283,
0.047067753970623016,
0.02994144707918167,
-0.04913034662604332,
-0.03421879559755325,
0.03749866038560867,
0.02136984094977379,
-0.07763474434614182,
0.0036222219932824373,
0.034049730747938156,
-0.04527566209435463,
-0.012874315492808819,
0.03281555697321892,
-0.06160736083984375,
0.011149849742650986,
-0.0907542034983635,
-0.0017625046893954277,
0.043855514377355576,
-0.04273968189954758,
0.008859016932547092,
-0.0029882274102419615,
0.001647329074330628,
-0.036349017173051834,
-0.07256278395652771,
0.047203004360198975,
0.018986022099852562,
0.009535277262330055,
-0.025004742667078972,
-0.06150592118501663,
-0.032528143376111984,
0.02076120674610138,
0.02830151468515396,
0.034692179411649704,
0.03661952167749405,
0.0010386942885816097,
-0.058699436485767365,
0.004712692461907864,
-0.06177642568945885,
-0.017261557281017303,
-0.030228858813643456,
-0.07979877293109894,
-0.03110799752175808,
0.03550369292497635,
-0.008064409717917442,
-0.04547853767871857,
-0.02566409856081009,
0.03526700288057327,
0.012265680357813835,
0.04432889446616173,
0.0795958936214447,
0.023280277848243713,
-0.030989650636911392,
0.03345800191164017,
0.03107418492436409,
0.05217352136969566,
-0.009154880419373512,
-0.03438786044716835,
-0.00789111852645874,
-0.0030157004948705435,
-0.02022019773721695,
-0.025376686826348305,
-0.03557131811976433,
-0.04209723696112633,
-0.059781454503536224,
-0.04754113405942917,
-0.04865696653723717,
-0.05170013755559921,
0.04405838996171951,
-0.04754113405942917,
0.035808008164167404,
-0.03367778658866882,
0.014159210957586765,
0.07445631176233292,
0.024227043613791466,
-0.07580883800983429,
0.08730527013540268,
0.011116037145256996,
0.014996083453297615,
-0.02121768333017826,
0.019425591453909874,
0.04372026026248932,
0.036247577518224716,
-0.010050926357507706,
-0.01196981593966484,
0.011462620459496975,
-0.0116993123665452,
0.030702240765094757,
0.0635346993803978,
0.011378088034689426,
0.022587111219763756,
-0.00044009785051457584,
0.008381407707929611,
0.020625954493880272,
-0.005405860021710396,
0.026948994025588036,
0.01573996990919113,
0.018292855471372604,
0.08744052052497864,
0.02231660671532154,
-0.043449755758047104,
-0.012434745207428932,
-0.09055132418870926,
0.02245185896754265,
0.029890727251768112,
-0.05785411223769188,
0.018174508586525917,
-0.012950394302606583,
-0.02569791115820408,
0.04480227828025818,
0.006145520135760307,
-0.07499732077121735,
0.05186920240521431,
-0.00194424984510988,
0.02772669307887554,
0.02229969948530197,
-0.009129520505666733,
-0.02187703736126423,
-0.06566492468118668,
0.06823471188545227,
0.08243618905544281,
0.014133851043879986,
-0.011479527689516544,
0.04984042048454285,
0.027506908401846886,
-0.030431736260652542,
-0.00194424984510988,
0.01800544373691082,
0.01580759696662426,
-0.02456517331302166,
0.013981692492961884,
0.07033112645149231,
-0.013728094287216663,
0.01681353524327278,
0.010938518680632114,
-0.0027071565855294466,
0.048251207917928696,
0.0018861336866393685,
0.07256278395652771,
0.038411613553762436,
-0.01903674192726612,
-0.009273226372897625,
-0.027118058875203133,
0.02892705611884594,
-0.09663766622543335,
0.023195745423436165,
0.0055284323170781136,
-0.06323038786649704,
0.0157568771392107,
-0.05433755740523338,
-0.037295784801244736,
0.0067161149345338345,
0.022688550874590874,
0.005367820151150227,
-0.0317673496901989,
-0.058090802282094955,
-0.0206935815513134,
-0.032933901995420456,
-0.017024865373969078,
-0.0013271617935970426,
0.01861407794058323,
-0.005739763844758272,
-0.033474911004304886,
-0.026915179565548897,
0.06938435882329941,
0.04135334864258766,
-0.02725331112742424,
-0.0024239723570644855,
0.021944662556052208,
-0.0814894288778305,
0.04372026026248932,
-0.006910540163516998,
0.019205806776881218,
0.0016251392662525177,
-0.010203084908425808,
0.012130428105592728,
0.024328483268618584,
0.032950807362794876,
0.04862315207719803,
0.030195044353604317,
0.016754360869526863,
0.018935302272439003,
-0.007252897135913372,
-0.06789658218622208,
0.018326668068766594,
-0.006052534095942974,
0.07763474434614182,
-0.03489505872130394,
-0.012138881720602512,
0.019391778856515884,
0.02566409856081009,
0.03283246234059334,
0.002324646571651101,
-0.004539400804787874,
0.009112614206969738,
-0.0764174684882164,
0.056974973529577255,
-0.05021236464381218,
-0.026982806622982025,
0.00007205083238659427,
-0.020964084193110466,
0.02065976709127426,
0.013482949696481228,
-0.043449755758047104,
-0.04970517009496689,
0.026526330038905144,
-0.035774197429418564,
0.04077852517366409,
-0.008706857450306416,
-0.006796421017497778,
-0.014793205074965954,
-0.02728712372481823,
-0.03814110904932022,
0.04263824224472046,
0.015968209132552147,
-0.025850068777799606,
-0.010811720043420792,
0.02992454171180725,
-0.02186013013124466,
0.009746609255671501,
-0.025444312021136284,
0.005257927812635899,
-0.012874315492808819,
0.0031932189594954252,
0.01744752936065197,
0.0036729415878653526,
-0.002137618139386177,
-0.036822400987148285,
-0.024396108463406563,
0.04365263506770134,
-0.005169168580323458,
-0.005156488623470068,
0.019797535613179207,
0.023719847202301025,
0.02498783729970455,
-0.0017772979335859418,
0.03046554885804653,
-0.020406169816851616,
-0.06231743469834328,
-0.0228407084941864,
-0.017109397798776627,
0.021471280604600906,
-0.03749866038560867,
0.022722363471984863,
0.009087254293262959,
-0.03454001992940903,
-0.021944662556052208,
-0.03702528029680252,
0.0544389933347702,
0.02453136071562767,
-0.013533669523894787,
-0.03780297935009003,
0.010143912397325039,
0.008334914222359657,
0.030262671411037445,
-0.03205476328730583,
0.07851388305425644,
0.026002228260040283,
0.011065317317843437,
-0.03925694152712822,
0.014793205074965954,
0.006656942423433065,
-0.0436188206076622,
-0.01314481906592846,
0.012781329452991486,
0.012214960530400276,
0.016534576192498207,
-0.014945363625884056,
0.021403655409812927,
-0.00928167998790741,
-0.0447346530854702,
-0.017887098714709282,
-0.05092243850231171,
-0.021437468007206917,
-0.06563111394643784,
0.01962847076356411,
-0.0020699920132756233,
-0.0006244846154004335,
0.03283246234059334,
0.043348316103219986,
-0.033576350659132004,
0.05061812326312065,
-0.04818358272314072,
-0.05707641318440437,
-0.02830151468515396,
0.005968001671135426,
0.08135417848825455,
-0.004404148552566767,
-0.000602823100052774,
-0.06853903084993362,
0.02672920934855938,
0.03800585865974426,
0.008241928182542324,
-0.018259041011333466,
0.041759103536605835,
-0.007544534746557474,
0.04307781532406807,
-0.026560142636299133,
-0.008246155455708504,
-0.05508144199848175,
0.017836378887295723,
-0.07580883800983429,
0.025883883237838745,
-0.01503834966570139,
-0.003937106113880873,
0.045613791793584824,
0.07574120908975601,
-0.032950807362794876,
-0.056907348334789276,
-0.006580863147974014,
-0.03007669933140278,
0.009898767806589603,
0.006027174647897482,
-0.01849573291838169,
-0.10096573829650879,
0.019932787865400314,
0.008613872341811657,
0.038445428013801575,
0.032933901995420456,
0.01115830335766077,
0.03868211805820465,
-0.025376686826348305,
0.004049111623317003,
0.014066224917769432,
0.012460105121135712,
-0.07526782900094986,
-0.06218218058347702,
0.029129933565855026,
0.022046102210879326,
-0.013077192939817905,
-0.04517422243952751,
-0.09913983196020126,
-0.028757991269230843,
-0.06728795170783997,
-0.029079215601086617,
-0.014564966782927513,
-0.029011588543653488,
0.005114222411066294,
0.008808297105133533,
0.05176776647567749,
0.08297719806432724,
0.0150045370683074,
0.09055132418870926,
0.019814440980553627,
-0.027118058875203133,
0.03371160104870796,
-0.08493835479021072,
0.06434621661901474,
0.03438786044716835,
-0.0026839100755751133,
-0.06011958420276642,
0.03496268391609192,
0.01644159108400345,
-0.02786194533109665,
-0.0196622833609581,
-0.04108284413814545,
-0.024379201233386993,
-0.0032016723416745663,
-0.0289777759462595,
0.030178138986229897,
0.0038377800956368446,
-0.0026162839494645596,
-0.00516071543097496,
-0.08297719806432724,
-0.033525630831718445,
-0.02953569032251835,
-0.02613748051226139,
0.05836130678653717,
0.003495423123240471,
-0.013575935736298561,
0.0325450524687767,
-0.02884252369403839,
0.013491403311491013,
-0.03969651088118553,
0.020084945484995842,
0.041725292801856995,
-0.024108698591589928,
-0.015976661816239357,
0.0037278877571225166,
-0.013677374459803104,
-0.08527648448944092,
0.013466043397784233,
0.026543237268924713,
0.03874974325299263,
0.02727021649479866,
0.012646077200770378,
0.0015564565546810627,
-0.029789289459586143,
-0.0024556720163673162,
0.002977660857141018,
-0.030651520937681198,
-0.05298503488302231,
-0.007159911096096039,
-0.016636015847325325,
-0.03993320092558861,
-0.001640989095903933,
0.03912168741226196,
0.0070035262033343315,
0.03215620294213295,
0.014116944745182991,
-0.012155788019299507,
0.0036687147803604603,
-0.0522073358297348,
-0.039595071226358414,
0.03051626868546009,
0.016576843336224556,
0.023838194087147713,
0.03557131811976433,
0.04321306571364403,
-0.03146303445100784,
0.0035250093787908554,
0.05741454288363457,
-0.032443612813949585,
-0.05011092498898506,
0.02833532728254795,
0.02025401033461094,
0.002000252716243267,
-0.018901489675045013,
-0.01633169874548912,
-0.0503138042986393,
0.011428807862102985,
-0.02882561646401882,
-0.002550771227106452,
0.008267288096249104,
0.03337347134947777,
0.0001426487579010427,
0.04892747104167938,
0.029569504782557487,
0.019290339201688766,
0.018394293263554573,
-0.015148242004215717,
0.008918189443647861,
-0.015680797398090363,
-0.012240320444107056,
0.01121747586876154,
-0.04351738467812538,
-0.05454043298959732,
0.0697224885225296,
0.0022718135733157396,
-0.021014804020524025,
-0.034049730747938156,
-0.04733825474977493,
0.0021682612132281065,
0.016492310911417007,
-0.07891963422298431,
-0.03705909103155136,
0.028115542605519295,
-0.011496433988213539,
0.0022316607646644115,
0.006170880049467087,
-0.028166262432932854,
0.03922312706708908,
-0.04517422243952751,
-0.02350006252527237,
0.02453136071562767,
0.030431736260652542,
-0.02613748051226139,
0.032426707446575165,
0.009416931308805943,
-0.021031711250543594,
-0.04649293050169945,
0.014810111373662949,
0.022265886887907982,
-0.08385633677244186,
-0.0057313102297484875,
-0.030093606561422348,
0.03229145333170891,
-0.023533876985311508,
-0.04030514508485794,
-0.007827718742191792,
0.02177559770643711,
0.007793905679136515,
0.02135293558239937,
0.0413871631026268,
-0.0201356653124094,
0.03056698851287365,
-0.0044717746786773205,
0.008516659960150719,
0.011547152884304523,
0.009095707908272743,
0.03450620919466019,
0.006352624855935574,
0.03543606773018837,
-0.007485361769795418,
0.059781454503536224,
-0.05457424744963646,
0.07208940386772156,
-0.024413015693426132,
0.008457486517727375,
-0.023686034604907036,
0.04733825474977493,
-0.008339141495525837,
0.025883883237838745,
-0.014302915893495083,
-0.01907055452466011,
-0.0005008556763641536,
-0.021133150905370712,
-0.023618409410119057,
-0.0382087342441082,
0.018884582445025444,
0.037397224456071854,
0.022164447233080864,
-0.042807310819625854,
-0.08581749349832535,
-0.006834460888057947,
0.02662776969373226,
0.010414416901767254,
0.03479361906647682,
-0.004429508466273546,
-0.031953323632478714,
-0.00022467180679086596,
-0.02025401033461094,
0.011665498837828636,
0.009104161523282528,
0.009890314191579819,
0.028453674167394638,
0.037938229739665985,
-0.027371656149625778,
-0.05136200785636902,
0.006737248506397009,
0.08926642686128616,
-0.02512308955192566,
-0.00923096016049385,
-0.013322337530553341,
-0.04804832860827446,
0.06218218058347702,
-0.06204693019390106,
-0.008174302987754345,
-0.002330986550077796,
0.09947796165943146,
0.06201311573386192,
0.009653623215854168,
0.031851883977651596,
-0.006175106391310692,
-0.03452311456203461,
-0.0710073858499527,
0.01961156353354454,
-0.07932539284229279,
-0.025173809379339218,
0.058564186096191406,
-0.0114203542470932,
0.04862315207719803,
0.04737206920981407,
-0.004378788638859987,
0.006885180249810219,
0.01501298975199461,
-0.020423077046871185,
0.012341760098934174,
-0.005122675560414791,
0.08094841986894608,
-0.05707641318440437,
-0.012679889798164368,
-0.029721662402153015,
0.023111212998628616,
-0.006783741060644388,
-0.020338544622063637,
0.004467547871172428,
0.008622325025498867,
-0.04148859903216362,
0.0015247567789629102,
0.0611339770257473,
-0.010828626342117786,
0.030955838039517403,
0.0004963648389093578,
0.0047465055249631405,
-0.024413015693426132,
0.03601088747382164,
0.0415562279522419,
0.0058369762264192104,
-0.01579068973660469,
0.0184619203209877,
0.04077852517366409,
-0.008381407707929611,
-0.03215620294213295,
-0.01969609595835209,
-0.03506412357091904,
-0.07925776392221451,
-0.0073627894744277,
-0.0480821430683136,
-0.016187993809580803,
0.018326668068766594,
0.023128120228648186,
-0.0795958936214447,
-0.0005071955965831876,
-0.023128120228648186,
-0.018681704998016357,
0.03268030285835266,
-0.001743484870530665,
0.02716877870261669,
0.034134265035390854,
0.04382169991731644,
-0.001557513140141964,
0.013288524933159351,
-0.011149849742650986,
-0.037836793810129166,
0.062385059893131256,
0.00493247713893652,
0.023229558020830154,
-0.0019527031108736992,
-0.03482742980122566,
-0.013812626712024212,
-0.013998598791658878,
0.006940126419067383,
-0.014421261847019196,
-0.03763391450047493,
-0.016712095588445663,
-0.038411613553762436,
0.01580759696662426,
-0.0003753775672521442,
-0.009848047979176044,
-0.00010526950791245326,
-0.0449037179350853,
0.050990063697099686,
0.02292524091899395,
-0.010177724994719028,
-0.0018639438785612583,
0.0067879678681492805,
0.041150469332933426,
-0.03058389574289322,
0.056467778980731964,
0.01032988354563713,
0.03114181011915207,
-0.011099130846560001,
-0.021166963502764702,
0.07235990464687347,
0.019239619374275208,
0.11922477930784225,
-0.04656055569648743,
0.04304400086402893,
0.049333225935697556,
0.0067330216988921165,
-0.06039008870720863,
-0.052139706909656525,
0.02392272651195526,
-0.04375407472252846,
0.02131912112236023,
0.030719147995114326,
-0.025511939078569412,
0.05731310322880745,
-0.00532132713124156,
-0.00020459531515371054,
0.019290339201688766,
-0.0022908335085958242,
0.019425591453909874,
-0.002626850502565503,
-0.017346089705824852,
-0.04483609274029732,
0.010701827704906464,
0.00696125952526927,
-0.02556265890598297,
-0.03234217315912247,
0.028132449835538864,
-0.01900292932987213,
0.04263824224472046,
0.050415243953466415,
-0.022012289613485336,
-0.017836378887295723,
-0.028031010180711746,
0.049333225935697556,
-0.04094759374856949,
0.008985815569758415,
-0.0016790287336334586,
0.018326668068766594,
0.03506412357091904,
-0.02067667432129383,
-0.004864851012825966,
-0.053728919476270676,
0.031851883977651596,
0.06400808691978455,
0.02125149592757225,
-0.028031010180711746,
-0.025748630985617638,
-0.07628221809864044,
-0.0035524824634194374,
-0.003385530784726143,
-0.07979877293109894,
-0.08094841986894608,
0.04077852517366409,
0.02564719133079052,
0.027456188574433327,
-0.00724867032840848,
0.0021038050763309,
0.053695108741521835,
0.005574924871325493,
0.031209437176585197,
0.05724547803401947,
0.02118387073278427,
0.013880252838134766,
-0.0023753661662340164,
0.04913034662604332,
0.013195538893342018,
0.028233889490365982,
0.040575649589300156,
0.0005922565469518304,
-0.02184322476387024,
-0.00475918548181653,
0.00394555926322937,
0.03760010004043579,
-0.0157568771392107,
0.006099027115851641,
0.10150674730539322,
-0.018850769847631454,
-0.014607233926653862,
-0.015393386594951153,
0.005651004612445831,
0.012477012351155281,
0.07783761620521545,
0.02683064714074135,
-0.0245989877730608,
0.020406169816851616,
0.03945981711149216,
-0.03386376053094864,
0.08230093866586685,
0.020287824794650078,
0.03699146583676338,
0.043348316103219986,
-0.043348316103219986,
-0.009890314191579819,
-0.061336856335401535,
0.0032291454263031483,
0.028504393994808197,
0.017887098714709282,
0.04206342250108719,
-0.002559224609285593,
-0.013077192939817905,
0.03342419117689133,
0.006361078005284071,
-0.006851367186754942,
0.054269928485155106,
0.029299000278115273,
0.017667314037680626,
-0.03996701538562775,
-0.018360480666160583,
-0.031868789345026016,
-0.01093006506562233,
0.028757991269230843,
-0.03638283163309097,
0.013178632594645023,
-0.004687332548201084,
-0.00464506633579731,
-0.05724547803401947,
0.029620222747325897,
-0.010431323200464249,
-0.01683889329433441,
-0.02402416430413723,
-0.03445548936724663,
0.006864047143608332,
0.0026310773100703955,
-0.06725414097309113,
-0.04253680631518364,
0.10752546787261963,
0.014218383468687534,
-0.000934613577555865,
0.037329595535993576,
0.0230097733438015
] |
724,863 | scipy.sparse._base | tocsr | Convert this array/matrix to Compressed Sparse Row format.
With copy=False, the data/indices may be shared between this array/matrix and
the resultant csr_array/matrix.
| def tocsr(self, copy=False):
"""Convert this array/matrix to Compressed Sparse Row format.
With copy=False, the data/indices may be shared between this array/matrix and
the resultant csr_array/matrix.
"""
return self.tocoo(copy=copy).tocsr(copy=False)
| (self, copy=False) | [
-0.03824298828840256,
0.013629522174596786,
0.05947745218873024,
-0.010302905924618244,
-0.008198668248951435,
-0.03279467299580574,
-0.011516553349792957,
0.051304977387189865,
0.06422726809978485,
-0.009499628096818924,
-0.045297861099243164,
-0.057312097400426865,
0.022736242040991783,
0.012249980121850967,
0.0027372550684958696,
-0.012354755774140358,
0.03389481455087662,
-0.05350526049733162,
-0.060315653681755066,
0.0659036710858345,
0.016973599791526794,
-0.07781313359737396,
0.014258173294365406,
0.07578747719526291,
-0.025635026395320892,
0.0020158332772552967,
0.06939618289470673,
-0.015663908794522285,
0.024080859497189522,
-0.0383477658033371,
-0.009386121295392513,
0.03157229349017143,
-0.0266827791929245,
0.002374907024204731,
-0.012442068196833134,
0.01802135445177555,
-0.04278325289487839,
-0.09220227599143982,
0.05842969939112663,
-0.013096913695335388,
-0.036357033997774124,
-0.04166565090417862,
-0.027660682797431946,
-0.017340313643217087,
0.03600778058171272,
0.015445627272129059,
0.03302168473601341,
0.024377722293138504,
0.006190474610775709,
-0.038103289902210236,
0.005919805262237787,
-0.011307002045214176,
-0.004044763743877411,
0.006635769736021757,
-0.07425077259540558,
-0.022910868749022484,
-0.0006040951702743769,
-0.018580155447125435,
-0.020064473152160645,
-0.02972126379609108,
-0.0030122902244329453,
-0.02509368769824505,
0.024604735895991325,
0.07292361557483673,
0.017488745972514153,
-0.016702931374311447,
-0.027922620996832848,
0.00559674808755517,
0.07236481457948685,
-0.0023028741125017405,
-0.048406194895505905,
-0.0036889640614390373,
0.01497413869947195,
-0.010119548998773098,
-0.01191819179803133,
0.04652023687958717,
-0.0736919716000557,
-0.015628984197974205,
-0.0708630383014679,
-0.0117959538474679,
-0.008617768995463848,
0.008102623745799065,
-0.03768418729305267,
0.022771168500185013,
-0.040617894381284714,
0.009971117600798607,
0.05392435938119888,
0.0470091886818409,
-0.05308615788817406,
0.007927998900413513,
-0.017340313643217087,
0.061922211199998856,
-0.03548390418291092,
0.006875880062580109,
0.059372678399086,
0.020326411351561546,
-0.0054919724352657795,
-0.003606016980484128,
0.01703471876680851,
0.01416212972253561,
-0.027503520250320435,
0.05231780558824539,
-0.024307873100042343,
-0.0024076492991298437,
-0.025862039998173714,
-0.030280064791440964,
0.006173012312501669,
-0.0029075148049741983,
0.042259376496076584,
0.051304977387189865,
-0.012861169874668121,
0.04114177078008652,
0.0016731307841837406,
-0.03539659455418587,
-0.03124050609767437,
-0.09366913139820099,
0.023225193843245506,
0.03974476829171181,
-0.05329570919275284,
0.028830673545598984,
0.03316138684749603,
0.004014204256236553,
0.027259044349193573,
-0.015052719973027706,
-0.054133910685777664,
0.03970984369516373,
-0.008753104135394096,
0.027905158698558807,
0.05472763627767563,
-0.02387130819261074,
-0.03314392268657684,
-0.0720854178071022,
0.040897298604249954,
-0.00021350698079913855,
0.0018357507651671767,
-0.03537913039326668,
0.05364495888352394,
0.018353141844272614,
-0.0038897835183888674,
0.016676736995577812,
0.05228288099169731,
-0.0003909974475391209,
-0.005919805262237787,
0.016388604417443275,
0.06405264139175415,
-0.0355188325047493,
0.040722671896219254,
0.0317993089556694,
0.006941364612430334,
0.007356100250035524,
0.023347431793808937,
0.036391958594322205,
0.046869490295648575,
-0.006788567174226046,
-0.036461807787418365,
-0.012171398848295212,
0.00601148372516036,
-0.09478673338890076,
0.03461077809333801,
0.00037271634209901094,
-0.024971449747681618,
-0.014720931649208069,
-0.05196855589747429,
-0.027328893542289734,
-0.013585865497589111,
0.02807978354394436,
-0.018370604142546654,
-0.038103289902210236,
-0.07264421880245209,
-0.02825440838932991,
-0.010791856795549393,
-0.02980857715010643,
-0.024220559746026993,
-0.007255690172314644,
-0.05553091689944267,
-0.005583650898188353,
-0.024203097447752953,
0.06265563517808914,
0.03413929045200348,
0.0031956469174474478,
0.02507622539997101,
0.030908716842532158,
-0.05179392918944359,
0.04865067079663277,
0.011315734125673771,
-0.00632580928504467,
-0.015262270346283913,
-0.031869158148765564,
0.06632277369499207,
0.005784470587968826,
0.06464637070894241,
0.021758340299129486,
0.01111491397023201,
0.026054127141833305,
-0.03995431959629059,
-0.024203097447752953,
-0.057381946593523026,
0.0034444883931428194,
-0.02671770378947258,
0.08207399398088455,
-0.04051312059164047,
-0.03530928120017052,
0.06251593679189682,
0.037893738597631454,
-0.007098527625203133,
-0.01694740727543831,
-0.01346362754702568,
-0.023207731544971466,
-0.02811470814049244,
0.05811537429690361,
0.006443681661039591,
-0.016720393672585487,
-0.014013698324561119,
-0.004924439825117588,
0.0535401850938797,
0.0006575742154382169,
-0.04058296978473663,
-0.04156087338924408,
0.02210758998990059,
-0.03709046170115471,
-0.015498015098273754,
-0.024430111050605774,
-0.033493176102638245,
-0.04872051998972893,
-0.06723082810640335,
-0.07215526700019836,
0.0221774410456419,
0.007373562548309565,
-0.05367988348007202,
0.004394014831632376,
0.02540801279246807,
-0.043691303580999374,
0.005382831674069166,
-0.0477076917886734,
-0.05322585999965668,
-0.028760822489857674,
0.024639660492539406,
0.055495988577604294,
0.04068774729967117,
-0.026176365092396736,
-0.021915502846240997,
-0.011158570647239685,
0.02367922104895115,
-0.0032021955121308565,
0.03165960684418678,
0.0070592365227639675,
0.027206655591726303,
0.03998924419283867,
-0.005684060510247946,
0.003974913619458675,
-0.01618778519332409,
-0.0235919076949358,
0.009901266545057297,
-0.015349583700299263,
0.048476044088602066,
-0.0443548820912838,
0.02696217969059944,
0.010983944870531559,
-0.05961715430021286,
-0.03279467299580574,
-0.008198668248951435,
0.046904414892196655,
0.04920947179198265,
-0.06894215196371078,
0.007303712423890829,
0.022648930549621582,
0.013236614875495434,
0.05783597379922867,
0.020064473152160645,
0.04966349899768829,
0.06506546586751938,
0.023399820551276207,
-0.048406194895505905,
0.04037341848015785,
0.02687486819922924,
-0.03101349249482155,
0.0011492541525512934,
0.003830847330391407,
0.010145742446184158,
0.05828999727964401,
-0.03988447040319443,
0.04575188457965851,
-0.017008526250720024,
0.001805191277526319,
-0.012852438725531101,
-0.033283624798059464,
-0.018388066440820694,
-0.014074817299842834,
-0.022718779742717743,
-0.023120418190956116,
0.013393777422606945,
0.03539659455418587,
0.0077271792106330395,
-0.013638253323733807,
0.028603659942746162,
-0.04760291799902916,
-0.0358680821955204,
-0.02689233049750328,
0.014555037021636963,
0.07411107420921326,
-0.006570285186171532,
0.025966815650463104,
-0.021810727193951607,
-0.010006042197346687,
-0.0026761360932141542,
-0.02532070130109787,
-0.039220891892910004,
0.06475114077329636,
-0.04714889079332352,
0.061712659895420074,
-0.030489616096019745,
0.0013937299372628331,
-0.03730001300573349,
-0.02991335093975067,
-0.06887230277061462,
0.016991063952445984,
0.028865598142147064,
0.02533816359937191,
0.03307407349348068,
0.05979177728295326,
-0.030367378145456314,
-0.06457651406526566,
-0.028638584539294243,
-0.03709046170115471,
-0.02222982794046402,
-0.01261669397354126,
-0.00016507568943779916,
-0.09359928220510483,
-0.021374164149165154,
0.00967425387352705,
0.07376182079315186,
0.001809556968510151,
-0.00561857596039772,
0.04159579798579216,
-0.03455838933587074,
0.0049026114866137505,
0.04040834680199623,
-0.01569010317325592,
-0.08130564540624619,
0.019767608493566513,
-0.018440455198287964,
0.01119349617511034,
-0.02673516795039177,
-0.03970984369516373,
-0.06681172549724579,
-0.010084623470902443,
-0.077044777572155,
-0.022928331047296524,
-0.05200348049402237,
-0.03901134058833122,
0.027398744598031044,
0.0008289255201816559,
0.03583315759897232,
0.06541471928358078,
-0.006827857811003923,
0.040792521089315414,
-0.0014395691687241197,
-0.02074551209807396,
0.039430443197488785,
-0.052946459501981735,
0.0441802553832531,
0.0355188325047493,
0.002588823437690735,
-0.03279467299580574,
-0.0010995951015502214,
0.03855731338262558,
-0.03848746418952942,
-0.045472484081983566,
0.025617564097046852,
-0.017410164698958397,
0.0010024596704170108,
-0.02514607459306717,
0.02250923030078411,
0.02100745029747486,
-0.0068322233855724335,
0.03901134058833122,
-0.07480957359075546,
0.015934579074382782,
-0.055600766092538834,
-0.054203759878873825,
0.027189193293452263,
-0.006103161722421646,
0.0018433906370773911,
0.005037946160882711,
-0.017322851344943047,
0.0009937284048646688,
0.0033178848680108786,
0.007377928122878075,
-0.0176721028983593,
-0.009918729774653912,
-0.052632130682468414,
0.028883060440421104,
-0.016353679820895195,
-0.05608971789479256,
-0.010870439000427723,
0.030245140194892883,
0.014642349444329739,
0.05315600708127022,
0.008683254010975361,
-0.030035588890314102,
-0.04191012308001518,
-0.023085493594408035,
-0.027573369443416595,
-0.02364429458975792,
-0.07397136837244034,
0.022596541792154312,
0.008443144150078297,
-0.05392435938119888,
0.018964331597089767,
-0.0004218297835905105,
0.017576059326529503,
0.02235206589102745,
0.04145609959959984,
-0.01191819179803133,
-0.013184227049350739,
-0.004160453099757433,
0.034890178591012955,
0.03289944678544998,
0.016781512647867203,
0.029267236590385437,
0.02533816359937191,
0.03918596729636192,
-0.045542337000370026,
0.015209882520139217,
0.016737855970859528,
-0.043656378984451294,
-0.04114177078008652,
0.013140570372343063,
0.019732683897018433,
-0.014223248697817326,
-0.027870232239365578,
-0.028027396649122238,
0.014921750873327255,
-0.021199537441134453,
-0.07152661681175232,
0.0009740829700604081,
0.012922288849949837,
0.02207266539335251,
-0.03754448518157005,
0.030035588890314102,
0.06366846710443497,
-0.01476458739489317,
-0.024866674095392227,
-0.03153736889362335,
-0.010154473595321178,
-0.04054804518818855,
-0.027328893542289734,
0.03401705250144005,
-0.05008259788155556,
-0.031781844794750214,
0.08766201138496399,
0.010451337322592735,
-0.012686544097959995,
-0.016886288300156593,
-0.0328645221889019,
0.031834233552217484,
0.05811537429690361,
-0.07844178378582001,
0.024779360741376877,
-0.01500033214688301,
0.0385223887860775,
0.00898448284715414,
0.006797298323363066,
-0.007906170561909676,
0.015375777147710323,
0.003499058773741126,
-0.018964331597089767,
-0.02374907024204731,
0.030926179140806198,
-0.03838269039988518,
0.06125863268971443,
-0.01344616524875164,
-0.00702867703512311,
-0.06049028038978577,
0.039255816489458084,
0.029075149446725845,
-0.07306332141160965,
0.006530994549393654,
-0.019645370543003082,
0.05392435938119888,
-0.06415741890668869,
-0.030018126592040062,
-0.022648930549621582,
0.004365637898445129,
0.024726973846554756,
0.011315734125673771,
0.052876606583595276,
-0.029459325596690178,
0.016371142119169235,
0.012407143600285053,
0.007565650623291731,
0.03901134058833122,
-0.0008987757028080523,
0.05472763627767563,
0.023155344650149345,
0.05242257937788963,
-0.02842903509736061,
0.046694863587617874,
-0.05217810720205307,
0.0924118235707283,
-0.02362683229148388,
-0.022945793345570564,
-0.07278391718864441,
0.04033849388360977,
-0.005037946160882711,
0.033353473991155624,
-0.022631468251347542,
-0.0008060059044510126,
0.00011562119470909238,
-0.022631468251347542,
-0.07355226576328278,
0.014834437519311905,
-0.013018332421779633,
0.030734091997146606,
-0.0035645433235913515,
-0.013149301521480083,
-0.043761156499385834,
0.02100745029747486,
-0.009150377474725246,
0.004837126936763525,
0.04184027388691902,
0.037719111889600754,
-0.03101349249482155,
0.007600575685501099,
-0.058848802000284195,
0.03820806369185448,
0.008547918871045113,
-0.019627908244729042,
0.017427626997232437,
0.04508830979466438,
-0.05801059678196907,
-0.017427626997232437,
-0.013716834597289562,
0.04927932098507881,
0.003625662298873067,
0.010966482572257519,
0.048510968685150146,
-0.0015214248560369015,
0.1003747507929802,
-0.04344682767987251,
0.0032807770185172558,
-0.006046408787369728,
0.02504129894077778,
0.04191012308001518,
-0.009211496450006962,
0.07044393569231033,
-0.009124183095991611,
-0.016781512647867203,
-0.058709099888801575,
-0.02966887503862381,
-0.07578747719526291,
0.0011427057906985283,
0.054203759878873825,
-0.005688426550477743,
0.08926856517791748,
0.0015192420687526464,
-0.001894686953164637,
-0.01809120364487171,
0.012249980121850967,
-0.0044289398938417435,
0.0417005755007267,
-0.03740478679537773,
0.04177042469382286,
-0.04906976968050003,
-0.03249780833721161,
-0.02095506154000759,
0.005282422062009573,
0.007897439412772655,
-0.014092279598116875,
0.012153936550021172,
0.008897170424461365,
-0.052736908197402954,
-0.02547786384820938,
0.04945394769310951,
-0.0019405260682106018,
0.014616155996918678,
0.006509166210889816,
0.0047629112377762794,
-0.04341190308332443,
0.013690641149878502,
0.06223653629422188,
0.011350658722221851,
-0.03419167548418045,
0.0014897739747539163,
0.028516346588730812,
-0.011839610524475574,
-0.03370272368192673,
0.0075874789617955685,
-0.019942235201597214,
-0.057277169078588486,
0.027730531990528107,
-0.016659274697303772,
0.017305389046669006,
0.00967425387352705,
0.02519846335053444,
-0.05242257937788963,
-0.006356368772685528,
-0.02360936999320984,
0.036391958594322205,
0.03447107598185539,
-0.018300754949450493,
-0.010215592570602894,
0.02811470814049244,
0.038033436983823776,
0.013978772796690464,
0.02406339719891548,
-0.051130350679159164,
-0.04191012308001518,
0.033528100699186325,
0.02504129894077778,
0.010198130272328854,
-0.006583381909877062,
-0.039290741086006165,
-0.05116527900099754,
-0.03859224170446396,
0.000871490512508899,
-0.03876686468720436,
-0.024761898443102837,
-0.051339901983737946,
-0.012721468694508076,
0.03153736889362335,
-0.03377257660031319,
-0.0176721028983593,
-0.010329099372029305,
-0.06422726809978485,
0.0620269849896431,
0.014223248697817326,
0.07096780836582184,
0.009979848749935627,
0.019837459549307823,
0.015087644569575787,
-0.0531909316778183,
0.06827858090400696,
-0.003031935542821884,
0.02085028775036335,
-0.008600306697189808,
-0.0030035588424652815,
0.07627642899751663,
0.03319631144404411,
0.1097346767783165,
0.005539994686841965,
0.015113838948309422,
0.02844649739563465,
-0.055880166590213776,
-0.05381958559155464,
-0.04026864469051361,
0.015096376650035381,
-0.07823223620653152,
-0.009918729774653912,
-0.01922626979649067,
-0.04201490059494972,
0.046869490295648575,
-0.033231236040592194,
-0.009202765300869942,
0.04184027388691902,
0.027887696400284767,
-0.04124654829502106,
0.0018335679778829217,
-0.03382496163249016,
-0.020431185141205788,
0.003942171111702919,
0.009883804246783257,
0.029092611744999886,
-0.07243466377258301,
0.05532136559486389,
0.02514607459306717,
0.02209012769162655,
0.06000132858753204,
0.017514940351247787,
-0.016371142119169235,
-0.08053728938102722,
0.04281817749142647,
-0.02069312334060669,
0.04927932098507881,
0.004051311872899532,
0.03611255809664726,
0.02666531689465046,
-0.06978035718202591,
-0.02090267464518547,
-0.04438980668783188,
0.012354755774140358,
0.07914028316736221,
0.07243466377258301,
-0.010582306422293186,
-0.038138214498758316,
-0.03894149139523506,
-0.028708435595035553,
-0.0002095506206387654,
-0.0448787584900856,
-0.0740412175655365,
0.037998512387275696,
0.0025364356115460396,
0.03235810995101929,
0.013000870123505592,
0.00629961583763361,
0.044005632400512695,
-0.005247496999800205,
0.046834565699100494,
0.015140032395720482,
0.02690979279577732,
0.026211289688944817,
0.006181743461638689,
0.033737652003765106,
0.036461807787418365,
0.058883726596832275,
-0.00015266089758370072,
-0.018108665943145752,
0.024849211797118187,
0.009805222973227501,
0.005234399810433388,
0.03740478679537773,
0.012660350650548935,
-0.003907246049493551,
0.10023504495620728,
0.007067968137562275,
-0.007893073372542858,
0.005413391161710024,
-0.029144998639822006,
0.008486799895763397,
0.04721873998641968,
0.017130764201283455,
-0.008508628234267235,
0.019837459549307823,
0.027625758200883865,
-0.07030423730611801,
0.049873050302267075,
0.010128280147910118,
-0.0022701318375766277,
0.04197997599840164,
-0.011874535121023655,
-0.008133183233439922,
-0.03158975765109062,
0.01107125822454691,
0.054308537393808365,
0.04044327139854431,
0.05064140260219574,
0.006120624486356974,
0.009971117600798607,
0.03548390418291092,
0.0413513220846653,
-0.015480552799999714,
0.05175900459289551,
0.04624083638191223,
0.013201689347624779,
-0.04802201688289642,
-0.005243131425231695,
0.02097252570092678,
0.008089527487754822,
-0.013699372299015522,
-0.03723016008734703,
0.008897170424461365,
-0.0005675329593941569,
0.027765458449721336,
-0.006709985435009003,
0.027713069692254066,
-0.018265830352902412,
-0.023015644401311874,
0.016353679820895195,
-0.001800825702957809,
-0.0003004104655701667,
0.009848879650235176,
-0.04491368308663368,
-0.06471621990203857,
0.07844178378582001,
-0.011708641424775124,
0.004086237400770187,
0.06813887506723404,
0.03235810995101929
] |
724,866 | scipy.sparse._dok | todok | Convert this array/matrix to Dictionary Of Keys format.
With copy=False, the data/indices may be shared between this array/matrix and
the resultant dok_array/matrix.
| def todok(self, copy=False):
if copy:
return self.copy()
return self
| (self, copy=False) | [
-0.007745008450001478,
-0.018477557227015495,
-0.00043280620593577623,
0.0002502692223060876,
-0.08649639040231705,
-0.027917178347706795,
-0.009523306041955948,
0.06062111258506775,
0.13496649265289307,
-0.02478737384080887,
-0.018494293093681335,
-0.022728733718395233,
-0.02769959717988968,
0.04636126011610031,
-0.028636865317821503,
0.017875026911497116,
-0.013623850420117378,
0.0037365166936069727,
-0.012929268181324005,
0.007134110666811466,
0.032051194459199905,
-0.009991939179599285,
0.03976691514253616,
0.0031821064185351133,
-0.0328713059425354,
0.048001479357481,
-0.009540042839944363,
-0.02341494709253311,
0.031348247081041336,
0.008745038881897926,
-0.0004749100189656019,
-0.020686829462647438,
-0.00120715016964823,
0.02179146558046341,
0.007473033387213945,
0.00017416854097973555,
-0.07431191205978394,
0.03591742366552353,
0.04716463387012482,
-0.03387552127242088,
0.020218195393681526,
-0.06517355144023895,
0.01559880655258894,
-0.01713860221207142,
0.00441017746925354,
0.029138972982764244,
0.03805974870920181,
0.07658813148736954,
0.06503965705633163,
-0.035582683980464935,
0.03057834692299366,
0.044988833367824554,
-0.02411789819598198,
-0.0017605144530534744,
-0.07391022890806198,
-0.03715595602989197,
0.03407636284828186,
0.033105622977018356,
-0.013364428654313087,
0.02759917639195919,
-0.014753592200577259,
0.030427714809775352,
0.052051812410354614,
-0.012418792583048344,
0.0011224194895476103,
-0.017239024862647057,
-0.04050333797931671,
-0.014276590198278427,
0.05543266981840134,
0.0515831783413887,
0.005640340968966484,
-0.014770328998565674,
-0.001232255483046174,
0.018544504418969154,
-0.032603513449430466,
-0.02878749743103981,
-0.015381226316094398,
-0.005970895290374756,
0.009364305064082146,
-0.04763326421380043,
-0.04358293116092682,
0.02813475765287876,
-0.047331999987363815,
0.06550829112529755,
-0.02418484538793564,
0.03882964700460434,
0.02711380645632744,
-0.00471981056034565,
0.03524794802069664,
-0.010920838452875614,
-0.02816823124885559,
0.0589139461517334,
-0.028703812509775162,
-0.017456604167819023,
0.017992185428738594,
-0.013699166476726532,
-0.04164145141839981,
-0.0323859341442585,
-0.022159678861498833,
0.013573640026152134,
-0.04549093917012215,
0.04887179657816887,
-0.0470307357609272,
0.009514937177300453,
0.026260223239660263,
0.009422884322702885,
-0.003152816789224744,
-0.02403421327471733,
-0.027984125539660454,
0.016561178490519524,
-0.05292213335633278,
0.08134141564369202,
-0.02000061608850956,
0.02885444462299347,
0.002878749743103981,
-0.03364120423793793,
-0.05342423915863037,
-0.05636993795633316,
0.0042449007742106915,
0.001753192045725882,
0.004820232279598713,
0.021557148545980453,
-0.01713860221207142,
-0.01651933789253235,
-0.017506815493106842,
0.061960067600011826,
0.014310063794255257,
-0.014276590198278427,
0.039063964039087296,
-0.04304734990000725,
-0.01638544164597988,
0.005372550338506699,
0.04351598396897316,
0.04542399197816849,
0.016837337985634804,
0.013707535341382027,
0.006736609153449535,
0.016293387860059738,
-0.02408442273736,
0.05031117424368858,
-0.00412565004080534,
-0.016703443601727486,
0.08020330965518951,
0.07417801767587662,
0.023649264127016068,
-0.06580955535173416,
-0.026879489421844482,
0.03121435083448887,
-0.017925238236784935,
0.04364987835288048,
0.031515613198280334,
0.06065458804368973,
0.023816632106900215,
0.03477931395173073,
-0.038595329970121384,
0.026561487466096878,
-0.0387292243540287,
-0.05054549127817154,
-0.015448174439370632,
0.0032155802473425865,
0.007083900272846222,
0.0079751405864954,
0.030829401686787605,
-0.033808574080467224,
0.007268006447702646,
0.011673999950289726,
0.050947174429893494,
-0.023364735767245293,
-0.003387133590877056,
0.04579220339655876,
-0.011347630061209202,
0.011523367837071419,
0.02990887127816677,
0.03477931395173073,
-0.0504450686275959,
0.02769959717988968,
-0.030779190361499786,
0.009648832492530346,
0.013414639048278332,
-0.01934787631034851,
-0.06684724986553192,
-0.00015795465151313692,
-0.031398456543684006,
-0.0034310680348426104,
0.05282171070575714,
0.0037386089097708464,
0.0035356737207621336,
0.04512272775173187,
0.02756570279598236,
0.02990887127816677,
-0.004899732302874327,
0.03059508465230465,
0.03508057817816734,
-0.010510783642530441,
-0.06524050235748291,
-0.0210717786103487,
-0.04770021513104439,
-0.013732640072703362,
0.001788757974281907,
0.05951647832989693,
-0.05797668173909187,
-0.036687321960926056,
0.018393872305750847,
-0.0006328646559268236,
0.02182493917644024,
0.017406392842531204,
-0.03364120423793793,
-0.000030172215701895766,
0.008920776657760143,
0.0470307357609272,
0.007385164499282837,
-0.009648832492530346,
-0.015238963067531586,
-0.018377134576439857,
0.02354884147644043,
-0.05335729196667671,
-0.04110586643218994,
-0.018025659024715424,
0.0051089441403746605,
0.03220182657241821,
0.008188536390662193,
0.015874965116381645,
-0.04699726402759552,
0.006903978064656258,
-0.015615543350577354,
0.008753407746553421,
0.018343660980463028,
-0.04478799179196358,
-0.010812048800289631,
-0.06272996217012405,
0.025406640022993088,
-0.034344155341386795,
-0.011121680960059166,
-0.042578715831041336,
0.04063723608851433,
-0.028302127495408058,
-0.0387292243540287,
-0.05295560508966446,
-0.0319005623459816,
-0.008770144544541836,
-0.010335045866668224,
-0.006849583238363266,
0.09673938155174255,
0.055600039660930634,
0.015958650037646294,
-0.016494231298565865,
-0.009791096672415733,
0.01231837086379528,
0.026176538318395615,
-0.0065022921189665794,
-0.001458203885704279,
-0.027415070682764053,
-0.04512272775173187,
0.035515736788511276,
-0.0012019198620691895,
0.0008248161757364869,
0.023180630058050156,
-0.05583435669541359,
-0.02759917639195919,
0.0022678521927446127,
0.01349832396954298,
0.02592548541724682,
0.017406392842531204,
-0.021958835422992706,
-0.03949912264943123,
-0.003759529907256365,
0.004211426712572575,
-0.00675334595143795,
-0.0634663924574852,
0.016067439690232277,
0.013038058765232563,
0.013699166476726532,
-0.00031904748175293207,
0.03243614360690117,
-0.06125711649656296,
-0.04602652043104172,
-0.025640957057476044,
0.04224397987127304,
-0.09874781221151352,
-0.047298528254032135,
0.017456604167819023,
0.0377584844827652,
0.025657692924141884,
0.005397655535489321,
-0.07578475773334503,
-0.03410983830690384,
-0.0031005139462649822,
-0.005326523911207914,
-0.009573516435921192,
-0.04957474768161774,
0.0005408116267062724,
0.027933914214372635,
0.032670460641384125,
-0.038595329970121384,
0.05171707272529602,
-0.027264438569545746,
-0.1277361512184143,
-0.009514937177300453,
0.014393748715519905,
0.04113934189081192,
-0.011665631085634232,
-0.04057028517127037,
-0.04823579639196396,
0.05998511239886284,
0.023264314979314804,
0.04110586643218994,
0.0029938160441815853,
0.006426976062357426,
0.06808578222990036,
0.005134049337357283,
0.00938104186207056,
-0.017824817448854446,
0.01030994113534689,
0.07277211546897888,
-0.015096698887646198,
-0.05412719026207924,
0.003163277404382825,
-0.0064646340906620026,
0.02935655228793621,
0.07337464392185211,
-0.07216958701610565,
-0.06811925023794174,
-0.06550829112529755,
-0.01886250637471676,
0.03180014342069626,
-0.034344155341386795,
-0.037791959941387177,
0.019766299054026604,
-0.029138972982764244,
0.029523922130465508,
0.0188792422413826,
0.012828846462070942,
0.0013190782628953457,
0.0366203747689724,
-0.09908255189657211,
-0.009247146546840668,
0.021573886275291443,
-0.00020620404393412173,
-0.026260223239660263,
-0.03113066591322422,
0.033189307898283005,
0.011791158467531204,
-0.029239393770694733,
-0.029825186356902122,
-0.014259853400290012,
0.03568310663104057,
0.022778943181037903,
0.019833246245980263,
0.03585047647356987,
-0.008987724781036377,
0.00675334595143795,
0.04120628908276558,
0.02813475765287876,
0.030310556292533875,
0.045022305101156235,
0.02179146558046341,
-0.030444452539086342,
0.02348189428448677,
0.007004399783909321,
-0.036720797419548035,
0.054461926221847534,
-0.0030398424714803696,
-0.0028766575269401073,
-0.022778943181037903,
0.03544878959655762,
0.022176414728164673,
-0.030862875282764435,
-0.04160797595977783,
-0.07752539962530136,
-0.04549093917012215,
-0.032134879380464554,
-0.012686583213508129,
0.029691290110349655,
0.008008615113794804,
0.042110081762075424,
-0.02825191617012024,
-0.07819487899541855,
0.02289610169827938,
-0.02292957715690136,
0.029858659952878952,
0.06242870166897774,
-0.0009105929057113826,
-0.008372643031179905,
0.049742117524147034,
0.012979479506611824,
-0.0018923176685348153,
0.008862197399139404,
-0.030728979036211967,
0.07832877337932587,
0.01829344965517521,
-0.03113066591322422,
-0.030243609100580215,
0.0026256039272993803,
0.03235246241092682,
-0.038394488394260406,
0.009933359920978546,
-0.013741008937358856,
0.006305633578449488,
-0.07116536796092987,
-0.005828631576150656,
0.05339076370000839,
0.02699664793908596,
-0.011707473546266556,
-0.03638605773448944,
-0.025992432609200478,
0.04924001172184944,
0.008661354891955853,
0.05536572262644768,
-0.015791282057762146,
-0.018946189433336258,
-0.03996775671839714,
-0.024887796491384506,
0.024804111570119858,
-0.017423130571842194,
0.014042273163795471,
-0.031967513263225555,
0.05218570679426193,
-0.036821216344833374,
0.04877137765288353,
0.00994172878563404,
-0.018711872398853302,
0.023850107565522194,
-0.016494231298565865,
0.026009168475866318,
0.03405962511897087,
0.004820232279598713,
-0.019816510379314423,
0.04867095500230789,
-0.007606928702443838,
0.010301572270691395,
0.007460480555891991,
-0.0299423448741436,
0.03471236675977707,
0.03451152145862579,
0.03421025723218918,
-0.002334799850359559,
0.037256378680467606,
-0.07953383028507233,
0.0083391685038805,
0.08341679722070694,
0.0377584844827652,
-0.03062855824828148,
0.018410608172416687,
-0.040905024856328964,
-0.0059081315994262695,
-0.0020324892830103636,
-0.013874904252588749,
0.05114801973104477,
0.025071902200579643,
-0.03131477162241936,
0.06845398992300034,
0.07826182246208191,
0.026143064722418785,
-0.030695505440235138,
-0.022209888324141502,
-0.012979479506611824,
-0.05111454427242279,
-0.08703196793794632,
-0.035013630986213684,
0.04334861412644386,
0.027448544278740883,
0.0413401834666729,
0.029205920174717903,
-0.00011624312173807994,
0.02637738175690174,
-0.012711688876152039,
0.0052344705909490585,
-0.01988345757126808,
-0.020419038832187653,
0.00038050333387218416,
0.049708642065525055,
-0.07042894512414932,
-0.03866227716207504,
-0.049005694687366486,
-0.01140620931982994,
0.0002149647771148011,
0.001301295356824994,
-0.028385810554027557,
-0.02403421327471733,
-0.02590874768793583,
-0.015506753697991371,
-0.038896594196558,
-0.0013776575215160847,
0.03283783048391342,
-0.06279691308736801,
-0.008376826532185078,
0.0188792422413826,
-0.00882035493850708,
0.016343599185347557,
0.0019027782836928964,
-0.02813475765287876,
0.02061988227069378,
-0.056135620921850204,
0.007443743757903576,
-0.028536442667245865,
0.023732949048280716,
-0.02239399589598179,
0.017875026911497116,
-0.015372858382761478,
-0.042578715831041336,
0.003278343705460429,
-0.006376765202730894,
-0.0015272436430677772,
0.03688816353678703,
0.02055293321609497,
0.0023515368811786175,
-0.07203569263219833,
-0.04592610150575638,
-0.06252912431955338,
-0.03692163899540901,
0.012176106683909893,
-0.0052344705909490585,
0.03305540978908539,
0.01466153934597969,
0.026025906205177307,
-0.04525662213563919,
-0.10256382822990417,
0.01028483547270298,
0.0294569730758667,
-0.06955862790346146,
0.04060376062989235,
0.05121496692299843,
0.012778636068105698,
-0.07277211546897888,
-0.022778943181037903,
0.003188382601365447,
0.0149711724370718,
0.04244482144713402,
0.050244223326444626,
0.010134203359484673,
-0.030293820425868034,
-0.06406892091035843,
0.009238778613507748,
0.02815149538218975,
-0.008694828487932682,
0.0017155340174213052,
-0.058478787541389465,
-0.028402548283338547,
0.006958373356610537,
-0.005205181427299976,
0.0054102083668112755,
-0.033289726823568344,
0.0714331641793251,
-0.064771868288517,
-0.029758239164948463,
0.09432926774024963,
-0.015607175417244434,
-0.019197244197130203,
-0.054361507296562195,
0.0033369227312505245,
-0.03054487332701683,
-0.06791841238737106,
0.05422761291265488,
0.009171830490231514,
0.018460819497704506,
0.005866289604455233,
-0.01235184445977211,
0.0025084454100579023,
0.06383460015058517,
-0.005154970567673445,
0.029791712760925293,
0.0035398579202592373,
0.02997581847012043,
-0.0294569730758667,
0.007895641028881073,
0.015456543304026127,
-0.028553180396556854,
0.026879489421844482,
0.03180014342069626,
0.012552687898278236,
0.009824570268392563,
0.0010722087463364005,
0.05586782842874527,
0.05091370269656181,
0.009171830490231514,
0.039566073566675186,
0.01820976659655571,
0.005276313051581383,
-0.06289733201265335,
-0.013582007959485054,
-0.0055315508507192135,
0.018962927162647247,
0.04311429709196091,
-0.002451958367601037,
-0.02232704684138298,
-0.04157450050115585,
0.0034310680348426104,
0.02358231693506241,
-0.001811771304346621,
-0.05811057612299919,
0.0293732900172472,
0.044854938983917236,
-0.02125588431954384,
-0.006217764690518379,
0.019565455615520477,
-0.061457958072423935,
-0.014929329976439476,
-0.06289733201265335,
-0.00720524275675416,
0.054461926221847534,
0.05268781632184982,
0.0027574070263653994,
0.008506538346409798,
0.008016983047127724,
-0.022511152550578117,
0.03842796012759209,
-0.03233572468161583,
-0.06303122639656067,
0.022126203402876854,
0.018611451610922813,
-0.000550749187823385,
-0.019682614132761955,
0.042043134570121765,
-0.07685592025518417,
-0.022009046748280525,
-0.04103891924023628,
-0.025875274091959,
0.0038076485507190228,
-0.04830274358391762,
-0.027331385761499405,
-0.02641085535287857,
0.026561487466096878,
-0.017205551266670227,
0.022511152550578117,
-0.07344159483909607,
-0.0694916769862175,
0.029055288061499596,
-0.022544628009200096,
-0.014870750717818737,
0.04358293116092682,
0.027783282101154327,
-0.06580955535173416,
0.021055040881037712,
0.02754896506667137,
0.013347690925002098,
0.044419776648283005,
0.023950528353452682,
0.024268530309200287,
-0.007498139049857855,
0.0808727815747261,
-0.014502538368105888,
-0.03387552127242088,
-0.00762784993276,
0.004236531909555197,
-0.07625339180231094,
-0.045457467436790466,
-0.0012950189411640167,
-0.023113682866096497,
-0.025557272136211395,
-0.025607483461499214,
-0.0808727815747261,
0.04937390610575676,
0.019498508423566818,
0.023113682866096497,
-0.00692489929497242,
0.030193397775292397,
0.05754151940345764,
0.019197244197130203,
0.018427345901727676,
-0.053256869316101074,
-0.010586099699139595,
0.015381226316094398,
-0.03648648038506508,
-0.03976691514253616,
0.08482269197702408,
0.04103891924023628,
-0.029507184401154518,
0.03235246241092682,
-0.01528917346149683,
0.03298846259713173,
-0.03698858618736267,
-0.002677906770259142,
-0.08140836656093597,
0.016117651015520096,
-0.0017981724813580513,
-0.03538184240460396,
0.042110081762075424,
0.026293696835637093,
0.013464849442243576,
-0.05894742161035538,
0.002288773423060775,
0.06011900678277016,
0.019264191389083862,
0.015690859407186508,
-0.00469052093103528,
0.08883955329656601,
0.005857920739799738,
0.008661354891955853,
0.009389410726726055,
-0.0634663924574852,
-0.004949943162500858,
0.00765713956207037,
0.01891271583735943,
0.05523182451725006,
0.009004461579024792,
0.06072153523564339,
-0.04070418328046799,
-0.08328290283679962,
-0.0016025598160922527,
-0.003755345707759261,
0.06453755497932434,
-0.002663261955603957,
0.043884195387363434,
-0.04110586643218994,
0.003387133590877056,
-0.00965720135718584,
-0.03541531786322594,
0.004937390331178904,
-0.016042334958910942,
-0.005431129597127438,
0.029825186356902122,
0.06895609945058823,
0.030745716765522957,
0.05098064988851547,
0.0021465097088366747,
-0.04696378856897354,
0.025088638067245483,
-0.054461926221847534,
-0.001268867519684136,
0.022494416683912277,
0.0149711724370718,
-0.02184167690575123,
0.016879180446267128,
0.030728979036211967,
0.03976691514253616,
0.07263822108507156,
-0.032000984996557236,
-0.06768409162759781,
-0.0589139461517334,
-0.05221918225288391,
0.006832846440374851,
0.009247146546840668,
0.04867095500230789,
-0.026879489421844482,
0.03882964700460434,
-0.026076117530465126,
0.057273730635643005,
0.042578715831041336,
0.009498200379312038,
0.028067810460925102,
-0.008678091689944267,
0.013741008937358856,
-0.019649140536785126,
0.07109842449426651,
-0.04190924018621445,
-0.04341556131839752,
0.02646106667816639,
0.021004831418395042,
0.0013766114134341478,
-0.02769959717988968,
0.01200873777270317,
0.013012953102588654,
0.0023180630523711443,
0.00881198700517416,
0.03842796012759209,
0.017791341990232468,
-0.026762330904603004,
0.029222657904028893,
0.022695260122418404,
0.0031716458033770323,
-0.017272498458623886,
-0.0494743250310421,
0.008694828487932682,
0.09091493487358093,
0.01384143065661192,
0.03896354138851166,
0.04753284528851509,
0.056202568113803864
] |
724,869 | scipy.sparse._dok | transpose |
Reverses the dimensions of the sparse array/matrix.
Parameters
----------
axes : None, optional
This argument is in the signature *solely* for NumPy
compatibility reasons. Do not pass in anything except
for the default value.
copy : bool, optional
Indicates whether or not attributes of `self` should be
copied whenever possible. The degree to which attributes
are copied varies depending on the type of sparse array/matrix
being used.
Returns
-------
p : `self` with the dimensions reversed.
Notes
-----
If `self` is a `csr_array` or a `csc_array`, then this will return a
`csc_array` or a `csr_array`, respectively.
See Also
--------
numpy.transpose : NumPy's implementation of 'transpose' for ndarrays
| def transpose(self, axes=None, copy=False):
if self.ndim == 1:
return self.copy()
if axes is not None and axes != (1, 0):
raise ValueError(
"Sparse arrays/matrices do not support "
"an 'axes' parameter because swapping "
"dimensions is the only logical permutation."
)
M, N = self.shape
new = self._dok_container((N, M), dtype=self.dtype, copy=copy)
new._dict.update((((right, left), val) for (left, right), val in self.items()))
return new
| (self, axes=None, copy=False) | [
-0.020027725026011467,
0.03181088715791702,
0.0013759940629824996,
-0.06183423474431038,
-0.053480226546525955,
-0.003832719288766384,
-0.0017362377839162946,
0.007300634868443012,
0.06832773983478546,
0.046548955142498016,
-0.010770830325782299,
-0.0163249671459198,
-0.011710199527442455,
0.04049321636557579,
0.02517145685851574,
-0.022709032520651817,
0.06573763489723206,
-0.03347074240446091,
-0.005326134618371725,
0.030771195888519287,
0.041405223309993744,
-0.04913906380534172,
0.041587624698877335,
0.017702100798487663,
-0.02438713051378727,
0.008955931290984154,
-0.013479498215019703,
-0.011162994429469109,
0.033288341015577316,
-0.04326572269201279,
-0.020629651844501495,
0.03841383382678032,
-0.029330220073461533,
0.05468408018350601,
-0.015230556018650532,
0.027123156934976578,
-0.04705968126654625,
-0.0033151539973914623,
0.06187071278691292,
0.029476141557097435,
0.03461987525224686,
-0.08886618912220001,
0.024843133985996246,
-0.02052021026611328,
0.03449219465255737,
0.03401794657111168,
0.03750182315707207,
-0.005804939661175013,
0.026648912578821182,
-0.023183276876807213,
0.018732672557234764,
-0.0272873193025589,
0.046950239688158035,
-0.015057274140417576,
-0.07022471725940704,
-0.03232160955667496,
0.0495038665831089,
0.03899751976132393,
-0.05493944138288498,
-0.028928935527801514,
-0.012649569660425186,
-0.017054574564099312,
-0.05067123845219612,
0.010424266569316387,
0.014072303660213947,
-0.03246753290295601,
-0.0032923538237810135,
0.005161972716450691,
0.032522253692150116,
-0.03153728321194649,
-0.05337078496813774,
0.005804939661175013,
-0.003328834194689989,
-0.010114183649420738,
-0.03899751976132393,
-0.008810009807348251,
-0.04837297648191452,
0.023000875487923622,
-0.036407411098480225,
0.014199985191226006,
-0.08602072298526764,
0.030570553615689278,
-0.06478914618492126,
0.05340726673603058,
-0.017966583371162415,
0.022344227880239487,
0.027925726026296616,
0.055997371673583984,
-0.03739238157868385,
-0.047533925622701645,
0.010880270972847939,
-0.022143587470054626,
-0.009338975884020329,
0.010314825922250748,
0.05928060784935951,
0.02285495400428772,
-0.021815262734889984,
-0.008226323872804642,
-0.05315190553665161,
-0.002175142290070653,
-0.08667736500501633,
0.017811542376875877,
-0.049467384815216064,
-0.013169415295124054,
-0.013297095894813538,
0.04045673459768295,
-0.01064314879477024,
-0.043119803071022034,
-0.029512621462345123,
-0.002185402438044548,
0.011956442147493362,
0.0793812945485115,
0.005362614989280701,
0.01955348066985607,
0.05734714865684509,
-0.09455712884664536,
0.012649569660425186,
0.00011784870730480179,
-0.03421859070658684,
0.018696190789341927,
-0.014364146627485752,
0.020009484142065048,
0.0453815832734108,
-0.00476068863645196,
-0.07916241139173508,
0.05453815683722496,
0.032941777259111404,
0.01775682158768177,
-0.03109951876103878,
-0.028582371771335602,
-0.038669195026159286,
-0.07514956593513489,
-0.023712242022156715,
0.05734714865684509,
0.016799211502075195,
-0.018030425533652306,
0.02228950895369053,
0.019279876723885536,
-0.049613308161497116,
0.016033124178647995,
-0.01103531289845705,
0.0012460327707231045,
-0.032540492713451385,
0.06292864680290222,
0.01141835656017065,
-0.03653509542346001,
0.025882825255393982,
-0.023657523095607758,
0.013379177078604698,
0.017437618225812912,
-0.017036333680152893,
0.053297825157642365,
0.04895666241645813,
-0.009229534305632114,
-0.0561068132519722,
0.013014373369514942,
-0.02748796157538891,
-0.045600466430187225,
0.006917590741068125,
0.05340726673603058,
-0.05318838357925415,
-0.013160294853150845,
-0.01937107928097248,
-0.01364365965127945,
-0.005718298722058535,
-0.01567744091153145,
0.022015905007719994,
-0.07048007845878601,
-0.02551802061498165,
-0.012266525998711586,
0.029439661651849747,
0.001325833611190319,
-0.008509047329425812,
-0.015039034187793732,
-0.03823143243789673,
-0.03208448737859726,
-0.006388625595718622,
0.017583539709448814,
0.011390997096896172,
-0.03910696133971214,
0.015121114440262318,
0.013306216336786747,
-0.029439661651849747,
0.013780460692942142,
0.00600102124735713,
-0.0071136727929115295,
-0.004366244655102491,
0.015121114440262318,
0.03319713845849037,
0.008741609752178192,
0.021030934527516365,
0.03746534511446953,
0.03859623521566391,
0.03565956652164459,
0.0033197139855474234,
-0.011865241453051567,
-0.0336531437933445,
-0.034437473863363266,
0.06562819331884384,
0.06770757585763931,
-0.04056617617607117,
-0.025207938626408577,
0.06143295019865036,
0.06781701743602753,
0.0007170673343352973,
-0.009813220240175724,
0.018085144460201263,
-0.06442434340715408,
-0.006685028318315744,
0.043375164270401,
0.008860170841217041,
-0.017446737736463547,
-0.03855975344777107,
-0.07916241139173508,
-0.00020648461941163987,
-0.00999562256038189,
-0.02938494086265564,
-0.034893475472927094,
0.05508536472916603,
-0.0357142873108387,
0.029457902535796165,
0.011609879322350025,
-0.05092659965157509,
-0.009950022213160992,
-0.04282796010375023,
-0.0053306943736970425,
0.013151174411177635,
0.0018844392616301775,
-0.03151904419064522,
0.019517000764608383,
0.01411790493875742,
-0.011473077349364758,
-0.027688603848218918,
-0.041733548045158386,
0.052093975245952606,
-0.03186560794711113,
-0.020100686699151993,
-0.06110462546348572,
0.029895666986703873,
0.023493360728025436,
-0.0014010743470862508,
-0.01725521683692932,
0.03230337053537369,
0.03213920816779137,
-0.029676783829927444,
-0.003933040425181389,
0.0063749453984200954,
0.011555158533155918,
-0.022891433909535408,
-0.00205088104121387,
-0.03474755585193634,
-0.009913541376590729,
0.00921129435300827,
0.048664819449186325,
0.017437618225812912,
0.02015540562570095,
0.016963373869657516,
-0.021268058568239212,
-0.02227126806974411,
-0.03808550909161568,
0.04603823274374008,
-0.016215525567531586,
0.023383919149637222,
-0.0464395172894001,
0.01937107928097248,
0.021049175411462784,
0.009867941029369831,
0.03015102818608284,
0.024660732597112656,
0.029530862346291542,
-0.015312637202441692,
0.03722822293639183,
-0.029695024713873863,
0.02650299109518528,
0.07069896161556244,
0.0063840653747320175,
0.05395447090268135,
-0.014738070778548717,
-0.008034802041947842,
-0.015786882489919662,
-0.03128192201256752,
-0.03420035168528557,
-0.0005004651029594243,
-0.006370385177433491,
-0.009006092324852943,
-0.04363052546977997,
-0.02916605956852436,
-0.016315847635269165,
0.03392674773931503,
-0.008983291685581207,
0.008563768118619919,
0.015184955671429634,
-0.007879761047661304,
-0.0051482925191521645,
-0.05833211913704872,
-0.06519042700529099,
-0.11294323951005936,
-0.013807821087539196,
0.059390049427747726,
0.03221217170357704,
-0.009658179245889187,
0.020647890865802765,
0.014081424102187157,
0.04895666241645813,
0.07463884353637695,
0.016698891296982765,
-0.016498249024152756,
0.03845031186938286,
-0.009307055734097958,
0.022927915677428246,
0.011172113940119743,
-0.010862031020224094,
-0.0806216225028038,
0.0380125492811203,
-0.027615642175078392,
0.009270574897527695,
0.023748723790049553,
0.003652597311884165,
0.03750182315707207,
0.06219903752207756,
-0.034674596041440964,
-0.04611119255423546,
-0.06431490182876587,
-0.018714431673288345,
-0.003645757446065545,
0.012512767687439919,
0.010825551114976406,
-0.11644535511732101,
0.03540420159697533,
0.020210126414895058,
0.0057410988956689835,
0.05121844261884689,
0.017419379204511642,
0.04684079810976982,
-0.09331679344177246,
-0.06420546025037766,
0.008016562089323997,
0.03885159641504288,
-0.02517145685851574,
0.015321756713092327,
-0.00552221667021513,
-0.05669049918651581,
-0.0008658388396725059,
-0.08558295667171478,
-0.023548081517219543,
0.005312454421073198,
-0.08375893533229828,
0.0034815955441445112,
-0.008846490643918514,
-0.041186340153217316,
0.013944623060524464,
0.038669195026159286,
0.029494382441043854,
0.034893475472927094,
-0.024678973481059074,
0.028089888393878937,
0.0019459999166429043,
-0.018677951768040657,
-0.007514956872910261,
-0.0395447239279747,
0.08944987505674362,
0.0021101615857332945,
-0.04049321636557579,
-0.0228367131203413,
0.04764336720108986,
-0.01634320802986622,
-0.004521286115050316,
-0.03356194496154785,
-0.011546038091182709,
0.031774405390024185,
0.03722822293639183,
-0.025262659415602684,
0.04403181001543999,
0.043849408626556396,
-0.034674596041440964,
0.07376331835985184,
-0.06307456642389297,
0.04596526920795441,
-0.011527798138558865,
-0.059207648038864136,
0.09645410627126694,
-0.03507588058710098,
0.02513497695326805,
0.006958631332963705,
-0.03451043367385864,
-0.0024031444918364286,
0.020885013043880463,
0.01036954578012228,
0.03626149147748947,
0.0023484239354729652,
-0.054209835827350616,
0.019097475335001945,
-0.019900044426321983,
-0.013826061971485615,
-0.030406391248106956,
0.055340725928545,
-0.08879322558641434,
0.05110900476574898,
-0.036972858011722565,
-0.0492120236158371,
-0.016853932291269302,
-0.034455712884664536,
0.0024555851705372334,
0.007337115239351988,
-0.03939880430698395,
-0.0167080108076334,
-0.0019482799107208848,
0.055377207696437836,
0.05417335405945778,
0.01902451552450657,
0.028874216601252556,
0.04968626797199249,
0.027506202459335327,
-0.006840070243924856,
0.038669195026159286,
0.016926893964409828,
0.026721874251961708,
-0.011299795471131802,
0.0502699539065361,
0.001402214402332902,
0.01057018805295229,
0.0747847631573677,
-0.07234057784080505,
-0.028108127415180206,
0.027031956240534782,
-0.012777251191437244,
-0.05836859717965126,
0.03480227664113045,
-0.02321975864470005,
0.019060995429754257,
0.018577629700303078,
-0.03230337053537369,
0.05369910970330238,
0.02684955485165119,
-0.001065910910256207,
0.043083321303129196,
0.03055231273174286,
0.049832191318273544,
-0.022508390247821808,
0.03768422454595566,
0.025299139320850372,
0.001801218488253653,
-0.048847220838069916,
-0.08419670164585114,
-0.001613116473890841,
-0.001838838797993958,
-0.037939589470624924,
0.013160294853150845,
-0.047935210168361664,
-0.029840946197509766,
0.06044797971844673,
0.07733839005231857,
-0.0015538359293714166,
-0.08164307475090027,
-0.003725558053702116,
-0.008810009807348251,
0.04034729301929474,
-0.059645410627126694,
-0.0006486666388809681,
0.017811542376875877,
0.02017364650964737,
-0.04498030245304108,
0.023584561422467232,
0.014874872751533985,
0.058478038758039474,
-0.02303735539317131,
0.0030962717719376087,
-0.018732672557234764,
0.027378519997000694,
-0.0022686233278363943,
0.03126367926597595,
0.004345724359154701,
0.008335765451192856,
0.000195084503502585,
-0.02838173136115074,
0.01900627464056015,
0.031938567757606506,
-0.02608346752822399,
-0.04574638977646828,
0.02320151776075363,
-0.056581057608127594,
-0.004327484406530857,
0.01958996057510376,
0.00812144298106432,
-0.02803516760468483,
0.017811542376875877,
0.04585583135485649,
-0.0006828670157119632,
0.05358966812491417,
0.027962205931544304,
0.012713409960269928,
-0.051510289311409,
-0.013807821087539196,
0.10112359374761581,
0.017319057136774063,
-0.019626440480351448,
-0.08631256222724915,
-0.01638880744576454,
-0.05701882392168045,
0.04122282192111015,
0.03202976658940315,
-0.05887932330369949,
0.03126367926597595,
0.014792791567742825,
-0.00552221667021513,
0.023967605084180832,
-0.001713437493890524,
0.013388297520577908,
-0.004550926387310028,
-0.01662592962384224,
-0.05742010846734047,
-0.010898511856794357,
-0.06358528882265091,
0.010697869583964348,
0.03438275307416916,
0.034255072474479675,
-0.05056179687380791,
-0.0002345574030186981,
0.0370093397796154,
-0.011308915913105011,
0.04249963536858559,
0.01516671571880579,
-0.03416386991739273,
0.024131767451763153,
-0.03514884039759636,
0.0023507040459662676,
0.039252880960702896,
-0.00039415902574546635,
0.02185174450278282,
-0.008144243620336056,
-0.04027433320879936,
-0.07383627444505692,
-0.033726103603839874,
0.028144607320427895,
-0.0226907916367054,
-0.03268641605973244,
-0.02555450238287449,
-0.0044734058901667595,
0.08426966518163681,
-0.019079234451055527,
0.0027337479405105114,
-0.00585054000839591,
0.0019950203131884336,
-0.0226907916367054,
-0.02400408498942852,
0.0065573472529649734,
0.003513515926897526,
-0.04855537787079811,
-0.012375966645777225,
0.006908470764756203,
-0.09674595296382904,
-0.05632569640874863,
0.042171310633420944,
-0.030406391248106956,
0.0030324310064315796,
0.015558878891170025,
-0.014956953004002571,
-0.011947322636842728,
-0.011144754476845264,
-0.011646359227597713,
0.02573690377175808,
-0.005212133284658194,
0.0456734262406826,
-0.0077475192956626415,
0.049029622226953506,
-0.023456880822777748,
-0.002617466729134321,
0.033853787928819656,
-0.007182073313742876,
0.026740113273262978,
0.028199328109622,
-0.06522690504789352,
0.06829126179218292,
0.04972274973988533,
0.031756166368722916,
-0.046731360256671906,
0.020629651844501495,
0.03646213188767433,
-0.011117394082248211,
0.02382168360054493,
0.016635050997138023,
0.036188531666994095,
-0.06354881078004837,
0.033105939626693726,
0.028345249593257904,
-0.03230337053537369,
0.0205384511500597,
0.03126367926597595,
0.0010066303657367826,
-0.059207648038864136,
-0.05275062099099159,
-0.00922041479498148,
0.020100686699151993,
0.031190719455480576,
0.05322486534714699,
-0.05165620893239975,
0.015449438244104385,
-0.07536844909191132,
-0.0027246279641985893,
0.010050343349575996,
0.03586020693182945,
-0.0003308883751742542,
0.050963081419467926,
0.043849408626556396,
-0.029257260262966156,
-0.028728293254971504,
-0.014263826422393322,
-0.014446227811276913,
0.03669925406575203,
0.0063840653747320175,
0.06245439872145653,
-0.006219903472810984,
-0.00010844360804185271,
-0.04315628111362457,
-0.023912884294986725,
-0.019863562658429146,
-0.06697796285152435,
0.01610608585178852,
-0.033124178647994995,
-0.000645816617179662,
-0.013880781829357147,
-0.0031327521428465843,
-0.043667007237672806,
0.024533051997423172,
-0.0885743498802185,
0.020684372633695602,
0.03496643900871277,
-0.0046010869555175304,
-0.01652560941874981,
0.01325149554759264,
0.0313548818230629,
-0.05070772022008896,
0.06110462546348572,
0.01162811927497387,
-0.01488399226218462,
-0.021067416295409203,
-0.04746096581220627,
0.042718518525362015,
0.059061724692583084,
0.07055304199457169,
0.011746680364012718,
-0.03653509542346001,
0.07369035482406616,
0.020830294117331505,
0.018969794735312462,
-0.08558295667171478,
0.020629651844501495,
-0.04622063413262367,
-0.03055231273174286,
0.003251313231885433,
-0.0359514094889164,
0.021213337779045105,
-0.01765650138258934,
0.018969794735312462,
-0.0064798262901604176,
0.052677661180496216,
-0.00552221667021513,
0.004503046162426472,
-0.031938567757606506,
-0.02321975864470005,
0.03786662593483925,
-0.02073909156024456,
-0.0081624835729599,
-0.0313548818230629,
0.0833941325545311,
0.024715453386306763,
-0.010688749141991138,
0.05968189239501953,
0.005731978919357061,
-0.008696009404957294,
-0.004459725692868233,
-0.021833503618836403,
-0.038121990859508514,
-0.00881913024932146,
0.019699402153491974,
0.0001257575349882245,
0.054027434438467026,
-0.00032148329773917794,
-0.014236466027796268,
-0.040201373398303986,
-0.014254705980420113,
0.0464395172894001,
0.025627462193369865,
0.009115532971918583,
-0.030807675793766975,
-0.017519699409604073,
0.012494527734816074,
0.005709178280085325,
-0.09893476963043213,
-0.055559609085321426,
0.0599372535943985,
-0.008071282878518105,
0.06351233273744583,
-0.0028705494478344917,
0.00843608658760786,
0.03653509542346001,
0.024423610419034958,
-0.005818619392812252,
0.0074693565256893635,
0.009174813516438007,
-0.003994600847363472,
-0.07102728635072708,
0.00796184130012989,
-0.01862323097884655,
0.06318400800228119,
0.014592149294912815,
-0.009056252427399158,
0.013397417031228542,
0.03281409665942192,
-0.013324456289410591,
-0.010241865180432796,
-0.0031623924151062965,
0.09740259498357773,
0.0757332518696785,
0.015029913745820522,
0.009024332277476788,
-0.010050343349575996,
-0.012932292185723782,
0.009667298756539822,
0.02363928221166134,
-0.007893441244959831,
-0.003953560255467892,
0.03917992115020752,
-0.011126513592898846,
0.04698672145605087,
0.03423682972788811,
0.003470195457339287,
-0.008481686934828758,
0.003018750809133053,
-0.020045965909957886,
0.0031578324269503355,
-0.0063749453984200954,
0.027943966910243034,
0.01783890277147293,
-0.020830294117331505,
0.030461112037301064,
0.014291185885667801,
-0.0270501971244812,
0.01391726266592741,
0.05296950414776802,
0.02035604789853096,
0.016188165172934532,
0.04074857756495476,
0.043302204459905624,
0.011801401153206825,
-0.01411790493875742,
0.004053881391882896,
-0.006525426637381315,
-0.004170162603259087,
-0.03297825902700424,
0.00979498028755188,
-0.015111994929611683,
-0.04286443814635277,
-0.023511601611971855,
0.013287976384162903,
0.017483219504356384,
0.050415877252817154,
-0.019115716218948364,
-0.01527615636587143,
-0.06657668203115463,
0.0029845505487173796,
-0.0009918101131916046,
-0.034437473863363266,
0.09557858109474182,
-0.004477965645492077,
-0.011801401153206825,
0.08281044661998749,
0.017620019614696503
] |
724,870 | scipy.sparse._dok | update | null | def update(self, val):
# Prevent direct usage of update
raise NotImplementedError("Direct update to DOK sparse format is not allowed.")
| (self, val) | [
0.05947189778089523,
0.009288250468671322,
-0.029719015583395958,
0.03996403142809868,
0.012031543999910355,
-0.020439231768250465,
-0.04900674149394035,
0.015951745212078094,
0.05019211396574974,
-0.03337673842906952,
-0.060284726321697235,
-0.04873579740524292,
0.03908346965909004,
0.024418700486421585,
-0.00420807721093297,
0.0036640751641243696,
0.0005392392631620169,
0.04660212621092796,
-0.0018362710252404213,
0.051512960344552994,
0.0037910793907940388,
-0.06201198324561119,
-0.030599577352404594,
0.061842646449804306,
0.0060496400110423565,
-0.027974821627140045,
0.07268034666776657,
-0.02071017399430275,
0.04629731550812721,
-0.05103880912065506,
0.010761501267552376,
-0.023504268378019333,
-0.017424995079636574,
0.04213157296180725,
0.04599250480532646,
-0.016298890113830566,
-0.035493478178977966,
-0.013868873938918114,
0.02176007628440857,
0.01673070527613163,
-0.018237823620438576,
-0.020252957940101624,
-0.022031018510460854,
-0.026179827749729156,
0.05368049815297127,
0.07186751812696457,
-0.0023305295035243034,
0.07837014645338058,
0.01166746485978365,
-0.010575227439403534,
-0.04257185384631157,
0.0033021126873791218,
0.015350590460002422,
0.020354561507701874,
-0.048160046339035034,
0.011057844385504723,
0.028889253735542297,
0.0355612151324749,
0.03901573270559311,
0.0016563482349738479,
0.022420499473810196,
-0.012268618680536747,
0.008589726872742176,
-0.03451131284236908,
-0.016078749671578407,
-0.0036323240492492914,
-0.015613066032528877,
0.017306458204984665,
0.010685298591852188,
0.04070912301540375,
-0.0058887675404548645,
-0.02623062953352928,
-0.011692865751683712,
-0.010219615884125233,
-0.011125579476356506,
0.03600149601697922,
-0.04070912301540375,
0.03877865895628929,
-0.016959313303232193,
-0.06912422925233841,
0.05344342440366745,
-0.004153041634708643,
0.059675104916095734,
0.021489134058356285,
-0.06841300427913666,
0.02738213539123535,
0.0696999803185463,
0.01582474075257778,
0.021573802456259727,
0.042097702622413635,
0.04572156071662903,
-0.0006889985525049269,
-0.020151354372501373,
-0.018373293802142143,
0.05279993638396263,
-0.012404089793562889,
0.02186167985200882,
-0.08419540524482727,
-0.013733401894569397,
0.0029676679987460375,
0.02665397711098194,
-0.003869398729875684,
0.011396522633731365,
-0.036136966198682785,
-0.007353551220148802,
-0.0466698594391346,
0.030379436910152435,
-0.02529926411807537,
0.014080547727644444,
-0.001402339548803866,
-0.04118327423930168,
0.02804255671799183,
-0.03439277410507202,
-0.03661111742258072,
-0.07389958947896957,
-0.0063798511400818825,
0.023555070161819458,
0.006875168066471815,
-0.030091561377048492,
0.04548448696732521,
-0.0014330322155728936,
0.033732350915670395,
-0.018441028892993927,
0.014419225975871086,
0.008814101107418537,
0.02123512513935566,
0.006413719151169062,
0.06336669623851776,
0.11332173645496368,
-0.03356301411986351,
-0.028686046600341797,
-0.032563913613557816,
0.025333132594823837,
0.029227931052446365,
0.033613815903663635,
-0.0535450279712677,
0.04914221167564392,
-0.0533418208360672,
-0.05215644836425781,
0.007997039705514908,
0.034341972321271896,
0.0005402975948527455,
0.033613815903663635,
-0.010151879861950874,
0.06377311050891876,
0.011167914606630802,
-0.05361276492476463,
0.026179827749729156,
-0.05049692466855049,
0.04524741321802139,
0.009694664739072323,
0.03178495168685913,
0.033105798065662384,
0.036746587604284286,
0.0013007360976189375,
0.0020542950369417667,
-0.0013801137683913112,
-0.07918296754360199,
0.05205484479665756,
0.00557125685736537,
-0.023910682648420334,
-0.04541675001382828,
0.007882735691964626,
0.03408796340227127,
-0.04213157296180725,
0.080808624625206,
-0.07782825827598572,
-0.004360482096672058,
-0.06892102211713791,
-0.0006667727720923722,
0.02113352157175541,
-0.032767120748758316,
-0.028482839465141296,
0.036644984036684036,
0.02331799641251564,
0.03661111742258072,
-0.011938408017158508,
0.019372394308447838,
0.04582316428422928,
-0.030582644045352936,
-0.019524799659848213,
0.03915120288729668,
-0.031530942767858505,
0.03532414138317108,
-0.008881836198270321,
0.05493360757827759,
-0.04352015256881714,
-0.0006651852163486183,
0.06116528809070587,
-0.010642963461577892,
0.04839712008833885,
-0.02885538525879383,
-0.004584856331348419,
0.002950733993202448,
-0.002088163048028946,
-0.005520455073565245,
-0.00457638967782259,
-0.0315140075981617,
0.0017632435774430633,
0.10065516829490662,
0.019067583605647087,
-0.05344342440366745,
0.05083560198545456,
-0.005880300886929035,
-0.01871197298169136,
-0.002504102187231183,
0.05601738020777702,
-0.005681327544152737,
-0.03254697844386101,
0.01426682062447071,
0.019914280623197556,
0.024080023169517517,
0.005973437335342169,
0.010058743879199028,
0.04802457243204117,
-0.08046995103359222,
-0.058286525309085846,
-0.0086362948641181,
-0.003606923157349229,
-0.023707475513219833,
0.012903640978038311,
0.012099280022084713,
0.04578929767012596,
-0.05479813739657402,
0.022014085203409195,
-0.02656930685043335,
0.04026884213089943,
-0.04528127983212471,
-0.04853259027004242,
0.005135208833962679,
0.01039742212742567,
-0.00905117578804493,
-0.023453468456864357,
0.009601527824997902,
0.037796489894390106,
-0.0302100982517004,
0.0014658417785540223,
0.02123512513935566,
-0.014757904224097729,
0.03146320953965187,
0.0010028050746768713,
-0.03429117053747177,
0.029989957809448242,
0.044502317905426025,
-0.036882057785987854,
0.030802784487605095,
0.026298364624381065,
0.05930255725979805,
-0.011430390179157257,
0.009279783815145493,
0.02103191800415516,
-0.030091561377048492,
-0.018949046730995178,
0.02970208041369915,
0.03566281870007515,
-0.03752554953098297,
-0.03315659984946251,
0.02916019596159458,
0.0026628575287759304,
-0.07105468958616257,
-0.07667674869298935,
0.008259515278041363,
-0.01986347883939743,
0.03942214697599411,
0.0117690684273839,
0.021285926923155785,
0.057676903903484344,
0.03918507322669029,
0.03766101971268654,
0.06367150694131851,
0.023893749341368675,
0.024638840928673744,
-0.02049003355205059,
0.015443727374076843,
0.016027947887778282,
0.038135167211294174,
0.018881311640143394,
0.013386256992816925,
0.04775363206863403,
0.03198815882205963,
0.041217140853405,
-0.015121983364224434,
-0.010134945623576641,
0.008678629994392395,
-0.0168746430426836,
-0.028635244816541672,
0.005524688865989447,
0.025282330811023712,
-0.050767868757247925,
-0.01303064450621605,
0.02018522284924984,
0.07538977265357971,
0.024943651631474495,
0.015689268708229065,
0.019389329478144646,
0.014105948619544506,
-0.05469653382897377,
0.012319420464336872,
0.027212796732783318,
0.05594964325428009,
-0.027957888320088387,
-0.010228082537651062,
-0.0951685830950737,
0.015045780688524246,
0.06892102211713791,
-0.042436383664608,
0.028889253735542297,
0.03229296952486038,
-0.0010922373039647937,
0.05283380299806595,
0.017848342657089233,
0.014249886386096478,
-0.042300909757614136,
0.022843847051262856,
0.002715775975957513,
-0.02521459385752678,
-0.03156480938196182,
-0.004965869709849358,
0.010058743879199028,
0.0533418208360672,
-0.05618671700358391,
-0.032259102910757065,
-0.04131874442100525,
-0.009796268306672573,
-0.08805634081363678,
-0.035832155495882034,
0.08331484347581863,
0.008174845948815346,
-0.01531672291457653,
0.004282162990421057,
-0.016679903492331505,
-0.02321639284491539,
0.0838567316532135,
-0.00956766027957201,
-0.021370597183704376,
0.003236493794247508,
0.014563163742423058,
-0.03898186609148979,
0.020777909085154533,
0.005173310171812773,
-0.013936609029769897,
0.040742989629507065,
-0.05340955778956413,
-0.041047800332307816,
-0.013369322754442692,
-0.021624604240059853,
-0.005545855965465307,
-0.02016828954219818,
0.05130975320935249,
0.01480023842304945,
-0.03661111742258072,
-0.016019480302929878,
-0.004847332369536161,
0.06119915470480919,
0.055881910026073456,
-0.004775363020598888,
0.02164153940975666,
-0.07721863687038422,
-0.00988093763589859,
-0.11108645796775818,
-0.01800074800848961,
-0.027263598516583443,
0.011836804449558258,
0.026383034884929657,
-0.030565710738301277,
0.0029909522272646427,
-0.10803835839033127,
-0.01840716227889061,
0.020354561507701874,
-0.002347463509067893,
-0.02738213539123535,
-0.05869293585419655,
-0.017645135521888733,
0.023809079080820084,
0.04521354287862778,
0.02634916640818119,
-0.10255176573991776,
0.020659372210502625,
-0.039286673069000244,
-0.021048851311206818,
0.030362503603100777,
-0.04233478009700775,
-0.018965980038046837,
0.04633118212223053,
0.03600149601697922,
0.018762774765491486,
0.032276034355163574,
0.009508390910923481,
-0.016188818961381912,
0.023368798196315765,
0.02824576385319233,
0.05195324122905731,
-0.027636144310235977,
-0.01574007049202919,
-0.002358047291636467,
0.07952164858579636,
0.03484999015927315,
-0.019084518775343895,
0.004584856331348419,
-0.056423794478178024,
-0.04724561423063278,
-0.018762774765491486,
-0.027348266914486885,
0.05347729101777077,
-0.015282855369150639,
-0.06387471407651901,
0.027145059779286385,
0.004360482096672058,
-0.036543380469083786,
0.04033657908439636,
0.016154952347278595,
-0.0073493174277246,
0.03159867972135544,
0.011269518174231052,
0.0052241114899516106,
-0.0060454062186181545,
0.040099501609802246,
-0.03461291640996933,
0.01322538498789072,
0.061436232179403305,
0.03136160597205162,
0.024334030225872993,
0.0007583217229694128,
0.0634344294667244,
-0.00966926384717226,
-0.0717320516705513,
-0.009440655820071697,
-0.019423196092247963,
-0.025350065901875496,
0.03650951385498047,
-0.031124530360102654,
-0.03305499628186226,
-0.015596132725477219,
0.010287350974977016,
-0.050767868757247925,
-0.013216918334364891,
-0.009999474510550499,
-0.02164153940975666,
-0.01818702183663845,
0.02948193997144699,
0.06594064831733704,
-0.0033105798065662384,
0.021793944761157036,
-0.017509665340185165,
-0.0057871644385159016,
-0.02279304526746273,
-0.013470926322042942,
0.0241477582603693,
-0.054527197033166885,
-0.015401392243802547,
0.050767868757247925,
-0.015147384256124496,
-0.0004344606713857502,
0.046703729778528214,
-0.053172484040260315,
-0.0677017793059349,
-0.04423137754201889,
-0.06763404607772827,
0.07119016349315643,
0.0038122469559311867,
0.010211148299276829,
0.013606398366391659,
-0.10783515125513077,
-0.009804734960198402,
-0.028211897239089012,
0.0293972697108984,
-0.022759176790714264,
0.016375092789530754,
-0.0062020448967814445,
-0.019626403227448463,
0.01967720501124859,
-0.0923236832022667,
0.004779596347361803,
-0.04609410837292671,
-0.029871420934796333,
0.00894957222044468,
-0.017814474180340767,
0.007510189898312092,
-0.0359676294028759,
-0.018119284883141518,
-0.033715419471263885,
-0.04047204926609993,
-0.008229880593717098,
-0.0012277085334062576,
0.04152195155620575,
-0.03671272099018097,
0.01616341806948185,
0.011633597314357758,
0.03449437767267227,
-0.005876067094504833,
0.01568080298602581,
-0.037593282759189606,
0.035933759063482285,
-0.04531514644622803,
0.004741495009511709,
-0.01123565062880516,
-0.03935441002249718,
0.009008840657770634,
-0.020337628200650215,
0.015460661612451077,
-0.017763672396540642,
-0.019423196092247963,
-0.05970897153019905,
-0.014503895305097103,
0.02499445341527462,
-0.02656930685043335,
-0.0339524932205677,
0.016256555914878845,
0.006807432509958744,
-0.03044717386364937,
-0.05459493026137352,
0.008488123305141926,
0.055475495755672455,
0.044400714337825775,
0.055272288620471954,
-0.002847013995051384,
-0.03796583041548729,
-0.00327882869169116,
-0.02772081270813942,
-0.010236549191176891,
-0.007315449882298708,
-0.006396784912794828,
0.016442827880382538,
-0.032072827219963074,
-0.03347834199666977,
-0.03324126824736595,
-0.05188550427556038,
-0.0654665008187294,
0.027466803789138794,
-0.011582795530557632,
-0.03317353129386902,
-0.010346620343625546,
0.03327513486146927,
0.05388370528817177,
0.057575300335884094,
0.014994978904724121,
0.0830439031124115,
-0.0035476544871926308,
-0.058828409761190414,
-0.0414203479886055,
-0.01881357654929161,
-0.008081709034740925,
0.012531094253063202,
-0.04853259027004242,
0.02739906869828701,
0.029431138187646866,
-0.020574701949954033,
-0.025908885523676872,
0.041251007467508316,
-0.040404312312603,
-0.12531094253063202,
0.003833414288237691,
0.0646536722779274,
0.01437689084559679,
0.019914280623197556,
0.025654876604676247,
-0.0063798511400818825,
-0.013835005462169647,
0.015265921130776405,
0.01810235157608986,
-0.011472725309431553,
-0.03396942839026451,
0.0705128088593483,
0.005440019071102142,
0.05015824735164642,
0.005867600440979004,
-0.03263164684176445,
-0.04528127983212471,
0.0178822111338377,
-0.03412183001637459,
-0.007768432144075632,
-0.025908885523676872,
-0.018898244947195053,
0.03442664071917534,
0.0059776706621050835,
0.02468964271247387,
-0.007476321887224913,
-0.020405363291502,
0.011887606233358383,
-0.04541675001382828,
-0.034358907490968704,
0.035290271043777466,
0.015968678519129753,
-0.04050591588020325,
0.07119016349315643,
0.017712870612740517,
-0.02155686914920807,
0.05449332669377327,
0.007599093019962311,
-0.01862730272114277,
-0.011261051520705223,
-0.04043818265199661,
-0.05425625294446945,
-0.036441776901483536,
-0.023707475513219833,
0.016967779025435448,
-0.05429011955857277,
-0.04548448696732521,
0.048261646181344986,
0.01945706456899643,
-0.0705128088593483,
0.0070275734178721905,
-0.013276186771690845,
-0.007285815663635731,
-0.019203055649995804,
0.00682436628267169,
-0.022725310176610947,
0.05510294809937477,
0.0013219034299254417,
-0.018373293802142143,
0.025028321892023087,
0.02135366201400757,
-0.04524741321802139,
-0.024842048063874245,
-0.008454255759716034,
-0.0034058329183608294,
-0.0024554170668125153,
-0.017340324819087982,
-0.02196328341960907,
-0.029143262654542923,
-0.016603700816631317,
0.0010033342987298965,
-0.055373892188072205,
-0.050259850919246674,
-0.03202202543616295,
0.021082719787955284,
0.04152195155620575,
0.023385731503367424,
-0.01925385743379593,
-0.02269144169986248,
-0.014012811705470085,
0.031209198758006096,
0.01280203741043806,
0.0357644222676754,
0.010422823019325733,
-0.04213157296180725,
-0.025773413479328156,
0.008543157950043678,
0.028719913214445114,
0.09042708575725555,
0.0335460789501667,
0.03715300187468529,
0.038338374346494675,
-0.011150980368256569,
-0.03837224468588829,
-0.02186167985200882,
-0.004011220298707485,
-0.0543578565120697,
-0.020015884190797806,
0.008788700215518475,
-0.018864378333091736,
-0.022860780358314514,
-0.057135019451379776,
-0.022962383925914764,
0.07098695635795593,
0.031192265450954437,
0.00945759005844593,
0.0023305295035243034,
0.027974821627140045,
-0.015359058044850826,
-0.036035362631082535,
-0.007544057443737984,
0.019186122342944145,
-0.04057365283370018,
0.012268618680536747,
0.0521225780248642,
0.016087215393781662,
0.010499024763703346,
0.029871420934796333,
-0.035730551928281784,
-0.04856645688414574,
-0.026433836668729782,
-0.013818072155117989,
0.03921893984079361,
0.010609095916152,
-0.08575332909822464,
0.02468964271247387,
0.002100863493978977,
0.022962383925914764,
0.055170685052871704,
0.0015737954527139664,
0.04331694543361664,
0.019067583605647087,
0.023267194628715515,
-0.016256555914878845,
0.02352120354771614,
-0.027890153229236603,
0.010524425655603409,
-0.005300314165651798,
-0.08914010971784592,
-0.01954173482954502,
-0.0630280151963234,
-0.01695084571838379,
-0.0489051379263401,
-0.04196223244071007,
-0.05696567893028259,
-0.005609358195215464,
0.0073577845469117165,
-0.010863103903830051,
0.04704240709543228,
-0.00005612665700027719,
0.03022703155875206,
0.0149018419906497,
0.02341959998011589,
0.042504116892814636,
0.029465006664395332,
-0.057033415883779526,
-0.004407050553709269,
-0.035493478178977966,
-0.030159296467900276,
0.05601738020777702,
0.06963224709033966,
-0.0696999803185463,
0.0016986830160021782,
0.028787650167942047,
0.057676903903484344,
-0.03627244010567665,
-0.05093720555305481,
0.013039112091064453,
0.06268934160470963,
0.001129280193708837,
0.0014658417785540223,
-0.009686197154223919,
-0.0072731152176856995,
-0.05848972871899605,
-0.010803835466504097,
0.0012636932078748941,
0.01312378142029047,
0.025773413479328156,
0.01249722670763731,
0.0418267622590065,
0.008496589958667755,
-0.018847443163394928,
-0.004201726987957954,
0.0176790039986372,
0.000899614067748189,
-0.02541780099272728,
0.0004357836442068219,
0.02812722697854042,
0.04385882988572121,
-0.024012286216020584,
0.036983661353588104,
-0.0426395907998085,
-0.0016838657902553678,
-0.05743982642889023,
0.041454214602708817,
0.01584167405962944,
0.013479393906891346,
-0.02604435570538044,
0.006439120043069124,
0.022826911881566048,
0.059641238301992416,
-0.0013525962131097913,
0.0707160159945488,
0.10918986052274704,
-0.05384983867406845,
0.013301587663590908,
0.01239562314003706,
0.0235381368547678,
-0.02677251398563385,
0.014808706007897854,
-0.020337628200650215,
-0.012336354702711105,
0.06401018798351288,
-0.0410139337182045,
0.05608511343598366,
0.015519930049777031,
0.04636504873633385
] |
724,871 | scipy.sparse._dok | values | null | def values(self):
return self._dict.values()
| (self) | [
0.06687885522842407,
-0.0532684251666069,
-0.040093790739774704,
-0.03429426997900009,
0.019761947914958,
0.03597043454647064,
-0.02770695649087429,
-0.05507867783308029,
0.11780065298080444,
0.01878977380692959,
-0.02395235374569893,
0.01248740591108799,
0.015336881391704082,
-0.009311079047620296,
0.02179010398685932,
0.00011844440450659022,
0.013903762213885784,
0.01475022453814745,
-0.005179340019822121,
0.04756947234272957,
0.009671454317867756,
-0.024119969457387924,
0.00692254863679409,
-0.004454399924725294,
-0.039356280118227005,
-0.0746227279305458,
-0.0014111187774688005,
-0.08293648809194565,
0.03529996797442436,
0.05263148248195648,
-0.10043562203645706,
-0.00866575725376606,
-0.011791798286139965,
-0.007886341772973537,
-0.012579594738781452,
-0.03811592236161232,
0.0035827960819005966,
-0.020700598135590553,
0.006155704613775015,
0.03768011927604675,
-0.0019537762273103,
-0.051491692662239075,
-0.034093134105205536,
-0.022259429097175598,
0.022996941581368446,
-0.013928905129432678,
0.06037535145878792,
0.025527944788336754,
0.06000659614801407,
-0.05437469109892845,
0.016367720440030098,
0.009478695690631866,
-0.02809247188270092,
-0.0009941734606400132,
0.0017767315730452538,
0.007777391001582146,
0.010149160400032997,
0.021270494908094406,
-0.024857480078935623,
0.06359358131885529,
-0.00020965118892490864,
-0.021622488275170326,
-0.014934602193534374,
-0.06389529258012772,
0.06959424167871475,
-0.033489715307950974,
0.019510524347424507,
0.020952023565769196,
-0.020717360079288483,
-0.008405951783061028,
-0.02423730120062828,
-0.058431003242731094,
0.015856491401791573,
0.013702623546123505,
-0.010995621792972088,
-0.013283582404255867,
0.008699280209839344,
0.03915514051914215,
-0.008917180821299553,
-0.06231969967484474,
-0.013434437103569508,
0.01872272789478302,
-0.0078025334514677525,
0.01912500709295273,
0.002139201620593667,
0.044183626770973206,
0.0036330807488411665,
0.01108781062066555,
-0.010517915710806847,
0.09125024825334549,
0.0022397711873054504,
0.017817599698901176,
-0.024354631081223488,
0.043814871460199356,
-0.027137059718370438,
-0.010056971572339535,
-0.03364056721329689,
0.013048919849097729,
-0.05782758444547653,
0.02358359657227993,
-0.026198409497737885,
-0.018521588295698166,
0.011707990430295467,
0.03700965270400047,
-0.02805894985795021,
0.0025938604958355427,
-0.017398560419678688,
-0.05232977494597435,
0.03680851310491562,
0.03503178432583809,
-0.01867244392633438,
0.09265822917222977,
0.04880983382463455,
0.0013409295352175832,
-0.033154480159282684,
-0.01506031397730112,
-0.05970488488674164,
-0.010325157083570957,
-0.033841706812381744,
0.023650644347071648,
-0.04535694047808647,
0.08447855710983276,
0.04327850043773651,
0.054944586008787155,
-0.02147163264453411,
0.07797504961490631,
-0.01630905456840992,
-0.02085145376622677,
-0.022443806752562523,
0.03476359695196152,
0.04294326528906822,
-0.012655021622776985,
0.021404586732387543,
-0.005941994022578001,
0.03159565106034279,
-0.03328857570886612,
0.11820293217897415,
-0.01904119923710823,
0.07730458676815033,
0.03402608633041382,
0.017180658876895905,
0.05192749574780464,
0.02673478238284588,
0.028980838134884834,
0.019309384748339653,
-0.036640897393226624,
0.03959094360470772,
0.0916525274515152,
-0.027639908716082573,
-0.05450878292322159,
-0.0013859763275831938,
0.022996941581368446,
0.015336881391704082,
0.029701588675379753,
-0.029584256932139397,
-0.028209803625941277,
-0.0005667522200383246,
-0.05896737426519394,
-0.0015975917922332883,
-0.06215208023786545,
-0.0567883625626564,
-0.02596374787390232,
0.008950704708695412,
-0.027204107493162155,
-0.007257780991494656,
0.06027477979660034,
0.06134752556681633,
-0.02846122905611992,
-0.012730449438095093,
-0.01298187393695116,
-0.0263492651283741,
-0.05021781101822853,
-0.03529996797442436,
0.003253849223256111,
0.0050745802000164986,
-0.00004393377457745373,
-0.005569047760218382,
0.054575830698013306,
0.04894392564892769,
0.04676491767168045,
-0.03360704705119133,
-0.06436461210250854,
-0.05477697029709816,
-0.04498818516731262,
0.049714960157871246,
-0.03851819783449173,
0.016443148255348206,
0.012847780250012875,
0.03055643104016781,
-0.008401761762797832,
0.014993268065154552,
-0.02423730120062828,
-0.0036540329456329346,
0.004722585901618004,
-0.02914845384657383,
-0.02284608595073223,
-0.03841762989759445,
-0.02665097452700138,
-0.04998314753174782,
-0.005543905310332775,
-0.035501107573509216,
-0.10620161890983582,
-0.022343236953020096,
-0.03119337186217308,
-0.04813936725258827,
0.01728122867643833,
-0.003144898684695363,
-0.045222848653793335,
0.02976863458752632,
-0.022091813385486603,
0.011272188276052475,
-0.038987524807453156,
-0.02353331260383129,
-0.033104196190834045,
0.014138425700366497,
-0.07730458676815033,
-0.018856821581721306,
-0.05434116721153259,
-0.024505486711859703,
-0.009051274508237839,
0.041468244045972824,
-0.04150176793336868,
0.003825839376077056,
0.005212863441556692,
-0.013794812373816967,
-0.01214379258453846,
-0.01561344787478447,
-0.02039889059960842,
-0.04445181414484978,
-0.04227280244231224,
0.01630905456840992,
0.018823297694325447,
-0.029969774186611176,
-0.021069355309009552,
-0.002926997607573867,
0.04632911458611488,
0.010383822955191135,
0.0015116884605959058,
0.031076040118932724,
0.04820641502737999,
0.013040538877248764,
0.012655021622776985,
0.018974151462316513,
0.03012062795460224,
-0.043546684086322784,
0.030338529497385025,
0.010232968255877495,
0.08481378853321075,
0.05507867783308029,
-0.010735816322267056,
0.015856491401791573,
-0.0354340635240078,
0.01974518597126007,
0.018890343606472015,
0.024203777313232422,
-0.02911493182182312,
0.0017987311584874988,
0.05729121342301369,
0.039322756230831146,
-0.019996611401438713,
0.032031454145908356,
-0.021035831421613693,
-0.03211526200175285,
0.06654362380504608,
0.004311926197260618,
0.035534631460905075,
0.013576910831034184,
0.0047183954156935215,
-0.059436701238155365,
0.039356280118227005,
0.09037864953279495,
-0.022644946351647377,
-0.08058986067771912,
-0.02976863458752632,
-0.013191393576562405,
0.019158530980348587,
0.02147163264453411,
0.004982390906661749,
-0.05849804729223251,
0.024689864367246628,
-0.017549414187669754,
-0.017951693385839462,
0.013669099658727646,
-0.038987524807453156,
0.012965111993253231,
-0.008757946081459522,
-0.026902398094534874,
-0.03529996797442436,
-0.004194594919681549,
-0.0006940357852727175,
0.043513160198926926,
0.007781581487506628,
-0.028360659256577492,
-0.07281246781349182,
0.04820641502737999,
0.01024134922772646,
-0.025444136932492256,
-0.030372053384780884,
0.02807571180164814,
0.07120335847139359,
0.05028485506772995,
0.007261971477419138,
-0.022728754207491875,
0.04813936725258827,
-0.020180989056825638,
0.030606715008616447,
0.0753602385520935,
0.051089413464069366,
0.0047183954156935215,
0.007655869238078594,
-0.00607189629226923,
0.015395546332001686,
0.037646595388650894,
0.002140249125659466,
-0.06359358131885529,
-0.045256368815898895,
-0.04616149887442589,
0.006729790009558201,
-0.00047796801663935184,
0.038317061960697174,
-0.020046895369887352,
0.000711845001205802,
0.029617780819535255,
-0.013895382173359394,
0.013191393576562405,
0.00901775062084198,
0.013685861602425575,
0.023516550660133362,
0.012839400209486485,
-0.015102218836545944,
-0.021086115390062332,
-0.07019765675067902,
0.000893603777512908,
0.05517924949526787,
0.07093516737222672,
0.05749235302209854,
0.004953058436512947,
0.04193757101893425,
0.007739677559584379,
-0.04813936725258827,
-0.02562851458787918,
-0.04877630993723869,
-0.01631743647158146,
0.015672113746404648,
-0.0484410785138607,
-0.011314092203974724,
-0.04823993891477585,
0.01199293788522482,
0.05192749574780464,
-0.02460605651140213,
-0.008368237875401974,
0.02076764591038227,
0.012898065149784088,
0.06255435943603516,
0.004969819914549589,
-0.006130562163889408,
0.0046303970739245415,
-0.01599058508872986,
0.0015211169375106692,
0.03788125887513161,
0.06795160472393036,
0.004337068647146225,
-0.01736503653228283,
-0.022946655750274658,
0.04622854292392731,
-0.017197420820593834,
-0.016208484768867493,
-0.016753237694501877,
0.01761646196246147,
-0.013769669458270073,
0.006457413546741009,
0.012261124327778816,
-0.01126380730420351,
0.011858845129609108,
0.03848467767238617,
-0.02457253262400627,
0.0021245351526886225,
0.02737172320485115,
-0.014222233556210995,
0.007450539618730545,
0.01736503653228283,
-0.0486086942255497,
-0.0030422338750213385,
0.013275202363729477,
-0.005170959513634443,
0.02460605651140213,
0.04374782368540764,
-0.05062008649110794,
-0.03704317659139633,
0.0064657945185899734,
-0.01697113923728466,
-0.0002925426233559847,
-0.09332869201898575,
-0.0006369415204972029,
-0.009998305700719357,
-0.03667442128062248,
0.04358020797371864,
-0.004877631086856127,
0.01977870985865593,
-0.0338752306997776,
0.0389540009200573,
-0.017867885529994965,
-0.04669786989688873,
-0.0020103466231375933,
-0.02284608595073223,
-0.11907453835010529,
-0.0018731108866631985,
0.00762234628200531,
0.0071907346136868,
-0.021304016932845116,
0.03945685178041458,
-0.015579924918711185,
0.015160883776843548,
-0.04032845422625542,
0.033037152141332626,
-0.051525216549634933,
-0.018957391381263733,
0.005443335510790348,
0.04740185663104057,
0.010576581582427025,
0.0065705543383955956,
-0.041836999356746674,
-0.021639250218868256,
0.053234901279211044,
0.012420359067618847,
-0.0019548237323760986,
-0.04063016176223755,
0.035165876150131226,
-0.000502062845043838,
-0.003027567407116294,
0.03159565106034279,
-0.028645606711506844,
-0.029383117333054543,
-0.03320476785302162,
-0.015512878075242043,
0.019342908635735512,
0.00238853064365685,
0.0053762891329824924,
0.00047953941975720227,
0.029567494988441467,
-0.03431103378534317,
0.01458260789513588,
0.03576929494738579,
-0.020968785509467125,
0.07167267799377441,
-0.03048938512802124,
-0.022695232182741165,
0.024471962824463844,
0.05306728556752205,
-0.02738848514854908,
-0.01300701592117548,
-0.013400914147496223,
0.03885343298316002,
-0.06329187005758286,
0.024170253425836563,
0.09285936504602432,
-0.12001319229602814,
-0.04622854292392731,
-0.00207948824390769,
0.03774716332554817,
0.0575258769094944,
-0.038618769496679306,
-0.007132068742066622,
-0.034897688776254654,
-0.03399256244301796,
-0.0408313013613224,
-0.02460605651140213,
0.01868920400738716,
-0.006729790009558201,
0.0616157092154026,
0.032400209456682205,
0.03757954761385918,
-0.024019399657845497,
-0.08709336817264557,
-0.03546758368611336,
0.012395217083394527,
0.015186026692390442,
0.013015396893024445,
-0.05209511145949364,
-0.030740808695554733,
-0.0009135082364082336,
-0.008724422194063663,
-0.02673478238284588,
-0.03838410601019859,
-0.027556100860238075,
0.002021870343014598,
0.03576929494738579,
-0.03892047703266144,
-0.016233626753091812,
0.002013489371165633,
0.014423373155295849,
-0.03370761498808861,
0.0017830171855166554,
-0.015789445489645004,
0.020600030198693275,
0.0326516330242157,
0.03117660991847515,
0.024421678856015205,
-0.027589624747633934,
0.07911483943462372,
-0.00037451740354299545,
0.0049027735367417336,
0.03198117017745972,
0.03640623390674591,
-0.01907472126185894,
-0.025427374988794327,
0.04398248717188835,
-0.0493462048470974,
0.013786431401968002,
-0.04716719314455986,
0.00953736063092947,
-0.002822237554937601,
0.00772291561588645,
-0.03405961021780968,
-0.0023759594187140465,
-0.031008994206786156,
-0.03370761498808861,
-0.00018018740229308605,
-0.05524629354476929,
0.015169264748692513,
-0.016778379678726196,
0.0036770801525563,
-0.009503837674856186,
0.016233626753091812,
-0.04790470749139786,
0.0632583498954773,
-0.07650002837181091,
-0.01905796118080616,
-0.005183530505746603,
0.025108905509114265,
0.07120335847139359,
-0.04723424091935158,
-0.035568155348300934,
0.02009718120098114,
-0.009445171803236008,
-0.01701304316520691,
0.053871843963861465,
-0.021287254989147186,
-0.05782758444547653,
0.0595707930624485,
0.012596356682479382,
0.02120344713330269,
0.02780752442777157,
0.041736431419849396,
0.05625199154019356,
-0.019627856090664864,
-0.047334812581539154,
-0.022728754207491875,
0.025561468675732613,
-0.016904091462492943,
0.009880973957479,
-0.019644616171717644,
0.03122689574956894,
-0.055581528693437576,
-0.004550779238343239,
0.006084467750042677,
0.03473007306456566,
0.0051039126701653,
-0.02985244244337082,
-0.04019436240196228,
0.07898074388504028,
-0.018890343606472015,
-0.039691511541604996,
0.0034633695613592863,
-0.051156461238861084,
0.03085814043879509,
-0.008791469037532806,
0.07321474701166153,
-0.05306728556752205,
0.004383163060992956,
-0.026583926752209663,
0.023818260058760643,
0.026215171441435814,
-0.0010627913288772106,
0.10164245218038559,
0.03251754119992256,
-0.013258440420031548,
-0.026164887472987175,
-0.0007982720853760839,
0.0010884576477110386,
0.029651302844285965,
0.06081115081906319,
0.05796167626976967,
-0.0007647488382644951,
-0.0007563680410385132,
0.0632583498954773,
-0.03630566596984863,
0.05682188645005226,
0.019661378115415573,
0.030774332582950592,
0.006164085119962692,
0.00886689592152834,
-0.04086482524871826,
0.0029102361295372248,
0.026516880840063095,
-0.04133415222167969,
-0.05259795859456062,
0.05470992252230644,
-0.05125702917575836,
0.004525637254118919,
0.03499826043844223,
0.004383163060992956,
0.0013639767421409488,
0.026231933385133743,
0.0016656859079375863,
-0.028980838134884834,
0.047636520117521286,
0.0437813475728035,
0.01905796118080616,
0.03741193190217018,
-0.07113631069660187,
-0.04535694047808647,
0.0020480602979660034,
-0.0603083036839962,
0.025812892243266106,
0.006449032574892044,
0.0026357644237577915,
0.027991903945803642,
-0.02639954909682274,
0.021940959617495537,
-0.00207320274785161,
-0.04193757101893425,
-0.020549744367599487,
0.06389529258012772,
0.006905786693096161,
-0.06959424167871475,
-0.02044917456805706,
0.024354631081223488,
-0.014775366522371769,
0.00333346682600677,
-0.00286414148285985,
-0.013819954358041286,
0.012303028255701065,
-0.005573238246142864,
-0.044887613505125046,
0.040730733424425125,
-0.0408313013613224,
-0.03848467767238617,
0.0071278782561421394,
0.008816611021757126,
0.026282217353582382,
0.05403945967555046,
-0.029249023646116257,
0.04063016176223755,
-0.00013127752754371613,
0.007165592163801193,
-0.05414002761244774,
0.010970479808747768,
0.033439427614212036,
-0.03637271374464035,
-0.007173972669988871,
0.0084688076749444,
-0.005355337169021368,
0.003628890495747328,
-0.0360039584338665,
-0.020030133426189423,
0.0072158765979111195,
-0.029617780819535255,
-0.03613805025815964,
0.004856679122895002,
-0.05025133118033409,
0.01216055452823639,
-0.05477697029709816,
-0.09882650524377823,
0.06526974588632584,
0.02388530597090721,
-0.051826924085617065,
0.07207495719194412,
0.038015350699424744,
0.011808560229837894,
0.05725768953561783,
0.0008344143279828131,
0.00355765363201499,
0.0023131032940000296,
-0.005204482469707727,
0.044183626770973206,
0.0003530415997374803,
0.03357352316379547,
0.08307058364152908,
-0.023382458835840225,
0.00848556961864233,
0.02395235374569893,
-0.019644616171717644,
0.05715711787343025,
-0.020968785509467125,
-0.033506475389003754,
-0.03630566596984863,
0.01022458728402853,
-0.025159189477562904,
-0.038015350699424744,
0.017197420820593834,
-0.07502500712871552,
0.013467960990965366,
-0.02219238318502903,
0.015286596491932869,
0.06550440192222595,
0.048038799315690994,
-0.03905457258224487,
0.03018767572939396,
0.05561504885554314,
-0.04968143627047539,
0.0034528933465480804,
0.02148839458823204,
-0.011691229417920113,
0.037914782762527466,
0.016795141622424126,
0.04428419470787048,
-0.0011680752504616976,
0.010886671021580696,
0.009428410790860653,
-0.011909130029380322,
0.08876953274011612,
-0.050854749977588654,
-0.007270351983606815,
-0.024438440799713135,
0.012956731021404266,
-0.023013701662421227,
0.00012053961108904332,
-0.011590659618377686,
0.04897744953632355,
-0.014423373155295849,
0.06265492737293243,
-0.02497481182217598,
0.06590668112039566,
0.02564527653157711,
0.07877960801124573,
0.005003343336284161,
0.03851819783449173,
-0.04864221811294556,
0.011163238435983658,
-0.032819248735904694,
-0.028360659256577492,
-0.0423063263297081,
-0.02422053925693035,
-0.05511220172047615,
0.013702623546123505,
-0.0019223481649532914,
0.008623852394521236,
-0.00017311608826275915,
0.021304016932845116,
0.01763322204351425,
-0.016568860039114952,
0.0156302098184824,
0.023700928315520287,
0.024354631081223488,
-0.03979208320379257,
0.004270022269338369,
-0.010291634127497673,
-0.02494128793478012,
-0.020985545590519905,
0.0010324110044166446,
0.0916525274515152,
-0.01625877059996128,
-0.008590329438447952,
0.0029102361295372248,
0.007458920124918222,
0.004617826081812382,
-0.04817289113998413,
-0.016032489016652107,
-0.010484392754733562,
-0.057391781359910965,
-0.025477660819888115,
-0.04951382055878639,
0.03337238356471062,
-0.039657991379499435,
0.03298686444759369,
0.04569217190146446,
-0.023432742804288864
] |
724,872 | markov_clustering.mcl | expand |
Apply cluster expansion to the given matrix by raising
the matrix to the given power.
:param matrix: The matrix to be expanded
:param power: Cluster expansion parameter
:returns: The expanded matrix
| def expand(matrix, power):
"""
Apply cluster expansion to the given matrix by raising
the matrix to the given power.
:param matrix: The matrix to be expanded
:param power: Cluster expansion parameter
:returns: The expanded matrix
"""
if isspmatrix(matrix):
return matrix ** power
return np.linalg.matrix_power(matrix, power)
| (matrix, power) | [
0.05283648148179054,
-0.0047970418818295,
0.08710599690675735,
0.043449465185403824,
0.0031944329384714365,
-0.004048582632094622,
-0.008584634400904179,
-0.006936729419976473,
-0.017566146329045296,
0.036719802767038345,
-0.007959120906889439,
-0.005060188937932253,
-0.014063269831240177,
0.025658996775746346,
-0.029110105708241463,
-0.024986030533909798,
-0.023364009335637093,
-0.03373459354043007,
-0.001504467916674912,
0.03806573525071144,
0.020999999716877937,
-0.03309613838791847,
0.06094658747315407,
0.02752259559929371,
-0.025728018954396248,
0.0825505331158638,
0.036098603159189224,
0.005927280057221651,
-0.02341577596962452,
-0.06867707520723343,
-0.034096959978342056,
-0.01727280206978321,
0.014615447260439396,
0.009783894754946232,
-0.0014580936403945088,
-0.02024075575172901,
-0.010284305550158024,
0.028350861743092537,
-0.006587304640561342,
-0.0014570151688531041,
-0.03737551346421242,
0.061119142919778824,
-0.005482949782162905,
-0.05873787775635719,
0.016720624640583992,
0.012242809869349003,
0.029955627396702766,
0.04831552878022194,
0.010836482979357243,
-0.019170911982655525,
0.014184058643877506,
-0.05652916803956032,
0.030266227200627327,
-0.04151684418320656,
-0.04838455095887184,
0.03197452798485756,
0.02900657244026661,
-0.04482990875840187,
-0.00581511901691556,
-0.06194740906357765,
-0.016435908153653145,
-0.014891535975039005,
-0.05863434448838234,
0.010344699956476688,
-0.007475965190678835,
-0.001449465868063271,
-0.055838946253061295,
0.031439606100320816,
0.05124897137284279,
0.015512735582888126,
-0.03627115860581398,
0.01798027940094471,
0.015357435680925846,
-0.07274938374757767,
-0.04338044300675392,
0.030507804825901985,
-0.05725390091538429,
-0.042586687952280045,
0.006311215925961733,
0.013528347946703434,
-0.0913163498044014,
-0.030231716111302376,
-0.007506162393838167,
0.029610516503453255,
-0.03592604771256447,
0.014589563943445683,
0.012346343137323856,
-0.0006222781375981867,
-0.01206162665039301,
-0.020775677636265755,
0.02220788784325123,
0.01037921104580164,
-0.02044782228767872,
0.034183237701654434,
0.0017945767613127828,
0.012113393284380436,
0.02332949824631214,
0.03354478254914284,
-0.018497945740818977,
-0.011086688376963139,
-0.007985004223883152,
0.04765981808304787,
0.029972882941365242,
0.011751026846468449,
-0.02681511826813221,
-0.042897287756204605,
-0.02700492925941944,
0.00212458916939795,
0.05784058943390846,
0.016582580283284187,
-0.05683976784348488,
0.0191191453486681,
-0.08503533154726028,
-0.03383812680840492,
-0.037927690893411636,
0.021120788529515266,
0.015003697015345097,
0.017290057614445686,
0.04068857803940773,
0.0021655710879713297,
0.0324404276907444,
-0.0022410640958696604,
0.018963845446705818,
-0.015038208104670048,
0.004710764158517122,
0.03482169285416603,
0.023346753790974617,
0.031180771067738533,
0.019412489607930183,
-0.04941988363862038,
0.013761297799646854,
-0.004078779835253954,
-0.029179127886891365,
0.06974691897630692,
-0.01534018013626337,
-0.017686935141682625,
-0.03561544790863991,
0.00011290249676676467,
0.0009776345686987042,
0.02860969491302967,
-0.01081059966236353,
-0.021310599520802498,
-0.015935497358441353,
0.0031793343368917704,
-0.005103327799588442,
-0.05563187971711159,
0.02388167567551136,
-0.006716721225529909,
-0.04099917784333229,
-0.010077239014208317,
0.011414543725550175,
0.04093015566468239,
0.027315529063344002,
-0.04224157705903053,
0.016660230234265327,
0.02931717224419117,
0.04655546322464943,
-0.04807395115494728,
0.06557107716798782,
-0.021017255261540413,
-0.0058237467892467976,
0.024606408551335335,
-0.0648808553814888,
0.05183565989136696,
-0.02227691002190113,
-0.028954805806279182,
0.03872144594788551,
-0.07406080514192581,
-0.06287921220064163,
-0.028799505904316902,
-0.004247021395713091,
-0.009179950691759586,
0.018359901383519173,
-0.0067426045425236225,
-0.025296630337834358,
0.06415612250566483,
-0.05473459139466286,
0.03045603819191456,
0.0031210968736559153,
-0.028161050751805305,
-0.07433689385652542,
0.02091372199356556,
-0.007268898654729128,
-0.009619967080652714,
0.015935497358441353,
-0.021155299618840218,
0.030714871361851692,
-0.006289646495133638,
-0.00912818405777216,
-0.009016023017466068,
-0.036754313856363297,
-0.037341002374887466,
0.04241413250565529,
0.018428923562169075,
0.006936729419976473,
-0.019188167527318,
-0.01798027940094471,
-0.007217132020741701,
-0.044070664793252945,
0.1118159368634224,
-0.09462941437959671,
0.021396877244114876,
0.06287921220064163,
0.017290057614445686,
0.08165324479341507,
0.0033001231495290995,
0.0042211380787193775,
0.023829909041523933,
-0.004193097818642855,
-0.0018517357530072331,
-0.03958422318100929,
-0.01163023803383112,
0.04300082102417946,
0.06356943398714066,
0.040239933878183365,
-0.02353656478226185,
-0.01272596511989832,
-0.042897287756204605,
0.04914379492402077,
-0.005849630106240511,
-0.033475760370492935,
0.0016910434933379292,
-0.019412489607930183,
0.029524238780140877,
-0.052284304052591324,
0.02282908745110035,
-0.012303204275667667,
-0.02239769883453846,
-0.022328676655888557,
-0.009343878366053104,
-0.039342645555734634,
-0.009154067374765873,
-0.016513558104634285,
-0.034183237701654434,
-0.0008212561369873583,
0.004792727995663881,
-0.05193919315934181,
0.049109283834695816,
0.05356121435761452,
0.044691864401102066,
-0.007087715435773134,
-0.0008503748686052859,
0.003082271898165345,
0.019964667037129402,
0.0024546014610677958,
0.02103451080620289,
-0.020309777930378914,
0.03138783946633339,
0.020620377734303474,
0.026090385392308235,
-0.027660639956593513,
-0.06567461043596268,
0.01614256389439106,
0.0009274855838157237,
0.02029252238571644,
-0.016988085582852364,
-0.0068245683796703815,
0.039342645555734634,
-0.0368233360350132,
-0.04034346714615822,
-0.022915365174412727,
0.017091618850827217,
0.0257625300437212,
-0.042586687952280045,
-0.03212982788681984,
-0.030007394030690193,
-0.031836483627557755,
0.022190632298588753,
0.027505340054631233,
0.014080525375902653,
0.08234346657991409,
0.09794247895479202,
0.006004930008202791,
0.025658996775746346,
-0.0037336687091737986,
0.0013933853479102254,
0.01014626119285822,
0.012380854226648808,
-0.044346753507852554,
0.0065355380065739155,
-0.06788332015275955,
0.023829909041523933,
-0.03454560413956642,
0.027298273518681526,
-0.06574363261461258,
-0.0006222781375981867,
0.02981758303940296,
0.032543960958719254,
0.0530090369284153,
-0.03068036027252674,
0.01377855334430933,
0.053768280893564224,
0.06532949954271317,
-0.007829704321920872,
0.018066557124257088,
-0.004003286827355623,
-0.028057517483830452,
0.019481511786580086,
-0.01119884941726923,
0.05683976784348488,
0.06374198943376541,
-0.050869349390268326,
-0.036443714052438736,
-0.03737551346421242,
0.04193097725510597,
-0.022018076851963997,
-0.0055735413916409016,
0.03920460119843483,
0.02162119932472706,
0.05366474762558937,
-0.005146466661244631,
0.04061955586075783,
-0.09573376923799515,
-0.006923787761479616,
-0.003904067212715745,
-0.01530566904693842,
0.06985045224428177,
0.013683647848665714,
0.062327031046152115,
0.0442432202398777,
0.02826458401978016,
-0.024364830926060677,
0.03754806891083717,
0.03778964653611183,
-0.047038618475198746,
-0.04193097725510597,
0.04017091169953346,
-0.03475267067551613,
0.03747904673218727,
-0.0309219378978014,
-0.018204601481556892,
-0.011578471399843693,
-0.004259963054209948,
0.000834197795484215,
-0.07578635960817337,
0.0041585867293179035,
0.02626294083893299,
-0.049074772745370865,
-0.08979786187410355,
0.024054231122136116,
0.004969597328454256,
0.07785702496767044,
-0.02962777204811573,
-0.036961380392313004,
-0.011638865806162357,
-0.010077239014208317,
0.024485619738698006,
0.0023855792824178934,
-0.07585538178682327,
0.005612366367131472,
-0.0066175018437206745,
-0.031129004433751106,
0.03414872661232948,
-0.05511421337723732,
0.037030402570962906,
0.08365488797426224,
-0.003524445230141282,
-0.05124897137284279,
-0.03778964653611183,
-0.031163515523076057,
0.02579704113304615,
-0.04106820002198219,
0.00036425379221327603,
-0.015504107810556889,
-0.03487345948815346,
-0.03414872661232948,
-0.03616762533783913,
-0.009619967080652714,
0.11057353764772415,
-0.03371733799576759,
0.036133114248514175,
-0.06336236745119095,
0.007557929027825594,
0.045830730348825455,
-0.016591208055615425,
0.04162037745118141,
-0.1002892330288887,
0.0030369760934263468,
-0.005543344188481569,
-0.003110312158241868,
0.030714871361851692,
-0.03861791267991066,
-0.010361955501139164,
-0.02462366409599781,
-0.0014861339004710317,
0.02391618676483631,
0.04244864359498024,
0.03207806125283241,
0.002368323737755418,
-0.00842070672661066,
-0.02313968725502491,
0.02267378754913807,
0.022018076851963997,
0.017367707565426826,
-0.01561626885086298,
0.016824157908558846,
0.019636811688542366,
-0.022915365174412727,
-0.017540263012051582,
-0.01974034495651722,
0.0049092029221355915,
0.017324568703770638,
-0.012518898583948612,
-0.001496918615885079,
-0.004354868549853563,
-0.005858257878571749,
-0.05842727795243263,
-0.001996251055970788,
0.006544165778905153,
-0.03299260511994362,
-0.010249794460833073,
-0.012165159918367863,
0.0007188013405539095,
-0.004546836484223604,
-0.017997534945607185,
-0.04690057411789894,
0.059428099542856216,
-0.02165571041405201,
0.028057517483830452,
-0.002036154503002763,
0.037858668714761734,
-0.05570090189576149,
-0.03861791267991066,
0.013459325768053532,
0.0032763967756181955,
-0.05742645636200905,
-0.041413310915231705,
-0.05715036764740944,
-0.038790468126535416,
0.005060188937932253,
-0.07578635960817337,
-0.028799505904316902,
0.04213804379105568,
-0.0019326211186125875,
0.006738290656358004,
-0.06415612250566483,
0.007920295931398869,
-0.007752053905278444,
-0.03854889050126076,
-0.01977485604584217,
0.08358586579561234,
-0.036098603159189224,
0.0049092029221355915,
-0.07847822457551956,
0.00974938366562128,
0.011440427042543888,
0.04686606302857399,
0.01661709137260914,
-0.013252259232103825,
-0.016194330528378487,
0.03489071503281593,
-0.015693919733166695,
0.010008216835558414,
0.019671322777867317,
-0.00015934418479446322,
0.006798685062676668,
0.011768282391130924,
-0.060014788061380386,
0.0064535741694271564,
0.048522595316171646,
0.030421527102589607,
-0.02465817518532276,
-0.03958422318100929,
0.07302547246217728,
0.0011043549748137593,
0.062016431242227554,
0.029023827984929085,
0.044933442026376724,
0.06294823437929153,
-0.05421692505478859,
0.064742811024189,
-0.031525883823633194,
-0.0012823027791455388,
-0.07233525067567825,
0.06080854311585426,
0.015737058594822884,
-0.04103368893265724,
0.04686606302857399,
0.0019207579316571355,
-0.007566556800156832,
-0.10767460614442825,
-0.05062777176499367,
0.05245685949921608,
-0.034027937799692154,
-0.02267378754913807,
-0.016970830038189888,
0.007980690337717533,
-0.05639112368226051,
0.01534018013626337,
0.014710352756083012,
-0.01801479049026966,
0.057357434183359146,
0.07047165185213089,
0.060256365686655045,
0.038514379411935806,
0.01961955614387989,
-0.029455216601490974,
0.02220788784325123,
0.01502958033233881,
-0.0028428512159734964,
-0.02098274417221546,
0.10111749917268753,
-0.07523418217897415,
0.05925554409623146,
0.024882497265934944,
0.05256039276719093,
-0.0008827290148474276,
0.005280197132378817,
0.005349219311028719,
0.019377978518605232,
0.0046589975245296955,
-0.03444207087159157,
-0.0028277526143938303,
0.0398603118956089,
-0.03810024634003639,
0.057046834379434586,
-0.02810928411781788,
0.06715858727693558,
0.0708167627453804,
-0.011802793480455875,
0.05459654703736305,
0.038790468126535416,
-0.007583812344819307,
-0.0398603118956089,
-0.013105587102472782,
-0.02521035261452198,
0.012182415463030338,
-0.01899835653603077,
-0.005940221715718508,
0.10291207581758499,
0.0059531633742153645,
0.023519309237599373,
-0.015892358496785164,
0.09104026108980179,
0.04810846224427223,
0.04655546322464943,
-0.012078882195055485,
0.015288413502275944,
0.010629416443407536,
-0.016539441421628,
-0.04828101769089699,
-0.04741824045777321,
0.0426902212202549,
-0.03432128205895424,
-0.03126705065369606,
0.04455382004380226,
0.011190221644937992,
-0.04206902161240578,
-0.0007705679745413363,
-0.04624486342072487,
0.015089974738657475,
0.06515694409608841,
-0.030973704531788826,
0.048211995512247086,
0.07178307324647903,
0.0177041906863451,
-0.02947247214615345,
-0.04017091169953346,
-0.025900574401021004,
-0.026608051732182503,
0.0354083813726902,
-0.0058237467892467976,
0.033786360174417496,
0.004771158564835787,
0.0001736339327180758,
-0.05428594723343849,
-0.0353393591940403,
0.08393097668886185,
0.035857025533914566,
-0.02200082130730152,
-0.006384551990777254,
-0.029921116307377815,
0.04037797823548317,
0.004206039477139711,
-0.0559079684317112,
0.019377978518605232,
0.04603779688477516,
-0.07695973664522171,
0.029058339074254036,
0.00031302639399655163,
-0.000530338438693434,
-0.031663928180933,
-0.05652916803956032,
0.035857025533914566,
-0.013649136759340763,
0.013071076013147831,
-0.02521035261452198,
0.006436318624764681,
-0.026918651536107063,
-0.029731305316090584,
0.022570254281163216,
-0.02829909510910511,
0.013295398093760014,
0.01684141345322132,
-0.04621035233139992,
-0.05473459139466286,
-0.014339358545839787,
0.013683647848665714,
0.06432867795228958,
0.010646671988070011,
-0.02458915300667286,
0.008097165264189243,
0.013554231263697147,
0.011578471399843693,
-0.005586483050137758,
0.029955627396702766,
-0.030507804825901985,
0.005720213521271944,
0.010750205256044865,
0.01084511075168848,
-0.011638865806162357,
-0.020465077832341194,
-0.034925226122140884,
0.00651828246191144,
-0.07226622849702835,
-0.0009619966731406748,
-0.015607641078531742,
-0.06094658747315407,
-0.0014634859981015325,
-0.020741166546940804,
-0.04510599747300148,
0.023657353594899178,
-0.0027457887772470713,
-0.047280196100473404,
-0.028247328475117683,
0.03249219432473183,
0.01194083783775568,
-0.02662530727684498,
-0.017928512766957283,
-0.005681388545781374,
-0.037617091089487076,
0.0383073128759861,
0.027194740250706673,
0.005841002333909273,
-0.01237222645431757,
-0.05832374468445778,
-0.004879005718976259,
0.0013524034293368459,
0.01283812616020441,
0.01260517630726099,
-0.04541659727692604,
0.05135250464081764,
-0.03223336115479469,
-0.07544124871492386,
-0.011311010457575321,
0.011699260212481022,
0.020154478028416634,
-0.011172966100275517,
-0.048177484422922134,
-0.02716022916138172,
-0.0302144605666399,
0.04369104281067848,
-0.021362366154789925,
0.04151684418320656,
0.06598521023988724,
-0.006811626721173525,
-0.030231716111302376,
0.0020264482591301203,
0.027022184804081917,
0.014434264041483402,
0.007644206751137972,
0.007217132020741701,
-0.003274239832535386,
-0.025193097069859505,
0.02415776439011097,
0.01502958033233881,
0.03923911228775978,
-0.04531306400895119,
-0.020344289019703865,
0.028161050751805305,
-0.020430566743016243,
-0.039687756448984146,
0.006380238104611635,
-0.04327690973877907,
0.019015612080693245,
0.056425634771585464,
-0.04783237352967262,
0.004520953167229891,
-0.0009549866081215441,
0.027453573420643806,
0.005301766563206911,
0.025935085490345955,
0.005349219311028719,
0.02348479814827442,
-0.04251766577363014,
0.033475760370492935,
-0.004199568647891283,
0.03313064947724342,
-0.08006573468446732,
-0.05749547854065895,
0.045865241438150406,
-0.01891207881271839,
-0.011500821448862553,
0.03799671307206154,
-0.016289236024022102,
0.06567461043596268,
-0.04931635037064552,
0.022052587941288948,
0.0295069832354784,
0.035546425729990005,
0.05473459139466286,
0.05338865891098976,
-0.02470994181931019,
0.018066557124257088,
0.008217954076826572,
-0.02662530727684498,
-0.04355299845337868,
0.02771240659058094,
-0.013148725964128971,
0.05815118923783302,
0.0339934267103672,
0.02051684446632862,
0.06194740906357765,
0.01817009039223194,
-0.00024130802194122225,
-0.000017575717720319517,
-0.018515201285481453,
0.019567789509892464,
-0.021707477048039436,
0.0220870990306139,
0.014580936171114445,
-0.03768611326813698,
0.062361542135477066,
-0.0018420295091345906,
0.0016015303554013371,
0.01104354951530695,
-0.029576005414128304,
0.041999999433755875,
0.014425636269152164,
-0.0023467543069273233,
-0.05625307932496071,
-0.02860969491302967,
0.04279375448822975,
0.03478718176484108,
0.0347009040415287,
-0.00025141870719380677,
-0.0121737876906991,
0.0010779324220493436,
0.009257600642740726,
-0.012354970909655094,
0.017367707565426826,
0.011405915953218937,
0.010603533126413822,
0.009576828218996525,
-0.006250821519643068,
-0.015590385533869267,
-0.010310188867151737,
0.03858340159058571,
0.028799505904316902,
-0.012907148338854313,
-0.019360722973942757,
-0.026487262919545174,
0.04427773132920265,
0.03571898117661476,
0.020654888823628426,
-0.039377156645059586,
0.00787715706974268,
-0.008947000838816166,
-0.003509346628561616,
-0.06508792191743851,
-0.005107641685754061,
-0.07343960553407669,
-0.062050942331552505,
0.053802791982889175,
-0.0795135572552681,
-0.018308134749531746,
0.08517337590456009,
-0.001938013476319611
] |
724,873 | scipy.sparse._extract | find | Return the indices and values of the nonzero elements of a matrix
Parameters
----------
A : dense or sparse array or matrix
Matrix whose nonzero elements are desired.
Returns
-------
(I,J,V) : tuple of arrays
I,J, and V contain the row indices, column indices, and values
of the nonzero entries.
Examples
--------
>>> from scipy.sparse import csr_array, find
>>> A = csr_array([[7.0, 8.0, 0],[0, 0, 9.0]])
>>> find(A)
(array([0, 0, 1], dtype=int32),
array([0, 1, 2], dtype=int32),
array([ 7., 8., 9.]))
| def find(A):
"""Return the indices and values of the nonzero elements of a matrix
Parameters
----------
A : dense or sparse array or matrix
Matrix whose nonzero elements are desired.
Returns
-------
(I,J,V) : tuple of arrays
I,J, and V contain the row indices, column indices, and values
of the nonzero entries.
Examples
--------
>>> from scipy.sparse import csr_array, find
>>> A = csr_array([[7.0, 8.0, 0],[0, 0, 9.0]])
>>> find(A)
(array([0, 0, 1], dtype=int32),
array([0, 1, 2], dtype=int32),
array([ 7., 8., 9.]))
"""
A = coo_array(A, copy=True)
A.sum_duplicates()
# remove explicit zeros
nz_mask = A.data != 0
return A.row[nz_mask], A.col[nz_mask], A.data[nz_mask]
| (A) | [
0.007882272824645042,
-0.03947388380765915,
0.026162028312683105,
0.009507780894637108,
0.06882921606302261,
-0.012196121737360954,
-0.0028133797459304333,
0.01409094501286745,
0.06390459835529327,
-0.04759180545806885,
-0.06713637709617615,
-0.013744683004915714,
0.006660736631602049,
-0.06363528221845627,
-0.025911949574947357,
0.0055401939898729324,
-0.002053526695817709,
0.004001251421868801,
-0.022814827039837837,
0.05028495565056801,
0.005439200904220343,
-0.03885830566287041,
0.0015245152171701193,
0.04909227415919304,
-0.03201001137495041,
0.0053718723356723785,
0.04024335369467735,
0.0014295335859060287,
0.04039724916219711,
-0.033548954874277115,
-0.029009072110056877,
-0.01235001627355814,
-0.08379543572664261,
-0.029893964529037476,
0.00045717423199675977,
0.033952925354242325,
0.07783203572034836,
0.018852049484848976,
0.06082671508193016,
0.00613653426989913,
-0.0035299500450491905,
-0.059364717453718185,
0.00269074528478086,
-0.03676149621605873,
-0.006372184958308935,
-0.03397216275334358,
0.03266406059265137,
0.01906365342438221,
-0.054286208003759384,
0.027777917683124542,
0.009974272921681404,
0.00921441987156868,
0.00805540382862091,
0.015629887580871582,
-0.003604492638260126,
-0.0020342899952083826,
0.021660620346665382,
-0.025777291506528854,
-0.02071801759302616,
-0.012301923707127571,
0.0026666992343962193,
-0.0008536323439329863,
0.046976227313280106,
0.05971097946166992,
-0.007569674868136644,
-0.022583985701203346,
0.008401665836572647,
0.005088129546493292,
-0.007410971447825432,
0.01056099496781826,
-0.03924304246902466,
-0.032683297991752625,
0.032529402524232864,
0.013494604267179966,
0.08317986130714417,
-0.011388177052140236,
0.046014390885829926,
-0.009320222772657871,
-0.007771661039441824,
0.012042227201163769,
0.044590868055820465,
-0.01274436991661787,
-0.012196121737360954,
0.002599370665848255,
-0.02620050124824047,
0.02508476749062538,
0.05505567789077759,
0.06390459835529327,
0.042898029088974,
0.023084141314029694,
0.028797466307878494,
0.0487460121512413,
0.016149280592799187,
0.039897091686725616,
-0.00005278844400891103,
0.03774257376790047,
0.029278386384248734,
0.032837193459272385,
0.02470003254711628,
-0.015091258101165295,
-0.009300985373556614,
0.07044510543346405,
-0.026623710989952087,
0.015437520109117031,
-0.032452456653118134,
-0.0020739659667015076,
0.009171137586236,
0.003977205138653517,
0.04520644620060921,
0.011291992850601673,
-0.01748623698949814,
0.012301923707127571,
-0.05478636547923088,
0.002407002728432417,
-0.03420300409197807,
-0.05513262748718262,
0.052054740488529205,
0.061827026307582855,
-0.05701782926917076,
-0.045937441289424896,
-0.005636378191411495,
0.008454566821455956,
-0.030451830476522446,
-0.029740069061517715,
0.04128213971853256,
-0.009238465689122677,
0.03756944090127945,
0.014879653230309486,
0.003941136412322521,
-0.015591414645314217,
0.024815453216433525,
-0.05386299639940262,
0.023603536188602448,
0.03930075094103813,
-0.002491163555532694,
-0.007814943790435791,
0.08410322666168213,
-0.020929621532559395,
-0.03955082967877388,
0.021391304209828377,
-0.004352322779595852,
-0.005795081611722708,
-0.0316060371696949,
0.04055114462971687,
0.058325931429862976,
-0.03520331531763077,
0.0517854243516922,
-0.0023613153025507927,
0.03549186885356903,
0.003000938566401601,
-0.029913200065493584,
-0.03566499799489975,
0.00006282012327574193,
0.04916922375559807,
-0.040781985968351364,
-0.017909446731209755,
0.05982640013098717,
-0.09433719515800476,
-0.008858539164066315,
-0.01724577695131302,
0.004075794015079737,
0.0019405107013881207,
-0.006314474623650312,
-0.01596653088927269,
0.0384543351829052,
0.07783203572034836,
-0.06717485189437866,
0.06171160563826561,
-0.023603536188602448,
-0.002580133732408285,
-0.03826196491718292,
0.008853730745613575,
-0.08618079870939255,
-0.004789959639310837,
0.014437207020819187,
-0.013177197426557541,
-0.02897059917449951,
0.0037126995157450438,
0.04401376470923424,
-0.018371129408478737,
0.03050954081118107,
0.06682859361171722,
-0.028874414041638374,
0.03201001137495041,
0.006300047039985657,
0.0328756645321846,
0.01899632439017296,
-0.029586175456643105,
0.028855178505182266,
0.015620269812643528,
-0.020833438262343407,
0.002483949763700366,
0.00854113232344389,
0.019400298595428467,
-0.0018707773415371776,
0.02516171522438526,
-0.04582202062010765,
0.03666531294584274,
-0.03805036097764969,
-0.014167891815304756,
0.025354083627462387,
-0.05147763714194298,
0.022199250757694244,
0.041243668645620346,
0.014725758694112301,
0.007223412860184908,
0.007670667953789234,
-0.03281795606017113,
-0.0614422932267189,
0.027854865416884422,
-0.01977541483938694,
-0.013831248506903648,
0.008132350631058216,
0.00008092975622275844,
0.07233031094074249,
0.03643447160720825,
-0.0024382625706493855,
-0.011061151511967182,
-0.0011770507553592324,
-0.020294807851314545,
0.03579965606331825,
-0.03374132141470909,
-0.011753675527870655,
0.02446919120848179,
0.025046294555068016,
-0.01770746149122715,
-0.003844952443614602,
-0.026065843179821968,
0.02533484622836113,
-0.014629575423896313,
-0.013523459434509277,
-0.011282374151051044,
0.007843798957765102,
-0.027912575751543045,
-0.03420300409197807,
0.005189122632145882,
0.011647873558104038,
0.043552082031965256,
0.01163825485855341,
-0.05282421037554741,
-0.0568639375269413,
-0.010349390096962452,
0.031567566096782684,
0.039589304476976395,
-0.00528049748390913,
-0.03780028223991394,
0.004963090643286705,
-0.006165389437228441,
-0.017601657658815384,
-0.03341429680585861,
-0.05417078733444214,
-0.044667813926935196,
0.046668440103530884,
-0.005285306833684444,
0.0822564959526062,
-0.09395245462656021,
-0.003905067453160882,
0.05767188221216202,
-0.035549577325582504,
0.014196746982634068,
-0.008444949053227901,
-0.00768509553745389,
0.04997716844081879,
-0.024488426744937897,
-0.06267344206571579,
0.0050352285616099834,
0.029162965714931488,
0.03997403755784035,
-0.009002815000712872,
0.058018144220113754,
0.14635345339775085,
0.008382429368793964,
0.010782217606902122,
-0.031413670629262924,
0.002753264969214797,
-0.04693775624036789,
-0.018294181674718857,
0.02254551276564598,
-0.0023192348890006542,
0.02795104868710041,
-0.06921394914388657,
0.01769784279167652,
-0.04970785230398178,
0.054132312536239624,
-0.04532186686992645,
-0.03706928342580795,
-0.010734125971794128,
-0.011340084485709667,
-0.051285270601511,
-0.034837815910577774,
-0.0019585450645536184,
0.022968720644712448,
-0.038954488933086395,
-0.05020800977945328,
-0.047053176909685135,
0.03416452929377556,
-0.029509227722883224,
0.025200188159942627,
0.012215358205139637,
-0.0030538395512849092,
0.005193931981921196,
0.012022990733385086,
-0.05897998437285423,
-0.046668440103530884,
0.037280891090631485,
0.0354149229824543,
-0.03566499799489975,
0.03997403755784035,
0.004862097557634115,
0.05013106018304825,
0.006790585350245237,
-0.017909446731209755,
0.04193619266152382,
-0.012224976904690266,
-0.056594621390104294,
-0.012003754265606403,
-0.001561786513775587,
0.004361941013485193,
0.04151298105716705,
0.03508789464831352,
0.03066343627870083,
-0.027277762070298195,
0.0042849937453866005,
-0.01254238374531269,
-0.03439537063241005,
-0.016081951558589935,
0.008358383551239967,
-0.08271817862987518,
-0.01779402606189251,
0.049746327102184296,
-0.030798092484474182,
-0.004215260501950979,
-0.02375742979347706,
0.03447232022881508,
0.047130122780799866,
-0.006131725385785103,
-0.003258230397477746,
0.0036838443484157324,
-0.048168908804655075,
0.011118861846625805,
0.01496621873229742,
0.0011223461478948593,
0.007834180258214474,
-0.02795104868710041,
-0.0031452144030481577,
-0.03343353420495987,
-0.02493087388575077,
-0.016649438068270683,
-0.01890014111995697,
-0.02637363225221634,
0.05478636547923088,
0.0033375821076333523,
-0.006021113600581884,
0.01778440736234188,
0.03595355153083801,
0.07106068730354309,
0.03374132141470909,
0.000280887121334672,
0.020910385996103287,
-0.0009047300554811954,
-0.004881334025412798,
0.023642009124159813,
-0.010743744671344757,
-0.0951836109161377,
-0.03441460803151131,
-0.022430092096328735,
-0.05651767551898956,
0.01103229634463787,
0.019659994170069695,
-0.056902408599853516,
0.01409094501286745,
0.011291992850601673,
-0.012888645753264427,
-0.04786112159490585,
0.05282421037554741,
-0.018852049484848976,
-0.030932750552892685,
0.02008320391178131,
-0.07025273889303207,
-0.050862058997154236,
0.015985768288373947,
-0.05790272355079651,
-0.01770746149122715,
0.0046384697780013084,
-0.03693462908267975,
-0.019890835508704185,
0.0038497615605592728,
0.042936503887176514,
-0.025354083627462387,
0.02398827113211155,
-0.02683531492948532,
-0.021737566217780113,
-0.0237381923943758,
-0.05363215506076813,
0.046245232224464417,
-0.006622263230383396,
0.06240412965416908,
0.05520957335829735,
-0.01787097379565239,
-0.08102533966302872,
-0.05744104087352753,
-0.031875353306531906,
0.016457069665193558,
-0.030201751738786697,
0.00131531513761729,
0.012792462483048439,
-0.035068660974502563,
-0.060788240283727646,
0.027835628017783165,
-0.00040727879968471825,
-0.06948326528072357,
0.029740069061517715,
0.08571911603212357,
-0.053247421979904175,
0.01682256907224655,
-0.054593995213508606,
0.0176401324570179,
0.08972036838531494,
-0.013475367799401283,
-0.024411480873823166,
-0.027296997606754303,
-0.060634344816207886,
-0.023872850462794304,
-0.0066703553311526775,
-0.009762668050825596,
-0.007103182841092348,
0.00964724738150835,
0.021699093282222748,
0.0035564005374908447,
0.029970910400152206,
-0.049284644424915314,
-0.05567125603556633,
-0.033875979483127594,
-0.042282454669475555,
-0.10064686089754105,
0.007228222209960222,
-0.006487605627626181,
0.009209610521793365,
-0.02548873983323574,
0.05401689186692238,
0.06659775227308273,
0.0423978753387928,
0.011109243147075176,
0.014417970553040504,
0.017909446731209755,
0.024103691801428795,
0.026719894260168076,
0.053093526512384415,
0.0019176669884473085,
0.03304879739880562,
0.06098060682415962,
-0.04763028025627136,
-0.009834806434810162,
-0.04820738360285759,
-0.019659994170069695,
0.012648185715079308,
-0.0746387243270874,
0.006381803657859564,
0.019794652238488197,
-0.006319283973425627,
0.032529402524232864,
0.026315921917557716,
-0.020237097516655922,
-0.06898310780525208,
0.00008010317833395675,
-0.06301970779895782,
-0.022410854697227478,
-0.026258211582899094,
-0.01433140505105257,
-0.014283312484622002,
0.03758867830038071,
-0.04043572396039963,
-0.09541445225477219,
-0.07917860895395279,
0.05378605052828789,
0.009584727697074413,
-0.05282421037554741,
0.012600094079971313,
-0.02939380705356598,
0.0335104800760746,
-0.06486643850803375,
-0.05590209737420082,
-0.011013059876859188,
-0.04089740663766861,
0.018707772716879845,
-0.02516171522438526,
0.03154832869768143,
-0.06186550110578537,
-0.03139443323016167,
-0.04955395683646202,
0.032529402524232864,
0.005208359565585852,
-0.01795753836631775,
-0.004253733903169632,
0.060788240283727646,
-0.018457695841789246,
0.05647920072078705,
0.02723928727209568,
0.004818814806640148,
0.027104631066322327,
-0.0005359248025342822,
-0.02581576630473137,
-0.000130148880998604,
0.039358463138341904,
-0.03158679977059364,
-0.05336284264922142,
0.01708226464688778,
-0.01841922104358673,
0.04389834403991699,
-0.05409383773803711,
-0.02127588354051113,
-0.006348139140754938,
-0.0250078197568655,
-0.0076321945525705814,
0.016659056767821312,
0.03955082967877388,
-0.006473178043961525,
-0.04247482120990753,
-0.025758055970072746,
0.019948545843362808,
-0.054901786148548126,
0.015543322078883648,
-0.0007141656242311001,
0.07217641919851303,
-0.03000938519835472,
0.0690600574016571,
-0.02010244131088257,
-0.016024241223931313,
-0.05747951194643974,
0.0314713791012764,
-0.055786676704883575,
-0.03556881472468376,
-0.04024335369467735,
0.044436972588300705,
0.0008818863425403833,
0.028797466307878494,
0.08356459438800812,
-0.06813669204711914,
0.014793087728321552,
0.030086331069469452,
0.025700345635414124,
0.04428308084607124,
0.01302330382168293,
0.04020488262176514,
0.028412731364369392,
0.033548954874277115,
-0.0761776715517044,
0.011166953481733799,
-0.07117610424757004,
-0.056671567261219025,
0.020467938855290413,
0.006165389437228441,
0.08294901996850967,
-0.02556568756699562,
0.010955349542200565,
0.020506413653492928,
-0.05524804815649986,
-0.004669729620218277,
-0.042205505073070526,
0.009637629613280296,
0.032837193459272385,
-0.04774570092558861,
-0.006641500163823366,
0.008964342065155506,
-0.05755646154284477,
-0.05620988458395004,
0.024199875071644783,
-0.07148389518260956,
0.004835647065192461,
0.027104631066322327,
0.023545823991298676,
-0.014321786351501942,
-0.04020488262176514,
-0.0019886025693267584,
-0.008324719034135342,
0.011455505155026913,
-0.03864670172333717,
-0.05263184383511543,
-0.012167266570031643,
0.014754613861441612,
0.026392869651317596,
-0.03841586038470268,
-0.040628090500831604,
-0.01724577695131302,
0.036261338740587234,
0.011830623261630535,
-0.02398827113211155,
0.006761729717254639,
-0.03000938519835472,
-0.02142977900803089,
0.03666531294584274,
-0.05278573930263519,
-0.0008458173833787441,
0.028008759021759033,
0.01492774486541748,
0.0573640912771225,
-0.043475132435560226,
0.03789646551012993,
0.06667469441890717,
-0.026392869651317596,
-0.04274413734674454,
-0.02368048205971718,
0.004530262667685747,
-0.02192993462085724,
0.005751798860728741,
-0.01194604393094778,
-0.02073725499212742,
0.027220051735639572,
0.0563637800514698,
0.022410854697227478,
-0.005607523024082184,
-0.042782608419656754,
0.0068579139187932014,
-0.005073701962828636,
-0.05520957335829735,
0.032760243862867355,
0.003909876570105553,
0.04616828262805939,
-0.034279949963092804,
0.04274413734674454,
-0.0034361707512289286,
-0.05424773320555687,
0.03568423539400101,
-0.02891288883984089,
0.02064106985926628,
0.03524179011583328,
0.04693775624036789,
0.02137206867337227,
-0.012830935418605804,
0.10095464438199997,
0.011166953481733799,
0.04755333438515663,
0.013533078134059906,
0.030855802819132805,
-0.007324405945837498,
0.0026113935746252537,
0.010907256975769997,
0.014995073899626732,
-0.05201626569032669,
0.10772599279880524,
-0.05020800977945328,
0.05782577767968178,
0.053478263318538666,
-0.035376448184251785,
0.04247482120990753,
-0.04082045704126358,
0.02812417969107628,
-0.03747325763106346,
0.05982640013098717,
-0.0018912163795903325,
-0.014398733153939247,
0.003491476410999894,
-0.04055114462971687,
0.00474667688831687,
0.034895528107881546,
0.003327963873744011,
-0.004643279127776623,
-0.01604347862303257,
-0.006540507078170776,
0.0021400924306362867,
0.007410971447825432,
-0.0233534574508667,
-0.005564240273088217,
-0.05097747966647148,
0.006843486335128546,
-0.0069252424873411655,
0.02827807329595089,
0.037761807441711426,
0.00817563384771347,
0.023218799382448196,
-0.0018467314075678587,
0.031182829290628433,
0.013292618095874786,
0.00877197366207838,
0.011253518983721733,
0.002292784396559,
0.025046294555068016,
-0.021545199677348137,
-0.04512949660420418,
0.005780654028058052,
0.05655614659190178,
0.03639599680900574,
0.028855178505182266,
0.04378292337059975,
0.038954488933086395,
-0.013100250624120235,
0.01754394732415676,
0.015014310367405415,
0.02772020734846592,
-0.03166374936699867,
0.012244213372468948,
-0.06971410661935806,
0.07190710306167603,
0.02579652890563011,
-0.03543415665626526,
0.048245858401060104,
-0.031317487359046936,
0.085796058177948,
0.043167345225811005,
0.020217861980199814,
0.03830043971538544,
0.044667813926935196,
0.011157335713505745,
0.0789477676153183,
-0.05140069127082825,
-0.010205114260315895,
-0.05267031863331795,
0.017601657658815384,
0.015706835314631462,
0.01770746149122715,
-0.03778104484081268,
-0.021852988749742508,
0.0022747498005628586,
-0.0385889895260334,
-0.020352518185973167,
-0.00782456248998642,
-0.028855178505182266,
-0.026238974183797836,
0.009733812883496284,
0.05655614659190178,
0.005347826052457094,
-0.02947075478732586,
0.05224710702896118,
0.05074663832783699,
-0.025296371430158615,
0.0576334074139595,
0.014725758694112301,
-0.052862685173749924,
0.00670882873237133,
0.004366750363260508,
-0.006776157766580582,
-0.012224976904690266,
-0.03472239524126053,
0.05390147119760513,
0.027335472404956818,
0.021449014544487,
0.009118235670030117,
-0.04693775624036789,
-0.03162527456879616,
-0.027854865416884422,
0.030855802819132805,
0.030875040218234062,
0.011561308056116104,
0.031067408621311188,
0.004087816923856735,
0.011215046048164368,
0.008396856486797333,
0.020390992984175682,
-0.037915702909231186,
-0.028393493965268135,
-0.009974272921681404,
-0.0005680862814188004,
0.020602596923708916,
0.01921754889190197,
0.01587996631860733,
0.0068579139187932014,
-0.01946762576699257,
-0.020467938855290413,
0.020910385996103287,
0.01410056371241808,
-0.0006185828824527562,
-0.05874914303421974,
-0.08210259675979614,
0.055632781237363815,
-0.05536346882581711,
0.019361823797225952,
-0.015033547766506672,
0.0371847040951252
] |
724,874 | markov_clustering.mcl | get_clusters |
Retrieve the clusters from the matrix
:param matrix: The matrix produced by the MCL algorithm
:returns: A list of tuples where each tuple represents a cluster and
contains the indices of the nodes belonging to the cluster
| def get_clusters(matrix):
"""
Retrieve the clusters from the matrix
:param matrix: The matrix produced by the MCL algorithm
:returns: A list of tuples where each tuple represents a cluster and
contains the indices of the nodes belonging to the cluster
"""
if not isspmatrix(matrix):
# cast to sparse so that we don't need to handle different
# matrix types
matrix = csc_matrix(matrix)
# get the attractors - non-zero elements of the matrix diagonal
attractors = matrix.diagonal().nonzero()[0]
# somewhere to put the clusters
clusters = set()
# the nodes in the same row as each attractor form a cluster
for attractor in attractors:
cluster = tuple(matrix.getrow(attractor).nonzero()[1].tolist())
clusters.add(cluster)
return sorted(list(clusters))
| (matrix) | [
0.00996114406734705,
0.006627516355365515,
0.04574355110526085,
0.014773930422961712,
0.03477569669485092,
0.002929618349298835,
0.029547860845923424,
0.03357470780611038,
0.03779583051800728,
0.045955490320920944,
-0.04747438803315163,
-0.002576386323198676,
-0.051925111562013626,
-0.014111620374023914,
0.02350759319961071,
-0.02718120627105236,
-0.03078417293727398,
-0.038926173001527786,
-0.004905510228127241,
-0.015639349818229675,
-0.018103143200278282,
-0.015665842220187187,
0.030219001695513725,
0.022518543526530266,
-0.00931649561971426,
0.03336276859045029,
-0.003463881788775325,
-0.006874778773635626,
-0.00036344266845844686,
-0.05658777430653572,
-0.07403744012117386,
-0.002034395933151245,
-0.030307309702038765,
-0.03595902398228645,
-0.04302366450428963,
0.04546096548438072,
0.07926527410745621,
0.017281878739595413,
0.002120496239513159,
0.03239138051867485,
-0.015524548478424549,
-0.015056516043841839,
-0.00871600117534399,
-0.011179794557392597,
0.02359590120613575,
-0.00692776357755065,
0.009599081240594387,
0.022024018689990044,
-0.036877427250146866,
-0.027569761499762535,
-0.0306075569242239,
-0.08018367737531662,
0.03255033493041992,
-0.02043447457253933,
-0.015966089442372322,
-0.046555984765291214,
0.047580357640981674,
-0.030413279309868813,
-0.01214235182851553,
0.005404450464993715,
0.007276580203324556,
0.019798656925559044,
0.018580006435513496,
0.020999645814299583,
0.0007092237356118858,
-0.05044153705239296,
-0.05422111973166466,
0.06898622214794159,
0.012592722661793232,
-0.026969267055392265,
-0.02675732783973217,
-0.018597668036818504,
0.05439773574471474,
-0.010314376093447208,
0.025450369343161583,
-0.01752031035721302,
0.00922818761318922,
0.02255386672914028,
0.006243376526981592,
0.05598727986216545,
-0.07566230744123459,
-0.03882020339369774,
-0.014120451174676418,
-0.007634227629750967,
-0.02651006542146206,
-0.0006871467339806259,
0.002088484587147832,
0.015144824050366879,
-0.06697279959917068,
0.04182267561554909,
0.019286470487713814,
0.024390673264861107,
-0.01567467302083969,
-0.00530289625748992,
-0.013016601093113422,
0.08795478194952011,
0.03821970894932747,
-0.0045191626995801926,
0.04231720045208931,
-0.01094136293977499,
0.016866831108927727,
0.1001766100525856,
0.017379017546772957,
0.0037972445134073496,
-0.05068879947066307,
-0.01372306514531374,
-0.048428114503622055,
0.01149770338088274,
0.050830092281103134,
0.03821970894932747,
-0.07354291528463364,
0.05422111973166466,
0.00422333087772131,
0.0228187907487154,
-0.0030753265600651503,
-0.06831508129835129,
0.02417873404920101,
0.018509360030293465,
-0.07940656691789627,
-0.022112326696515083,
0.002011215081438422,
0.014535498805344105,
-0.010976686142385006,
0.0017385639948770404,
-0.020452136173844337,
0.030536910519003868,
0.019092192873358727,
0.04422465339303017,
-0.04478982463479042,
0.026103848591446877,
0.0036162131000310183,
-0.012327798642218113,
0.009519604034721851,
0.015162485651671886,
-0.031049096956849098,
-0.037901800125837326,
0.008676262572407722,
-0.03173790127038956,
0.04546096548438072,
0.03733662888407707,
-0.018041327595710754,
-0.016796184703707695,
-0.015312609262764454,
-0.00824796874076128,
-0.0035124511923640966,
-0.0033093427773565054,
-0.002111665438860655,
-0.050830092281103134,
-0.026474742218852043,
-0.055280815809965134,
0.005589897278696299,
0.002633786527439952,
0.006821793969720602,
-0.041575413197278976,
-0.04411868378520012,
0.026439419016242027,
0.00181583350058645,
-0.06354644894599915,
0.043200280517339706,
-0.040727656334638596,
-0.03772518411278725,
-0.007709289435297251,
-0.027322499081492424,
0.007413457613438368,
0.026810312643647194,
0.008596785366535187,
0.004662663210183382,
-0.05340868607163429,
-0.08774284273386002,
-0.044401269406080246,
-0.04369480535387993,
0.044154006987810135,
-0.06676086038351059,
-0.021829741075634956,
-0.02137053944170475,
-0.01932179369032383,
-0.0058857291005551815,
0.04627339914441109,
0.049381840974092484,
-0.009660896845161915,
-0.02640409581363201,
-0.008208230137825012,
-0.012866477482020855,
0.0018953107064589858,
-0.0013864358188584447,
-0.022200634703040123,
0.053549978882074356,
-0.006786470767110586,
-0.02137053944170475,
0.0232603307813406,
-0.01303426269441843,
-0.013864357955753803,
0.007696043234318495,
0.07806428521871567,
0.01907453127205372,
0.0037641290109604597,
-0.038078416138887405,
-0.012160013429820538,
-0.10088307410478592,
0.03708936646580696,
0.02668668143451214,
0.01794418878853321,
0.04023313149809837,
0.030837157741189003,
0.06503002345561981,
-0.015904273837804794,
-0.019198162481188774,
0.0061727301217615604,
-0.01888025365769863,
0.024090426042675972,
-0.012001059018075466,
-0.01932179369032383,
0.045778874307870865,
0.033627692610025406,
0.026704343035817146,
-0.036117978394031525,
0.016416460275650024,
0.02101730741560459,
0.0069675021804869175,
-0.03712468966841698,
-0.009219356812536716,
0.004989402834326029,
0.010234898887574673,
0.04916990175843239,
-0.08463440090417862,
-0.010482161305844784,
0.02368420921266079,
-0.01593959704041481,
-0.007214764598757029,
-0.0051483572460711,
-0.013714234344661236,
-0.02462027408182621,
0.03938537463545799,
-0.033203814178705215,
-0.03410455584526062,
0.026386434212327003,
0.010349699296057224,
0.03938537463545799,
-0.06442952901124954,
-0.009705050848424435,
-0.02230660431087017,
0.0056031434796750546,
0.045425642281770706,
0.011700811795890331,
0.026368772611021996,
0.018862592056393623,
0.0008300953195430338,
0.020646413788199425,
-0.04178735241293907,
0.02077004499733448,
-0.02128223143517971,
-0.06393500417470932,
0.021405862644314766,
-0.029795123264193535,
0.0436241589486599,
-0.12723419070243835,
-0.03846697136759758,
0.06570116430521011,
-0.001547597930766642,
0.026474742218852043,
0.004075414966791868,
0.02831154875457287,
0.05436241254210472,
0.006923348177224398,
-0.004344754386693239,
-0.0116301653906703,
-0.00470240181311965,
0.06319321691989899,
0.042281877249479294,
-0.0017220062436535954,
0.042281877249479294,
-0.0038568524178117514,
0.0015299363294616342,
0.01582479663193226,
-0.02606852538883686,
-0.04524902626872063,
-0.049699749797582626,
-0.010596961714327335,
-0.0825856551527977,
0.05037089064717293,
-0.060826558619737625,
0.011294594965875149,
-0.023542916402220726,
-0.008128752931952477,
-0.07223595678806305,
-0.021317554637789726,
-0.002293800702318549,
-0.02719886787235737,
-0.007850582711398602,
-0.00014198273129295558,
0.008097845129668713,
-0.04924054816365242,
-0.03180854767560959,
-0.04267043247818947,
-0.007400211412459612,
0.017016954720020294,
-0.012831154279410839,
-0.005722359288483858,
-0.02232426591217518,
0.02933592163026333,
0.07686329632997513,
-0.0221476498991251,
-0.037230659276247025,
-0.08138466626405716,
0.05068879947066307,
0.021441185846924782,
-0.009881666861474514,
0.0405157171189785,
0.021176261827349663,
0.05605792626738548,
0.038325678557157516,
0.02368420921266079,
-0.04316495731472969,
-0.0872483178973198,
-0.06379371136426926,
-0.0011044021230190992,
0.04146944358944893,
-0.04242317005991936,
0.06538325548171997,
0.0243730116635561,
0.01548039447516203,
-0.03069586493074894,
-0.028965028002858162,
0.0714588463306427,
-0.013935004360973835,
-0.013661249540746212,
0.042882371693849564,
-0.02446131967008114,
0.0288237351924181,
0.04146944358944893,
-0.008610031567513943,
0.011815612204372883,
-0.09028611332178116,
0.02778170071542263,
0.01427940558642149,
-0.03412221744656563,
0.02762274630367756,
-0.013935004360973835,
-0.030024724081158638,
-0.006115329917520285,
0.025273753330111504,
-0.027481453493237495,
0.007453196216374636,
-0.03412221744656563,
-0.04161073639988899,
0.012168844230473042,
-0.042705755680799484,
0.03436947986483574,
-0.05821264162659645,
0.011859766207635403,
0.02555633895099163,
0.0277110543102026,
-0.004505916498601437,
0.04733309522271156,
0.02223595790565014,
0.0999646708369255,
0.014712114818394184,
-0.0678912028670311,
0.017714587971568108,
-0.03648887202143669,
0.09431295841932297,
-0.02292476035654545,
0.05249028280377388,
-0.045531611889600754,
-0.04471917822957039,
0.00639350013807416,
0.01278700027614832,
-0.004874602425843477,
0.133097842335701,
-0.04436594620347023,
-0.002843518042936921,
-0.02633344940841198,
0.011126809753477573,
0.03044860251247883,
0.008972094394266605,
0.0019140761578455567,
-0.037901800125837326,
0.004428646992892027,
-0.03698339685797691,
0.03306252136826515,
-0.005519250873476267,
-0.06068526580929756,
0.06446485221385956,
-0.05072412267327309,
-0.02719886787235737,
-0.02589190937578678,
0.03878488019108772,
0.027287175878882408,
-0.01307841669768095,
0.026810312643647194,
-0.03648887202143669,
-0.007819674909114838,
0.023631224408745766,
-0.03239138051867485,
0.04203461483120918,
0.003439597086980939,
0.04849876090884209,
-0.005947544705122709,
0.053973857313394547,
-0.024302365258336067,
-0.009210526011884212,
0.006896855775266886,
0.008592369966208935,
-0.009590250439941883,
-0.046803247183561325,
0.05383256450295448,
-0.05277286842465401,
-0.03708936646580696,
0.023295653983950615,
-0.049381840974092484,
-0.00585923669859767,
0.047403741627931595,
0.08901447802782059,
-0.03281525894999504,
0.0019173877080902457,
-0.062274809926748276,
-0.0061550685204565525,
0.008724831975996494,
0.029883431270718575,
0.010773577727377415,
0.015921935439109802,
-0.08018367737531662,
-0.010923701338469982,
-0.015789473429322243,
0.032532673329114914,
0.009519604034721851,
-0.0056075588800013065,
-0.025715293362736702,
0.005713528487831354,
-0.01820911280810833,
0.006521546747535467,
-0.034563757479190826,
-0.020805368199944496,
-0.04369480535387993,
-0.053126100450754166,
0.010773577727377415,
-0.03924408182501793,
0.01678735390305519,
0.007188272196799517,
0.0019725803285837173,
0.034404803067445755,
0.004243200179189444,
0.008481984958052635,
-0.02847050316631794,
0.0752384290099144,
0.006278699729591608,
-0.023648886010050774,
-0.009307664819061756,
0.09841044992208481,
-0.007166195195168257,
0.00012418314872775227,
-0.07096432149410248,
-0.04281172528862953,
-0.04464853182435036,
-0.0002642341423779726,
0.07495584338903427,
-0.041681382805109024,
-0.0006314023048616946,
-0.009237018413841724,
0.07771105319261551,
0.039632637053728104,
0.012107028625905514,
-0.013113739900290966,
0.046979863196611404,
0.015356763266026974,
-0.06676086038351059,
0.005523666273802519,
0.019763333722949028,
0.0011391734005883336,
-0.03648887202143669,
0.048004236072301865,
-0.02802896313369274,
-0.011329918168485165,
-0.05499823018908501,
-0.007320734206587076,
0.03076651133596897,
-0.025185445323586464,
-0.021423524245619774,
0.01038502249866724,
0.04033910110592842,
-0.0290533360093832,
-0.053479332476854324,
0.026192156597971916,
-0.05644648149609566,
-0.03564111515879631,
0.011771458201110363,
-0.02855881117284298,
-0.04528434947133064,
-0.012972447089850903,
-0.04086894914507866,
-0.06718473881483078,
-0.005254326853901148,
0.013996819965541363,
0.0005795213510282338,
0.10646414011716843,
0.0029826031532138586,
0.023066053166985512,
0.03436947986483574,
0.028859058395028114,
0.06139172986149788,
0.004428646992892027,
0.04708583280444145,
-0.029176967218518257,
0.021953372284770012,
-0.004457347095012665,
0.02965383045375347,
0.041928645223379135,
-0.029883431270718575,
0.04546096548438072,
0.009864005260169506,
0.016372306272387505,
-0.00996114406734705,
0.04086894914507866,
0.024037441238760948,
-0.055280815809965134,
0.003463881788775325,
-0.04733309522271156,
0.024249380454421043,
0.010632284916937351,
0.04694453999400139,
0.00991699006408453,
0.017979511991143227,
0.02265983633697033,
0.04634404554963112,
-0.020911337807774544,
0.04701518639922142,
0.02513246051967144,
-0.04242317005991936,
-0.055174846202135086,
0.04736841842532158,
-0.0019626456778496504,
-0.024849874898791313,
-0.013643587939441204,
0.07340162247419357,
0.005263157654553652,
0.06683150678873062,
0.043306250125169754,
0.017193570733070374,
0.03836100175976753,
-0.03263864293694496,
0.01563051901757717,
-0.05333803966641426,
0.038325678557157516,
0.07114093750715256,
0.015241962857544422,
-0.013334509916603565,
-0.018844930455088615,
-0.024002118036150932,
-0.08661250025033951,
0.033892616629600525,
0.054750967770814896,
0.055174846202135086,
-0.04835746809840202,
-0.007576827425509691,
0.05422111973166466,
0.016557753086090088,
-0.029636168852448463,
-0.06686682999134064,
0.012575061060488224,
0.0138555271551013,
0.03343341499567032,
-0.028488164767622948,
0.011797950603067875,
0.034669727087020874,
0.01744966395199299,
-0.05665842071175575,
-0.014111620374023914,
0.02101730741560459,
-0.023807840421795845,
-0.01589544303715229,
0.042953018099069595,
-0.07085835188627243,
-0.0067069935612380505,
0.010906039737164974,
-0.03481101989746094,
0.04203461483120918,
-0.02606852538883686,
-0.06450017541646957,
-0.024814551696181297,
-0.009157541207969189,
-0.0016182443359866738,
-0.0272695142775774,
0.007925644516944885,
0.0063714231364429,
-0.013378663919866085,
0.03860826417803764,
-0.039703283458948135,
0.010164252482354641,
-0.04683857038617134,
-0.03445778787136078,
-0.00470240181311965,
-0.06704344600439072,
0.058353934437036514,
0.0265983734279871,
-0.06241610273718834,
-0.0022529582493007183,
0.03315082937479019,
-0.026880959048867226,
0.040056515485048294,
0.004077622666954994,
0.0004531304875854403,
0.011903920210897923,
0.003647120902314782,
0.06563051789999008,
0.014906392432749271,
-0.0013698780676349998,
-0.04401271417737007,
-0.02444365806877613,
0.029971739277243614,
0.048675376921892166,
0.002342370105907321,
-0.0009664208046160638,
0.017043447121977806,
0.012204167433083057,
-0.011638996191322803,
0.013776049949228764,
0.004839279223233461,
0.04814552888274193,
-0.030413279309868813,
0.04309431090950966,
0.03069586493074894,
-0.02129989303648472,
0.06238077953457832,
-0.028399856761097908,
-0.006406746339052916,
0.006578946951776743,
-0.027410807088017464,
-0.034916989505290985,
0.021865064278244972,
0.021900387480854988,
-0.028399856761097908,
0.022589189931750298,
0.015091839246451855,
0.03051924891769886,
0.0035080357920378447,
-0.02495584450662136,
0.028329210355877876,
-0.014182266779243946,
-0.0145266680046916,
0.019162839278578758,
-0.06711409240961075,
0.06291063129901886,
0.005523666273802519,
-0.03512892872095108,
-0.02428470365703106,
-0.07446131855249405,
0.02292476035654545,
0.0037707521114498377,
0.0434122197329998,
0.026898620650172234,
0.007391380611807108,
0.0025167784187942743,
-0.0012539738090708852,
0.0018765452550724149,
0.007479688618332148,
-0.05411515012383461,
-0.03804309293627739,
0.048781346529722214,
-0.005784174893051386,
-0.005585481878370047,
0.0007953240419737995,
0.07110561430454254,
0.02608618699014187,
-0.009060402400791645,
0.013572941534221172,
-0.024849874898791313,
0.07615683227777481,
0.013996819965541363,
-0.02386082522571087,
0.029777461662888527,
0.06223948672413826,
0.03352172300219536,
0.006786470767110586,
-0.005364711862057447,
0.04298834130167961,
0.022854113951325417,
-0.038078416138887405,
-0.014738607220351696,
-0.006786470767110586,
-0.007280995603650808,
-0.007170610595494509,
0.06435888260602951,
-0.022977745160460472,
0.0051483572460711,
-0.036630164831876755,
-0.011895089410245419,
0.06474743783473969,
-0.01381137315183878,
-0.04694453999400139,
-0.058848459273576736,
-0.013449310325086117,
0.009413634426891804,
0.026880959048867226,
0.011647826991975307,
-0.0239314716309309,
0.12744612991809845,
-0.04221123084425926,
0.032267749309539795,
0.01345814112573862,
0.03410455584526062,
0.006225714925676584,
0.022447897121310234,
-0.046202752739191055,
0.06909219175577164,
-0.04478982463479042,
-0.02873542718589306,
-0.0005417144857347012,
-0.012115859426558018,
0.02009890414774418,
0.05273754522204399,
0.012354291044175625,
-0.04016248509287834,
0.047403741627931595,
0.021246908232569695,
-0.01269869226962328,
0.006636347156018019,
-0.002326916204765439,
-0.01705227792263031,
0.016460614278912544,
-0.012707523070275784,
0.0411868579685688,
-0.04221123084425926,
0.059554923325777054,
0.056799713522195816,
-0.039632637053728104,
-0.011621334590017796,
0.0015387671301141381,
0.022960083559155464,
0.02539738453924656,
-0.034157540649175644,
-0.07481455057859421,
0.01705227792263031,
-0.020293181762099266,
0.0647827610373497,
0.03025432489812374,
0.016195690259337425,
-0.00159837503451854,
-0.03194984048604965,
-0.0025278169196099043,
0.009802189655601978,
-0.028452841565012932,
0.006093252915889025,
-0.018738960847258568,
0.009122218005359173,
0.01381137315183878,
-0.010402684099972248,
-0.014906392432749271,
0.06880960613489151,
0.006777639966458082,
-0.027587423101067543,
0.00739579601213336,
-0.023048391565680504,
0.008097845129668713,
0.00008679021993884817,
0.012460260652005672,
-0.017617449164390564,
0.042281877249479294,
-0.032532673329114914,
-0.007713704835623503,
-0.04814552888274193,
0.004578770603984594,
-0.06269869208335876,
-0.0701165646314621,
-0.012848815880715847,
-0.05111267790198326,
0.014756268821656704,
0.0279406551271677,
-0.0017341485945507884
] |
724,875 | markov_clustering.mcl | inflate |
Apply cluster inflation to the given matrix by raising
each element to the given power.
:param matrix: The matrix to be inflated
:param power: Cluster inflation parameter
:returns: The inflated matrix
| def inflate(matrix, power):
"""
Apply cluster inflation to the given matrix by raising
each element to the given power.
:param matrix: The matrix to be inflated
:param power: Cluster inflation parameter
:returns: The inflated matrix
"""
if isspmatrix(matrix):
return normalize(matrix.power(power))
return normalize(np.power(matrix, power))
| (matrix, power) | [
0.049409300088882446,
-0.0030729116406291723,
0.1421600878238678,
0.04403495416045189,
0.03720433637499809,
-0.022849634289741516,
0.014814121648669243,
0.005534708499908447,
-0.02141069620847702,
0.06327857822179794,
-0.03500258922576904,
0.007532751187682152,
-0.08106592297554016,
0.002448794199153781,
-0.03203802928328514,
0.03214205056428909,
-0.07461670786142349,
0.009249074384570122,
-0.01658245362341404,
0.00748074147850275,
0.01544690690934658,
-0.035990774631500244,
0.02974959835410118,
0.09008095413446426,
-0.020491857081651688,
0.012768403626978397,
-0.0257448460906744,
-0.014207340776920319,
-0.000938885030336678,
-0.06213436275720596,
-0.03554002195596695,
0.01303711999207735,
0.01872352324426174,
-0.01765732280910015,
-0.024791331961750984,
-0.06442279368638992,
0.014294023625552654,
0.019000910222530365,
-0.015056833624839783,
-0.023508423939347267,
0.009803845547139645,
0.013461867347359657,
0.009665152058005333,
-0.019156938418745995,
0.0215667262673378,
0.011043411679565907,
0.005907445214688778,
-0.01412932574748993,
0.019104929640889168,
-0.004128276836127043,
0.013262496329843998,
-0.0413651205599308,
0.04823040962219238,
-0.02917749248445034,
-0.06192632019519806,
0.04209325462579727,
0.022433554753661156,
-0.04063698276877403,
-0.02706242725253105,
-0.0558931864798069,
-0.024652639403939247,
0.007987836375832558,
-0.061336878687143326,
-0.00001544887163618114,
-0.02933352068066597,
-0.002164907520636916,
-0.05072687938809395,
0.06109416484832764,
0.05048416927456856,
0.009075707755982876,
-0.06452681124210358,
0.0190355833619833,
0.003322125179693103,
-0.026455646380782127,
-0.01945166103541851,
0.010722684673964977,
0.004654875956475735,
-0.02362978085875511,
-0.007051660679280758,
0.00805284921079874,
-0.07759860157966614,
-0.026039566844701767,
0.009838518686592579,
0.054367564618587494,
-0.03560936823487282,
-0.018862217664718628,
0.005478364415466785,
-0.012334988452494144,
-0.010349947959184647,
0.020855925977230072,
-0.016859840601682663,
0.007064662873744965,
-0.014077316038310528,
0.06033135578036308,
-0.012187627144157887,
0.03928472846746445,
0.020942607894539833,
0.02713177353143692,
0.022346872836351395,
-0.02844935469329357,
0.02935085818171501,
0.03710031509399414,
0.010436630807816982,
0.004932261537760496,
-0.027963930740952492,
-0.029229501262307167,
0.0010483223013579845,
-0.028536036610603333,
0.046045999974012375,
0.0010239427210763097,
-0.0387299545109272,
0.0012688221177086234,
-0.08148200064897537,
-0.02942020446062088,
-0.055130377411842346,
-0.02369912713766098,
0.009023698046803474,
0.031327228993177414,
0.055442433804273605,
0.05221782624721527,
0.019156938418745995,
-0.012777071446180344,
-0.007892485707998276,
-0.01344453077763319,
-0.058875080198049545,
0.005812094081193209,
0.04944397136569023,
0.005226983688771725,
0.04583796113729477,
-0.02304033562541008,
0.015793640166521072,
0.002151905093342066,
-0.03980482369661331,
0.03931939974427223,
-0.03016567789018154,
-0.027183782309293747,
-0.014224677346646786,
-0.019243622198700905,
0.02239888161420822,
0.07177350670099258,
0.0018810207257047296,
0.014805452898144722,
-0.00936176162213087,
0.021063964813947678,
-0.025692835450172424,
-0.012560363858938217,
0.04680880904197693,
0.038521915674209595,
-0.018324783071875572,
-0.03498525172472,
-0.005773086566478014,
0.01953834481537342,
0.0021085634361952543,
-0.008057183586061,
0.01666913740336895,
0.029229501262307167,
0.05467962473630905,
-0.03928472846746445,
0.03800182044506073,
-0.044485706835985184,
-0.02623027004301548,
0.02836267091333866,
-0.05440223962068558,
0.0048455786891281605,
-0.05336204171180725,
-0.040324922651052475,
0.050553515553474426,
-0.08175938576459885,
-0.04615001752972603,
-0.009266410954296589,
-0.03106718137860298,
-0.004533519968390465,
0.0012352324556559324,
-0.001687067560851574,
0.024739323183894157,
0.04517916962504387,
-0.03453449904918671,
0.01846347562968731,
-0.016712479293346405,
0.04847312346100807,
-0.036164138466119766,
0.00869863759726286,
-0.019486334174871445,
-0.03184732794761658,
0.001199475722387433,
-0.022329535335302353,
0.034759875386953354,
-0.04982537776231766,
-0.003655854845419526,
-0.030945824459195137,
0.0034326461609452963,
-0.0351066067814827,
0.0484037771821022,
0.019399650394916534,
0.025536807253956795,
0.00936176162213087,
-0.01872352324426174,
-0.009786508977413177,
-0.050206784158945084,
0.004184620920568705,
-0.05946452543139458,
0.001990457996726036,
0.04909723997116089,
0.023820484057068825,
0.03619881346821785,
0.00633652601391077,
0.01057532336562872,
0.008963020518422127,
-0.013305837288498878,
0.03434379771351814,
0.0077711292542517185,
-0.042613353580236435,
0.06400671601295471,
0.026004893705248833,
0.02239888161420822,
-0.020717233419418335,
0.004327647853642702,
-0.04916658625006676,
0.014866131357848644,
0.0003843848535325378,
-0.040741000324487686,
-0.012031598016619682,
-0.00677860900759697,
0.02779056318104267,
-0.07177350670099258,
0.04292541369795799,
-0.029212165623903275,
-0.02248556539416313,
-0.02009311504662037,
0.037620414048433304,
-0.03462118282914162,
-0.009179728105664253,
-0.014892136678099632,
-0.05613590031862259,
0.0025983224622905254,
0.01045396737754345,
-0.03668423742055893,
0.027911920100450516,
0.03519329056143761,
0.02917749248445034,
0.00025463124620728195,
-0.003621181473135948,
0.022086823359131813,
0.01274239830672741,
0.0045941979624331,
-0.0004672754439525306,
-0.014354702085256577,
-0.007493743672966957,
0.006652918644249439,
0.032974205911159515,
-0.035990774631500244,
-0.06279315054416656,
0.015160853043198586,
0.0036666900850832462,
0.059707239270210266,
-0.09084376692771912,
0.03165662661194801,
0.0737152099609375,
-0.021445369347929955,
-0.015377560630440712,
-0.0291601549834013,
-0.0235430970788002,
0.058285634964704514,
-0.015377560630440712,
-0.0437922440469265,
-0.033043552190065384,
-0.0488545298576355,
-0.005096959415823221,
0.03585208207368851,
0.027651870623230934,
0.03814051300287247,
0.053154002875089645,
0.03633750602602959,
0.020214471966028214,
0.005114295985549688,
0.006644250359386206,
0.023907165974378586,
-0.019815729930996895,
-0.05630926415324211,
0.0534660629928112,
-0.052009787410497665,
-0.0234390776604414,
-0.034361135214567184,
0.03519329056143761,
-0.06657253205776215,
0.02442726492881775,
0.012924432754516602,
-0.013539881445467472,
0.04497113078832626,
-0.039666131138801575,
0.07281370460987091,
0.055199723690748215,
0.027842573821544647,
-0.004637539386749268,
-0.018862217664718628,
-0.03678825870156288,
-0.009171059355139732,
-0.007892485707998276,
0.016114367172122,
0.011320797726511955,
0.058944426476955414,
-0.08390912413597107,
0.031431250274181366,
-0.011944915167987347,
0.06934638321399689,
-0.029108144342899323,
-0.02305767312645912,
0.049409300088882446,
-0.015351556241512299,
0.051593709737062454,
-0.012352325022220612,
0.04958266392350197,
-0.08550409227609634,
-0.06539364159107208,
-0.01401663850992918,
-0.01360922772437334,
0.05603187903761864,
0.046704791486263275,
0.04958266392350197,
0.07336847484111786,
0.05221782624721527,
0.012647046707570553,
0.016235722228884697,
0.0508309006690979,
-0.06771674752235413,
0.005096959415823221,
0.047432929277420044,
-0.03307822719216347,
0.050934918224811554,
-0.02917749248445034,
-0.021878784522414207,
-0.006613911595195532,
-0.024704650044441223,
0.01863684132695198,
-0.0737152099609375,
0.020543865859508514,
0.03557469695806503,
-0.0541248545050621,
-0.07399259507656097,
-0.011936246417462826,
0.015585600398480892,
0.05793890357017517,
-0.03139657527208328,
-0.03120587393641472,
-0.036476198583841324,
0.026334289461374283,
0.024808669462800026,
-0.031171200796961784,
-0.05304998531937599,
0.07413128763437271,
-0.02075190655887127,
-0.03841789811849594,
0.009491786360740662,
-0.000047641780838603154,
0.015004823915660381,
0.0633825957775116,
-0.011580846272408962,
-0.05734946206212044,
-0.006644250359386206,
-0.032384760677814484,
-0.018168753013014793,
-0.025051381438970566,
0.0012904929462820292,
-0.038521915674209595,
0.019070256501436234,
-0.05211380869150162,
-0.029870955273509026,
0.024704650044441223,
0.05994994938373566,
-0.01356588676571846,
0.027911920100450516,
-0.05499168485403061,
-0.013626564294099808,
0.013479203917086124,
-0.04798769950866699,
-0.009422440081834793,
-0.08564278483390808,
0.029281511902809143,
-0.01578497141599655,
0.03619881346821785,
0.010150576941668987,
0.006358196493238211,
-0.01376525778323412,
-0.024479273706674576,
0.022814961150288582,
0.010323943570256233,
0.015793640166521072,
0.02770388126373291,
-0.01286375429481268,
-0.004477175883948803,
-0.011502831242978573,
-0.015238868072628975,
0.036233484745025635,
-0.03488123044371605,
0.00837357621639967,
0.025935547426342964,
0.021792100742459297,
-0.00874631293118,
0.025311430916190147,
-0.01152883656322956,
-0.02763453498482704,
-0.024617966264486313,
-0.019312968477606773,
-0.0052703251130878925,
-0.0012113946722820401,
-0.00494092982262373,
-0.04902789369225502,
0.004039426799863577,
0.03744704648852348,
-0.05596253275871277,
0.01152016781270504,
0.012074938975274563,
0.015334219671785831,
-0.05710674822330475,
-0.0028540370985865593,
-0.04549122974276543,
0.04046361520886421,
-0.0215667262673378,
0.005474030505865812,
-0.0169985331594944,
0.07364585995674133,
-0.027565188705921173,
-0.0016220553079620004,
-0.012239636853337288,
-0.0011843062238767743,
-0.05252988636493683,
-0.048091717064380646,
-0.05034547671675682,
-0.06078210845589638,
0.0591871403157711,
-0.058944426476955414,
-0.05866704136133194,
0.04091436788439751,
-0.02057853899896145,
-0.011104090139269829,
-0.029940301552414894,
0.013513877056539059,
0.01249968633055687,
-0.05467962473630905,
-0.015221531502902508,
0.07780664414167404,
-0.0024639638140797615,
0.037620414048433304,
-0.09992814064025879,
-0.008902342058718204,
0.021636072546243668,
0.0209079347550869,
0.03848724439740181,
-0.0158456489443779,
-0.01731059141457081,
0.006826284807175398,
-0.03692695125937462,
-0.005868437699973583,
0.009552464820444584,
-0.042197275906801224,
0.03269682079553604,
0.02141069620847702,
-0.021289341151714325,
-0.025380777195096016,
0.08737644553184509,
0.010280601680278778,
-0.03443048149347305,
-0.03047773614525795,
0.034031737595796585,
0.037377700209617615,
0.027513178065419197,
0.02860538475215435,
0.010523313656449318,
-0.00023715921270195395,
-0.07184285670518875,
0.07184285670518875,
-0.03073778562247753,
0.0313619039952755,
-0.05710674822330475,
0.02125466801226139,
0.04029025137424469,
-0.04386159032583237,
0.035245299339294434,
0.03824453055858612,
-0.003781544975936413,
-0.09736232459545135,
-0.04909723997116089,
0.018186088651418686,
-0.03280084207653999,
-0.027825236320495605,
-0.027963930740952492,
-0.005209647119045258,
-0.04185054451227188,
0.0411570779979229,
-0.02491268888115883,
-0.04091436788439751,
0.062481094151735306,
0.08945683389902115,
0.08023376762866974,
0.06782076507806778,
0.024791331961750984,
-0.022520238533616066,
0.015195527113974094,
0.04108773171901703,
-0.008828661404550076,
-0.029056135565042496,
0.06913834810256958,
-0.06251576542854309,
0.039180707186460495,
-0.015585600398480892,
0.05467962473630905,
0.00862062256783247,
0.023352395743131638,
0.01412932574748993,
0.001519119250588119,
0.019000910222530365,
-0.03307822719216347,
-0.018532821908593178,
0.04944397136569023,
-0.03814051300287247,
0.05197511613368988,
-0.04920126125216484,
0.035678714513778687,
0.042544007301330566,
0.013063125312328339,
0.058285634964704514,
0.030824467539787292,
-0.039354074746370316,
-0.039354074746370316,
-0.002797693246975541,
-0.03139657527208328,
0.02924683876335621,
-0.04504047706723213,
0.00841691717505455,
0.06428410112857819,
-0.0030577422585338354,
-0.0016155540943145752,
0.0128724230453372,
0.03987416997551918,
0.05596253275871277,
0.0004515641485340893,
-0.006938972510397434,
-0.03571338951587677,
-0.022554911673069,
-0.023473750799894333,
-0.04361887648701668,
-0.03890332207083702,
0.027981266379356384,
-0.018186088651418686,
0.025796854868531227,
-0.004327647853642702,
-0.04764096811413765,
-0.002858371241018176,
-0.02794659323990345,
-0.010939392261207104,
-0.03904201462864876,
0.04389626160264015,
-0.0232137031853199,
0.047849006950855255,
0.05031080171465874,
0.018255436792969704,
-0.05537308752536774,
0.0025246418081223965,
-0.01515218522399664,
-0.011988256126642227,
0.022589584812521935,
0.018810207024216652,
0.04022090509533882,
0.009786508977413177,
-0.02858804725110531,
-0.035748060792684555,
-0.008594617247581482,
0.08820860087871552,
0.018602168187499046,
0.008161203004419804,
-0.005261656828224659,
-0.0444510318338871,
0.03384103626012802,
0.01418133545666933,
-0.027149109169840813,
0.042439986020326614,
0.07156547158956528,
-0.10887382179498672,
0.05759217217564583,
-0.030685774981975555,
0.011251451447606087,
-0.060088641941547394,
-0.0320206917822361,
0.02844935469329357,
-0.013947291299700737,
0.016201049089431763,
-0.0267330314964056,
0.05835498496890068,
-0.01299377903342247,
-0.004082768224179745,
-0.020647887140512466,
-0.07718252390623093,
0.017509961500763893,
0.00010699930862756446,
-0.045872632414102554,
-0.04920126125216484,
0.02213883399963379,
0.0036060120910406113,
0.06362530589103699,
0.0032744496129453182,
-0.019486334174871445,
0.004754561465233564,
-0.020873261615633965,
0.006288850214332342,
-0.021445369347929955,
-0.02198280394077301,
-0.025883538648486137,
-0.009266410954296589,
0.009448445402085781,
0.023577770218253136,
0.016868507489562035,
-0.007181684952229261,
-0.005200978834182024,
0.05689870938658714,
-0.030044320970773697,
0.0022949320264160633,
-0.0005298497271724045,
-0.06598308682441711,
0.032228734344244,
0.02591821178793907,
-0.041053060442209244,
0.003402306931093335,
0.018654176965355873,
-0.044659070670604706,
-0.0013208319433033466,
0.07641971856355667,
0.019347641617059708,
-0.013340510427951813,
-0.014996156096458435,
-0.0407063290476799,
-0.018238099291920662,
0.021063964813947678,
0.015793640166521072,
0.019833065569400787,
-0.028327997773885727,
-0.01601034589111805,
0.005677735432982445,
-0.0004959891666658223,
-0.02744383178651333,
0.017119888216257095,
0.0024639638140797615,
-0.004555190913379192,
-0.01755330339074135,
-0.07794533669948578,
0.002518140710890293,
0.004958266392350197,
0.02834533527493477,
-0.023803146556019783,
-0.029558897018432617,
0.01846347562968731,
-0.0488545298576355,
0.020145125687122345,
-0.028484027832746506,
0.05769619345664978,
0.015654945746064186,
-0.01789136789739132,
-0.05006809160113335,
0.03654554486274719,
0.025796854868531227,
0.024219224229454994,
-0.02330038510262966,
0.018498148769140244,
-0.01433736551553011,
-0.010323943570256233,
0.05644795671105385,
0.022658931091427803,
0.033147573471069336,
-0.03441314399242401,
-0.015819644555449486,
0.001934114028699696,
-0.0112774558365345,
0.006093813572078943,
0.03196868300437927,
-0.05402083322405815,
0.022658931091427803,
0.05606655403971672,
-0.05866704136133194,
0.018688850104808807,
0.021445369347929955,
0.04771031439304352,
0.015732960775494576,
0.03678825870156288,
0.011710871011018753,
0.059048447757959366,
-0.040498290210962296,
0.016937853768467903,
-0.03261013701558113,
0.01684250310063362,
-0.06255044043064117,
-0.01698119565844536,
0.05145501717925072,
-0.017033206298947334,
-0.000995228998363018,
0.013227823190391064,
0.008594617247581482,
0.03016567789018154,
-0.05145501717925072,
0.0351066067814827,
0.04365354776382446,
0.02997497469186783,
0.10041356831789017,
0.017267249524593353,
-0.016235722228884697,
0.03130989149212837,
0.0002586945192888379,
-0.0200237687677145,
-0.015498917549848557,
0.003044739831238985,
-0.038452569395303726,
0.09895729273557663,
0.03890332207083702,
0.037065643817186356,
0.05949919670820236,
0.017622649669647217,
-0.0016123034292832017,
0.046219367533922195,
-0.039666131138801575,
0.028414681553840637,
-0.021757427603006363,
0.014033975079655647,
0.011121426708996296,
-0.051524363458156586,
0.02491268888115883,
0.031431250274181366,
0.004342817235738039,
0.013635233044624329,
-0.022520238533616066,
0.06483887135982513,
-0.05173240229487419,
0.010185250081121922,
-0.037134990096092224,
-0.0488545298576355,
0.011745544150471687,
0.06504690647125244,
0.05069220811128616,
0.02213883399963379,
-0.012517022900283337,
0.05187109485268593,
-0.001625305856578052,
-0.017856694757938385,
0.015438239090144634,
-0.008650961332023144,
-0.02378581091761589,
0.06948507577180862,
0.02680237777531147,
0.01960769109427929,
0.012404334731400013,
0.02695840783417225,
0.0069736456498503685,
0.006028801202774048,
0.017752675339579582,
-0.011468158103525639,
-0.0020695561543107033,
0.004422998987138271,
0.0005699406028725207,
-0.05138567090034485,
0.04296008497476578,
-0.05069220811128616,
-0.02248556539416313,
-0.05277260020375252,
0.025034045800566673,
-0.09465781599283218,
-0.028154632076621056,
0.03422244265675545,
-0.025536807253956795,
0.014528067782521248,
0.06379867345094681,
-0.012334988452494144
] |
724,876 | markov_clustering.modularity | is_undirected |
Determine if the matrix reprensents a directed graph
:param matrix: The matrix to tested
:returns: boolean
| def is_undirected(matrix):
"""
Determine if the matrix reprensents a directed graph
:param matrix: The matrix to tested
:returns: boolean
"""
if isspmatrix(matrix):
return sparse_allclose(matrix, matrix.transpose())
return np.allclose(matrix, matrix.T)
| (matrix) | [
0.005531210917979479,
0.05668949708342552,
0.028725912794470787,
0.05658554285764694,
0.015315867029130459,
-0.009520439431071281,
-0.04532387852668762,
0.04255177453160286,
0.016511335968971252,
0.03387162834405899,
-0.06465929001569748,
0.007735898718237877,
-0.02690672129392624,
0.024030664935708046,
-0.00551388505846262,
0.009286543354392052,
0.002306476002559066,
0.04584364593029022,
0.013565977104008198,
0.006258887704461813,
-0.028327424079179764,
-0.006128945387899876,
0.039467811584472656,
0.029730800539255142,
-0.04057665169239044,
-0.0016860014293342829,
-0.023528220131993294,
-0.020219022408127785,
-0.037458036094903946,
0.013462022878229618,
-0.051872968673706055,
-0.0046216147020459175,
0.03082231618463993,
-0.00542292557656765,
0.02111995592713356,
0.0459476001560688,
0.008073749020695686,
0.007484676782041788,
-0.04497736319899559,
-0.048407841473817825,
-0.023354964330792427,
0.022384729236364365,
0.0026226688642054796,
0.009762998670339584,
0.025330087170004845,
-0.007107844110578299,
0.03241627290844917,
-0.0242732223123312,
-0.0815691202878952,
-0.005947026424109936,
0.03113417699933052,
-0.02612706646323204,
0.02458508498966694,
0.03569082170724869,
-0.02205554023385048,
-0.027339860796928406,
-0.01024811714887619,
0.00025365821784362197,
-0.03347313776612282,
0.0004055282915942371,
-0.010031546466052532,
0.03061440773308277,
0.007588631007820368,
-0.024758340790867805,
0.004461352713406086,
-0.049031563103199005,
-0.022402053698897362,
0.0070688617415726185,
0.033698372542858124,
-0.005457576829940081,
-0.10866641998291016,
0.038809437304735184,
0.003187917871400714,
0.017481571063399315,
0.017845410853624344,
-0.05613507702946663,
0.07685654610395432,
0.026785440742969513,
-0.0443882942199707,
0.003956743516027927,
-0.029522892087697983,
-0.033386509865522385,
0.036141287535429,
0.034114185720682144,
-0.03283208981156349,
0.0024472468066960573,
0.011547539383172989,
0.06774325668811798,
-0.029626846313476562,
-0.021466469392180443,
0.030163941904902458,
-0.010837188921868801,
-0.022852521389722824,
-0.031844526529312134,
-0.011677482165396214,
0.07103513181209564,
0.015870288014411926,
0.012361845001578331,
-0.009251892566680908,
-0.06320393830537796,
0.006241562310606241,
0.04036874324083328,
-0.011105735786259174,
-0.014986679889261723,
-0.04941272735595703,
-0.009191252291202545,
-0.027131954208016396,
-0.026352299377322197,
0.009208578616380692,
-0.018417157232761383,
-0.0356215164065361,
-0.009329857304692268,
0.016208136454224586,
0.046398065984249115,
0.01616482250392437,
-0.06174858659505844,
0.05779833719134331,
-0.008021771907806396,
-0.03641849756240845,
-0.0003700648667290807,
0.018469134345650673,
0.011157712899148464,
-0.003408819902688265,
-0.04213595762848854,
0.03728478029370308,
-0.036938268691301346,
0.04383387044072151,
0.030042661353945732,
0.007597293704748154,
0.018555762246251106,
-0.0014900051755830646,
-0.0016058703185990453,
-0.012786323204636574,
0.07491607218980789,
-0.030856966972351074,
-0.006982233375310898,
-0.00294319330714643,
-0.0077142417430877686,
0.037319429218769073,
0.03953711315989494,
0.011729459278285503,
-0.019907161593437195,
-0.0027677712496370077,
0.04348735883831978,
0.0012593575520440936,
0.004158153664320707,
-0.05485298112034798,
0.029297659173607826,
-0.017221687361598015,
-0.00620691105723381,
0.021622400730848312,
-0.037250127643346786,
-0.005206355359405279,
-0.011417597532272339,
-0.03454732894897461,
-0.011201026849448681,
0.0004926979308947921,
-0.03971036896109581,
0.022887172177433968,
0.006964907515794039,
-0.00991026684641838,
-0.04192805290222168,
0.009026658721268177,
0.02980010211467743,
-0.04237851873040199,
-0.048927608877420425,
0.029782777652144432,
-0.03246825188398361,
-0.03676500916481018,
0.024498457089066505,
-0.012145274318754673,
-0.008398604579269886,
-0.03738873451948166,
0.01229254249483347,
-0.016043543815612793,
-0.018313203006982803,
-0.03832431882619858,
0.06206044554710388,
-0.0067440057173371315,
-0.01404243241995573,
0.022523334249854088,
-0.0018332693725824356,
-0.004363895859569311,
-0.03898269310593605,
0.02922835573554039,
-0.013089521788060665,
-0.02255798503756523,
-0.04421503469347954,
0.025486018508672714,
0.02876056358218193,
-0.018191922456026077,
0.02266193926334381,
0.061471372842788696,
0.04223991185426712,
0.050105754286050797,
-0.040091533213853836,
-0.006484121084213257,
-0.013271440751850605,
-0.0030839641112834215,
0.009762998670339584,
0.03711152449250221,
-0.057036008685827255,
0.03825501725077629,
0.058526016771793365,
0.0015365678118541837,
-0.00885340292006731,
-0.07200536131858826,
-0.015679705888032913,
0.016104184091091156,
0.002711462788283825,
-0.02524345926940441,
-0.04625946283340454,
0.05499158427119255,
0.025208808481693268,
-0.015809647738933563,
0.024619735777378082,
-0.04057665169239044,
0.02375345304608345,
-0.030025336891412735,
-0.0516304112970829,
0.012179926037788391,
0.0020834084134548903,
0.004496003966778517,
-0.04816528409719467,
-0.020877396687865257,
-0.027045326307415962,
0.004695248790085316,
0.04189340025186539,
-0.005999003071337938,
0.01368725672364235,
0.033178601413965225,
-0.010109511204063892,
0.027547769248485565,
0.035032447427511215,
0.06531766802072525,
-0.07048071175813675,
-0.04521992430090904,
0.016537323594093323,
0.06944116950035095,
0.011790098622441292,
-0.0183305274695158,
-0.025728577747941017,
0.007995783351361752,
-0.04116572439670563,
0.0449080616235733,
-0.005466239992529154,
-0.013747896067798138,
0.015185924246907234,
-0.014908714219927788,
-0.01037805899977684,
-0.057243917137384415,
-0.05648158863186836,
-0.02938428707420826,
-0.05360553413629532,
0.028639284893870354,
-0.06725814193487167,
-0.033958256244659424,
0.01976855657994747,
0.0053189718164503574,
0.006042317487299442,
0.009537765756249428,
0.00839427299797535,
0.02818881720304489,
0.06258021295070648,
-0.013903827406466007,
-0.014137723483145237,
-0.008727791719138622,
0.04269038140773773,
0.043660614639520645,
-0.04383387044072151,
0.06604534387588501,
-0.028518004342913628,
-0.012717020697891712,
0.012283879332244396,
0.027946259826421738,
0.009615730494260788,
0.022246122360229492,
0.011166376061737537,
-0.005271326284855604,
0.03898269310593605,
-0.08205423504114151,
-0.03414883837103844,
-0.01681453548371792,
0.032450925558805466,
-0.06822837144136429,
0.004942139144986868,
0.0019198976224288344,
-0.04036874324083328,
0.024047989398241043,
0.003926423378288746,
0.0640355721116066,
0.012257890775799751,
0.04937807843089104,
0.007727236021310091,
-0.07030744850635529,
0.010932479985058308,
0.013929815031588078,
-0.03527500480413437,
-0.00717714661732316,
0.06323859095573425,
0.0469871386885643,
0.009849626570940018,
0.01962995156645775,
-0.054714374244213104,
0.010533989407122135,
0.01515127345919609,
-0.06580278277397156,
0.04265572875738144,
-0.0029237018898129463,
-0.005080744158476591,
-0.023944035172462463,
0.024654386565089226,
-0.02938428707420826,
-0.0046476032584905624,
-0.0047775455750525,
0.02711462788283825,
0.0088404081761837,
-0.0495859831571579,
0.031203480437397957,
0.0635504499077797,
0.016849186271429062,
0.046709928661584854,
-0.040091533213853836,
0.024255897849798203,
-0.07810398936271667,
-0.015471797436475754,
0.07962864637374878,
-0.058179501444101334,
0.031480688601732254,
0.0629960298538208,
0.04726434871554375,
-0.024671712890267372,
-0.009823638945817947,
0.008065085858106613,
-0.01781075820326805,
-0.030701035633683205,
-0.01945669576525688,
-0.007129501085728407,
-0.014103071764111519,
-0.009988232515752316,
0.006427812855690718,
0.03423546627163887,
0.030423825606703758,
-0.06684232503175735,
0.049447380006313324,
0.021466469392180443,
-0.06490185111761093,
0.023562872782349586,
0.02581520564854145,
0.00769258476793766,
-0.013488011434674263,
0.07754956930875778,
-0.014129060320556164,
0.0407845601439476,
-0.019959138706326485,
0.09328125417232513,
0.01066393218934536,
0.009477125480771065,
-0.008974682539701462,
0.039121296256780624,
0.06944116950035095,
-0.010993119329214096,
-0.010819862596690655,
-0.03165394812822342,
0.004439695738255978,
-0.00013102515367791057,
0.016130171716213226,
-0.0003137565217912197,
0.029349636286497116,
-0.005951357539743185,
-0.031168827787041664,
-0.04896226152777672,
-0.004303256049752235,
0.01791471242904663,
-0.023944035172462463,
0.03246825188398361,
-0.013462022878229618,
0.027755677700042725,
0.052808552980422974,
0.031116850674152374,
-0.007623282261192799,
0.008671483024954796,
0.043868523091077805,
-0.03504977375268936,
0.01781075820326805,
-0.004790539853274822,
-0.01166881900280714,
0.07526258379220963,
-0.0567934513092041,
-0.05928834527730942,
-0.022488681599497795,
-0.026681486517190933,
0.004894493613392115,
-0.01427632849663496,
0.0014813423622399569,
-0.028951145708560944,
0.044492244720458984,
0.050071101635694504,
0.01324545219540596,
-0.021466469392180443,
-0.014770109206438065,
0.01945669576525688,
-0.051665060222148895,
0.002403932623565197,
-0.03991827741265297,
0.05752112716436386,
-0.0413043275475502,
0.009762998670339584,
0.035864077508449554,
-0.028310097754001617,
0.09667707979679108,
0.0023714471608400345,
-0.04664062708616257,
-0.017481571063399315,
0.03390628099441528,
-0.03451267629861832,
0.05412530153989792,
0.007562642451375723,
0.04515061900019646,
0.01229254249483347,
0.06088230386376381,
0.007900492288172245,
-0.009485788643360138,
-0.02758242003619671,
0.034720584750175476,
-0.044838760048151016,
-0.057036008685827255,
0.022090192884206772,
-0.010395384393632412,
0.07249048352241516,
-0.04927412420511246,
-0.05467972159385681,
0.07065396755933762,
-0.03742338344454765,
-0.026057764887809753,
0.018191922456026077,
0.005561530590057373,
-0.0022891503758728504,
0.005435919854789972,
0.046605974435806274,
0.019352741539478302,
-0.024203920736908913,
-0.015627728775143623,
-0.03551756590604782,
0.002210102044045925,
-0.017161047086119652,
0.023822756484150887,
-0.019179483875632286,
0.05876857414841652,
0.038289666175842285,
-0.05149180442094803,
-0.032346971333026886,
-0.033594418317079544,
-0.06788185983896255,
-0.08718262612819672,
-0.0005603762110695243,
-0.004318416118621826,
-0.002564194845035672,
-0.034668609499931335,
0.07318350672721863,
0.006024991627782583,
-0.0428636372089386,
-0.1027757003903389,
0.017455583438277245,
-0.007744561415165663,
-0.032866742461919785,
-0.022800544276833534,
0.019803207367658615,
-0.018417157232761383,
-0.012613066472113132,
0.03652245178818703,
-0.00472556846216321,
0.00518902949988842,
-0.03835896775126457,
-0.010525327175855637,
-0.005838741082698107,
-0.03298801928758621,
0.01611284539103508,
-0.02312973141670227,
0.05246204137802124,
-0.06999558955430984,
-0.041131071746349335,
-0.005548536777496338,
-0.02406531572341919,
0.004812196828424931,
-0.015177262015640736,
-0.07810398936271667,
-0.02276589162647724,
0.047437604516744614,
-0.023528220131993294,
-0.010854514315724373,
-0.06829767674207687,
0.0696837306022644,
0.01153887715190649,
0.0887765884399414,
-0.008415929973125458,
-0.03908664733171463,
0.01399045530706644,
-0.003281043376773596,
0.009745673276484013,
0.02550334297120571,
0.02768637426197529,
-0.02870858646929264,
0.021345190703868866,
-0.0017336469609290361,
0.03759664297103882,
0.07914353162050247,
0.0020996511448174715,
0.021657051518559456,
0.0038419608026742935,
0.03174057602882385,
0.020998677238821983,
0.024151943624019623,
0.04764551296830177,
0.02753044292330742,
0.025537995621562004,
-0.02680276706814766,
-0.028639284893870354,
0.029696149751544,
-0.0082643311470747,
0.04889295995235443,
0.022367402911186218,
-0.016597963869571686,
0.019300764426589012,
-0.060189276933670044,
0.07623282074928284,
-0.007683921605348587,
0.0068349651992321014,
-0.0011272495612502098,
-0.013046207837760448,
0.03468593209981918,
0.03894804045557976,
0.012760334648191929,
0.05592716857790947,
0.005132721271365881,
0.08648960292339325,
0.06483254581689835,
-0.016355404630303383,
-0.056620195508003235,
-0.01515993569046259,
0.00751499691978097,
-0.07235188037157059,
-0.0004382845654617995,
0.0459476001560688,
-0.0022696589585393667,
0.019179483875632286,
0.012335856445133686,
-0.020842745900154114,
-0.0696837306022644,
-0.02044425718486309,
-0.06088230386376381,
0.05717461556196213,
-0.028327424079179764,
-0.016043543815612793,
0.0975780114531517,
0.057347871363162994,
-0.0049291448667645454,
0.07817329466342926,
0.028466029092669487,
0.00509807001799345,
-0.02458508498966694,
-0.061471372842788696,
0.008247004821896553,
0.020115070044994354,
-0.019387392327189445,
-0.03319592773914337,
-0.02044425718486309,
-0.015471797436475754,
0.01564505323767662,
0.06233765557408333,
0.007974126376211643,
-0.10201337188482285,
-0.016831859946250916,
-0.020773444324731827,
0.0025208808947354555,
-0.010222128592431545,
0.0004266439063940197,
-0.017221687361598015,
0.015090633183717728,
-0.05256599560379982,
-0.004664928652346134,
-0.006947582121938467,
-0.034564655274152756,
0.023302987217903137,
0.000003083591991526191,
-0.019127508625388145,
-0.033178601413965225,
0.02028832584619522,
0.009901603683829308,
-0.10062732547521591,
-0.031168827787041664,
-0.08184632658958435,
0.061783235520124435,
-0.02312973141670227,
-0.02086007222533226,
-0.008255667984485626,
0.03891339153051376,
0.01404243241995573,
0.07290630042552948,
0.011920041404664516,
0.01781075820326805,
0.02617904357612133,
0.01725633814930916,
-0.013150162063539028,
0.010603291913866997,
-0.020946700125932693,
-0.007974126376211643,
-0.018711691722273827,
0.0203922800719738,
0.0019762059673666954,
0.0039762347005307674,
0.030493129044771194,
-0.018313203006982803,
-0.01469214353710413,
-0.006267550867050886,
-0.007341740652918816,
-0.05634298548102379,
0.036279890686273575,
-0.018832972273230553,
0.06212975084781647,
0.051145292818546295,
-0.03165394812822342,
0.012569752521812916,
-0.018832972273230553,
-0.02080809511244297,
0.04584364593029022,
0.02690672129392624,
-0.020149720832705498,
0.016069531440734863,
-0.013869175687432289,
0.007203135173767805,
-0.0138085363432765,
0.011920041404664516,
0.027738351374864578,
-0.053155068308115005,
-0.0748467668890953,
-0.00011221059685340151,
0.008147383108735085,
0.03378500044345856,
0.0665997639298439,
-0.09175659716129303,
0.037977803498506546,
-0.021882284432649612,
-0.021258560940623283,
0.016675930470228195,
0.004859842360019684,
0.036071985960006714,
-0.03496314212679863,
0.004444026853889227,
0.0059903403744101524,
-0.00860651209950447,
0.07491607218980789,
0.044804107397794724,
-0.026681486517190933,
0.06098625808954239,
0.01890227384865284,
-0.02607508935034275,
0.03378500044345856,
0.011261667124927044,
-0.002455909736454487,
0.05190762132406235,
-0.012786323204636574,
0.013912489637732506,
-0.012162599712610245,
0.028933821246027946,
0.05804089829325676,
0.04844249412417412,
0.0049464707262814045,
-0.027894282713532448,
-0.0505908727645874,
-0.03478988632559776,
0.04764551296830177,
0.04948203265666962,
-0.0650751069188118,
0.05800624564290047,
-0.013314755633473396,
-0.0028587307315319777,
-0.029366962611675262,
0.015419820323586464,
-0.047576211392879486,
-0.036279890686273575,
0.01786273531615734,
-0.032450925558805466,
-0.03314395248889923,
-0.05211552977561951,
0.008545872755348682,
-0.021553097292780876,
-0.004478678107261658,
-0.047472257167100906,
-0.07477746903896332,
0.005024435929954052,
-0.030337197706103325,
0.0712430328130722,
0.035084422677755356,
-0.012067308649420738,
0.022904496639966965,
-0.019595300778746605,
0.13084323704242706,
0.029159054160118103,
-0.004890162032097578,
0.03241627290844917,
-0.0034716252703219652,
0.0018159437458962202,
0.050833430141210556,
0.011365620419383049,
0.0076969158835709095,
-0.02002844028174877,
0.03061440773308277,
0.0009079718729481101,
0.024654386565089226,
-0.02818881720304489,
-0.03532698377966881,
0.032346971333026886,
-0.05658554285764694,
-0.013470686040818691,
-0.025693925097584724,
-0.023684151470661163,
-0.0015582249034196138,
0.0006313030607998371,
-0.06223370134830475,
-0.0034413053654134274,
-0.021812982857227325,
-0.04975924268364906,
0.03520570322871208,
-0.04227456450462341,
-0.016797209158539772,
-0.0650751069188118,
-0.027599746361374855,
0.029314985498785973,
-0.05138785019516945,
-0.06344649940729141,
0.021501120179891586,
0.0073244147934019566,
0.10048871487379074,
-0.03345581144094467,
0.04625946283340454,
-0.001312417327426374,
0.017178373411297798,
-0.0010216713417321444,
0.0038008124101907015,
0.02075611799955368,
0.00965904537588358,
0.01997646503150463,
-0.0024494125973433256,
0.006670371629297733,
0.016225462779402733,
-0.030960921198129654,
0.043556660413742065,
-0.014570863917469978,
-0.04005688056349754,
0.09536033123731613,
-0.016753895208239555,
-0.014077083207666874,
-0.03919060155749321,
0.027773002162575722,
0.02422124706208706,
0.012223239988088608,
-0.05364018306136131,
0.00597734609618783,
-0.08988542854785919,
-0.05180366709828377,
-0.07096582651138306,
-0.039121296256780624,
0.013410045765340328,
-0.08551936596632004,
0.04806132987141609,
0.003456465434283018,
0.03822036460042
] |
724,877 | scipy.sparse._base | isspmatrix | Is `x` of a sparse matrix type?
Parameters
----------
x
object to check for being a sparse matrix
Returns
-------
bool
True if `x` is a sparse matrix, False otherwise
Examples
--------
>>> import numpy as np
>>> from scipy.sparse import csr_array, csr_matrix, isspmatrix
>>> isspmatrix(csr_matrix([[5]]))
True
>>> isspmatrix(csr_array([[5]]))
False
>>> isspmatrix(np.array([[5]]))
False
>>> isspmatrix(5)
False
| def isspmatrix(x):
"""Is `x` of a sparse matrix type?
Parameters
----------
x
object to check for being a sparse matrix
Returns
-------
bool
True if `x` is a sparse matrix, False otherwise
Examples
--------
>>> import numpy as np
>>> from scipy.sparse import csr_array, csr_matrix, isspmatrix
>>> isspmatrix(csr_matrix([[5]]))
True
>>> isspmatrix(csr_array([[5]]))
False
>>> isspmatrix(np.array([[5]]))
False
>>> isspmatrix(5)
False
"""
return isinstance(x, spmatrix)
| (x) | [
0.01486754696816206,
0.0009040146833285689,
0.044950954616069794,
-0.01237434521317482,
0.04308105632662773,
0.01599498651921749,
-0.01642579771578312,
0.06526321172714233,
0.016948269680142403,
0.019505634903907776,
-0.04674752801656723,
-0.030395058915019035,
0.0017702188342809677,
0.00836414098739624,
0.012273517437279224,
-0.021503861993551254,
0.017104094848036766,
-0.0183965265750885,
-0.016049984842538834,
-0.00969782005995512,
-0.0306700449436903,
0.03587643429636955,
0.033346571028232574,
0.03376821428537369,
0.006672980263829231,
0.034831490367650986,
0.05122062563896179,
0.012044362723827362,
0.025353658944368362,
-0.022970451042056084,
-0.054593779146671295,
0.020733904093503952,
-0.015390018932521343,
-0.01386843342334032,
-0.020642241463065147,
0.08242230862379074,
-0.04344770312309265,
-0.03468483313918114,
0.022970451042056084,
0.012722660787403584,
0.0032287875656038523,
0.07164287567138672,
-0.024858685210347176,
0.01125607080757618,
0.01144856121391058,
0.017919884994626045,
0.018268199637532234,
0.010623604990541935,
-0.024528702720999718,
-0.0024290382862091064,
0.02863515168428421,
-0.0293684471398592,
0.005114729516208172,
0.003652723506093025,
-0.06130342558026314,
-0.010192793793976307,
0.015454182401299477,
-0.027186894789338112,
0.014500899240374565,
-0.03882794454693794,
0.021375535055994987,
0.01321763452142477,
0.0016315804095938802,
-0.03275993466377258,
-0.005898437928408384,
-0.04935072362422943,
-0.015032538212835789,
-0.010275289416313171,
0.017021600157022476,
-0.000240469045820646,
-0.06507989019155502,
0.003971248399466276,
-0.05730696767568588,
-0.007236700505018234,
0.06562986224889755,
-0.003703137394040823,
0.01255766861140728,
0.004670169670134783,
-0.049570709466934204,
-0.0195789635181427,
0.0031554580200463533,
0.010376118123531342,
-0.06720644235610962,
-0.017388246953487396,
-0.06764642149209976,
-0.0013829476665705442,
0.039634570479393005,
0.054227132350206375,
-0.02509700506925583,
0.056976985186338425,
0.020605577155947685,
0.0005339300842024386,
0.027186894789338112,
0.013813436031341553,
-0.013593447394669056,
0.0223288182169199,
0.02069723792374134,
-0.03989122435450554,
-0.04319104924798012,
-0.03692138195037842,
-0.020825564861297607,
0.07035961002111435,
0.025555314496159554,
-0.016233308240771294,
-0.03345656394958496,
0.03191664442420006,
0.023227104917168617,
-0.01994561217725277,
0.03930458799004555,
0.02311711013317108,
-0.02847016043961048,
-0.035179805010557175,
-0.03754467889666557,
-0.007456688676029444,
0.003751259995624423,
-0.0819823294878006,
0.029056796804070473,
0.06430993229150772,
-0.04744415730237961,
-0.028781810775399208,
-0.0047939131036400795,
0.008157901465892792,
-0.00904702115803957,
-0.007071709260344505,
0.06225670501589775,
-0.010880257934331894,
0.002953802002593875,
0.000667412590701133,
0.04861743003129959,
0.02680191583931446,
-0.03202664107084274,
-0.012475172989070415,
0.004468513652682304,
0.052210573107004166,
-0.006915884092450142,
-0.0072046187706291676,
0.029130125418305397,
-0.026123618707060814,
-0.03659139946103096,
-0.015472514554858208,
-0.0023133151698857546,
0.060716789215803146,
-0.030706709250807762,
0.0073421117849648,
-0.009124933741986752,
0.022090498358011246,
0.0174799095839262,
0.01857984997332096,
-0.01340095791965723,
0.020917227491736412,
0.017214089632034302,
-0.021558860316872597,
0.04652753844857216,
-0.008629960007965565,
-0.07552933692932129,
-0.046270884573459625,
0.04707751050591469,
-0.03912126272916794,
0.04711417481303215,
-0.028891805559396744,
0.0131168058142066,
0.02456536702811718,
-0.004039994440972805,
0.0015891867224127054,
-0.02326376922428608,
0.0008856822969391942,
-0.05133061856031418,
-0.07024961709976196,
-0.023703746497631073,
0.007346694823354483,
-0.029661763459444046,
-0.03959790617227554,
-0.03791132941842079,
-0.03605975955724716,
0.03486815467476845,
-0.022292153909802437,
-0.041871119290590286,
0.06779307872056961,
0.031495001167058945,
-0.011311068199574947,
0.003471691394224763,
0.0279201902449131,
-0.09180847555398941,
0.009945306926965714,
-0.030523385852575302,
0.03635307773947716,
-0.04267774149775505,
-0.018488189205527306,
0.03583976998925209,
0.01979895308613777,
-0.005715114530175924,
0.00468162726610899,
0.011485225521028042,
-0.02788352593779564,
-0.0042874813079833984,
-0.024308715015649796,
-0.00720920180901885,
-0.04759081453084946,
-0.021192211657762527,
0.04469430074095726,
0.00017745155491866171,
-0.03802132233977318,
0.01358428131788969,
0.037416353821754456,
0.011476059444248676,
-0.032044973224401474,
-0.06174340099096298,
-0.04843410477042198,
-0.034648168832063675,
0.04891074448823929,
-0.035179805010557175,
-0.03180665150284767,
-0.0004302376473788172,
0.03514314070343971,
0.06507989019155502,
0.029441775754094124,
-0.010742764919996262,
-0.05173392966389656,
0.04249441996216774,
-0.043484367430210114,
0.07054293155670166,
0.022017167881131172,
-0.03178831934928894,
0.025646977126598358,
-0.037618011236190796,
-0.02458369918167591,
0.008258730173110962,
0.006856304127722979,
-0.05408047139644623,
0.002259463770315051,
0.0028804726898670197,
-0.01394176296889782,
0.011347733438014984,
0.01923064887523651,
0.006856304127722979,
-0.08337558805942535,
0.011118578724563122,
0.053860485553741455,
0.0016544958343729377,
-0.018790673464536667,
0.008643709123134613,
0.013410123996436596,
0.00026180906570516527,
-0.0558403804898262,
-0.05026734247803688,
0.01782822422683239,
-0.01209936011582613,
0.03582143783569336,
-0.04546426236629486,
0.0008673499687574804,
-0.006416327320039272,
-0.006860887166112661,
0.021503861993551254,
-0.05727030336856842,
0.05334717780351639,
-0.03145833685994148,
-0.0680864006280899,
0.006352163851261139,
-0.0406978465616703,
-0.04762747883796692,
-0.006828805431723595,
0.02143053337931633,
0.05562039092183113,
0.03582143783569336,
0.004200402647256851,
-0.029295116662979126,
0.025756970047950745,
0.07094624638557434,
0.06306333094835281,
0.00018189141701441258,
0.09356838464736938,
0.03508814424276352,
0.025371991097927094,
0.0031554580200463533,
0.01125607080757618,
-0.013721774332225323,
-0.03605975955724716,
0.008836199529469013,
0.06225670501589775,
0.03644473850727081,
-0.02328210137784481,
0.01577499881386757,
-0.0018469856586307287,
-0.002967551350593567,
0.015884993597865105,
-0.02454703487455845,
-0.0008152172667905688,
0.03791132941842079,
-0.021357202902436256,
0.02196217142045498,
-0.02344709262251854,
0.014565062709152699,
0.002497784560546279,
0.0013886765809729695,
-0.05562039092183113,
0.06383328884840012,
0.015316689386963844,
0.0001662802678765729,
-0.005339300725609064,
0.01042194850742817,
0.05316385626792908,
0.00215519848279655,
-0.007296280935406685,
-0.039451245218515396,
0.005912187043577433,
0.014299243688583374,
-0.0908551961183548,
0.023410428315401077,
-0.01642579771578312,
0.07237616926431656,
0.01601332053542137,
0.047407492995262146,
-0.08146902173757553,
-0.029845088720321655,
0.0040193707682192326,
-0.010779430158436298,
-0.008794951252639294,
-0.03285159543156624,
-0.0015422101132571697,
0.032979920506477356,
0.023868737742304802,
-0.05023067444562912,
0.030908364802598953,
-0.021503861993551254,
-0.06526321172714233,
-0.03180665150284767,
0.009124933741986752,
-0.05998349189758301,
-0.044584307819604874,
0.058113593608140945,
0.07604264467954636,
-0.02698523923754692,
0.0133826257660985,
-0.011017750948667526,
-0.014345074072480202,
-0.06449325382709503,
-0.02106388658285141,
-0.00807998888194561,
-0.019872281700372696,
0.03604142740368843,
0.02198050357401371,
-0.020257262513041496,
0.01421674806624651,
-0.06852637231349945,
-0.003847504733130336,
-0.02071557007730007,
-0.044987618923187256,
-0.022842125967144966,
0.004225609824061394,
-0.025023676455020905,
-0.015014206059277058,
-0.038901276886463165,
0.019688958302140236,
-0.013263464905321598,
-0.012209353968501091,
0.056427016854286194,
0.021375535055994987,
-0.028543490916490555,
-0.025371991097927094,
-0.024638697504997253,
0.052173905074596405,
0.021852176636457443,
-0.004560175351798534,
-0.03893794119358063,
-0.07307279855012894,
0.0014058630913496017,
-0.005068898666650057,
-0.016755780205130577,
0.08374223858118057,
0.00743377348408103,
0.017919884994626045,
-0.026875244453549385,
-0.05147727578878403,
0.03736135736107826,
-0.04630754888057709,
0.02639860287308693,
-0.040551189333200455,
0.013611779548227787,
-0.04759081453084946,
-0.05492376163601875,
0.035913098603487015,
-0.049204062670469284,
0.04935072362422943,
-0.032576609402894974,
-0.04561091959476471,
0.0012832654174417257,
-0.02344709262251854,
0.007442939560860395,
-0.0613400898873806,
-0.00914784986525774,
-0.04839744046330452,
-0.013520117849111557,
0.0010002595372498035,
-0.02220049314200878,
-0.009065354242920876,
-0.006352163851261139,
0.0761893019080162,
0.03820464760065079,
0.01807571016252041,
-0.03105502389371395,
0.018222369253635406,
-0.021283874288201332,
-0.03901126980781555,
-0.03275993466377258,
-0.03411652892827988,
0.03275993466377258,
-0.026838580146431923,
-0.03189831227064133,
-0.006448409054428339,
-0.005953434854745865,
0.1223868578672409,
-0.0689663514494896,
-0.0199639443308115,
-0.06401661038398743,
-0.0031233765184879303,
-0.012016864493489265,
0.00834580883383751,
0.04586757346987724,
0.027553541585803032,
0.015280025079846382,
0.0490940697491169,
0.037233032286167145,
0.002509242156520486,
-0.011008583940565586,
-0.022787127643823624,
-0.015041704289615154,
-0.0634666457772255,
-0.02344709262251854,
0.018424024805426598,
0.00030821285326965153,
-0.07816919684410095,
-0.037049707025289536,
0.05243055894970894,
0.009642823599278927,
-0.04821411520242691,
-0.013529283925890923,
-0.028543490916490555,
0.01155855506658554,
-0.059213533997535706,
0.00418207049369812,
0.11160743236541748,
-0.010275289416313171,
-0.004761831369251013,
-0.0025206999853253365,
0.03543645888566971,
0.005751779302954674,
0.028543490916490555,
0.044987618923187256,
0.0417611226439476,
0.06273334473371506,
-0.025261996313929558,
-0.03164165839552879,
-0.007690426427870989,
-0.013199301436543465,
-0.011604386381804943,
-0.022237157449126244,
0.04190778359770775,
-0.018900666385889053,
0.01943230628967285,
0.024345379322767258,
-0.019908946007490158,
0.004631213378161192,
-0.04418099671602249,
-0.050853975117206573,
0.006480490323156118,
0.054227132350206375,
-0.03901126980781555,
0.06189005821943283,
0.0624033659696579,
-0.006517155095934868,
-0.010027802549302578,
0.08579546213150024,
0.0033410731703042984,
-0.08205565810203552,
0.009926974773406982,
0.033511560410261154,
-0.044071003794670105,
0.05800359696149826,
-0.0034762744326144457,
0.06408994644880295,
-0.05433712527155876,
-0.04102782905101776,
0.0023007115814834833,
-0.005206391215324402,
0.039817892014980316,
-0.04194444790482521,
0.017039932310581207,
-0.04231109470129013,
0.027626872062683105,
-0.024253716692328453,
0.0023488341830670834,
-0.022768795490264893,
0.05320052057504654,
0.019688958302140236,
0.07035961002111435,
-0.015261692926287651,
0.0019810409285128117,
0.03748968243598938,
0.0005826254491694272,
0.08249563723802567,
0.022475477308034897,
0.053237184882164,
-0.03701304271817207,
0.0380946509540081,
-0.0195789635181427,
0.010770264081656933,
0.015160865150392056,
-0.009157015942037106,
-0.007717925123870373,
-0.0323566235601902,
-0.05195391923189163,
0.04616089165210724,
-0.021155547350645065,
0.014299243688583374,
-0.028726814314723015,
0.0451342798769474,
-0.025426987558603287,
-0.03670139238238335,
0.014015091583132744,
0.022072166204452515,
0.053273849189281464,
0.019120655953884125,
0.019633961841464043,
0.009991138242185116,
-0.042017776519060135,
0.05591370910406113,
-0.03347489610314369,
0.004445597995072603,
-0.0021322830580174923,
0.06999296694993973,
0.01514253206551075,
0.022603804245591164,
-0.0028850557282567024,
0.10214792937040329,
-0.007974578067660332,
0.04396100714802742,
0.06416327506303787,
-0.026911910623311996,
0.04410766810178757,
-0.02509700506925583,
-0.03012007288634777,
-0.017388246953487396,
0.013575115241110325,
0.028176842257380486,
0.003652723506093025,
0.021118883043527603,
-0.03367655351758003,
-0.03213663399219513,
-0.03583976998925209,
-0.035528119653463364,
-0.04586757346987724,
0.005302635952830315,
-0.0010747348424047232,
-0.041137825697660446,
0.06614316999912262,
0.003008799161761999,
-0.0028392248786985874,
0.0036710558924824,
0.008354974910616875,
-0.01246600691229105,
0.023960398510098457,
-0.001968437572941184,
0.07794921100139618,
-0.0050505660474300385,
-0.03671972453594208,
-0.08242230862379074,
-0.009386169724166393,
-0.0050505660474300385,
0.046270884573459625,
-0.01533502247184515,
0.06658314168453217,
-0.12370678782463074,
-0.010687767527997494,
0.016031652688980103,
0.0004617464146576822,
-0.012896818108856678,
-0.03765467554330826,
0.02029392682015896,
-0.03176998719573021,
0.011595220305025578,
0.050927307456731796,
-0.0032654523383826017,
-0.04234775900840759,
0.012685995548963547,
0.007566682994365692,
-0.0009383878787048161,
-0.08865530788898468,
-0.00409040879458189,
-0.030413391068577766,
-0.006274251267313957,
0.0013508660485967994,
0.007607930805534124,
0.05393381416797638,
-0.012136024422943592,
0.02491368167102337,
0.02496867999434471,
0.042567748576402664,
0.00028343554004095495,
0.07633595913648605,
-0.038534630089998245,
-0.045904237776994705,
0.02397873066365719,
-0.016297470778226852,
-0.016471628099679947,
0.029661763459444046,
0.028855139389634132,
-0.015445016324520111,
0.024418707937002182,
0.03198997303843498,
-0.012035196647047997,
0.007640012539923191,
-0.004298939369618893,
-0.0038268808275461197,
-0.015555010177195072,
-0.00833205971866846,
0.011870205402374268,
0.0049314056523144245,
0.023483756929636,
-0.017122427001595497,
-0.042787738144397736,
0.047040846198797226,
-0.00998197216540575,
0.02916678972542286,
-0.01349261961877346,
-0.007465855218470097,
0.06614316999912262,
0.0017140760319307446,
-0.0212655421346426,
0.009450333192944527,
-0.06331998109817505,
0.025536982342600822,
0.01664578542113304,
0.027113566175103188,
-0.02214549481868744,
-0.0015548135852441192,
-0.005183476023375988,
-0.001656787353567779,
0.04451097920536995,
0.047040846198797226,
0.10926088690757751,
-0.07123956829309464,
0.015124199911952019,
0.04839744046330452,
-0.04612422734498978,
0.0003211027942597866,
-0.05910354107618332,
0.06229337304830551,
-0.02251214161515236,
0.053493838757276535,
0.02419872023165226,
-0.012319348752498627,
0.01921231672167778,
-0.010962753556668758,
-0.04678419232368469,
0.09261509776115417,
0.026691921055316925,
-0.010311954654753208,
-0.012511838227510452,
-0.021852176636457443,
-0.023960398510098457,
0.04399767145514488,
-0.04891074448823929,
0.006159674376249313,
0.03600476309657097,
0.0362614169716835,
-0.014345074072480202,
0.0016728282207623124,
0.005962601397186518,
-0.002504659118130803,
0.03455650433897972,
-0.04784746840596199,
0.06588651239871979,
0.024418707937002182,
-0.04685752093791962,
0.007924163714051247,
0.007167953997850418,
-0.01692993752658367,
-0.040917836129665375,
-0.015160865150392056,
-0.019065657630562782,
-0.00025765562895685434,
-0.006847137585282326,
0.04198111221194267,
0.00901493988931179,
-0.06694979220628738,
-0.041651129722595215,
0.012291849590837955,
0.0008238105801865458,
-0.04337437078356743,
-0.03893794119358063,
0.05675699934363365,
-0.006663814187049866,
0.055510398000478745,
0.019157320261001587,
0.014354241080582142,
0.03930458799004555,
-0.0172415878623724,
0.13895931839942932,
0.028378499671816826,
0.003192122792825103,
0.017021600157022476,
0.072522833943367,
0.041467808187007904,
0.06342998147010803,
-0.0086207939311862,
-0.009679487906396389,
-0.05232056602835655,
0.042971059679985046,
0.02071557007730007,
-0.0003594862064346671,
-0.015371686778962612,
-0.029111793264746666,
0.03688471391797066,
-0.013712608255445957,
0.015619173645973206,
-0.07087291777133942,
-0.04058785364031792,
0.009037855081260204,
0.03512480854988098,
0.011952701024711132,
0.04770081117749214,
-0.02975342608988285,
0.023410428315401077,
0.016086649149656296,
-0.06302666664123535,
-0.03290659189224243,
0.028891805559396744,
-0.015307523310184479,
0.08740870654582977,
-0.04993735998868942,
-0.017415745183825493,
-0.011008583940565586,
-0.04271440580487251,
0.02810351364314556,
0.029331780970096588,
0.014601727947592735,
-0.05910354107618332,
0.01717742532491684,
-0.016187477856874466,
-0.004149988759309053,
0.026618592441082,
0.01976228877902031,
0.006796723697334528,
0.007103790994733572,
-0.055143751204013824,
0.053457170724868774,
-0.0018401109846308827,
0.01837819442152977,
-0.04861743003129959,
0.024235384538769722,
0.04286106675863266,
-0.07043293863534927,
-0.02550031803548336,
-0.024803688749670982,
0.009024105966091156,
0.009065354242920876,
-0.044217661023139954,
-0.000490390753839165,
0.01128356996923685,
-0.03693971410393715,
-0.014840048737823963,
-0.07626263052225113,
-0.0075391847640275955,
0.03901126980781555,
-0.05470377206802368,
0.0027544377371668816,
-0.010834426619112492,
0.02051391452550888
] |
724,878 | markov_clustering.mcl | iterate |
Run a single iteration (expansion + inflation) of the mcl algorithm
:param matrix: The matrix to perform the iteration on
:param expansion: Cluster expansion factor
:param inflation: Cluster inflation factor
| def iterate(matrix, expansion, inflation):
"""
Run a single iteration (expansion + inflation) of the mcl algorithm
:param matrix: The matrix to perform the iteration on
:param expansion: Cluster expansion factor
:param inflation: Cluster inflation factor
"""
# Expansion
matrix = expand(matrix, expansion)
# Inflation
matrix = inflate(matrix, inflation)
return matrix
| (matrix, expansion, inflation) | [
0.08864642679691315,
-0.02943478897213936,
0.0031032550614327192,
0.032459281384944916,
-0.029200751334428787,
-0.006012978497892618,
-0.004433221183717251,
-0.02912873961031437,
0.008029306307435036,
-0.002848963486030698,
-0.0741000548005104,
0.007372199557721615,
-0.059121619910001755,
0.050156161189079285,
-0.048103827983140945,
-0.007318190764635801,
-0.043531082570552826,
0.005589909385889769,
-0.011638893745839596,
0.011818923056125641,
-0.006310026627033949,
0.01641867123544216,
-0.0027049400378018618,
0.08216536790132523,
-0.023439813405275345,
0.03953443467617035,
0.039858486503362656,
-0.012710068374872208,
0.03110906295478344,
-0.025978226214647293,
-0.03838224709033966,
0.009433534927666187,
-0.011080803349614143,
-0.025114087387919426,
-0.03346744552254677,
-0.02347582019865513,
0.013115134090185165,
-0.007772764656692743,
-0.0546208880841732,
-0.015482519753277302,
0.021801548078656197,
0.0003915637207683176,
0.043531082570552826,
-0.024465981870889664,
-0.0026441803202033043,
0.026500312611460686,
0.01664370857179165,
-0.014987438917160034,
0.004219436552375555,
-0.020127275958657265,
-0.012025956995785236,
-0.08619802445173264,
0.05476491153240204,
-0.027058402076363564,
-0.006346032489091158,
0.04464726522564888,
0.004183430690318346,
-0.052208494395017624,
0.007790767587721348,
-0.03831023350358009,
-0.022179609164595604,
-0.04687962681055069,
-0.04572743922472,
0.0685911625623703,
-0.005463888868689537,
-0.012791081331670284,
-0.03578982502222061,
0.03659995645284653,
0.04554741084575653,
0.018380990251898766,
-0.04147874936461449,
0.03870629891753197,
-0.0006751098553650081,
-0.03134309872984886,
-0.041010674089193344,
-0.008006802760064602,
-0.04108268395066261,
-0.004514234606176615,
0.015383503399789333,
-0.028984716162085533,
-0.07154364138841629,
0.005868955049663782,
0.008956457488238811,
-0.014123298227787018,
-0.02803056128323078,
-0.030532969161868095,
0.013052123598754406,
0.0025609168224036694,
0.022611679509282112,
0.027778519317507744,
-0.017498847097158432,
-0.009640568867325783,
0.007907786406576633,
0.04705965891480446,
0.018092943355441093,
0.07064349204301834,
-0.01190893817692995,
-0.008492882363498211,
-0.015455515123903751,
-0.018741048872470856,
0.052136484533548355,
0.06373036652803421,
0.05040820315480232,
-0.03596985340118408,
-0.016382666304707527,
-0.03128908947110176,
-0.03551977872848511,
-0.027454467490315437,
0.03888632729649544,
0.012926103547215462,
-0.06157001852989197,
0.030767006799578667,
-0.06977935135364532,
-0.02257567271590233,
-0.030604980885982513,
0.01769687980413437,
-0.018867069855332375,
-0.0022976237814873457,
-0.005864454433321953,
0.03598785772919655,
0.0314331129193306,
-0.06617876887321472,
0.04266694188117981,
-0.015482519753277302,
0.005994975566864014,
0.022791707888245583,
0.010819760151207447,
0.034871675074100494,
0.03647393360733986,
-0.033791497349739075,
-0.00824534147977829,
-0.02497006393969059,
-0.006449549458920956,
0.06315427273511887,
-0.023871883749961853,
-0.025240106508135796,
-0.03188318759202957,
-0.03265731409192085,
-0.024051913991570473,
0.05465689301490784,
-0.001076237647794187,
-0.02437596581876278,
-0.019641196355223656,
0.057861413806676865,
-0.009541552513837814,
-0.018615029752254486,
-0.00452773692086339,
0.010036633349955082,
-0.035717811435461044,
-0.03283734247088432,
-0.031379107385873795,
0.05354071035981178,
0.04158676788210869,
-0.006656582932919264,
0.002486654557287693,
0.04705965891480446,
0.03283734247088432,
-0.002434896305203438,
0.009154489263892174,
0.005103830713778734,
-0.01973121054470539,
0.030100898817181587,
-0.0701754167675972,
0.045043330639600754,
0.0005741246859543025,
-0.004550240468233824,
-0.051956452429294586,
-0.07640442997217178,
-0.06571069359779358,
-0.011872932314872742,
-0.008222837932407856,
-0.035825829952955246,
0.02696838788688183,
-0.06196608394384384,
0.044971317052841187,
0.08576595783233643,
-0.0317031592130661,
0.029938871040940285,
0.026878373697400093,
0.037338074296712875,
-0.10830562561750412,
-0.003616338362917304,
-0.027652500197291374,
-0.0596977137029171,
-0.013160141184926033,
0.02797655202448368,
0.026752352714538574,
-0.05782540887594223,
0.08166129142045975,
-0.024718021973967552,
0.007381201256066561,
-0.013466191478073597,
0.029812851920723915,
0.034745652228593826,
0.0044737281277775764,
-0.031865183264017105,
-0.01546451635658741,
0.04306300729513168,
0.04309901222586632,
0.0405425988137722,
-0.09289511293172836,
0.012097968719899654,
0.05062423646450043,
0.03971446305513382,
0.053468700498342514,
0.03416955843567848,
-0.02833661064505577,
0.03215323016047478,
-0.04929202049970627,
0.023151766508817673,
-0.023637846112251282,
0.0006576695013791323,
0.05116432532668114,
0.048283856362104416,
0.024898052215576172,
0.00591396214440465,
-0.005540401674807072,
-0.0652066096663475,
0.0032472782768309116,
-0.041190702468156815,
0.0016708968905732036,
-0.0065800705924630165,
-0.0473116971552372,
-0.051488377153873444,
-0.04687962681055069,
-0.012692064978182316,
0.011296838521957397,
0.007669248152524233,
-0.035411763936281204,
0.007682750001549721,
-0.04785178601741791,
-0.03418756276369095,
0.01082876231521368,
0.006044483743607998,
0.00488779554143548,
-0.06326229125261307,
-0.03244127705693245,
0.05519698187708855,
0.01649068295955658,
0.016346659511327744,
-0.024087918922305107,
0.0022211114410310984,
-0.01721080020070076,
0.018047936260700226,
-0.0193171426653862,
0.0012872094521299005,
-0.010621728375554085,
0.07734058797359467,
-0.024646010249853134,
0.030712997540831566,
-0.04734770581126213,
-0.05138036236166954,
-0.011476867832243443,
-0.008276847191154957,
0.040290556848049164,
-0.0703914538025856,
-0.04061460867524147,
0.0351957269012928,
0.049256015568971634,
-0.023979902267456055,
0.06769101321697235,
-0.0272024255245924,
0.004032656084746122,
0.03744609281420708,
-0.053648728877305984,
0.0009226501570083201,
-0.035717811435461044,
-0.008083315566182137,
0.014942431822419167,
0.0070256432518363,
0.053288672119379044,
0.040470585227012634,
-0.004455725196748972,
0.025402134284377098,
0.0100546358153224,
0.034511614590883255,
0.010936779901385307,
0.03067699261009693,
-0.0932551771402359,
-0.02997487783432007,
0.014780404977500439,
-0.02990286611020565,
-0.08050910383462906,
0.00877192709594965,
-0.09311114996671677,
-0.03136110305786133,
-0.0043207029812037945,
0.02869666926562786,
0.06175004690885544,
-0.03269331902265549,
0.028804687783122063,
0.023565834388136864,
0.044611260294914246,
-0.00469426391646266,
0.05426082760095596,
-0.04691563546657562,
-0.03359346464276314,
-0.0023178772535175085,
-0.029578812420368195,
0.02599623054265976,
0.0386342853307724,
-0.08677411824464798,
-0.06751098483800888,
-0.05530500039458275,
0.04410717636346817,
0.01071174256503582,
0.015680551528930664,
0.044251199811697006,
-0.044323213398456573,
0.06412643194198608,
0.009973622858524323,
0.005270357709378004,
-0.03470964729785919,
-0.04662758857011795,
-0.025186099112033844,
-0.061281971633434296,
0.03038894571363926,
0.03690600395202637,
0.03737408295273781,
0.03539375960826874,
0.04687962681055069,
0.008029306307435036,
0.0036658465396612883,
0.06938329339027405,
-0.052748583257198334,
-0.025492148473858833,
0.06416244059801102,
0.003089752746745944,
0.01504144724458456,
-0.018741048872470856,
0.03215323016047478,
-0.024393970146775246,
-0.04000250995159149,
0.043423064053058624,
0.030226917937397957,
0.02695038542151451,
-0.008290348574519157,
-0.03202721104025841,
-0.04000250995159149,
-0.0403265617787838,
0.05469289794564247,
0.03038894571363926,
-0.03116307035088539,
-0.015320492908358574,
-0.007871780544519424,
0.04464726522564888,
0.04061460867524147,
0.0015471267979592085,
-0.002862465800717473,
0.002092840615659952,
-0.03013690374791622,
0.041190702468156815,
0.004138423595577478,
-0.006845613941550255,
0.011341845616698265,
0.11593886464834213,
-0.015842577442526817,
-0.09289511293172836,
-0.04990411922335625,
-0.0031347600743174553,
0.02702239714562893,
-0.001049795770086348,
0.009442536160349846,
-0.0029007219709455967,
-0.02388988807797432,
-0.05699727311730385,
-0.06545864790678024,
0.014456352218985558,
0.087638258934021,
0.007120158523321152,
0.029938871040940285,
-0.01191793940961361,
0.012728070840239525,
0.03470964729785919,
-0.06844713538885117,
0.02497006393969059,
-0.03978647291660309,
0.011575883254408836,
-0.05076825991272926,
0.04842787981033325,
0.05127234384417534,
-0.02406991645693779,
0.01757085882127285,
-0.03283734247088432,
0.010117646306753159,
-0.048895955085754395,
0.043351054191589355,
0.014663386158645153,
-0.03211722522974014,
0.004277945961803198,
-0.033845506608486176,
-0.03773413971066475,
0.01567154936492443,
0.0033305420074611902,
-0.010252668522298336,
-0.020289301872253418,
0.05847351625561714,
0.0016191385220736265,
-0.05350470542907715,
-0.008767426945269108,
0.0012275747722014785,
0.012872094288468361,
-0.04140673950314522,
0.008303850889205933,
0.00041322348988614976,
-0.042270876467227936,
-0.007781766355037689,
-0.007628741208463907,
0.039930496364831924,
0.017129788175225258,
0.008497382514178753,
-0.015392504632472992,
0.020541341975331306,
-0.011323842220008373,
-0.017453840002417564,
-0.01991124078631401,
0.015581535175442696,
-0.0193171426653862,
0.0012770828325301409,
0.01926313526928425,
0.06131797656416893,
-0.02401590719819069,
0.02930876985192299,
0.03551977872848511,
-0.048463884741067886,
-0.055701062083244324,
0.002027579816058278,
-0.07082352787256241,
-0.053216658532619476,
-0.0005670922691933811,
-0.09339919686317444,
-0.04144274443387985,
0.007345195394009352,
-0.0056349169462919235,
0.015482519753277302,
-0.037338074296712875,
-0.0580054372549057,
-0.010540715418756008,
0.0011949444888159633,
-0.044863298535346985,
0.03723005950450897,
-0.008749423548579216,
0.031865183264017105,
-0.10016830265522003,
-0.052316512912511826,
0.03953443467617035,
0.00735869724303484,
0.016535690054297447,
-0.010387689806520939,
0.031739164143800735,
0.0030514965765178204,
-0.0004970496520400047,
-0.04288297891616821,
0.0007150538731366396,
0.034385595470666885,
-0.00721917487680912,
0.019533177837729454,
0.004289197735488415,
0.0047392710112035275,
0.03773413971066475,
0.00774576049298048,
-0.008128322660923004,
0.002152475295588374,
0.01615762896835804,
0.05181243270635605,
0.027472469955682755,
-0.010756750591099262,
0.061462000012397766,
-0.022413646802306175,
-0.06743897497653961,
-0.0021333470940589905,
0.001956693362444639,
-0.0065080588683485985,
-0.046123504638671875,
0.05559304729104042,
-0.01865103468298912,
-0.05861753970384598,
0.024141928181052208,
-0.00148524169344455,
-0.03483567014336586,
-0.07914087921380997,
-0.04151475429534912,
0.04471927508711815,
-0.02551015093922615,
-0.022467656061053276,
-0.03442160040140152,
0.0352497361600399,
-0.05296461656689644,
0.013412182219326496,
-0.04803181439638138,
-0.028930706903338432,
0.06315427273511887,
0.06603474169969559,
0.05174041911959648,
0.039858486503362656,
0.01299811527132988,
-0.03067699261009693,
0.013592211529612541,
0.041010674089193344,
-0.011899936012923717,
0.02635628916323185,
0.09627966582775116,
-0.022827714681625366,
0.019641196355223656,
-0.014636381529271603,
0.032765332609415054,
0.019587187096476555,
-0.035591792315244675,
-0.005724931601434946,
0.001041919575072825,
0.03501569852232933,
-0.04655557498335838,
0.006539564114063978,
0.03939041122794151,
-0.05890558660030365,
0.011296838521957397,
-0.0333414264023304,
-0.001529123866930604,
0.029704833403229713,
0.023439813405275345,
0.03881431743502617,
-0.018867069855332375,
-0.022899726405739784,
0.03391752019524574,
-0.002810707315802574,
0.018669037148356438,
0.03249528631567955,
-0.03098304197192192,
-0.04122670739889145,
0.04302700236439705,
-0.036978017538785934,
0.024718021973967552,
0.015455515123903751,
0.04896796867251396,
0.008866442367434502,
-0.007646744139492512,
0.06578270345926285,
-0.06066987290978432,
0.004192432388663292,
0.007021142635494471,
-0.02923675812780857,
-0.03838224709033966,
0.02779652364552021,
-0.017219802364706993,
-0.05361272394657135,
0.004757273942232132,
-0.006980635691434145,
-0.035825829952955246,
0.011332844384014606,
-0.001333341933786869,
-0.03431358188390732,
0.012719069607555866,
-0.06722293794155121,
0.014654384925961494,
-0.004086664877831936,
0.03296336531639099,
-0.01396127138286829,
-0.0006874868413433433,
-0.001580882235430181,
0.012845090590417385,
0.028858695179224014,
0.028570648282766342,
0.015788568183779716,
0.02569018118083477,
0.04655557498335838,
-0.005121833644807339,
-0.012539040297269821,
0.05339668691158295,
0.03899434581398964,
0.024393970146775246,
0.04068662226200104,
-0.06513459980487823,
0.0526045598089695,
-0.004518735222518444,
-0.03690600395202637,
2.3734331477953674e-7,
0.012386015616357327,
-0.08929453045129776,
0.03634791448712349,
-0.05552103370428085,
0.02822859399020672,
-0.05174041911959648,
0.0051083313301205635,
0.007237177807837725,
0.0018216713797301054,
0.04288297891616821,
-0.06283022463321686,
0.021927567198872566,
-0.017399830743670464,
-0.031505126506090164,
0.014906425960361958,
-0.05692526325583458,
-0.013574209064245224,
-0.012043959461152554,
-0.03321540355682373,
0.006589072290807962,
-0.010000627487897873,
0.004327454138547182,
0.025294115766882896,
-0.0006312277400866151,
-0.05494493991136551,
0.025438139215111732,
-0.019929243251681328,
0.05807745084166527,
-0.043531082570552826,
0.033791497349739075,
-0.04587146267294884,
-0.028858695179224014,
0.03463763743638992,
0.05411680415272713,
-0.010477704927325249,
-0.028084570541977882,
0.008146325126290321,
0.006742096971720457,
-0.017561858519911766,
-0.015815572813153267,
0.0038188714534044266,
0.018453001976013184,
0.036437928676605225,
-0.007084152661263943,
-0.03141511231660843,
0.024646010249853134,
-0.05314464867115021,
-0.03199120610952377,
0.009100480936467648,
0.07719656080007553,
-0.0011870681773871183,
-0.042270876467227936,
0.033539459109306335,
0.018921079114079475,
-0.03118107281625271,
0.028930706903338432,
0.022413646802306175,
0.04162277281284332,
0.013538203202188015,
-0.015689553692936897,
0.025492148473858833,
0.011980949901044369,
-0.05516097694635391,
0.0007589359884150326,
-0.01859702542424202,
0.04428720474243164,
0.011368850246071815,
-0.04749172925949097,
-0.02689637616276741,
-0.03092903271317482,
0.038778308779001236,
-0.005859953351318836,
0.02695038542151451,
0.017066776752471924,
-0.012034958228468895,
0.09339919686317444,
0.01190893817692995,
0.03442160040140152,
0.015428510494530201,
-0.06938329339027405,
-0.05732132866978645,
0.02545614168047905,
0.04777977615594864,
-0.00432970467954874,
0.01695876009762287,
0.029272763058543205,
0.008384864777326584,
-0.045331377536058426,
0.04273895546793938,
-0.017687877640128136,
0.02984885685145855,
-0.02466401271522045,
0.011512873694300652,
0.011674899607896805,
-0.006742096971720457,
0.010621728375554085,
0.04691563546657562,
-0.02280971221625805,
-0.018398994579911232,
0.03726606443524361,
-0.006607075221836567,
-0.0028084570076316595,
0.04976009577512741,
0.08022105693817139,
-0.017705881968140602,
0.012106969952583313,
-0.015833577141165733,
0.07453212887048721,
-0.025240106508135796,
0.012476029805839062,
0.012386015616357327,
0.012701067142188549,
-0.04633954167366028,
-0.03726606443524361,
0.03496168926358223,
-0.007921288721263409,
0.054548874497413635,
-0.025618169456720352,
-0.002358383731916547,
0.10009628534317017,
-0.033737488090991974,
0.014888422563672066,
0.05300062522292137,
0.02684236690402031,
0.06722293794155121,
0.05879756808280945,
-0.0060894908383488655,
0.04464726522564888,
0.006845613941550255,
-0.021099433302879333,
-0.05516097694635391,
0.022665688768029213,
-0.027706507593393326,
0.03098304197192192,
0.04695164039731026,
0.05076825991272926,
-0.008974459953606129,
0.03838224709033966,
0.016193635761737823,
0.03766212984919548,
-0.013700229115784168,
0.04489930719137192,
0.015482519753277302,
-0.012061962857842445,
0.04230688512325287,
-0.010243667289614677,
0.011413857340812683,
0.031793173402547836,
-0.008290348574519157,
0.013529201038181782,
-0.011899936012923717,
0.031091058626770973,
0.011755912564694881,
0.02617625892162323,
-0.018218964338302612,
-0.014186308719217777,
0.012332006357610226,
0.016445675864815712,
0.028498636558651924,
-0.0634063184261322,
0.0034318084362894297,
0.037806153297424316,
-0.029146742075681686,
-0.007525224704295397,
-0.023799872025847435,
-0.019569184631109238,
-0.012034958228468895,
0.06934728473424911,
-0.02304374985396862,
0.030100898817181587,
-0.02255767025053501,
0.028786683455109596,
0.014555368572473526,
0.01847100630402565,
0.03436759114265442,
-0.0350336991250515,
0.007237177807837725,
0.06077789142727852,
0.02972283586859703,
-0.03388151153922081,
0.0456194244325161,
-0.056709226220846176,
-0.011251830495893955,
-0.05692526325583458,
-0.019029095768928528,
-0.055989108979701996,
0.013754238374531269,
0.028174584731459618,
-0.07190369814634323,
0.009982624091207981,
0.061281971633434296,
0.003998900763690472
] |
724,880 | markov_clustering.modularity | modularity |
Compute the modularity
:param matrix: The adjacency matrix
:param clusters: The clusters returned by get_clusters
:returns: modularity value
| def modularity(matrix, clusters):
"""
Compute the modularity
:param matrix: The adjacency matrix
:param clusters: The clusters returned by get_clusters
:returns: modularity value
"""
matrix = convert_to_adjacency_matrix(matrix)
m = matrix.sum()
if isspmatrix(matrix):
matrix_2 = matrix.tocsr(copy=True)
else :
matrix_2 = matrix
if is_undirected(matrix):
expected = lambda i,j : (( matrix_2[i,:].sum() + matrix[:,i].sum() )*
( matrix[:,j].sum() + matrix_2[j,:].sum() ))
else:
expected = lambda i,j : ( matrix_2[i,:].sum()*matrix[:,j].sum() )
delta = delta_matrix(matrix, clusters)
indices = np.array(delta.nonzero())
Q = sum( matrix[i, j] - expected(i, j)/m for i, j in indices.T )/m
return Q
| (matrix, clusters) | [
0.027341030538082123,
0.0023075148928910494,
-0.006432394031435251,
0.062023136764764786,
0.07878227531909943,
0.0012421637075021863,
-0.003502677893266082,
0.013670515269041061,
-0.024279264733195305,
0.07061757147312164,
-0.05500435456633568,
0.010089502669870853,
-0.03167405724525452,
0.01527301874011755,
-0.0012679023202508688,
0.004852272104471922,
-0.007072499953210354,
0.023652588948607445,
-0.005572950933128595,
-0.011038471013307571,
-0.0220948476344347,
-0.005899718031287193,
0.006884496659040451,
0.0347716324031353,
-0.011065328493714333,
-0.04139650613069534,
0.013482511974871159,
-0.029382208362221718,
-0.014726914465427399,
-0.014538911171257496,
-0.025514714419841766,
-0.028486955910921097,
-0.038961417973041534,
0.02035805583000183,
-0.04737679660320282,
-0.015711693093180656,
0.02341982163488865,
0.058979276567697525,
-0.03437772020697594,
-0.03964180871844292,
-0.015881789848208427,
-0.002768570324406028,
0.0010496843606233597,
-0.05110105127096176,
0.04401064291596413,
0.006606968119740486,
0.036472614854574203,
0.028504859656095505,
-0.04307958111166954,
-0.00073130993405357,
0.019212132319808006,
-0.0649595707654953,
0.04264986142516136,
-0.0012511162785813212,
-0.01516558788716793,
0.043939024209976196,
0.0441896952688694,
-0.02811094932258129,
0.007914037443697453,
-0.0027282838709652424,
0.04569372162222862,
0.014986537396907806,
0.02119959518313408,
0.030456511303782463,
-0.0683257207274437,
-0.027036644518375397,
-0.014431480318307877,
0.022130656987428665,
0.0019773903768509626,
-0.015810171142220497,
-0.05754687264561653,
-0.006257819477468729,
0.09897918999195099,
-0.016597993671894073,
0.03470001369714737,
0.004861224442720413,
0.013079648837447166,
-0.025819100439548492,
-0.0065935393795371056,
0.03949856758117676,
0.012632021680474281,
-0.05102942883968353,
0.06367040425539017,
-0.05310641601681709,
-0.03441353142261505,
-0.05833469331264496,
0.007828989066183567,
0.005863908212631941,
0.0461234413087368,
-0.03906884789466858,
-0.008061754517257214,
-0.006280201021581888,
0.003616822650656104,
0.01367946807295084,
-0.017296290025115013,
0.017779726535081863,
0.006472680252045393,
-0.033357132226228714,
-0.002408230910077691,
-0.04988350346684456,
0.05009836703538895,
0.09597113728523254,
-0.0008605620823800564,
-0.007493268698453903,
-0.018728695809841156,
-0.039713431149721146,
-0.03810197487473488,
-0.009051009081304073,
0.036741189658641815,
0.030008886009454727,
-0.07548774778842926,
0.03364361450076103,
-0.0147895822301507,
0.004406883381307125,
0.010680370032787323,
-0.03727833926677704,
0.031477101147174835,
0.008491476066410542,
0.037994544953107834,
-0.007596223149448633,
0.013509370386600494,
0.03339294344186783,
0.012766310013830662,
0.005170086864382029,
-0.00952549371868372,
-0.015326733700931072,
0.03201425075531006,
0.02667854353785515,
-0.022739429026842117,
0.023509347811341286,
-0.005429710261523724,
-0.024279264733195305,
0.0037466343492269516,
0.054968543350696564,
0.03545202314853668,
-0.008213947527110577,
-0.032175399363040924,
-0.012148585170507431,
0.05242602527141571,
0.02977611869573593,
0.007090405095368624,
-0.0014928346499800682,
-0.022327613085508347,
-0.015183493494987488,
-0.000984778511337936,
-0.022882670164108276,
0.01427033543586731,
0.00011876092321472242,
-0.03607870265841484,
-0.05153077095746994,
0.03720672056078911,
-0.0668933168053627,
0.02562214434146881,
-0.036400992423295975,
0.009064437821507454,
0.05518340319395065,
0.047269366681575775,
-0.09532655775547028,
-0.02596234157681465,
-0.04204108938574791,
-0.010295411571860313,
-0.007296313066035509,
-0.0027954280376434326,
0.056150276213884354,
-0.016991904005408287,
-0.010814658366143703,
0.03455677255988121,
-0.03407333418726921,
-0.11115463078022003,
-0.03989247977733612,
-0.016481610015034676,
0.05332127586007118,
-0.04436874762177467,
0.001897936686873436,
-0.005035798996686935,
0.032999031245708466,
-0.03949856758117676,
-0.011360762640833855,
0.006893448997288942,
-0.026374157518148422,
0.01201429683715105,
-0.048451099544763565,
0.02035805583000183,
-0.03102947399020195,
-0.005420757923275232,
0.016642756760120392,
0.04676802456378937,
-0.003258721437305212,
0.03931951895356178,
0.03233654424548149,
-0.0065487767569720745,
-0.04426131397485733,
0.0065040141344070435,
0.04146812483668327,
0.021432360634207726,
0.0009808617178350687,
-0.026642734184861183,
0.01755591481924057,
-0.0010810181265696883,
0.06159341707825661,
0.017466388642787933,
0.0253535695374012,
0.010152170434594154,
0.06177246570587158,
0.02798561379313469,
0.008652621880173683,
0.005438663065433502,
0.0072828843258321285,
0.007922990247607231,
-0.03928370773792267,
-0.0584421269595623,
-0.018388500437140465,
0.050886187702417374,
0.022524569183588028,
0.02085939794778824,
0.031817298382520676,
-0.000814680359326303,
-0.012802120298147202,
-0.005026846192777157,
-0.04676802456378937,
-0.04368835315108299,
0.05414491146802902,
-0.009632923640310764,
0.03613241761922836,
-0.018406404182314873,
-0.02576538547873497,
0.03324970230460167,
0.029471732676029205,
-0.012802120298147202,
0.01163829118013382,
0.034538865089416504,
0.014556815847754478,
0.012041155248880386,
-0.037779681384563446,
0.011915819719433784,
-0.010904183611273766,
-0.05858536437153816,
0.04440455511212349,
-0.03491487354040146,
0.008124422281980515,
-0.017663344740867615,
-0.0383884534239769,
0.02230970747768879,
0.047197744250297546,
-0.010367031209170818,
-0.045335620641708374,
-0.009507588110864162,
0.0029140489641577005,
-0.013276604004204273,
0.05514759197831154,
-0.04673221334815025,
-0.08444027602672577,
-0.002974478527903557,
-0.053285468369722366,
0.043187011033296585,
-0.07398372143507004,
-0.021486075595021248,
0.11695586889982224,
0.0012611878337338567,
-0.003330341773107648,
-0.001967318821698427,
-0.0707608088850975,
0.01540730707347393,
-0.033840570598840714,
-0.028522765263915062,
0.011414477601647377,
0.01299012266099453,
0.07828093320131302,
0.03249768912792206,
-0.01208591740578413,
0.046159252524375916,
0.006687541026622057,
0.027484271675348282,
-0.04673221334815025,
-0.012614117003977299,
-0.07348237931728363,
0.030420701950788498,
-0.010196933522820473,
-0.02410021424293518,
0.059946149587631226,
-0.057045530527830124,
-0.06413593888282776,
-0.03378685191273689,
0.052676696330308914,
-0.0272873155772686,
0.04247080907225609,
-0.0017670058878138661,
0.0022571568842977285,
0.03151291236281395,
0.037779681384563446,
0.028093043714761734,
-0.010017883032560349,
-0.014395670965313911,
-0.007806607522070408,
-0.06975812464952469,
0.04218432679772377,
-0.008603382855653763,
0.027860278263688087,
0.000017109476175392047,
0.09310632944107056,
-0.006293629761785269,
-0.030295366421341896,
-0.006007148418575525,
-0.04938216507434845,
0.05421653017401695,
0.02950754389166832,
0.030026789754629135,
0.007587270345538855,
0.011835246346890926,
0.04777070879936218,
-0.007976705208420753,
0.05081456899642944,
-0.05797659233212471,
0.01533568650484085,
-0.057654302567243576,
0.014350907877087593,
0.036526329815387726,
-0.036526329815387726,
0.06836152821779251,
0.03262302279472351,
0.047484226524829865,
0.02846905030310154,
0.0008303473005071282,
0.06531766802072525,
-0.015729596838355064,
-0.05110105127096176,
0.0318710133433342,
-0.03727833926677704,
0.07405533641576767,
-0.010286458767950535,
-0.01256935391575098,
-0.02361677773296833,
0.0115308603271842,
0.022327613085508347,
-0.03892560675740242,
-0.036741189658641815,
0.03516554459929466,
-0.07029527425765991,
-0.01965975947678089,
-0.006897925399243832,
0.006562205497175455,
-0.03756482154130936,
-0.004299452994018793,
-0.020411770790815353,
-0.017860300838947296,
0.0016069794073700905,
0.002596234204247594,
0.030241651460528374,
-0.04483427852392197,
0.02014319598674774,
0.03095785342156887,
0.04759165644645691,
0.034520961344242096,
0.06889868527650833,
-0.021074259653687477,
0.070510134100914,
0.04626668244600296,
-0.055362455546855927,
-0.027179885655641556,
-0.02667854353785515,
0.016436846926808357,
-0.013142316602170467,
0.04204108938574791,
-0.0014704533386975527,
-0.02134283445775509,
0.0067904950119555,
-0.049704454839229584,
0.018048303201794624,
0.1125154122710228,
-0.06632035225629807,
-0.014565768651664257,
-0.04673221334815025,
-0.010796752758324146,
0.046445734798908234,
0.001088851597160101,
0.02078777737915516,
-0.07663366943597794,
0.00894805509597063,
0.009982072748243809,
-0.011718863621354103,
-0.02984773926436901,
-0.0072381217032670975,
-0.002696949988603592,
-0.03620403632521629,
-0.015093968249857426,
0.03124433383345604,
0.05611446872353554,
-0.026768069714307785,
-0.0013932377332821488,
-0.03706347942352295,
-0.0321216844022274,
0.01624884456396103,
-0.006571158301085234,
-0.02528194896876812,
-0.0767769068479538,
0.040895164012908936,
0.0367053784430027,
-0.03358989953994751,
-0.0272873155772686,
-0.013491464778780937,
0.0033169128000736237,
-0.03650842234492302,
-0.08286463469266891,
-0.011315999552607536,
-0.055935416370630264,
0.030528131872415543,
-0.05500435456633568,
0.004829890560358763,
0.00209489231929183,
0.015604262240231037,
-0.037779681384563446,
0.03095785342156887,
-0.030599752441048622,
-0.01222020573914051,
0.017645439133048058,
-0.020465487614274025,
0.025729576125741005,
-0.06410012394189835,
0.04071611166000366,
0.017645439133048058,
0.045192379504442215,
-0.06130693480372429,
0.008930150419473648,
-0.010922088287770748,
0.03699186071753502,
-0.07011622935533524,
-0.03394800052046776,
-0.02229180373251438,
-0.0458727702498436,
0.0393553264439106,
-0.023742113262414932,
0.014010711573064327,
-0.00905548594892025,
-0.028916677460074425,
0.013240793719887733,
-0.016427895054221153,
-0.031351763755083084,
0.04286472126841545,
-0.010402841493487358,
-0.025031277909874916,
0.052963174879550934,
0.014010711573064327,
0.03421657532453537,
-0.03305274620652199,
0.007699177134782076,
-0.009221107698976994,
0.006468203850090504,
0.00016604148549959064,
-0.018889840692281723,
-0.03117271512746811,
-0.01416290458291769,
-0.029955171048641205,
-0.00234556314535439,
-0.015398354269564152,
-0.042363379150629044,
-0.00623543793335557,
0.002187774982303381,
-0.02173674665391445,
0.029400113970041275,
0.06707236915826797,
0.02286476455628872,
0.015783313661813736,
-0.04633830115199089,
0.049776073545217514,
-0.0036750142462551594,
-0.06431498378515244,
0.001709933509118855,
-0.030563943088054657,
0.01939118281006813,
-0.04565791040658951,
0.0992656722664833,
-0.010367031209170818,
-0.004384502302855253,
-0.05769011378288269,
-0.024547841399908066,
0.024350885301828384,
-0.06614129990339279,
-0.024279264733195305,
-0.009623970836400986,
0.05428814888000488,
-0.05310641601681709,
-0.023939069360494614,
0.04938216507434845,
-0.0170277152210474,
-0.015523689799010754,
-0.022255992516875267,
-0.02023272030055523,
-0.020035766065120697,
0.06152179464697838,
-0.06299000978469849,
-0.029185252264142036,
-0.012068012729287148,
0.08966855704784393,
0.04053706303238869,
0.025031277909874916,
-0.008003562688827515,
0.02023272030055523,
0.031763579696416855,
-0.03226492181420326,
0.01946280337870121,
0.019767189398407936,
0.061271123588085175,
-0.022954290732741356,
0.014082332141697407,
-0.005559522192925215,
0.018075160682201385,
0.04777070879936218,
-0.01863916963338852,
0.058012403547763824,
0.02146816998720169,
-0.005071609281003475,
-0.05339289829134941,
0.07477154582738876,
0.047197744250297546,
-0.017421625554561615,
0.002291847951710224,
-0.034467246383428574,
0.06384945660829544,
0.06234543025493622,
0.0068084001541137695,
0.022112753242254257,
-0.012479828670620918,
-0.00905548594892025,
-0.008151279762387276,
-0.031280145049095154,
-0.00418978463858366,
-0.002121750032529235,
-0.011262284591794014,
-0.01658903993666172,
0.0012779738754034042,
-0.016777044162154198,
0.01673228107392788,
-0.037099290639162064,
0.008034897036850452,
0.024619461968541145,
0.03942694887518883,
0.03609660640358925,
-0.008939102292060852,
0.0017446245765313506,
0.013706325553357601,
-0.006902401801198721,
-0.04114583507180214,
0.062166377902030945,
0.04834366962313652,
0.012658879160881042,
0.03419867157936096,
0.027537986636161804,
-0.00729183666408062,
0.006544300355017185,
-0.013580990023911,
-0.0020098432432860136,
0.06707236915826797,
-0.061808276921510696,
-0.021038448438048363,
0.108647920191288,
0.06739465892314911,
-0.04529980942606926,
-0.045622099190950394,
0.037636443972587585,
0.0017435054760426283,
0.025657955557107925,
-0.0053401850163936615,
0.0659264400601387,
0.012721546925604343,
0.004227832891047001,
-0.06116369366645813,
0.018961461260914803,
-0.02721569500863552,
-0.026839688420295715,
0.022954290732741356,
0.01517454069107771,
-0.036042891442775726,
0.0449058972299099,
0.0070232609286904335,
0.012721546925604343,
0.0002811654412653297,
0.01651742123067379,
-0.06538929045200348,
0.030635561794042587,
-0.04064449295401573,
-0.057117149233818054,
-0.05640094727277756,
-0.006745732389390469,
0.002705902559682727,
-0.03856750577688217,
0.057869162410497665,
-0.05153077095746994,
0.031333860009908676,
0.04759165644645691,
-0.008455665782094002,
-0.05715296044945717,
-0.12662459909915924,
0.016768092289566994,
-0.014968632720410824,
-0.02818256989121437,
-0.027824467048048973,
-0.019695568829774857,
0.004735888913273811,
0.030707182362675667,
-0.005613237153738737,
-0.013446702621877193,
-0.0029498590156435966,
0.02085939794778824,
0.006835257634520531,
0.013446702621877193,
0.0034422483295202255,
-0.04121745377779007,
0.007815560325980186,
0.03557736054062843,
-0.027591701596975327,
-0.013652610592544079,
0.020680347457528114,
-0.026445778086781502,
0.015702739357948303,
-0.0029946218710392714,
0.011441335082054138,
-0.021289119496941566,
0.01796773076057434,
0.00948968343436718,
0.003106528427451849,
-0.0015823598951101303,
0.036400992423295975,
0.05278412625193596,
-0.03421657532453537,
-0.010832563042640686,
0.011933724395930767,
-0.012918503023684025,
-0.0688270628452301,
0.02583700604736805,
-0.021038448438048363,
-0.03620403632521629,
0.012256015092134476,
0.01832583174109459,
0.0022370137739926577,
0.03724253177642822,
-0.07187092304229736,
0.04895244166254997,
-0.04476265609264374,
-0.020447582006454468,
0.029597068205475807,
-0.01513873040676117,
0.04232756793498993,
-0.032515592873096466,
-0.032103776931762695,
-0.017878204584121704,
-0.023939069360494614,
0.056544188410043716,
-0.008352711796760559,
0.058084022253751755,
0.00009833796502789482,
0.005411805119365454,
0.002399278338998556,
0.02569376491010189,
-0.018997272476553917,
0.05210373178124428,
-0.04923892393708229,
-0.018818221986293793,
0.060984645038843155,
-0.02700083516538143,
-0.055040162056684494,
0.024118119850754738,
0.006145912688225508,
-0.0010670298943296075,
-0.02291848137974739,
0.030098410323262215,
0.019928334280848503,
0.06485214084386826,
0.004538933280855417,
-0.009301680140197277,
-0.005478949286043644,
0.025801194831728935,
0.04361673444509506,
0.036956049501895905,
0.00261413911357522,
-0.0013059505727142096,
-0.006598015781491995,
-0.0058146691881120205,
0.04375997185707092,
-0.00938225258141756,
0.017546961084008217,
-0.0026275680866092443,
0.06997298449277878,
-0.05518340319395065,
0.013697372749447823,
0.020734062418341637,
0.007247074041515589,
-0.01471796166151762,
0.007005355786532164,
-0.06102045252919197,
-0.07663366943597794,
-0.06155760586261749,
-0.009534445591270924,
0.028218379244208336,
-0.020626632496714592,
-0.03611451014876366,
0.07663366943597794,
-0.020931018516421318,
0.10614120960235596,
0.0441896952688694,
0.020375961437821388,
0.04662478342652321,
0.014691104181110859,
0.008697384037077427,
0.07222902029752731,
-0.0562577061355114,
0.012936407700181007,
-0.029561258852481842,
0.023509347811341286,
-0.028415335342288017,
0.012999075464904308,
-0.03435981646180153,
-0.014798534102737904,
0.047412607818841934,
0.021969512104988098,
0.013366129249334335,
0.041790418326854706,
0.03656213730573654,
-0.020877303555607796,
0.016221987083554268,
-0.02105635404586792,
-0.011477145366370678,
-0.02230970747768879,
0.06145017594099045,
0.02445831522345543,
-0.053571946918964386,
-0.04898825287818909,
0.02598024532198906,
0.013912233524024487,
-0.003375104395672679,
-0.01931956224143505,
-0.03582803159952164,
-0.0016360750887542963,
-0.00265666376799345,
0.0178692527115345,
0.01675913855433464,
0.016812853515148163,
0.01789611019194126,
-0.03131595626473427,
0.031280145049095154,
0.011790484189987183,
-0.007614127825945616,
0.06667845696210861,
-0.02658901922404766,
-0.019409088417887688,
0.02709035947918892,
-0.01779763214290142,
-0.07427020370960236,
0.06599806249141693,
0.040214769542217255,
-0.044440366327762604,
0.04390321299433708,
-0.029185252264142036,
0.01721571758389473,
0.008867482654750347,
0.04329444095492363,
-0.02757379598915577,
0.03928370773792267,
-0.08859425038099289,
0.01461948361247778,
-0.06170084699988365,
-0.011020566336810589,
-0.08823615312576294,
-0.040358010679483414,
0.0009002889273688197,
-0.08107412606477737,
0.014673198573291302,
-0.02916734665632248,
-0.014977585524320602
] |
724,881 | markov_clustering.mcl | normalize |
Normalize the columns of the given matrix
:param matrix: The matrix to be normalized
:returns: The normalized matrix
| def normalize(matrix):
"""
Normalize the columns of the given matrix
:param matrix: The matrix to be normalized
:returns: The normalized matrix
"""
return sklearn.preprocessing.normalize(matrix, norm="l1", axis=0)
| (matrix) | [
-0.02742999978363514,
0.041424207389354706,
0.05059574171900749,
0.01785234361886978,
-0.011955147609114647,
-0.04017200320959091,
0.03057742677628994,
0.0009169420227408409,
0.04162726551294327,
0.054047759622335434,
-0.04629764333367348,
-0.04352249205112457,
-0.007102863863110542,
0.03369101136922836,
-0.011633636429905891,
0.03875058516860008,
0.004970735404640436,
-0.009137692861258984,
0.020136766135692596,
-0.01798771694302559,
0.013063515536487103,
0.014459552243351936,
0.013672695495188236,
0.022455032914876938,
-0.03365716710686684,
0.0009687645942904055,
-0.007500522304326296,
-0.0213382039219141,
0.02453639544546604,
-0.024113355204463005,
0.00706902053207159,
0.017767734825611115,
0.009053084068000317,
-0.003033206332474947,
0.01064371969550848,
-0.07073251157999039,
0.016972417011857033,
0.00007627964077983052,
-0.01007684413343668,
-0.041458047926425934,
-0.035027820616960526,
-0.007737425621598959,
-0.02325035072863102,
0.013105819933116436,
0.043082527816295624,
0.004788827616721392,
0.010635258629918098,
0.003997740335762501,
-0.026973113417625427,
-0.012970446608960629,
-0.04666991904377937,
-0.01971372589468956,
0.07323691248893738,
0.017480067908763885,
-0.05905656889081001,
0.028479142114520073,
0.019036859273910522,
-0.01396036334335804,
-0.029900560155510902,
-0.0524909682571888,
0.009949931874871254,
0.016507072374224663,
-0.06318545341491699,
-0.0131227420642972,
0.03827677667140961,
-0.032811082899570465,
-0.008993858471512794,
0.10572648793458939,
0.03986741229891777,
-0.023182664066553116,
-0.11763932555913925,
0.01883379928767681,
-0.009526890702545643,
0.011312124319374561,
0.00003648731217253953,
0.06866806745529175,
-0.020999770611524582,
0.018647661432623863,
-0.017683127894997597,
0.047617532312870026,
-0.008655425161123276,
0.007690891157835722,
0.00715362885966897,
-0.017167016863822937,
-0.04386092349886894,
-0.09042931348085403,
0.01625324785709381,
0.04413167014718056,
-0.023538019508123398,
0.028157629072666168,
-0.018258463591337204,
0.02477329969406128,
0.006362541578710079,
0.07168012112379074,
-0.012310502119362354,
0.054149288684129715,
-0.0030987777281552553,
0.04189801216125488,
-0.0008640618762001395,
-0.08122393488883972,
0.013495017774403095,
0.10796014219522476,
0.05648447573184967,
0.055672235786914825,
-0.038716740906238556,
0.025044046342372894,
0.007301693316549063,
-0.03963050991296768,
0.017767734825611115,
0.03533241152763367,
-0.08325453102588654,
-0.002971865236759186,
-0.019036859273910522,
-0.014764142222702503,
-0.016498610377311707,
-0.09191841632127762,
-0.016261707991361618,
0.018952250480651855,
-0.030154384672641754,
0.03983357176184654,
0.011185212060809135,
0.023030368611216545,
0.00582527881488204,
-0.07587669044733047,
-0.03347102925181389,
0.0236057061702013,
0.023182664066553116,
0.039596665650606155,
-0.0217781662940979,
-0.02748076431453228,
-0.040138158947229385,
-0.019476821646094322,
-0.025399399921298027,
0.06744970381259918,
0.027294626459479332,
-0.05492768436670303,
0.028343768790364265,
0.009696107357740402,
0.08731573075056076,
0.04342095926403999,
0.012657396495342255,
-0.002042231848463416,
0.04071349650621414,
-0.028445297852158546,
0.07113862782716751,
0.00024364535056520253,
0.03343718498945236,
0.022184286266565323,
-0.026516228914260864,
-0.02413027733564377,
-0.04010431841015816,
0.025737833231687546,
0.08569125086069107,
-0.07323691248893738,
-0.014095736667513847,
0.009256144054234028,
0.012445875443518162,
-0.11296895146369934,
0.044030141085386276,
-0.019629117101430893,
-0.021913539618253708,
-0.004344634246081114,
-0.012403571046888828,
-0.013139663264155388,
-0.052084848284721375,
0.011193673126399517,
-0.00846505630761385,
-0.05042652413249016,
-0.045823834836483,
-0.041424207389354706,
0.007107093930244446,
0.026516228914260864,
-0.04474084824323654,
0.01883379928767681,
0.02198122628033161,
0.013799607753753662,
0.005144182592630386,
0.03475707396864891,
-0.01071986649185419,
0.00706902053207159,
0.01986601948738098,
0.01814001239836216,
-0.008316991850733757,
-0.06562216579914093,
-0.0011157714761793613,
-0.013681156560778618,
-0.04365786537528038,
-0.012225894257426262,
-0.03496013581752777,
-0.000815940962638706,
0.05117107927799225,
-0.043624021112918854,
0.02880065329372883,
0.027023879811167717,
0.03294645622372627,
0.003995625302195549,
-0.008875406347215176,
-0.02959597110748291,
0.016727054491639137,
-0.07357534766197205,
0.011125986464321613,
-0.017835421487689018,
0.05546917766332626,
0.08014094829559326,
0.01125289872288704,
-0.03426634520292282,
-0.02306421287357807,
0.009222300723195076,
-0.0013442137278616428,
-0.04315021261572838,
0.03732916712760925,
-0.031186604872345924,
0.01700626127421856,
0.0016900500049814582,
0.03248957172036171,
0.007860107347369194,
0.05364163964986801,
-0.06101948022842407,
0.04714372381567955,
0.020627494901418686,
0.011955147609114647,
-0.014188805595040321,
0.018156932666897774,
0.004632302559912205,
-0.02874988690018654,
0.0033949066419154406,
-0.020999770611524582,
-0.006607905495911837,
0.009230761788785458,
0.004708449821919203,
0.0031706946901977062,
-0.03624618053436279,
-0.02678697556257248,
-0.016989339143037796,
-0.007043637800961733,
-0.02910524234175682,
0.014933358877897263,
0.020712103694677353,
-0.001234223018400371,
-0.016583219170570374,
-0.00894309300929308,
-0.0032489572186022997,
0.015813283622264862,
-0.0052795554511249065,
0.014738759025931358,
-0.0262454841285944,
-0.03563699871301651,
-0.0036423858255147934,
-0.014679533429443836,
-0.01159979309886694,
-0.07350765913724899,
0.0010285192402079701,
0.03732916712760925,
-0.006899803876876831,
0.052761711180210114,
-0.06937877833843231,
-0.021608950570225716,
0.10180066525936127,
-0.008756955154240131,
0.022827308624982834,
-0.010897544212639332,
-0.052287906408309937,
0.06423459202051163,
0.012259737588465214,
-0.019933706149458885,
-0.02812378667294979,
-0.029900560155510902,
0.05939500033855438,
0.08068244159221649,
0.002108860993757844,
0.047752901911735535,
0.028919104486703873,
-0.005816818214952946,
0.0068109650164842606,
0.058176640421152115,
0.0276330579072237,
-0.012115903198719025,
-0.028732966631650925,
-0.02678697556257248,
0.07113862782716751,
0.0017143749864771962,
-0.051543354988098145,
-0.03946129232645035,
0.042845625430345535,
-0.031931158155202866,
0.022641170769929886,
-0.012005912140011787,
-0.06464071571826935,
0.007318614982068539,
-0.003581044729799032,
0.0592934712767601,
0.023538019508123398,
0.0019808909855782986,
0.022251972928643227,
-0.08325453102588654,
-0.07953176647424698,
-0.027226939797401428,
-0.021118221804499626,
0.027666902169585228,
-0.0008455538190901279,
-0.036550771445035934,
0.03641539812088013,
0.0055206893011927605,
-0.0034752844367176294,
0.04683913290500641,
-0.007754347287118435,
-0.027446920052170753,
0.013283497653901577,
-0.014417247846722603,
0.01125289872288704,
-0.011735166423022747,
0.057939738035202026,
-0.07838109135627747,
-0.038412149995565414,
0.009366135112941265,
0.022099677473306656,
0.09415207803249359,
0.011616714298725128,
0.015254870057106018,
0.03333565592765808,
0.0012289349688217044,
0.00007046281825751066,
0.03357255831360817,
0.029900560155510902,
-0.07283079624176025,
0.01951066590845585,
0.053303204476833344,
-0.03304798901081085,
0.003712187521159649,
-0.019544508308172226,
0.020339826121926308,
-0.03196500241756439,
0.02231965959072113,
0.013520400039851665,
0.003045897465199232,
-0.055875297635793686,
0.0004901991342194378,
-0.021558186039328575,
-0.02418104186654091,
-0.0067813522182404995,
-0.021541263908147812,
0.038378309458494186,
0.007432836107909679,
-0.059665746986866,
-0.026973113417625427,
0.016701670363545418,
-0.033589478582143784,
0.01354578323662281,
-0.009399978443980217,
0.02516249753534794,
-0.017953872680664062,
-0.03496013581752777,
0.00018389077740721405,
0.008338144049048424,
0.012251276522874832,
0.035670842975378036,
-0.017378536984324455,
-0.03759991377592087,
0.01359654776751995,
-0.036212336272001266,
0.06870190799236298,
-0.021067457273602486,
-0.021372048184275627,
-0.07222161442041397,
0.049817346036434174,
0.003853906411677599,
-0.0321003757417202,
0.02098284848034382,
0.04423319920897484,
0.012107442133128643,
0.017217781394720078,
-0.02325035072863102,
-0.014391865581274033,
0.012851995415985584,
-0.019476821646094322,
0.02477329969406128,
-0.042947154492139816,
0.022878075018525124,
-0.008042015135288239,
0.018275385722517967,
0.03516319394111633,
-0.03287877142429352,
-0.0013865178916603327,
-0.09090311825275421,
0.025873206555843353,
-0.016735514625906944,
0.030154384672641754,
0.014823367819190025,
-0.07195086777210236,
-0.01814001239836216,
-0.05851507559418678,
-0.012293580919504166,
-0.03617849200963974,
-0.02340264618396759,
-0.019730646163225174,
0.016583219170570374,
0.0035006669349968433,
-0.016650905832648277,
0.014408786781132221,
-0.023673392832279205,
-0.0507311150431633,
0.0022209668532013893,
-0.013418870978057384,
-0.00785587728023529,
-0.07973482459783554,
0.03604311868548393,
-0.05678906664252281,
0.03516319394111633,
0.023318037390708923,
-0.001798983197659254,
0.014662612229585648,
0.09997312724590302,
0.031575802713632584,
-0.016507072374224663,
0.009323830716311932,
0.001522948732599616,
0.07350765913724899,
-0.06277932971715927,
0.01148134097456932,
0.02433333732187748,
0.031186604872345924,
-0.032912615686655045,
-0.06362541019916534,
0.03316643834114075,
0.05831201374530792,
-0.043082527816295624,
-0.037430696189403534,
-0.07195086777210236,
-0.01798771694302559,
0.023030368611216545,
-0.043827079236507416,
-0.021202830597758293,
-0.044910065829753876,
-0.038073718547821045,
-0.0390213318169117,
0.010347590781748295,
-0.012344345450401306,
0.04920816421508789,
-0.02812378667294979,
0.013283497653901577,
0.03362332284450531,
-0.02920677326619625,
0.020119845867156982,
-0.08250997960567474,
0.02649930864572525,
-0.017014721408486366,
-0.014814906753599644,
-0.000032917901990003884,
-0.005300707649439573,
-0.036652300506830215,
0.007077481132000685,
-0.013664234429597855,
0.0224719550460577,
-0.041661109775304794,
0.013901137746870518,
0.01143057644367218,
-0.018867643550038338,
-0.03736300766468048,
0.046331483870744705,
0.06992027163505554,
-0.0174969881772995,
0.015068731270730495,
-0.0024071051739156246,
0.028106864541769028,
0.022488877177238464,
0.0023330729454755783,
0.011642096564173698,
-0.001389690674841404,
0.006421767175197601,
0.0029570588376373053,
0.09273065626621246,
-0.03736300766468048,
0.04396245256066322,
-0.021558186039328575,
-0.005021500401198864,
0.01064371969550848,
-0.04575615003705025,
-0.03250649571418762,
0.007690891157835722,
0.01599942333996296,
-0.07168012112379074,
-0.017463145777583122,
0.027260782197117805,
0.011904383078217506,
0.023368801921606064,
0.013266575522720814,
-0.048835888504981995,
-0.02546708658337593,
0.03292953595519066,
-0.01314812432974577,
-0.007208623923361301,
0.045993052423000336,
0.08393139392137527,
0.04189801216125488,
0.0334879495203495,
-0.03739685192704201,
0.008164697326719761,
0.025331713259220123,
-0.021896619349718094,
0.025145575404167175,
0.015373321250081062,
0.06166250258684158,
-0.04125498980283737,
0.02974826470017433,
-0.01012760866433382,
0.04798980802297592,
-0.01148134097456932,
0.006155251059681177,
-0.021168988198041916,
-0.026533151045441628,
-0.04365786537528038,
-0.05689059570431709,
-0.009569194167852402,
0.02704080007970333,
0.0020189646165817976,
0.05150951072573662,
-0.06748355180025101,
-0.009603037498891354,
0.05875197798013687,
0.04700835049152374,
0.0047465236857533455,
0.0017651398666203022,
-0.024502553045749664,
-0.01511949673295021,
-0.028834495693445206,
0.031000467017292976,
0.020272139459848404,
-0.005558762699365616,
0.02167663723230362,
0.03793834522366524,
-0.004014662001281977,
0.003215113887563348,
0.031728100031614304,
0.045248497277498245,
0.02797149121761322,
0.07323691248893738,
0.024857908487319946,
-0.06487761437892914,
0.004437703173607588,
-0.0015070847002789378,
-0.011024456471204758,
-0.034723229706287384,
0.04287946596741676,
0.04172879457473755,
-0.02477329969406128,
-0.025974737480282784,
-0.024942515417933464,
0.031000467017292976,
-0.04271025210618973,
0.0008804547251202166,
-0.052964773029088974,
0.011371350847184658,
-0.011955147609114647,
0.03316643834114075,
0.03780297189950943,
-0.017835421487689018,
-0.020864397287368774,
0.04450394585728645,
0.016523994505405426,
0.003259533317759633,
-0.016084030270576477,
-0.07675661891698837,
0.09658879041671753,
0.022827308624982834,
-0.037972189486026764,
0.03834446519613266,
-0.0529986172914505,
0.05083264410495758,
0.002082420978695154,
-0.03372485190629959,
0.00018719577929005027,
-0.013308879919350147,
0.01126135978847742,
-0.014882593415677547,
-0.033014144748449326,
0.010711406357586384,
0.03167733550071716,
-0.07323691248893738,
-0.0633208230137825,
-0.0022378885187208652,
-0.010686024092137814,
-0.049817346036434174,
-0.0678558275103569,
0.011303664185106754,
-0.03455401584506035,
-0.03543394058942795,
-0.018867643550038338,
0.018715348094701767,
-0.03203268721699715,
-0.026177797466516495,
-0.06288085877895355,
-0.08806028217077255,
0.05106954649090767,
-0.021152066066861153,
0.008756955154240131,
-0.0019142619566991925,
-0.04000278562307358,
-0.05678906664252281,
0.042947154492139816,
0.021152066066861153,
0.013495017774403095,
0.02242119051516056,
0.04051043465733528,
0.04822671040892601,
0.03171117603778839,
-0.05777052044868469,
-0.02506096661090851,
0.0011749973054975271,
0.02472253516316414,
-0.00501303980126977,
-0.00532185984775424,
0.02270885743200779,
-0.016913192346692085,
0.020069079473614693,
0.023030368611216545,
0.003955436404794455,
-0.0026017040945589542,
-0.05963190272450447,
0.008807720616459846,
0.03759991377592087,
0.006590983830392361,
-0.0302728358656168,
0.0017090869368985295,
-0.011659018695354462,
-0.015237947925925255,
0.031829629093408585,
0.0021120337769389153,
-0.014341101050376892,
-0.04917432367801666,
-0.0906323716044426,
-0.014434169977903366,
-0.022979604080319405,
0.009975314140319824,
-0.012056677602231503,
0.010702945291996002,
0.010516807436943054,
0.007644356694072485,
-0.014950280077755451,
-0.03238804265856743,
0.04920816421508789,
0.016058648005127907,
0.008583508431911469,
0.03875058516860008,
-0.022556563839316368,
0.01610095240175724,
-0.010034539736807346,
-0.03208345174789429,
-0.04325174540281296,
0.01986601948738098,
-0.009281526319682598,
-0.029782108962535858,
0.023030368611216545,
-0.010677563026547432,
0.019933706149458885,
0.08298378437757492,
-0.04910663515329361,
-0.037532225251197815,
0.024604082107543945,
-0.002502289367839694,
-0.012538944371044636,
-0.010939848609268665,
-0.01961219497025013,
0.06944645941257477,
0.002895717741921544,
0.051983315497636795,
0.03194807842373848,
0.02531479299068451,
0.01847844384610653,
-0.06338851153850555,
-0.0071282461285591125,
-0.01966295950114727,
0.07350765913724899,
-0.00928998738527298,
-0.04944507032632828,
0.011244438588619232,
0.0570259690284729,
-0.0240456685423851,
-0.06355772912502289,
0.022776544094085693,
0.020712103694677353,
-0.024756377562880516,
0.05560455098748207,
-0.004725371487438679,
0.01770004816353321,
0.02296268194913864,
-0.05015577748417854,
-0.0045053898356854916,
0.030323602259159088,
-0.04325174540281296,
-0.007039407268166542,
-0.01808924600481987,
-0.041762638837099075,
-0.008135084062814713,
-0.009670724160969257,
0.00044128496665507555,
0.08501438051462173,
0.003481630003079772,
0.0015472735976800323,
0.04010431841015816,
0.08386371284723282,
0.07195086777210236,
0.015085653401911259,
-0.04342095926403999,
0.0642007514834404,
0.03186347335577011,
0.00023901833628769964,
-0.0005354116437956691,
0.05259249731898308,
0.007047868333756924,
0.05259249731898308,
0.03692304715514183,
-0.020576730370521545,
0.07547057420015335,
0.02974826470017433,
0.053946226835250854,
0.044910065829753876,
-0.03584006056189537,
0.016109412536025047,
0.031829629093408585,
-0.008177388459444046,
0.040036629885435104,
-0.06271164119243622,
0.04504543915390968,
-0.00012274808250367641,
-0.03408020734786987,
-0.001644573058001697,
-0.006565601099282503,
0.013782685622572899,
-0.00706902053207159,
-0.021270517259836197,
-0.04826055467128754,
-0.030983546748757362,
0.009721489623188972,
0.08995550870895386,
0.01413804106414318,
0.025128653272986412,
0.016134796664118767,
-0.0025678607635200024,
-0.020458277314901352,
-0.040036629885435104,
0.016727054491639137,
-0.008223922923207283,
0.07249236106872559,
-0.012098981998860836,
0.030052855610847473,
0.014704915694892406,
-0.005368394311517477,
0.01759851910173893,
0.013063515536487103,
-0.01878303475677967,
0.0229119174182415,
-0.007500522304326296,
-0.024265650659799576,
-0.01165055762976408,
0.03844599425792694,
-0.05178025737404823,
0.04602689668536186,
-0.018359992653131485,
-0.012860455550253391,
-0.04842976853251457,
0.013605008833110332,
-0.08731573075056076,
-0.0193245280534029,
0.01888456381857395,
-0.025399399921298027,
-0.0019565660040825605,
0.08880483359098434,
-0.0019935821183025837
] |
724,884 | markov_clustering.mcl | prune |
Prune the matrix so that very small edges are removed.
The maximum value in each column is never pruned.
:param matrix: The matrix to be pruned
:param threshold: The value below which edges will be removed
:returns: The pruned matrix
| def prune(matrix, threshold):
"""
Prune the matrix so that very small edges are removed.
The maximum value in each column is never pruned.
:param matrix: The matrix to be pruned
:param threshold: The value below which edges will be removed
:returns: The pruned matrix
"""
if isspmatrix(matrix):
pruned = dok_matrix(matrix.shape)
pruned[matrix >= threshold] = matrix[matrix >= threshold]
pruned = pruned.tocsc()
else:
pruned = matrix.copy()
pruned[pruned < threshold] = 0
# keep max value in each column. same behaviour for dense/sparse
num_cols = matrix.shape[1]
row_indices = matrix.argmax(axis=0).reshape((num_cols,))
col_indices = np.arange(num_cols)
pruned[row_indices, col_indices] = matrix[row_indices, col_indices]
return pruned
| (matrix, threshold) | [
0.033354297280311584,
0.008338574320077896,
0.009938727132976055,
0.01356573961675167,
-0.006485063582658768,
-0.029762841761112213,
0.006391721311956644,
0.04533766210079193,
0.01116551086306572,
-0.03637680783867836,
-0.09202656149864197,
0.04075055941939354,
-0.05173827335238457,
-0.0074807144701480865,
-0.022437697276473045,
0.02519351616501808,
0.0015401471173390746,
0.03520336002111435,
0.05853003263473511,
0.02402007207274437,
0.02350446581840515,
-0.05696544051170349,
0.02158428356051445,
0.05675208568572998,
-0.02761152572929859,
0.015245900489389896,
0.009787601418793201,
-0.0007906310493126512,
-0.023148877546191216,
-0.014099123887717724,
-0.04871576279401779,
0.011681115254759789,
0.009752042591571808,
-0.005733880680054426,
-0.04121282324194908,
0.03804807737469673,
0.05853003263473511,
0.0625481978058815,
-0.011529989540576935,
-0.03566562756896019,
-0.056183140724897385,
0.0026024708058685064,
-0.018312860280275345,
-0.03666127845644951,
-0.0028136020991951227,
-0.005551641341298819,
0.030722932890057564,
0.011512210592627525,
-0.014845862053334713,
0.024873485788702965,
0.010587677359580994,
-0.00613391911610961,
0.03138077259063721,
0.04288409650325775,
-0.06340160965919495,
-0.04395086318254471,
-0.006942884996533394,
-0.015201451256871223,
0.010214308276772499,
-0.05607646703720093,
0.0022935522720217705,
0.018090616911649704,
0.04238627105951309,
0.01140553317964077,
0.011423313058912754,
-0.0017590568168088794,
-0.04370195046067238,
0.02403785102069378,
-0.006040576845407486,
-0.022402139380574226,
-0.06354384869337082,
-0.013645747676491737,
0.05223609879612923,
0.03162968531250954,
0.009298665449023247,
-0.05490301921963692,
0.01469473633915186,
-0.025886915624141693,
-0.0869060754776001,
0.0034203266259282827,
0.05963236093521118,
-0.03248310089111328,
0.02960282750427723,
-0.023468907922506332,
0.0007522940286435187,
-0.05532972887158394,
0.03826143220067024,
0.036252349615097046,
0.02617138810455799,
-0.04487539455294609,
0.018526213243603706,
0.05436963587999344,
-0.005249389912933111,
0.0010823255870491266,
0.01345906313508749,
0.05625426024198532,
0.015130333602428436,
0.06998001784086227,
0.005791664123535156,
-0.06663747131824493,
0.06976666301488876,
0.06962442398071289,
-0.005649428348988295,
-0.022171005606651306,
-0.018366198986768723,
0.010152080096304417,
0.0005017145886085927,
0.031398553401231766,
0.017059406265616417,
-0.008663048967719078,
-0.08925296366214752,
-0.004409309942275286,
-0.04462648183107376,
0.007702957838773727,
0.007822968997061253,
-0.03570118546485901,
-0.014819192700088024,
-0.0058227782137691975,
-0.0033114273101091385,
-0.03401213511824608,
-0.009654255583882332,
-0.006271710153669119,
-0.029016103595495224,
-0.026491418480873108,
-0.030936287716031075,
0.011850020848214626,
0.05383625254034996,
0.03303426504135132,
0.003320317016914487,
-0.0349188894033432,
-0.04444868862628937,
0.003200305625796318,
-0.010872148908674717,
0.03904372826218605,
-0.027629304677248,
-0.08996414393186569,
0.014801413752138615,
0.017406105995178223,
0.06962442398071289,
-0.025584666058421135,
0.02690034545958042,
-0.023842277005314827,
-0.02716703899204731,
-0.006338383071124554,
0.035292260348796844,
-0.07417596876621246,
0.016908280551433563,
-0.032892029732465744,
0.026260284706950188,
0.0031069633550941944,
-0.03755025193095207,
0.013281268067657948,
-0.014036895707249641,
-0.06411278992891312,
0.041603971272706985,
0.027344834059476852,
0.04608440026640892,
-0.07773187011480331,
-0.024855706840753555,
0.00027335944469086826,
-0.010792141780257225,
0.030740713700652122,
-0.02257993444800377,
-0.017601680010557175,
-0.03563006967306137,
-0.020197484642267227,
0.06549958884716034,
-0.02428676374256611,
-0.07318031787872314,
0.05003144219517708,
0.012774553149938583,
0.0003147522802464664,
-0.042101796716451645,
0.027469290420413017,
-0.05380069091916084,
0.028518278151750565,
-0.01235673576593399,
0.049569178372621536,
-0.03929264098405838,
-0.013423504307866096,
0.014108013361692429,
0.021406488493084908,
-0.02645585872232914,
0.006689527537673712,
0.042812976986169815,
-0.013859101571142673,
0.02058863267302513,
-0.012081153690814972,
-0.031896378844976425,
0.020215263590216637,
-0.027753761038184166,
-0.04128394275903702,
0.06286822259426117,
0.03996825963258743,
0.005382736213505268,
-0.011805571615695953,
0.004627108573913574,
-0.003958155866712332,
-0.021193135529756546,
0.03170080482959747,
0.013636857271194458,
-0.035736747086048126,
0.043275244534015656,
-0.03205639496445656,
0.02428676374256611,
-0.030669596046209335,
-0.020073028281331062,
0.009894277900457382,
0.017895042896270752,
0.03520336002111435,
-0.039932701736688614,
-0.017850592732429504,
0.04932026565074921,
0.015805954113602638,
0.036483485251665115,
-0.028678294271230698,
0.015477033331990242,
0.005178272258490324,
-0.018108395859599113,
-0.026775890961289406,
-0.06528623402118683,
0.06340160965919495,
-0.033585429191589355,
0.009520908817648888,
-0.00848525483161211,
-0.014659177511930466,
0.012685655616223812,
-0.002535797655582428,
0.09672034531831741,
-0.05550752207636833,
0.052982836961746216,
-0.038937050849199295,
-0.0064628394320607185,
-0.04060832038521767,
0.014614729210734367,
-0.001984633971005678,
-0.04651110619306564,
-0.02910500206053257,
-0.01798393949866295,
-0.027789320796728134,
0.022153226658701897,
-0.049391381442546844,
0.021690960973501205,
0.011850020848214626,
0.032838691025972366,
-0.0018846243619918823,
-0.028518278151750565,
-0.025655783712863922,
0.05138268321752548,
0.02083754539489746,
-0.02670477144420147,
-0.12388738244771957,
0.005373846273869276,
-0.021495385095477104,
0.04195956140756607,
-0.029673945158720016,
-0.005956124514341354,
0.009894277900457382,
-0.03541671484708786,
0.01943296752870083,
0.039185963571071625,
-0.02519351616501808,
0.00033419858664274216,
-0.003962600603699684,
0.024926824495196342,
0.01005429308861494,
-0.015681497752666473,
0.0019924123771488667,
0.07133125513792038,
-0.029691724106669426,
0.05949012562632561,
0.010694354772567749,
-0.0038181424606591463,
-0.01696161925792694,
-0.048644643276929855,
0.02645585872232914,
-0.027753761038184166,
0.015130333602428436,
0.006756200455129147,
0.05749882385134697,
-0.033336516469717026,
-0.08832843601703644,
-0.005147158168256283,
0.04142617806792259,
-0.026811448857188225,
0.0279137771576643,
-0.03687463328242302,
-0.0692688375711441,
0.02089088410139084,
-0.0031136306934058666,
0.03182525932788849,
0.008098551072180271,
0.021975431591272354,
-0.01044544205069542,
-0.030367344617843628,
-0.03397657722234726,
0.010223198682069778,
-0.05628981813788414,
-0.01577039435505867,
0.01467695739120245,
0.07730516046285629,
-0.06365051865577698,
-0.0030291781295090914,
-0.020055247470736504,
0.05408516526222229,
0.03591454029083252,
-0.04195956140756607,
0.012694545090198517,
0.0036670167464762926,
0.01006318349391222,
0.01441915426403284,
-0.046404432505369186,
0.017575010657310486,
-0.016579361632466316,
-0.03342541307210922,
-0.01478363387286663,
0.07659398019313812,
-0.05628981813788414,
0.010712133720517159,
0.013885769993066788,
0.029016103595495224,
-0.01700606755912304,
-0.04615551978349686,
0.030367344617843628,
-0.05561419948935509,
-0.06788203865289688,
0.007205132395029068,
-0.03257199749350548,
0.0018168401438742876,
0.009734262712299824,
0.010596567764878273,
0.04117726534605026,
0.015485922805964947,
0.0073651475831866264,
0.018330639228224754,
0.0074229310266673565,
0.04832461476325989,
-0.004375973250716925,
-0.11122839897871017,
-0.006422835402190685,
0.013299047946929932,
0.02402007207274437,
0.05646761506795883,
-0.010400992818176746,
0.014170241542160511,
0.045479897409677505,
-0.057178791612386703,
0.004495984874665737,
0.011076613329350948,
0.02471347153186798,
0.07566944509744644,
0.07008669525384903,
-0.01572594605386257,
0.05824556201696396,
0.013219039887189865,
0.029496150091290474,
0.017388327047228813,
0.03497222810983658,
-0.026829227805137634,
-0.01964632049202919,
0.04437756910920143,
-0.0005422739777714014,
0.0027047027833759785,
-0.027771539986133575,
0.04313300922513008,
0.018001718446612358,
-0.028198247775435448,
0.003747024340555072,
0.030136210843920708,
-0.02354002557694912,
-0.03523892164230347,
-0.039434876292943954,
-0.010178749449551105,
0.03511446341872215,
0.014339147135615349,
0.003631457919254899,
-0.10866815596818924,
0.0485379695892334,
0.02302442118525505,
0.1264476329088211,
-0.014152462594211102,
-0.04775566980242729,
0.0020213040988892317,
-0.05796109139919281,
-0.0374080166220665,
-0.014854751527309418,
-0.044021982699632645,
0.016143763437867165,
-0.002738039242103696,
-0.028198247775435448,
-0.025300193578004837,
-0.02453567646443844,
0.002053529489785433,
0.018508434295654297,
0.060734689235687256,
0.06059245392680168,
0.00886751338839531,
0.0293539147824049,
0.010543229058384895,
-0.009992064908146858,
-0.0558275543153286,
0.030153989791870117,
-0.06187257543206215,
-0.003855923656374216,
-0.025780240073800087,
0.02496238425374031,
-0.021904313936829567,
0.030242888256907463,
0.06091248244047165,
0.04921358823776245,
0.04900023341178894,
0.05724991112947464,
0.009405342862010002,
-0.006213926710188389,
0.014632508158683777,
-0.03250088170170784,
0.08235453069210052,
0.01187668927013874,
0.027540408074855804,
-0.054725226014852524,
0.03493667021393776,
-0.049142468720674515,
-0.022722169756889343,
-0.08235453069210052,
-0.010125411674380302,
-0.05579199269413948,
-0.013414613902568817,
-0.018330639228224754,
-0.04398642107844353,
0.05230721831321716,
-0.05547196418046951,
-0.057889971882104874,
-0.013743534684181213,
-0.0123745147138834,
-0.03733689710497856,
0.05522305145859718,
-0.005516082048416138,
-0.01920183375477791,
0.02986951917409897,
0.019752997905015945,
0.006445060018450022,
-0.009138650260865688,
0.04395086318254471,
-0.05074262246489525,
0.07115346193313599,
0.003324761986732483,
0.017886152490973473,
-0.0017068296438083053,
-0.004729340318590403,
0.016597140580415726,
0.013974667526781559,
-0.08228341490030289,
-0.008671939373016357,
-0.034314386546611786,
-0.025353532284498215,
-0.017157193273305893,
-0.032145291566848755,
0.011032164096832275,
0.012836781330406666,
0.07086899131536484,
0.058352239429950714,
0.008271900936961174,
-0.07086899131536484,
0.016837162896990776,
-0.02204654924571514,
0.03787028416991234,
-0.018046166747808456,
0.0009673145832493901,
0.006422835402190685,
-0.054725226014852524,
0.06759756803512573,
-0.04430645331740379,
-0.04142617806792259,
-0.014552501030266285,
0.006120584439486265,
0.03996825963258743,
-0.04491095617413521,
0.019717438146471977,
0.011334415525197983,
0.05586311221122742,
-0.021637622267007828,
-0.04348859563469887,
-0.0029580602422356606,
-0.05532972887158394,
-0.024642353877425194,
-0.02770042233169079,
-0.04363083094358444,
-0.02640252187848091,
0.029709503054618835,
-0.009796490892767906,
-0.03449218347668648,
-0.022988861426711082,
0.07072675228118896,
0.018312860280275345,
0.06333049386739731,
-0.009014193899929523,
-0.02668699249625206,
0.037692487239837646,
0.06706418097019196,
-0.025140177458524704,
0.0040403855964541435,
0.04348859563469887,
-0.09864053130149841,
0.017183862626552582,
-0.015610379166901112,
0.00425373949110508,
0.06318825483322144,
0.05500969663262367,
0.011609997600317001,
0.010809920728206635,
0.011592217721045017,
-0.014703625813126564,
-0.03776360675692558,
0.04953362047672272,
-0.013059024699032307,
0.011209959164261818,
-0.01090770773589611,
0.010729913599789143,
0.012116712518036366,
0.0025735790841281414,
-0.02329111285507679,
0.06229928135871887,
-0.02037527970969677,
0.02643807977437973,
-0.038723696023225784,
0.019041817635297775,
0.026011371985077858,
-0.002793600084260106,
0.06372164189815521,
0.03659015893936157,
0.034065473824739456,
0.02910500206053257,
0.021708739921450615,
0.01645490527153015,
0.01356573961675167,
0.046404432505369186,
0.004180399235337973,
-0.04651110619306564,
0.004871576093137264,
-0.017281649634242058,
-0.004658222664147615,
-0.037976957857608795,
0.06777536123991013,
0.06233483925461769,
-0.04555101692676544,
0.05949012562632561,
-0.014356926083564758,
0.037941399961709976,
-0.05966791883111,
0.00233355606906116,
0.012010036036372185,
0.04313300922513008,
0.003582564415410161,
-0.03232308477163315,
0.06717085838317871,
0.06510844081640244,
0.02425120398402214,
-0.00012327566219028085,
0.04868020489811897,
-0.004171509295701981,
-0.010454331524670124,
-0.06923327594995499,
0.08078993856906891,
0.01796616055071354,
-0.017797254025936127,
-0.01213449239730835,
-0.03230530768632889,
0.011796682141721249,
-0.021993210539221764,
0.034545522183179855,
0.020944222807884216,
-0.053729575127363205,
-0.01090770773589611,
-0.035558950155973434,
-0.022135447710752487,
0.006445060018450022,
0.013876880519092083,
-0.030882949009537697,
-0.018757347017526627,
-0.00673842104151845,
-0.008854178711771965,
0.007467379793524742,
-0.004529321566224098,
-0.01674826629459858,
-0.06069912761449814,
-0.000812299782410264,
-0.012614537961781025,
-0.008431916125118732,
-0.002558022039011121,
0.001723497873172164,
0.059312328696250916,
-0.04021717235445976,
0.026046931743621826,
-0.011663336306810379,
-0.05287615954875946,
-0.016348227858543396,
-0.009245327673852444,
-0.016659367829561234,
0.049106910824775696,
0.04530210420489311,
-0.02860717661678791,
-0.022188784554600716,
0.01489920075982809,
0.012952348217368126,
-0.016108205541968346,
-0.004429311957210302,
-0.035558950155973434,
-0.019504085183143616,
0.06453949958086014,
-0.013645747676491737,
-0.024375660344958305,
0.06873545050621033,
-0.007551832124590874,
0.010027623735368252,
-0.05195162817835808,
-0.003253644099459052,
0.0011112171923741698,
-0.001067324192263186,
-0.01767279952764511,
-0.004600439220666885,
0.01792171038687229,
0.02256215363740921,
0.06706418097019196,
-0.019326290115714073,
0.02956726774573326,
0.011218848638236523,
-0.023948952555656433,
-0.035807862877845764,
-0.03034956380724907,
0.0656062662601471,
-0.056147582828998566,
-0.025069059804081917,
0.00848525483161211,
0.048395730555057526,
-0.11748677492141724,
-0.02378893829882145,
0.04025273397564888,
-0.013556850142776966,
-0.02329111285507679,
0.013219039887189865,
-0.022704390808939934,
0.03595009818673134,
0.017992829903960228,
-0.037230223417282104,
0.005120488815009594,
-0.04519542679190636,
-0.00406261021271348,
0.01847287453711033,
-0.0069873337633907795,
-0.006689527537673712,
-0.003426993964239955,
0.03346097469329834,
-0.002664698986336589,
-0.04142617806792259,
0.02405562996864319,
0.029425032436847687,
0.0006728420266881585,
0.08207006007432938,
0.011823351494967937,
-0.018739568069577217,
0.03520336002111435,
-0.022224344313144684,
0.02597581408917904,
-0.023593364283442497,
0.03470553457736969,
0.0034181042574346066,
0.045977722853422165,
0.00679620448499918,
-0.038937050849199295,
-0.019237391650676727,
0.017121635377407074,
0.016428235918283463,
-0.012427853420376778,
-0.06990889459848404,
0.03659015893936157,
-0.04057276248931885,
-0.038901492953300476,
0.00715623889118433,
-0.016170432791113853,
-0.026331402361392975,
0.045479897409677505,
0.04779123142361641,
-0.021779857575893402,
0.01489920075982809,
0.005653873085975647,
0.04363083094358444,
-0.039932701736688614,
0.040181614458560944,
-0.07687845081090927,
-0.001496809534728527,
-0.013130142353475094,
-0.06645967811346054,
0.08064769953489304,
0.015334798023104668,
-0.03244754299521446,
0.0437375083565712,
-0.021886534988880157,
0.07524274289608002,
0.046191077679395676,
0.010187639854848385,
0.04345303773880005,
0.03173636272549629,
-0.05173827335238457,
0.021744297817349434,
-0.023380009457468987,
-0.004258184228092432,
0.00208686594851315,
0.04142617806792259,
0.04107058793306351,
0.02206432819366455,
0.008911961689591408,
0.030936287716031075,
0.0345277413725853,
-0.020535293966531754,
-0.02599359303712845,
0.039150405675172806,
-0.044733159244060516,
-0.049391381442546844,
-0.02860717661678791,
-0.03515002131462097,
-0.005271614529192448,
-0.009440901689231396,
0.018063947558403015,
0.05408516526222229,
-0.07182908058166504,
0.02377115935087204,
-0.0061605884693562984,
-0.03513224422931671,
0.013485732488334179,
-0.030491800978779793,
-0.0116544459015131,
0.024180086329579353,
0.0071429042145609856,
0.013192370533943176,
-0.0014756964519619942,
0.016063755378127098,
0.053480662405490875,
-0.0627259910106659,
0.025300193578004837,
0.03666127845644951,
-0.006649523973464966,
0.02933613397181034,
0.00008091050403891131,
0.02064197137951851,
0.034829992800951004,
-0.005356066860258579,
-0.017077187076210976,
0.0460488423705101,
0.025655783712863922,
-0.0037625813856720924,
0.026135828346014023,
0.00745848985388875,
0.003944821190088987,
-0.039221521466970444,
0.009894277900457382,
0.030971845611929893,
0.01962854154407978,
-0.06965998560190201,
-0.027309274300932884,
-0.05867226794362068,
-0.001395688857883215,
-0.06137474998831749,
-0.08832843601703644,
0.031131861731410027,
-0.030118431895971298,
0.010952156968414783,
0.009716483764350414,
-0.020962001755833626
] |
724,885 | markov_clustering.mcl | run_mcl |
Perform MCL on the given similarity matrix
:param matrix: The similarity matrix to cluster
:param expansion: The cluster expansion factor
:param inflation: The cluster inflation factor
:param loop_value: Initialization value for self-loops
:param iterations: Maximum number of iterations
(actual number of iterations will be less if convergence is reached)
:param pruning_threshold: Threshold below which matrix elements will be set
set to 0
:param pruning_frequency: Perform pruning every 'pruning_frequency'
iterations.
:param convergence_check_frequency: Perform the check for convergence
every convergence_check_frequency iterations
:param verbose: Print extra information to the console
:returns: The final matrix
| def run_mcl(matrix, expansion=2, inflation=2, loop_value=1,
iterations=100, pruning_threshold=0.001, pruning_frequency=1,
convergence_check_frequency=1, verbose=False):
"""
Perform MCL on the given similarity matrix
:param matrix: The similarity matrix to cluster
:param expansion: The cluster expansion factor
:param inflation: The cluster inflation factor
:param loop_value: Initialization value for self-loops
:param iterations: Maximum number of iterations
(actual number of iterations will be less if convergence is reached)
:param pruning_threshold: Threshold below which matrix elements will be set
set to 0
:param pruning_frequency: Perform pruning every 'pruning_frequency'
iterations.
:param convergence_check_frequency: Perform the check for convergence
every convergence_check_frequency iterations
:param verbose: Print extra information to the console
:returns: The final matrix
"""
assert expansion > 1, "Invalid expansion parameter"
assert inflation > 1, "Invalid inflation parameter"
assert loop_value >= 0, "Invalid loop_value"
assert iterations > 0, "Invalid number of iterations"
assert pruning_threshold >= 0, "Invalid pruning_threshold"
assert pruning_frequency > 0, "Invalid pruning_frequency"
assert convergence_check_frequency > 0, "Invalid convergence_check_frequency"
printer = MessagePrinter(verbose)
printer.print("-" * 50)
printer.print("MCL Parameters")
printer.print("Expansion: {}".format(expansion))
printer.print("Inflation: {}".format(inflation))
if pruning_threshold > 0:
printer.print("Pruning threshold: {}, frequency: {} iteration{}".format(
pruning_threshold, pruning_frequency, "s" if pruning_frequency > 1 else ""))
else:
printer.print("No pruning")
printer.print("Convergence check: {} iteration{}".format(
convergence_check_frequency, "s" if convergence_check_frequency > 1 else ""))
printer.print("Maximum iterations: {}".format(iterations))
printer.print("{} matrix mode".format("Sparse" if isspmatrix(matrix) else "Dense"))
printer.print("-" * 50)
# Initialize self-loops
if loop_value > 0:
matrix = add_self_loops(matrix, loop_value)
# Normalize
matrix = normalize(matrix)
# iterations
for i in range(iterations):
printer.print("Iteration {}".format(i + 1))
# store current matrix for convergence checking
last_mat = matrix.copy()
# perform MCL expansion and inflation
matrix = iterate(matrix, expansion, inflation)
# prune
if pruning_threshold > 0 and i % pruning_frequency == pruning_frequency - 1:
printer.print("Pruning")
matrix = prune(matrix, pruning_threshold)
# Check for convergence
if i % convergence_check_frequency == convergence_check_frequency - 1:
printer.print("Checking for convergence")
if converged(matrix, last_mat):
printer.print("Converged after {} iteration{}".format(i + 1, "s" if i > 0 else ""))
break
printer.print("-" * 50)
return matrix
| (matrix, expansion=2, inflation=2, loop_value=1, iterations=100, pruning_threshold=0.001, pruning_frequency=1, convergence_check_frequency=1, verbose=False) | [
0.0591849759221077,
0.015756916254758835,
-0.005439103115350008,
0.04129009321331978,
-0.012083756737411022,
-0.009983462281525135,
-0.02763346955180168,
-0.06152072921395302,
0.03970780596137047,
-0.015097631141543388,
-0.08853258937597275,
0.006931913085281849,
-0.006856566295027733,
0.03125011920928955,
-0.0049540577456355095,
0.024450063705444336,
-0.040310584008693695,
-0.017216762527823448,
0.03371772915124893,
0.000985395978204906,
0.01298791915178299,
0.0060983882285654545,
0.015323672443628311,
0.07368925213813782,
0.014541948214173317,
0.020758066326379776,
0.043512824922800064,
-0.0026653960812836885,
-0.02303730882704258,
-0.0031410232186317444,
-0.04566021263599396,
0.035601403564214706,
-0.01507879514247179,
-0.02959248796105385,
-0.021586881950497627,
-0.008504779078066349,
0.04400257766246796,
-0.009851604700088501,
-0.08619683235883713,
-0.020400168374180794,
-0.02345171757042408,
0.0013621303951367736,
0.000661639787722379,
-0.04185519367456436,
-0.000941836042329669,
0.012432235293090343,
-0.007157953921705484,
0.05119820684194565,
-0.04136543720960617,
-0.008137463591992855,
-0.020739229395985603,
-0.07621337473392487,
0.010774604044854641,
-0.013044429011642933,
-0.0511605329811573,
0.01735803857445717,
0.030063405632972717,
-0.0503317192196846,
0.02995038591325283,
-0.065401092171669,
0.005363756325095892,
-0.0007964401156641543,
-0.006465704180300236,
0.05353396013379097,
-0.002757224952802062,
-0.004949348513036966,
-0.0066258166916668415,
0.028839020058512688,
0.04822200536727905,
0.0257874708622694,
-0.022528717294335365,
-0.024939818307757378,
0.005839383229613304,
-0.023150330409407616,
0.020136455073952675,
0.014523111283779144,
-0.05338326469063759,
-0.03861527889966965,
-0.026540938764810562,
0.008330539800226688,
-0.026277225464582443,
0.027049530297517776,
0.009055753238499165,
-0.07836075872182846,
-0.027727652341127396,
-0.04942755401134491,
0.0093335947021842,
0.033114954829216,
0.043249111622571945,
-0.02898971363902092,
-0.01662340573966503,
0.029234590008854866,
0.011707021854817867,
0.041064050048589706,
-0.007723055314272642,
0.05070845037698746,
-0.00299268402159214,
-0.021379677578806877,
0.007398121990263462,
-0.042684007436037064,
0.05865754932165146,
0.07489480078220367,
0.08687495440244675,
-0.022811269387602806,
-0.02030598558485508,
-0.03366122022271156,
-0.04260866343975067,
0.026070021092891693,
0.014890427701175213,
-0.027049530297517776,
-0.09177250415086746,
0.01701897755265236,
-0.0591849759221077,
-0.023771941661834717,
-0.005797000601887703,
0.01329872477799654,
-0.03744740039110184,
-0.004826909862458706,
-0.034226320683956146,
-0.005707526579499245,
0.00425474438816309,
-0.07647708803415298,
0.010482635349035263,
-0.0519893504679203,
-0.012969082221388817,
0.004709179978817701,
0.014042775146663189,
0.025109348818659782,
0.04935220628976822,
-0.05873289331793785,
-0.00021618080791085958,
-0.027859508991241455,
-0.008137463591992855,
0.03720252215862274,
0.016359692439436913,
-0.06558945775032043,
-0.05018102377653122,
0.006197281181812286,
0.024374715983867645,
0.021228983998298645,
0.05168796330690384,
-0.03234264999628067,
-0.020889922976493835,
0.004577323328703642,
0.018977995961904526,
-0.01046379841864109,
0.013543602079153061,
-0.034904442727565765,
-0.03541303426027298,
0.0014268816448748112,
-0.0027454521041363478,
0.020475516095757484,
0.05402371659874916,
-0.04893780127167702,
-0.00293146469630301,
0.01571924425661564,
0.05259212478995323,
-0.042759355157613754,
0.01681177318096161,
-0.005180098116397858,
-0.021210147067904472,
0.00021676944743376225,
-0.030270610004663467,
0.03910503163933754,
-0.0065975612960755825,
-0.005957113113254309,
-0.035450708121061325,
-0.0257874708622694,
-0.08438850939273834,
0.050143349915742874,
0.013929754495620728,
-0.010567400604486465,
0.01826220005750656,
-0.0352623425424099,
-0.031890567392110825,
0.05451346933841705,
-0.0009742116671986878,
0.016171324998140335,
0.019646700471639633,
0.003932165447622538,
-0.08318296074867249,
0.011575165204703808,
-0.029102733358740807,
-0.05941101536154747,
-0.007238009944558144,
0.03891666606068611,
0.007685381919145584,
-0.024563083425164223,
0.015907609835267067,
-0.006249082274734974,
0.03786180913448334,
-0.05824314057826996,
0.014212305657565594,
0.05229073762893677,
0.016764681786298752,
-0.009211156517267227,
0.009211156517267227,
0.011405634693801403,
0.07440504431724548,
0.040574297308921814,
-0.019401822239160538,
0.04931453615427017,
0.055003225803375244,
-0.007431086152791977,
0.03486676886677742,
-0.013270469382405281,
-0.03848341852426529,
0.03143848851323128,
-0.03505513817071915,
0.012865480035543442,
-0.04038592800498009,
0.005957113113254309,
0.03748507425189018,
0.07489480078220367,
0.0423826202750206,
-0.04388955980539322,
0.04211890697479248,
-0.01039787009358406,
-0.008985116146504879,
-0.016840027645230293,
-0.010962971486151218,
-0.011396216228604317,
-0.05259212478995323,
0.044680699706077576,
-0.053910695016384125,
0.025523755699396133,
0.05568134784698486,
0.036618586629629135,
0.0369199737906456,
-0.0007899649790488183,
-0.006399775855243206,
-0.039406418800354004,
0.010897043161094189,
0.005344919394701719,
-0.030816875398159027,
-0.07504549622535706,
-0.02092759683728218,
0.08152532577514648,
-0.04008454084396362,
0.01250758208334446,
-0.03705183044075966,
-0.04622531309723854,
0.0005983602022752166,
0.02953597716987133,
0.01811150647699833,
0.010350777767598629,
0.009653819724917412,
0.07843610644340515,
0.00994578842073679,
0.05613342672586441,
-0.04381421208381653,
-0.07798402011394501,
-0.007567652501165867,
0.010661584325134754,
0.03925572708249092,
-0.05161261558532715,
-0.057527344673871994,
0.01278071478009224,
0.053420938551425934,
-0.01716967113316059,
0.03513048216700554,
-0.01480566244572401,
-0.010972389951348305,
0.05861987546086311,
-0.04034825414419174,
-0.0005565662286244333,
-0.03918037936091423,
0.038389235734939575,
0.024393552914261818,
-0.0006657603662461042,
0.10706792026758194,
0.04513278231024742,
-0.02316916547715664,
-0.0024911563377827406,
-0.023206839337944984,
0.03876597061753273,
-0.0174239668995142,
-0.01867660880088806,
-0.052554450929164886,
0.012950245290994644,
0.01901566982269287,
-0.059448689222335815,
-0.061294689774513245,
-0.015304835513234138,
-0.07628871500492096,
0.011754113249480724,
-0.030534323304891586,
-0.03520582988858223,
0.03117477335035801,
0.008810875937342644,
0.011245522648096085,
-0.02501516416668892,
0.06803823262453079,
-0.004202943295240402,
0.05477718263864517,
-0.019439496099948883,
-0.03842690959572792,
-0.05244142934679985,
-0.025278879329562187,
-0.0022863070480525494,
0.0038992012850940228,
-0.06509970873594284,
-0.02132316865026951,
-0.06016448512673378,
0.03725903481245041,
-0.022038962692022324,
0.0010371969547122717,
0.015945283696055412,
-0.002688941778615117,
0.03861527889966965,
0.018497658893465996,
0.01797964982688427,
-0.0051377154886722565,
-0.040649645030498505,
0.015634479001164436,
-0.00987986009567976,
0.03895433992147446,
-0.04080033674836159,
0.053081877529621124,
0.009573763236403465,
-0.006602270528674126,
0.0019990468863397837,
0.012639439664781094,
0.057527344673871994,
-0.012639439664781094,
-0.07821006327867508,
0.033190302550792694,
-0.00519893504679203,
0.02904622256755829,
-0.016246670857071877,
0.04818433150649071,
-0.021925942972302437,
-0.03153267130255699,
0.028537631034851074,
0.04890012741088867,
-0.0025429571978747845,
-0.0007411072147078812,
-0.03445236384868622,
-0.013355234637856483,
-0.05839383229613304,
0.056849222630262375,
0.04483139514923096,
-0.026540938764810562,
-0.0034659565426409245,
-0.02667279727756977,
0.04264633730053902,
0.023696593940258026,
0.03383075073361397,
-0.05790407955646515,
0.00046355993254110217,
-0.024563083425164223,
0.06182211637496948,
-0.022453371435403824,
0.03603464737534523,
0.021210147067904472,
0.07026096433401108,
-0.010586236603558064,
-0.09908115118741989,
-0.008608381263911724,
-0.022961962968111038,
0.03821970522403717,
0.00646099541336298,
0.0016623405972495675,
-0.0033340996596962214,
-0.0002815206826198846,
-0.03241799771785736,
-0.050143349915742874,
-0.03803133964538574,
0.0897381380200386,
-0.01151865441352129,
-0.007812529802322388,
-0.07956630736589432,
0.013939172960817814,
0.02701185829937458,
-0.024807961657643318,
0.042834702879190445,
-0.06370578706264496,
0.00036643308703787625,
-0.0222273301333189,
0.038803644478321075,
0.02742626518011093,
-0.0658155009150505,
0.013958009891211987,
-0.07206929475069046,
-0.012262704782187939,
-0.012592347338795662,
0.060126811265945435,
0.024864470586180687,
0.025825144723057747,
-0.0019448914099484682,
-0.03049665130674839,
-0.01600179448723793,
0.013826153241097927,
0.0046762158162891865,
-0.003185760462656617,
0.03993384912610054,
0.06660664081573486,
0.012771296314895153,
-0.006216117646545172,
-0.03371772915124893,
-0.0011378556955605745,
0.024770287796854973,
-0.04193054139614105,
0.01138679776340723,
-0.019439496099948883,
-0.01501286681741476,
0.0004482551012188196,
-0.0027996075805276632,
0.0015799299580976367,
0.08333364874124527,
0.030477814376354218,
0.019194617867469788,
0.025052838027477264,
-0.034433525055646896,
-0.03756042197346687,
-0.000879439408890903,
-0.01654805988073349,
-0.026145368814468384,
0.04505743458867073,
-0.005231899209320545,
0.04087568446993828,
-0.03658091276884079,
0.0822787955403328,
0.03143848851323128,
-0.003842690959572792,
-0.027916019782423973,
0.011528072878718376,
-0.05515391752123833,
-0.05436277762055397,
-0.045773230493068695,
-0.06261325627565384,
0.022660575807094574,
-0.01839405857026577,
0.038878992199897766,
-0.03290775045752525,
-0.01921345479786396,
-0.04641367867588997,
0.014589040540158749,
0.011641093529760838,
-0.05025637149810791,
0.005867638625204563,
-0.03424515947699547,
-0.0028914366848766804,
-0.05737665295600891,
0.00030227049137465656,
0.027237897738814354,
-0.012865480035543442,
-0.05225306376814842,
-0.020965270698070526,
0.026070021092891693,
-0.014589040540158749,
-0.0063762301579117775,
-0.04110172390937805,
0.008843840099871159,
0.013487092219293118,
-0.009545507840812206,
-0.024864470586180687,
-0.015738079324364662,
0.026691632345318794,
0.015756916254758835,
-0.008556580170989037,
0.02742626518011093,
-0.02687999978661537,
0.04411559924483299,
0.04046127572655678,
0.027652306482195854,
0.023640085011720657,
0.06724709272384644,
-0.023150330409407616,
-0.0620858296751976,
0.022792432457208633,
-0.02024947479367256,
0.02584398165345192,
0.012140266597270966,
-0.01731094717979431,
-0.005806419067084789,
-0.0864228755235672,
-0.008420013822615147,
-0.004436047747731209,
-0.01879904791712761,
-0.017489895224571228,
-0.010944134555757046,
0.03803133964538574,
-0.003287007799372077,
-0.027256734669208527,
-0.05161261558532715,
0.04780759662389755,
-0.008622508496046066,
0.021455025300383568,
-0.0608426071703434,
-0.045509517192840576,
0.03748507425189018,
0.07312414795160294,
0.04373886436223984,
0.0318717323243618,
-0.002077925717458129,
-0.007379285525530577,
0.00546735804527998,
0.05982542410492897,
-0.01838463917374611,
0.043324459344148636,
0.08634752780199051,
-0.07602500170469284,
0.0004765101766679436,
0.03548838198184967,
0.03008224256336689,
0.003887428203597665,
-0.031815219670534134,
-0.011980154551565647,
0.003388255136087537,
-0.00803386140614748,
-0.07670312374830246,
0.05406138673424721,
0.03765460476279259,
-0.04004686698317528,
0.042759355157613754,
-0.04984196275472641,
0.0184599868953228,
0.015285998582839966,
0.0028608269058167934,
-0.007073188666254282,
0.02173757553100586,
-0.04294772446155548,
0.004556132014840841,
-0.028066713362932205,
0.028481122106313705,
0.017480477690696716,
-0.024035654962062836,
-0.003835627343505621,
0.07696683704853058,
-0.03582744300365448,
-0.022867778316140175,
0.003560140263289213,
0.05067078024148941,
-0.002637140918523073,
0.015474366024136543,
0.022735921666026115,
-0.020550861954689026,
0.009079298935830593,
-0.05824314057826996,
-0.021417351439595222,
-0.028010204434394836,
0.08318296074867249,
0.006277337204664946,
-0.06140770763158798,
0.0025594395119696856,
0.023414043709635735,
0.028499959036707878,
-0.04095103219151497,
0.0025476664304733276,
0.02501516416668892,
0.024563083425164223,
-0.06099330261349678,
-0.019401822239160538,
0.021775249391794205,
0.016359692439436913,
0.014315907843410969,
0.017179088667035103,
0.028292754665017128,
0.01599237509071827,
-0.001583461882546544,
-0.007327484432607889,
0.06072958558797836,
-0.016284344717860222,
0.03008224256336689,
0.007497014943510294,
-0.012573511339724064,
0.0023251576349139214,
-0.0003425928589422256,
-0.0013986264821141958,
0.04193054139614105,
-0.07048700749874115,
0.013684877194464207,
0.0021261947695165873,
-0.06231187283992767,
0.04219425469636917,
0.0237154308706522,
-0.06807591021060944,
0.022378023713827133,
-0.034433525055646896,
0.014410091564059258,
-0.026409082114696503,
0.04302306845784187,
-0.011433889158070087,
-0.004087568260729313,
0.036279525607824326,
-0.0771552100777626,
-0.05270514264702797,
-0.017828956246376038,
-0.004278290085494518,
-0.008123335428535938,
0.001815388910472393,
0.0005506797460839152,
-0.041817519813776016,
-0.012225031852722168,
0.01172585878521204,
0.022133147343993187,
0.013421163894236088,
0.06509970873594284,
0.08438850939273834,
-0.05715060979127884,
0.01428765244781971,
-0.032361485064029694,
0.05319489911198616,
-0.027803000062704086,
0.014956356026232243,
-0.03697648271918297,
-0.027878345921635628,
0.04121474549174309,
0.025881653651595116,
-0.004374828189611435,
-0.01199899148195982,
-0.002215669257566333,
-0.008222228847444057,
-0.004400728736072779,
-0.0010007007513195276,
0.03207893669605255,
0.01654805988073349,
0.06890472769737244,
-0.0436258465051651,
0.04162915423512459,
0.002919691614806652,
-0.027934856712818146,
-0.04965359717607498,
0.011367960833013058,
0.04656437411904335,
-0.06558945775032043,
-0.07440504431724548,
-0.014589040540158749,
0.05368465557694435,
-0.015314253978431225,
0.0297996923327446,
0.03383075073361397,
0.04441698640584946,
0.02017412707209587,
-0.02509051188826561,
0.04159148037433624,
0.00159758934751153,
-0.0023863769602030516,
0.020494351163506508,
-0.04381421208381653,
0.03970780596137047,
0.023357532918453217,
-0.02836810052394867,
-0.04068731516599655,
-0.04498209059238434,
0.052403755486011505,
0.00936185009777546,
0.08273087441921234,
0.057678040117025375,
-0.020211800932884216,
0.06430856138467789,
0.005801709834486246,
0.005382592789828777,
0.026032347232103348,
-0.06901774555444717,
-0.05259212478995323,
0.05764036625623703,
0.009700911119580269,
-0.04874943196773529,
-0.02283010631799698,
0.024242859333753586,
0.012940826825797558,
-0.03403795510530472,
-0.004556132014840841,
-0.044756047427654266,
0.056849222630262375,
-0.012488746084272861,
-0.006493959575891495,
0.027727652341127396,
0.00651279604062438,
-0.0018542397301644087,
-0.015163560397922993,
0.013477673754096031,
-0.03492328152060509,
-0.01853533275425434,
-0.021662229672074318,
-0.016218416392803192,
-0.032644037157297134,
0.05590738728642464,
0.012658276595175266,
0.05669853091239929,
-0.08506663143634796,
0.04792061820626259,
0.028255080804228783,
0.016105396673083305,
0.0016823546029627323,
0.01975972019135952,
-0.0649866834282875,
-0.028744835406541824,
-0.031683363020420074,
0.056095752865076065,
0.054588817059993744,
-0.008311702869832516,
-0.025617940351366997,
0.08551871031522751,
-0.06287697702646255,
-0.0037932447157800198,
0.04712947458028793,
0.010313104838132858,
0.03936874493956566,
0.04260866343975067,
-0.028142061084508896,
0.03062850795686245,
-0.0062019904144108295,
-0.014127540402114391,
-0.061709098517894745,
0.01790430210530758,
-0.009493706747889519,
0.009597308933734894,
0.06265093386173248,
0.03959478810429573,
0.025128185749053955,
0.006056005600839853,
-0.00874965637922287,
0.007068479433655739,
-0.001272655907087028,
-0.03656207397580147,
-0.013684877194464207,
-0.017179088667035103,
0.041666824370622635,
-0.00040646109846420586,
0.022717084735631943,
-0.007464050780981779,
-0.01462671346962452,
0.01165993046015501,
0.01316686812788248,
-0.04807130992412567,
0.0767408013343811,
0.014447764493525028,
0.0077984025701880455,
0.012611184269189835,
0.0015457883710041642,
0.039067357778549194,
0.03015759028494358,
-0.05654783546924591,
0.0035342397168278694,
-0.013308143243193626,
-0.0030656761955469847,
0.05462649092078209,
-0.01179178711026907,
-0.002488801721483469,
-0.003268171101808548,
0.014071030542254448,
-0.042759355157613754,
0.025749797001481056,
-0.039293400943279266,
0.060880281031131744,
0.042344946414232254,
-0.0032352067064493895,
0.009055753238499165,
-0.0705246850848198,
-0.009592600166797638,
0.04822200536727905,
0.03629836067557335,
-0.011641093529760838,
0.04690343514084816,
-0.05696224421262741,
0.006654071621596813,
-0.07711753249168396,
0.011471563018858433,
-0.0616714246571064,
0.006724709179252386,
0.05892126262187958,
-0.05338326469063759,
-0.0037955990992486477,
0.006150189321488142,
0.01996692456305027
] |
724,887 | markov_clustering.mcl | sparse_allclose |
Version of np.allclose for use with sparse matrices
| def sparse_allclose(a, b, rtol=1e-5, atol=1e-8):
"""
Version of np.allclose for use with sparse matrices
"""
c = np.abs(a - b) - rtol * np.abs(b)
# noinspection PyUnresolvedReferences
return c.max() <= atol
| (a, b, rtol=1e-05, atol=1e-08) | [
-0.01812368631362915,
-0.0036160657182335854,
0.025251757353544235,
0.035831134766340256,
-0.009200588800013065,
-0.005770963151007891,
-0.07624088227748871,
0.02402038872241974,
-0.02258089929819107,
-0.02202591486275196,
-0.022979794070124626,
-0.019944727420806885,
0.0475204773247242,
-0.030246611684560776,
-0.032327800989151,
0.0022763002198189497,
-0.0008438570657745004,
-0.007518294733017683,
-0.01589507982134819,
-0.005094577092677355,
-0.04207470268011093,
0.018366491422057152,
-0.029448822140693665,
0.02872040681540966,
0.0069503034465014935,
0.020586427301168442,
0.04266437143087387,
0.0063302828930318356,
-0.002203675452619791,
0.03291746973991394,
-0.031165802851319313,
-0.0341314971446991,
0.00781312957406044,
-0.0053287106566131115,
0.020499709993600845,
0.007483608089387417,
0.03704516217112541,
-0.027194201946258545,
0.04214407503604889,
-0.052862197160720825,
-0.003678934881463647,
-0.018800072371959686,
0.011758716776967049,
-0.016649510711431503,
0.01186277624219656,
-0.011125688441097736,
-0.012339715845882893,
0.02206060104072094,
-0.08158260583877563,
0.07311910390853882,
0.009859631769359112,
-0.07811395823955536,
0.03711453452706337,
0.08297006040811539,
-0.06978920102119446,
0.0065427375957369804,
0.003581379074603319,
-0.009798930957913399,
-0.055914606899023056,
-0.02818276546895504,
-0.00848951656371355,
-0.008272726088762283,
0.0003213919117115438,
-0.01704840548336506,
-0.03295215591788292,
0.002269796561449766,
-0.08734055608510971,
-0.0491507425904274,
0.045057740062475204,
0.026621874421834946,
-0.03317761793732643,
0.015565558336675167,
-0.014143412932753563,
-0.04738173261284828,
-0.019944727420806885,
0.01421278528869152,
0.0033429095055907965,
0.02651781402528286,
-0.07409032434225082,
-0.03295215591788292,
-0.0473470464348793,
-0.029674284160137177,
0.041138164699077606,
-0.025563936680555344,
-0.031668756157159805,
0.0203262772411108,
0.011992850340902805,
0.06326813995838165,
0.060736026614904404,
-0.010067750699818134,
0.0013170023448765278,
0.01253916323184967,
0.03683704137802124,
-0.014629023149609566,
0.06406593322753906,
0.04623707756400108,
0.011888791806995869,
0.01786353811621666,
-0.02006612904369831,
-0.013493041507899761,
0.04530054330825806,
0.0028659706003963947,
-0.005220315419137478,
0.024072417989373207,
0.0052246511913836,
0.013588428497314453,
-0.006239230744540691,
-0.05275813862681389,
0.035588327795267105,
0.024211164563894272,
-0.027142170816659927,
-0.04498836398124695,
-0.07589402049779892,
0.022962450981140137,
-0.023829612880945206,
-0.02034362033009529,
0.07138478010892868,
0.03943852707743645,
0.0009647177648730576,
-0.007201780565083027,
0.0710379108786583,
0.003223674837499857,
0.019424429163336754,
0.010674764402210712,
0.07291097939014435,
-0.022476838901638985,
0.0752696618437767,
0.045647408813238144,
0.006850580219179392,
-0.008537210524082184,
0.027974646538496017,
0.011021628975868225,
0.041415657848119736,
0.07506154477596283,
-0.01437754649668932,
0.03205030784010887,
0.02121078222990036,
0.044502753764390945,
-0.028512287884950638,
-0.006065798457711935,
0.021713737398386,
0.011229747906327248,
-0.024072417989373207,
-0.006269581615924835,
0.008745329454541206,
-0.020811889320611954,
-0.07409032434225082,
-0.04387839883565903,
-0.03655955195426941,
0.052584704011678696,
0.012755953706800938,
-0.04471087455749512,
0.027228888124227524,
-0.032761380076408386,
-0.0006194788729771972,
-0.08456563949584961,
0.06618180871009827,
-0.02367352321743965,
-0.0066121104173362255,
0.0020020604133605957,
0.010830854065716267,
0.025858771055936813,
-0.0012107749935239553,
0.015747662633657455,
-0.035258807241916656,
0.0012899035355076194,
-0.06250503659248352,
0.01589507982134819,
-0.07728148251771927,
-0.010423287749290466,
-0.01752534508705139,
-0.0008742077043280005,
-0.043149981647729874,
0.0005999677232466638,
-0.00732751889154315,
-0.09171105921268463,
-0.03225842863321304,
-0.006109156645834446,
0.02625766582787037,
-0.06441279500722885,
-0.018349148333072662,
0.020759858191013336,
-0.043982457369565964,
0.02793996036052704,
0.022459495812654495,
0.04530054330825806,
-0.0351027175784111,
-0.028078706935048103,
0.035258807241916656,
0.022979794070124626,
-0.03536286577582359,
0.042560312896966934,
0.0030177237931638956,
0.022459495812654495,
0.0002693622082006186,
-0.025182384997606277,
0.020308934152126312,
0.011628642678260803,
0.047589853405952454,
0.04883856698870659,
-0.03463445231318474,
-0.05386810377240181,
0.026621874421834946,
-0.03187687695026398,
0.10919304192066193,
-0.03291746973991394,
-0.032327800989151,
-0.060736026614904404,
-0.05973012000322342,
0.037218593060970306,
-0.059036388993263245,
0.014299501664936543,
-0.05133599042892456,
0.046722691506147385,
0.01296407263725996,
0.052619390189647675,
0.012183626182377338,
-0.006291260477155447,
0.013024773448705673,
-0.04935886338353157,
0.06163787841796875,
-0.024332566186785698,
0.08380253612995148,
0.008199016563594341,
-0.003915236331522465,
0.03345511108636856,
0.03905697911977768,
0.07721211016178131,
0.009252618998289108,
-0.021054694429039955,
0.006269581615924835,
0.021314842626452446,
0.03662892431020737,
-0.005840336438268423,
-0.041172854602336884,
-0.07721211016178131,
0.003928244113922119,
0.05275813862681389,
0.041485030204057693,
-0.02348274737596512,
-0.026413755491375923,
0.0011923477286472917,
-0.0401669442653656,
-0.004621973726898432,
-0.016380690038204193,
-0.06309470534324646,
-0.022147318348288536,
-0.015808364376425743,
0.017230508849024773,
0.007977890782058239,
-0.04821420833468437,
-0.029448822140693665,
0.05522087588906288,
-0.03843262046575546,
0.037565458565950394,
-0.05293156951665878,
-0.048942625522613525,
-0.02398570068180561,
0.011125688441097736,
-0.010700779035687447,
0.04831826686859131,
0.0551861897110939,
-0.014100054278969765,
0.036420803517103195,
-0.0390222892165184,
0.01702238991856575,
0.022494181990623474,
0.021418901160359383,
0.02847760170698166,
-0.009408707730472088,
0.037808265537023544,
0.007622354198247194,
-0.051786914467811584,
0.026639217510819435,
-0.030368013307452202,
0.018782729282975197,
0.01324156392365694,
-0.02707279846072197,
0.0031911563128232956,
0.021297499537467957,
-0.04262968525290489,
-0.03263998031616211,
-0.028668375685811043,
0.03711453452706337,
-0.061568502336740494,
-0.0020259073935449123,
-0.048977311700582504,
-0.026379069313406944,
-0.0012237824266776443,
-0.04262968525290489,
-0.03433961793780327,
-0.0022611250169575214,
0.05879358574748039,
-0.026049546897411346,
0.007175765931606293,
0.01696169003844261,
-0.008511194959282875,
-0.0022123472299426794,
0.014065368101000786,
0.031165802851319313,
-0.019649891182780266,
0.0017289043171331286,
-0.005818657111376524,
-0.0362473726272583,
0.04099941998720169,
-0.010813510045409203,
-0.042941864579916,
0.08671620488166809,
0.015131977386772633,
0.05782236531376839,
-0.020222218707203865,
-0.03229311481118202,
0.029500851407647133,
0.004994853399693966,
0.007405563723295927,
0.040617868304252625,
-0.04575146734714508,
-0.015773676335811615,
0.017915567383170128,
0.019164280965924263,
0.030541446059942245,
-0.001541380537673831,
0.013675144873559475,
-0.039750706404447556,
-0.03818981721997261,
-0.0793626680970192,
0.03593519330024719,
-0.06448216736316681,
0.009720886126160622,
0.02703811228275299,
0.036386117339134216,
-0.035258807241916656,
0.05657365173101425,
0.009157231077551842,
0.014152084477245808,
0.015244708396494389,
0.030576132237911224,
-0.006525394041091204,
-0.01753401570022106,
-0.007622354198247194,
-0.00947808101773262,
0.04831826686859131,
-0.00024145042698364705,
-0.04713892936706543,
-0.02542519010603428,
-0.017629403620958328,
-0.06541870534420013,
-0.04651457071304321,
-0.002751071471720934,
-0.018817415460944176,
-0.05771830305457115,
-0.04273374378681183,
0.04023631662130356,
0.018886789679527283,
0.021904513239860535,
0.10801370441913605,
-0.007115064188838005,
-0.017230508849024773,
0.03746140003204346,
0.02313588187098503,
-0.032466545701026917,
0.035310838371515274,
0.022216690704226494,
-0.04679206386208534,
-0.030315984040498734,
-0.010804838500916958,
0.014819798991084099,
-0.0027857581153512,
-0.008159995079040527,
-0.0062522380612790585,
-0.0009582140482962132,
-0.038397934287786484,
0.061811309307813644,
0.001127310679294169,
-0.03505069017410278,
-0.0030480744317173958,
-0.04654925689101219,
0.027697155252099037,
-0.05137067660689354,
-0.03825918957591057,
0.0166928693652153,
-0.013744518160820007,
-0.0270207691937685,
0.00342095410451293,
-0.0025884786155074835,
-0.01227034255862236,
0.0022611250169575214,
-0.01952848955988884,
-0.02537316083908081,
0.04356621950864792,
-0.0014091383200138807,
-0.053972166031599045,
-0.03506803140044212,
0.044780246913433075,
-0.03985476493835449,
0.0035987223964184523,
0.0542149692773819,
0.01354507077485323,
-0.04079130291938782,
-0.028841808438301086,
0.005705926101654768,
0.030836282297968864,
-0.053659986704587936,
-0.047555167227983475,
-0.00919191725552082,
0.03505069017410278,
-0.013172191567718983,
0.019441772252321243,
-0.02618829347193241,
0.0881730318069458,
-0.018245089799165726,
-0.03368057310581207,
0.021713737398386,
-0.017169808968901634,
-0.0780445784330368,
0.01145520992577076,
-0.04124222695827484,
0.006785542704164982,
0.01533142477273941,
-0.03943852707743645,
0.027575751766562462,
-0.018834758549928665,
-0.0014665877679362893,
-0.03662892431020737,
0.02485286444425583,
-0.05997292697429657,
-0.0406525544822216,
0.001738659804686904,
-0.008732321672141552,
-0.031703442335128784,
-0.034478362649679184,
-0.02398570068180561,
0.01838383451104164,
-0.0014253975823521614,
-0.02766246907413006,
0.031911563128232956,
-0.005523822270333767,
-0.02006612904369831,
-0.024384595453739166,
0.008138315752148628,
0.06784676015377045,
-0.02537316083908081,
0.0019977244082838297,
-0.011533254757523537,
-0.03128720447421074,
-0.032241083681583405,
0.06458622962236404,
-0.0005286978557705879,
0.03296950086951256,
0.04509242624044418,
-0.002677362645044923,
-0.03905697911977768,
-0.023257285356521606,
-0.036073941737413406,
-0.013536399230360985,
-0.0574754998087883,
0.06292127817869186,
-0.06559213250875473,
-0.038085754960775375,
0.008819038048386574,
0.004700018092989922,
-0.01407403964549303,
-0.054006852209568024,
-0.023049166426062584,
0.004964502528309822,
0.022736988961696625,
-0.009530110284686089,
0.06215817481279373,
0.03496397286653519,
0.00908785779029131,
-0.008688963018357754,
-0.002655683783814311,
-0.04269905760884285,
-0.0003208499401807785,
0.047867342829704285,
0.021349528804421425,
-0.04044443741440773,
0.07263348996639252,
-0.02618829347193241,
0.0245753712952137,
-0.03635143116116524,
0.002060593804344535,
-0.023344000801444054,
-0.021020008251070976,
0.0729803591966629,
-0.00990299042314291,
0.00440301513299346,
-0.04741641879081726,
0.028373541310429573,
-0.054561834782361984,
0.04769391193985939,
-0.04471087455749512,
0.013180863112211227,
0.07603276520967484,
0.05806516855955124,
-0.021644365042448044,
0.004478891845792532,
0.0192683394998312,
0.009313319809734821,
0.028408227488398552,
0.010423287749290466,
0.0013722839066758752,
-0.044780246913433075,
0.038640741258859634,
0.03173812851309776,
0.027697155252099037,
-0.02037830837070942,
-0.03042004443705082,
-0.025182384997606277,
0.007032684050500393,
-0.030368013307452202,
0.011828090064227581,
0.00011313754657749087,
0.060978833585977554,
0.0267779640853405,
0.04401714354753494,
-0.030905654653906822,
-0.09247415512800217,
0.032327800989151,
-0.0006574172293767333,
0.004231750499457121,
0.08692432194948196,
-0.010614063590765,
-0.03309090435504913,
-0.06274784356355667,
-0.006594767328351736,
-0.04207470268011093,
0.021679051220417023,
0.021141409873962402,
0.02570268325507641,
-0.0063172755762934685,
-0.030749564990401268,
0.015105962753295898,
0.028928525745868683,
-0.0667714774608612,
0.008407135494053364,
-0.0016454398864880204,
-0.014152084477245808,
0.05803048238158226,
-0.04110347852110863,
0.010882883332669735,
-0.010501331649720669,
0.02790527418255806,
-0.012166283093392849,
-0.038918230682611465,
0.09705277532339096,
-0.007882502861320972,
0.022962450981140137,
-0.009330663830041885,
0.008333426900207996,
0.007873831316828728,
0.026847336441278458,
0.031963590532541275,
0.017629403620958328,
-0.005003524944186211,
0.008138315752148628,
-0.016250615939497948,
-0.011247090995311737,
0.003947755321860313,
-0.01617257110774517,
0.04623707756400108,
0.018626639619469643,
0.08851990103721619,
-0.02344806119799614,
-0.008186009712517262,
-0.035900507122278214,
0.053139690309762955,
0.010908897966146469,
0.03225842863321304,
0.037253279238939285,
-0.007175765931606293,
-0.03763483092188835,
-0.05255001783370972,
-0.0006877678679302335,
-0.015374782495200634,
-0.009400036185979843,
-0.02785324491560459,
-0.017169808968901634,
0.0029136643279343843,
-0.02565065212547779,
0.03015989437699318,
0.05046882852911949,
-0.009859631769359112,
-0.00018169754184782505,
0.019112251698970795,
-0.017386598512530327,
-0.0496363528072834,
-0.00988564733415842,
0.037496086210012436,
-0.020465023815631866,
-0.03433961793780327,
0.008029920049011707,
0.013397653587162495,
-0.0501219667494297,
-0.0023326659575104713,
-0.021852482110261917,
0.032449204474687576,
0.08109699189662933,
0.03092299774289131,
0.023344000801444054,
0.01614655740559101,
-0.04054849594831467,
0.005085905082523823,
-0.024488655850291252,
-0.022702300921082497,
0.04856107383966446,
-0.024367252364754677,
-0.039161037653684616,
-0.012912042438983917,
0.017629403620958328,
0.03187687695026398,
0.01490651536732912,
0.008437486365437508,
-0.053105004131793976,
-0.022251376882195473,
-0.012972744181752205,
-0.046757377684116364,
0.020742515102028847,
-0.019910039380192757,
0.03217171132564545,
0.05216846615076065,
-0.007631025742739439,
0.023222599178552628,
0.017195822671055794,
-0.013822562992572784,
0.041658464819192886,
0.05043414235115051,
-0.038328561931848526,
-0.00747060077264905,
0.0006297764484770596,
-0.0050815693102777,
0.004268605262041092,
0.011385837569832802,
-0.027766527608036995,
-0.03548426926136017,
-0.018227744847536087,
0.01700504682958126,
0.03714922070503235,
0.035831134766340256,
0.08172135055065155,
-0.05685114115476608,
0.011264435015618801,
-0.023344000801444054,
-0.0051596141420304775,
0.006018104497343302,
0.0004642026615329087,
0.015964452177286148,
-0.03829387575387955,
0.09011548012495041,
0.02813073620200157,
-0.03066284954547882,
0.07332722097635269,
0.016840286552906036,
-0.035310838371515274,
0.0602504163980484,
0.009660185314714909,
-0.003234514268115163,
0.06406593322753906,
-0.005987753625959158,
0.004077829420566559,
0.058412034064531326,
-0.040895361453294754,
-0.010995614342391491,
-0.05320906266570091,
0.02820010855793953,
-0.00043520695180632174,
0.03905697911977768,
0.031928904354572296,
-0.032761380076408386,
-0.016372019425034523,
-0.02847760170698166,
0.03439164534211159,
0.012062223628163338,
-0.005294024012982845,
-0.0013787875650450587,
0.017794163897633553,
-0.02317056991159916,
0.012174954637885094,
0.003538021119311452,
-0.007054362911731005,
0.05244595929980278,
0.018539924174547195,
-0.008576232008635998,
-0.017967596650123596,
0.0033906034659594297,
-0.03451304882764816,
-0.01702238991856575,
0.09254352748394012,
-0.011342478916049004,
-0.06080540269613266,
0.048907939344644547,
-0.06961576640605927,
0.03680235520005226,
0.016398033127188683,
-0.01338030956685543,
0.03617800027132034,
0.003355917055159807,
0.08893613517284393,
0.022459495812654495,
0.0104493023827672,
0.016068512573838234,
-0.0010416783625259995,
0.0020844407845288515,
0.015140648931264877,
0.033056218177080154,
0.046167705208063126,
-0.029448822140693665,
0.01781150884926319,
-0.03676766902208328,
-0.05522087588906288,
0.017239181324839592,
0.007123736198991537,
0.025269102305173874,
-0.06264378130435944,
-0.03982007876038551,
-0.018279775977134705,
0.005259337835013866,
-0.03881417214870453,
-0.0031044399365782738,
0.03659423813223839,
-0.06500246375799179,
0.028893839567899704,
0.035831134766340256,
-0.022719645872712135,
-0.04093004763126373,
0.023951014503836632,
-0.003399275243282318,
-0.0340447798371315,
0.05244595929980278,
-0.043358102440834045,
-0.02813073620200157,
0.041693150997161865,
-0.024679431691765785,
0.05459652096033096,
-0.07166226953268051,
0.07540840655565262,
-0.061256326735019684,
-0.0574754998087883,
0.09615092724561691,
0.06441279500722885,
0.046479884535074234,
0.0333857387304306,
0.06829768419265747,
-0.009816274046897888,
-0.06489840894937515,
0.02542519010603428,
-0.024124447256326675,
0.021679051220417023,
-0.02821745164692402,
-0.020759858191013336,
0.012036208994686604,
-0.005662567913532257,
-0.012018865905702114,
0.012200969271361828,
0.03985476493835449,
0.009850960224866867,
0.004004120826721191,
-0.019996756687760353,
0.004043142776936293,
-0.04287249222397804,
0.03964664787054062,
-0.0013842073967680335,
-0.03954258933663368,
0.11162109673023224,
-0.08616121858358383,
0.032501231878995895,
-0.03421821445226669,
0.10045205056667328
] |
724,890 | pipfile.api | Pipfile | null | class Pipfile(object):
def __init__(self, filename):
super(Pipfile, self).__init__()
self.filename = filename
self.data = None
@staticmethod
def find(max_depth=3):
"""Returns the path of a Pipfile in parent directories."""
i = 0
for c, d, f in walk_up(os.getcwd()):
i += 1
if i < max_depth:
if 'Pipfile':
p = os.path.join(c, 'Pipfile')
if os.path.isfile(p):
return p
raise RuntimeError('No Pipfile found!')
@classmethod
def load(klass, filename):
"""Load a Pipfile from a given filename."""
p = PipfileParser(filename=filename)
pipfile = klass(filename=filename)
pipfile.data = p.parse()
return pipfile
@property
def hash(self):
"""Returns the SHA256 of the pipfile's data."""
content = json.dumps(self.data, sort_keys=True, separators=(",", ":"))
return hashlib.sha256(content.encode("utf8")).hexdigest()
@property
def contents(self):
"""Returns the contents of the pipfile."""
with codecs.open(self.filename, 'r', 'utf-8') as f:
return f.read()
def lock(self):
"""Returns a JSON representation of the Pipfile."""
data = self.data
data['_meta']['hash'] = {"sha256": self.hash}
# return _json.dumps(data)
return json.dumps(data, indent=4, separators=(',', ': '))
def assert_requirements(self):
""""Asserts PEP 508 specifiers."""
# Support for 508's implementation_version.
if hasattr(sys, 'implementation'):
implementation_version = format_full_version(sys.implementation.version)
else:
implementation_version = "0"
# Default to cpython for 2.7.
if hasattr(sys, 'implementation'):
implementation_name = sys.implementation.name
else:
implementation_name = 'cpython'
lookup = {
'os_name': os.name,
'sys_platform': sys.platform,
'platform_machine': platform.machine(),
'platform_python_implementation': platform.python_implementation(),
'platform_release': platform.release(),
'platform_system': platform.system(),
'platform_version': platform.version(),
'python_version': platform.python_version()[:3],
'python_full_version': platform.python_version(),
'implementation_name': implementation_name,
'implementation_version': implementation_version
}
# Assert each specified requirement.
for marker, specifier in self.data['_meta']['requires'].items():
if marker in lookup:
try:
assert lookup[marker] == specifier
except AssertionError:
raise AssertionError('Specifier {!r} does not match {!r}.'.format(marker, specifier))
| (filename) | [
0.06350443512201309,
-0.0282930638641119,
-0.0605851486325264,
0.0025293799117207527,
0.018695415928959846,
-0.038650523871183395,
0.020834892988204956,
0.05302700027823448,
-0.01425650529563427,
-0.0467885285615921,
0.058025773614645004,
0.015976082533597946,
-0.005808576010167599,
0.018515460193157196,
-0.032192107290029526,
0.006818328518420458,
0.08333957195281982,
0.03903043270111084,
-0.020145060494542122,
0.0007117005297914147,
-0.001185959205031395,
0.03033256344497204,
0.035531289875507355,
0.03267199173569679,
0.008762851357460022,
0.048948001116514206,
0.026133593171834946,
0.007848075591027737,
0.06198480352759361,
-0.0471484400331974,
-0.07230227440595627,
-0.007243224419653416,
-0.0058835577219724655,
0.059585392475128174,
0.03739083185791969,
-0.0139665761962533,
0.058705609291791916,
0.012087036855518818,
-0.05066758021712303,
-0.05342690274119377,
0.005913550034165382,
0.01902533508837223,
-0.0052637094631791115,
-0.04726841300725937,
-0.022974368184804916,
0.012566919438540936,
-0.03987022489309311,
0.0656639039516449,
-0.02093486860394478,
-0.01189708337187767,
0.026853416115045547,
0.022254543378949165,
0.045468851923942566,
-0.00846292544156313,
0.019355254247784615,
0.08725860714912415,
0.06594383716583252,
0.02277441695332527,
0.005438666790723801,
0.003894045250490308,
-0.015436215326189995,
0.034591518342494965,
0.007898063398897648,
-0.07350198179483414,
-0.044749028980731964,
-0.0010041288333013654,
-0.024673951789736748,
-0.07274216413497925,
-0.000027727577617042698,
0.015026316046714783,
-0.0033716734033077955,
-0.020914873108267784,
0.003424160648137331,
0.003811565460637212,
0.09293721616268158,
-0.014996323734521866,
-0.022174563258886337,
-0.04810820519924164,
0.05154736340045929,
-0.03613114356994629,
0.00038178139948286116,
-0.04578877612948418,
0.004103993996977806,
-0.04594873636960983,
0.018875371664762497,
0.003874050220474601,
0.071462482213974,
0.02615358866751194,
0.05618622526526451,
0.017745649442076683,
-0.05750590190291405,
0.06282459944486618,
-0.0054086740128695965,
0.05806576460599899,
0.07374192029237747,
-0.03885047510266304,
0.009737612679600716,
-0.01737574115395546,
-0.08829835057258606,
0.04258956015110016,
-0.019925115630030632,
0.01804557628929615,
-0.059585392475128174,
-0.007703111506998539,
-0.025553734973073006,
0.029392793774604797,
-0.016565939411520958,
0.05190727487206459,
-0.016056064516305923,
-0.08102013915777206,
-0.05426669493317604,
-0.0364510640501976,
-0.0252138189971447,
0.0004223964351695031,
0.03819063678383827,
-0.015296249650418758,
-0.0348314605653286,
-0.03871050849556923,
0.0743417739868164,
0.0032492035534232855,
0.014026561751961708,
0.06990285962820053,
-0.018915362656116486,
0.03819063678383827,
0.04930791258811951,
-0.0202250424772501,
-0.01490634586662054,
-0.007263219449669123,
0.05046762898564339,
-0.027953147888183594,
0.01069737784564495,
0.00022947498655412346,
-0.012886840850114822,
-0.00039615287096239626,
0.0036715997848659754,
-0.027553245425224304,
0.0025506247766315937,
0.014696396887302399,
-0.04041009396314621,
0.01158715970814228,
0.048987992107868195,
-0.01621602475643158,
-0.009667630307376385,
-0.014116539619863033,
-0.0063934326171875,
-0.031112372875213623,
-0.02111482433974743,
-0.04914795234799385,
-0.01768566481769085,
0.016955843195319176,
0.05650614574551582,
-0.07598137110471725,
-0.046308647841215134,
0.02553373947739601,
0.04682851955294609,
0.00645841658115387,
-0.03457152470946312,
-0.0812600776553154,
-0.035491298884153366,
-0.011817103251814842,
-0.05262709781527519,
-0.039450328797101974,
0.030732465907931328,
0.03151227533817291,
-0.0049962750636041164,
0.03723087161779404,
-0.008073020726442337,
-0.08245978504419327,
-0.003401665948331356,
0.019305266439914703,
-0.019325261935591698,
-0.010747365653514862,
-0.016146041452884674,
0.014936338178813457,
0.044269148260354996,
-0.02785317227244377,
0.008103013038635254,
0.004051506519317627,
0.012306982651352882,
-0.016026070341467857,
-0.00822298415005207,
-0.03523136302828789,
-0.013976573944091797,
0.03453153371810913,
0.03507140278816223,
0.04410918802022934,
0.037890709936618805,
0.023314284160733223,
0.04794824495911598,
0.01684587076306343,
-0.08773849159479141,
0.0030267578549683094,
0.03471149131655693,
0.07206233590841293,
0.021454740315675735,
-0.030132612213492393,
-0.0213947556912899,
0.022034598514437675,
0.02165469154715538,
-0.03529134765267372,
-0.04686851054430008,
0.0178656205534935,
0.05394677445292473,
0.005563635844737291,
-0.061464931815862656,
-0.0010753613896667957,
-0.009662630967795849,
-0.009412692859768867,
-0.029072873294353485,
0.03297191858291626,
0.0050787548534572124,
-0.02825307287275791,
-0.0027568242512643337,
-0.011167262680828571,
0.03675099089741707,
-0.035671256482601166,
0.07650124281644821,
-0.002045748522505164,
-0.031652241945266724,
0.02205459401011467,
0.112452432513237,
0.059465423226356506,
-0.03823062777519226,
0.06678362935781479,
-0.0020070080645382404,
-0.018785394728183746,
0.00870786514133215,
0.08094015717506409,
0.014866355806589127,
0.012336975894868374,
0.04846811667084694,
-0.01803557761013508,
0.03741082921624184,
0.006128497421741486,
-0.012017053551971912,
-0.07734104245901108,
0.0050362651236355305,
0.012256994843482971,
-0.032372064888477325,
-0.003806566819548607,
-0.00788306724280119,
0.006803331896662712,
0.008617887273430824,
0.016685908660292625,
-0.019185297191143036,
-0.05634618550539017,
-0.006538397166877985,
-0.01516628172248602,
0.019275274127721786,
-0.0116071542724967,
0.01158715970814228,
0.03369174152612686,
-0.03867052122950554,
-0.019005341455340385,
0.013826610520482063,
-0.024513989686965942,
-0.0010241239797323942,
-0.06198480352759361,
0.07866071909666061,
0.0360911525785923,
0.017355745658278465,
-0.032771967351436615,
0.023634206503629684,
0.016296004876494408,
0.02151472494006157,
-0.04374927282333374,
0.0306524857878685,
-0.02005508355796337,
-0.05942543223500252,
0.01666591502726078,
0.023734182119369507,
0.02811310812830925,
0.02735329419374466,
0.039810240268707275,
-0.05274706706404686,
-0.06082508713006973,
-0.004598872736096382,
0.03267199173569679,
0.04874804988503456,
0.0004945662803947926,
0.024853907525539398,
0.017985589802265167,
0.01336672343313694,
0.050947509706020355,
0.007158244960010052,
-0.040210142731666565,
-0.05106747895479202,
0.021274784579873085,
0.0025593724567443132,
0.03289193660020828,
-0.00846792384982109,
0.015076303854584694,
0.004074001219123602,
-0.06318450719118118,
0.03769075870513916,
0.05518646910786629,
-0.0342915914952755,
-0.004976280033588409,
0.04806821420788765,
-0.10605400055646896,
0.0023231804370880127,
0.024653956294059753,
-0.022974368184804916,
-0.024753931909799576,
-0.02583366632461548,
0.005518646910786629,
0.009667630307376385,
-0.05270707979798317,
-0.04710845276713371,
-0.004826316609978676,
0.06630374491214752,
0.0037140895146876574,
0.03427159786224365,
0.03283195197582245,
0.037530798465013504,
0.04538887366652489,
0.001667091273702681,
0.04770830273628235,
-0.0034866451751440763,
0.01666591502726078,
-0.033211857080459595,
0.013446703553199768,
0.053346920758485794,
0.001084109186194837,
0.01710580661892891,
-0.05742591992020607,
0.03543131425976753,
-0.0213947556912899,
-0.00964763481169939,
0.019365252926945686,
-0.019815141335129738,
0.04126988351345062,
0.03577123209834099,
0.028812935575842857,
0.022294534370303154,
0.09021788090467453,
0.013236754573881626,
-0.06498406827449799,
0.041589803993701935,
-0.04718843102455139,
0.08581896126270294,
-0.031572259962558746,
-0.009667630307376385,
-0.006343444809317589,
-0.07706110924482346,
-0.06426424533128738,
0.043989215046167374,
0.008602891117334366,
-0.009902572259306908,
-0.0009210241842083633,
0.04478901997208595,
0.026753440499305725,
-0.011347218416631222,
0.0038715507835149765,
-0.003436657367274165,
-0.054066743701696396,
-0.0252138189971447,
-0.029012886807322502,
0.016635920852422714,
0.015426218509674072,
0.024493996053934097,
-0.036511048674583435,
-0.020285027101635933,
0.00776309659704566,
-0.0700228363275528,
-0.07034275680780411,
0.03547130525112152,
0.011087281629443169,
0.011927075684070587,
0.03039254993200302,
0.009917568415403366,
-0.024613965302705765,
-0.030012642964720726,
-0.12268992513418198,
0.014586424455046654,
-0.013226757757365704,
0.031352315098047256,
0.033751726150512695,
-0.057545892894268036,
-0.0522271953523159,
0.021934622898697853,
-0.0018532956019043922,
-0.03367174416780472,
-0.007968046702444553,
-0.05046762898564339,
0.0030717470217496157,
0.04322940111160278,
-0.019755156710743904,
0.05074755847454071,
0.07118254899978638,
0.02437402494251728,
0.011707129888236523,
0.013186766766011715,
0.0100675318390131,
0.01309678889811039,
-0.0169658400118351,
-0.004936289973556995,
0.0028592990711331367,
-0.02289438806474209,
0.027553245425224304,
0.0342915914952755,
-0.03987022489309311,
0.021714676171541214,
-0.014896348118782043,
0.018945354968309402,
-0.006548394449055195,
0.0609450601041317,
-0.01732575334608555,
0.0054486640729010105,
0.030752461403608322,
-0.017975592985749245,
0.001502131693996489,
0.04458906874060631,
-0.05394677445292473,
-0.006713354028761387,
0.024573976173996925,
-0.03915040194988251,
-0.07082263380289078,
0.03445155546069145,
-0.038650523871183395,
-0.003889046609401703,
0.014476451091468334,
0.013756627216935158,
0.02057495526969433,
-0.03697093576192856,
-0.0000326091940223705,
-0.03783072531223297,
0.018185541033744812,
0.004298945888876915,
0.0453488826751709,
0.002461896510794759,
0.03207213804125786,
-0.031172357499599457,
-0.04554883390665054,
0.008103013038635254,
-0.05770585313439369,
-0.012376965954899788,
-0.017255770042538643,
0.03289193660020828,
0.0018283018143847585,
0.026313548907637596,
0.03961028903722763,
0.06138494983315468,
0.018165547400712967,
-0.014106541872024536,
0.0674634575843811,
-0.04698847979307175,
0.08106012642383575,
-0.011567164212465286,
-0.013716637156903744,
-0.0178656205534935,
0.014016564004123211,
0.030852437019348145,
-0.04882802814245224,
-0.05070756748318672,
-0.03409164398908615,
-0.004001519177109003,
-0.023534230887889862,
-0.02231452986598015,
-0.012117029167711735,
0.01608605682849884,
0.03613114356994629,
0.06326448917388916,
-0.0339316800236702,
0.012237000279128551,
-0.05350688099861145,
-0.013846605084836483,
0.022294534370303154,
-0.03703092038631439,
0.03421161323785782,
0.03007262758910656,
-0.007683116476982832,
-0.011097279377281666,
0.00450139632448554,
-0.06570389121770859,
0.04734839126467705,
0.052587106823921204,
0.012406958267092705,
-0.018065571784973145,
-0.03685096651315689,
0.029572749510407448,
-0.009907570667564869,
0.011597156524658203,
0.030852437019348145,
-0.02245449461042881,
-0.07838078588247299,
0.047788284718990326,
-0.05106747895479202,
0.016475960612297058,
-0.0350114181637764,
-0.04486899822950363,
-0.008018034510314465,
0.00930771790444851,
0.042829498648643494,
0.03475148230791092,
0.018185541033744812,
0.008602891117334366,
0.04077000543475151,
-0.0004205219156574458,
-0.09709619730710983,
-0.004516392946243286,
0.03529134765267372,
0.05706600844860077,
-0.030732465907931328,
0.03757078945636749,
0.010547414422035217,
-0.009097769856452942,
-0.02223454974591732,
0.030352558940649033,
-0.0062334719114005566,
0.013626659289002419,
0.011207252740859985,
0.02641352452337742,
0.010267483070492744,
0.018725410103797913,
0.03505140542984009,
-0.02361421100795269,
0.052107226103544235,
-0.01870541460812092,
-0.0015396225498989224,
0.01674589514732361,
0.01759568601846695,
0.07370193302631378,
-0.07526154816150665,
-0.023114332929253578,
-0.010797352530062199,
0.015606174245476723,
-0.033971671015024185,
0.00150962988846004,
0.020734917372465134,
0.03151227533817291,
-0.038290612399578094,
0.011207252740859985,
-0.045428864657878876,
0.0302925743162632,
0.0177756417542696,
-0.005688605364412069,
0.013396715745329857,
0.01911531388759613,
-0.04926792159676552,
0.023234304040670395,
0.04402920603752136,
0.003416662337258458,
-0.017495710402727127,
0.011797107756137848,
0.05226718634366989,
-0.0420696847140789,
-0.010042537935078144,
-0.052507128566503525,
-0.031472284346818924,
0.012466943822801113,
-0.0014633912360295653,
0.048948001116514206,
-0.0417097732424736,
0.023914137855172157,
-0.05594628304243088,
0.03657103329896927,
-0.01947522535920143,
0.032192107290029526,
-0.003456652630120516,
-0.002881793538108468,
0.035531289875507355,
-0.04994775354862213,
-0.028612986207008362,
-0.021414749324321747,
-0.021194804459810257,
-0.03243204951286316,
0.008153000846505165,
-0.0057385931722819805,
-0.0427895113825798,
0.04190972447395325,
0.04802822694182396,
0.04302944988012314,
0.014966330491006374,
0.016026070341467857,
-0.01965518109500408,
-0.007923057302832603,
0.05118745192885399,
0.04262954741716385,
-0.018065571784973145,
0.008073020726442337,
-0.010547414422035217,
-0.005578632466495037,
-0.06114501133561134,
-0.025653710588812828,
-0.014866355806589127,
0.025413770228624344,
0.0397302582859993,
0.029352804645895958,
0.029192842543125153,
-0.05266708880662918,
-0.03267199173569679,
0.034331582486629486,
-0.04918793961405754,
0.011757117696106434,
-0.018345503136515617,
-0.012107031419873238,
-0.0007285713800229132,
0.02619357779622078,
-0.01702582649886608,
-0.05270707979798317,
-0.0025968633126467466,
-0.03493143618106842,
-0.03661102429032326,
0.026633471250534058,
0.035171378403902054,
-0.0427895113825798,
-0.009617642499506474,
-0.020954862236976624,
0.03877049684524536,
-0.018965350463986397,
-0.010707374662160873,
-0.004861308261752129,
-0.08058024197816849,
-0.036691006273031235,
0.012926830910146236,
-0.04138985276222229,
0.010927321389317513,
0.000029563065254478715,
-0.0344715490937233,
-0.005893555004149675,
0.014656406827270985,
0.024913892149925232,
0.01723577454686165,
-0.045468851923942566,
0.03427159786224365,
-0.02245449461042881,
-0.010287477634847164,
-0.027153342962265015,
-0.0576658621430397,
0.02583366632461548,
-0.019535209983587265,
0.05110746994614601,
-0.026033617556095123,
0.020774906501173973,
0.0005223719635978341,
-0.0016171035822480917,
-0.036870960146188736,
0.005193726625293493,
0.04446909949183464,
0.01879539154469967,
-0.09805595874786377,
-0.031692229211330414,
0.004106493201106787,
-0.027813181281089783,
-0.023774171248078346,
0.009557656943798065,
-0.021714676171541214,
0.08629884570837021,
-0.07550148665904999,
-0.0026068608276546,
0.027453269809484482,
0.0019932612776756287,
-0.009452682919800282,
-0.016905855387449265,
-0.021634696051478386,
-0.0031942168716341257,
-0.01737574115395546,
-0.021994607523083687,
-0.011617152020335197,
0.01519627496600151,
0.0008722861530259252,
0.01960519328713417,
0.007718107663094997,
0.02655349113047123,
-0.013396715745329857,
0.06038519740104675,
-0.011057289317250252,
-0.006528399419039488,
0.06062513589859009,
0.022354518994688988,
0.024294044822454453,
0.025373779237270355,
-0.04053006321191788,
-0.004946287255734205,
-0.04494898021221161,
0.009997549466788769,
0.013796617276966572,
-0.01987512782216072,
0.04838813841342926,
0.03231208026409149,
-0.02067493088543415,
-0.02173467166721821,
0.014476451091468334,
0.003229208290576935,
0.08010036498308182,
0.03487145155668259,
0.02115481346845627,
-0.02044498734176159,
-0.059945303946733475,
0.007123253773897886,
0.029192842543125153,
0.024214062839746475,
0.0026218572165817022,
-0.015516196377575397,
-0.03373172879219055,
-0.019395245239138603,
-0.012256994843482971,
0.011727125383913517,
-0.04910796135663986,
0.04810820519924164,
-0.03733084723353386,
0.02575368620455265,
0.003114236518740654,
-0.06026522442698479,
0.014416465535759926,
-0.12197009474039078,
0.0139665761962533,
-0.03399166837334633,
-0.03123234398663044,
-0.0016833372646942735,
0.039810240268707275,
0.003926537465304136,
-0.09037784487009048,
0.06590384244918823,
-0.02619357779622078,
-0.02259446121752262,
0.017945600673556328,
0.010817348025739193,
-0.05314696952700615,
-0.024833912029862404,
0.05346689373254776,
-0.016455965116620064,
-0.0224944856017828,
-0.00982759054750204,
0.01354667916893959,
-0.05262709781527519,
-0.06954295188188553,
-0.013886596076190472,
0.05810575559735298,
-0.0021082330495119095,
0.02601362206041813,
-0.07794088870286942,
-0.0052437144331634045,
0.04290948063135147,
-0.042829498648643494,
0.00478882621973753,
-0.005273707211017609,
0.02775319665670395,
-0.0009035284747369587,
0.02455398067831993,
-0.004081499297171831,
-0.0595054104924202,
0.00632844865322113,
0.004136485978960991,
-0.004946287255734205,
0.03853055462241173,
0.013156774453818798,
-0.017165791243314743,
0.0057385931722819805,
-0.001680837944149971,
0.03333183005452156,
-0.05434667691588402,
-0.01755569688975811,
0.013536681421101093,
-0.053706832230091095,
0.016545943915843964,
-0.006713354028761387,
0.008947806432843208,
-0.034991420805454254,
-0.06686361134052277,
-0.04494898021221161,
-0.011447194032371044,
0.0013371722307056189,
0.10829345136880875,
0.023634206503629684,
-0.05122744292020798,
0.03123234398663044
] |
724,891 | pipfile.api | __init__ | null | def __init__(self, filename):
super(Pipfile, self).__init__()
self.filename = filename
self.data = None
| (self, filename) | [
-0.0007872395217418671,
-0.028552815318107605,
-0.008988535031676292,
-0.012570369057357311,
-0.01792614348232746,
-0.037855397909879684,
0.009429898113012314,
0.07747624814510345,
0.04413633793592453,
-0.009039461612701416,
0.02821330539882183,
0.02155890315771103,
-0.02101568691432476,
0.03513931483030319,
-0.02227187529206276,
0.02722872607409954,
0.05863342806696892,
0.042812246829271317,
-0.05330311506986618,
0.03033524565398693,
-0.012926854193210602,
0.017671510577201843,
-0.003745222929865122,
0.023375283926725388,
0.018859796226024628,
0.10171728581190109,
-0.021372172981500626,
-0.02155890315771103,
0.03809305652976036,
-0.04277829825878143,
-0.04776909947395325,
-0.017841266468167305,
0.004021075088530779,
0.0793096050620079,
0.029842955991625786,
0.017705462872982025,
-0.012222371064126492,
0.016975514590740204,
-0.09316162765026093,
0.015074256807565689,
0.044373996555805206,
-0.008784828707575798,
-0.031387727707624435,
-0.011713105253875256,
-0.0064591835252940655,
0.019691597670316696,
0.002796716056764126,
0.006060258951038122,
-0.016814246773719788,
-0.002061464125290513,
0.001061500166542828,
0.08216149359941483,
0.019250234588980675,
-0.003912856336683035,
-0.014386748895049095,
0.11393965780735016,
0.08243309706449509,
0.08379114419221878,
-0.02271323837339878,
0.03311923146247864,
-0.04909319058060646,
0.03186304122209549,
0.0434233658015728,
-0.1040259525179863,
-0.004182342439889908,
0.023052750155329704,
-0.01290139090269804,
-0.030097588896751404,
0.0007511665462516248,
0.04328756406903267,
0.055340178310871124,
-0.008084588684141636,
-0.05214878171682358,
0.028264231979846954,
0.11461867392063141,
-0.015447719022631645,
-0.04298200458288193,
-0.032355330884456635,
0.004876216873526573,
-0.01819775253534317,
-0.0003867234627250582,
-0.03062382899224758,
-0.04304990544915199,
0.026312047615647316,
0.013071146793663502,
-0.046750567853450775,
0.048889484256505966,
-0.021236369386315346,
-0.004625828005373478,
0.041522108018398285,
-0.043355464935302734,
0.051945075392723083,
-0.030437098816037178,
0.0490252859890461,
0.04800675809383392,
-0.07917380332946777,
0.0024274985771626234,
-0.019657645374536514,
-0.024291962385177612,
0.025853708386421204,
-0.03510536625981331,
-0.004808314610272646,
-0.015829667448997498,
-0.05303150787949562,
0.008216149173676968,
0.0026439365465193987,
0.022594410926103592,
0.024580545723438263,
0.002452961867675185,
-0.04019802063703537,
-0.03625969961285591,
0.01374167948961258,
-0.024784252047538757,
0.06301311403512955,
0.002491156803444028,
-0.03524116799235344,
-0.03047104924917221,
-0.006370062008500099,
0.07177247852087021,
0.026889216154813766,
-0.01233271136879921,
0.0744885578751564,
-0.061553217470645905,
0.034035906195640564,
0.028094477951526642,
0.025497224181890488,
-0.007829956710338593,
-0.05449140444397926,
0.0569358766078949,
-0.05517042428255081,
0.020930809900164604,
0.005062947515398264,
-0.028009599074721336,
-0.04260854423046112,
-0.004184464458376169,
-0.052691999822854996,
0.0928221121430397,
0.012527929618954659,
-0.03741403669118881,
0.047463539987802505,
0.0403338223695755,
0.02072710357606411,
0.024427765980362892,
-0.006433720234781504,
0.00800819881260395,
0.02680433727800846,
0.016720881685614586,
-0.0457320362329483,
-0.04396658390760422,
-0.010821891017258167,
0.04427214339375496,
-0.04953455179929733,
-0.05666426941752434,
0.0014397358754649758,
0.07509967684745789,
-0.0062979161739349365,
-0.016602054238319397,
-0.023578990250825882,
-0.01846935972571373,
-0.03880602866411209,
-0.00693874154239893,
-0.019963204860687256,
0.020557347685098648,
0.012341199442744255,
-0.01043994165956974,
0.012536417692899704,
-0.0018535139970481396,
-0.022730214521288872,
0.010185308754444122,
0.023443186655640602,
0.0037176378536969423,
-0.0538463331758976,
-0.035037461668252945,
0.03710847720503807,
0.023935476318001747,
0.002989812521263957,
0.00850048940628767,
-0.014497090131044388,
-0.009463849477469921,
0.0482444129884243,
0.007566835731267929,
-0.019487891346216202,
-0.00806761346757412,
0.07767995446920395,
0.06515202671289444,
-0.008419855497777462,
0.04243878647685051,
0.05405003949999809,
0.05130000784993172,
0.02368084341287613,
0.0048592411912977695,
0.0036179067101329565,
-0.02298484742641449,
0.022628361359238625,
0.03527512028813362,
-0.05472905933856964,
0.0020200861617922783,
-0.03182908892631531,
-0.021066613495349884,
-0.014929965138435364,
-0.018112873658537865,
0.008012442849576473,
0.022611385211348534,
-0.02960529737174511,
-0.04063938185572624,
0.05418584495782852,
0.005529773887246847,
-0.001134176622144878,
-0.043389417231082916,
0.04698822647333145,
0.039009734988212585,
-0.04695427417755127,
0.05007776990532875,
-0.01628800667822361,
0.04695427417755127,
-0.04417029023170471,
-0.012493979185819626,
0.00468524219468236,
-0.014581967145204544,
0.04685242101550102,
0.10823588073253632,
0.05554388463497162,
-0.022186998277902603,
0.048312313854694366,
-0.021626805886626244,
0.02184748835861683,
0.05330311506986618,
-0.001785611966624856,
-0.020557347685098648,
0.036870818585157394,
-0.01584664359688759,
-0.026702484115958214,
-0.004040172323584557,
0.0006737157236784697,
0.0009607080719433725,
-0.023443186655640602,
-0.0017994046211242676,
-0.004812558647245169,
-0.0990012064576149,
-0.041963472962379456,
0.008211905136704445,
0.021372172981500626,
0.024173133075237274,
-0.019284185022115707,
0.011560325510799885,
-0.030997291207313538,
0.003772808238863945,
0.033204108476638794,
-0.03371337428689003,
-0.0022810848895460367,
0.08806896954774857,
0.01290139090269804,
-0.08290841430425644,
0.03440937027335167,
0.0030789340380579233,
-0.029011154547333717,
0.01586361788213253,
-0.08331582695245743,
0.05666426941752434,
0.027432432398200035,
-0.005406701471656561,
-0.04698822647333145,
0.03880602866411209,
0.010618184693157673,
0.034069858491420746,
-0.0061026974581182,
-0.015821179375052452,
-0.04834626615047455,
-0.02707594633102417,
-0.005466115660965443,
0.06230013817548752,
0.07170457392930984,
0.043083857744932175,
0.003204128472134471,
-0.054627206176519394,
-0.06583105027675629,
-0.024631472304463387,
-0.011101987212896347,
0.03201582282781601,
-0.005865040235221386,
0.07659352570772171,
0.008886681869626045,
0.029248813167214394,
0.023103676736354828,
0.002412645146250725,
-0.04834626615047455,
-0.005775919184088707,
0.06107790395617485,
-0.026617607101798058,
0.003579711774364114,
0.0036645892541855574,
0.08168617635965347,
-0.02537839487195015,
-0.019250234588980675,
0.03142168000340462,
0.013444608077406883,
-0.02269626408815384,
0.06206248328089714,
0.006183331366628408,
-0.05299755930900574,
-0.014149092137813568,
-0.059312447905540466,
-0.017238635569810867,
-0.01698400266468525,
-0.051809269934892654,
0.02639692649245262,
0.004982313606888056,
-0.013003244064748287,
-0.011526375077664852,
-0.01078793965280056,
0.11224210262298584,
0.03775354474782944,
-0.017238635569810867,
0.05405003949999809,
0.018282629549503326,
0.041963472962379456,
0.04386473074555397,
0.006624694913625717,
0.005190263502299786,
0.016338933259248734,
-0.06511807441711426,
-0.04973825812339783,
0.018690042197704315,
-0.028552815318107605,
0.03751588985323906,
0.03629365190863609,
0.04613944888114929,
0.0014407968847081065,
-0.02003110758960247,
0.04501906409859657,
-0.01733200065791607,
0.0783589780330658,
0.019284185022115707,
-0.039417143911123276,
-0.03395102918148041,
-0.0025845221243798733,
-0.022764164954423904,
-0.04776909947395325,
0.026345999911427498,
-0.05333706736564636,
0.03649735823273659,
-0.05354077368974686,
-0.017960093915462494,
0.015532596036791801,
-0.018503312021493912,
-0.04821046069264412,
-0.010244723409414291,
-0.06067049130797386,
0.04878763109445572,
0.0020232691895216703,
0.0007485141395591199,
0.024461716413497925,
-0.0029494957998394966,
0.02213607169687748,
0.0331871323287487,
-0.0530654601752758,
-0.049874063581228256,
0.0331871323287487,
0.01198471337556839,
-0.02003110758960247,
0.021813536062836647,
-0.023069724440574646,
-0.03359454497694969,
0.008725414983928204,
-0.03605599328875542,
-0.045324623584747314,
0.007019375450909138,
0.03483375534415245,
-0.013283340260386467,
0.046478960663080215,
0.02004808373749256,
-0.03751588985323906,
-0.05669822171330452,
-0.06681562960147858,
0.024037329480051994,
-0.03924738988280296,
-0.015057281590998173,
0.0008132332586683333,
-0.04254063963890076,
-0.041114695370197296,
-0.024716349318623543,
0.003274152521044016,
-0.003452395321801305,
0.0029749590903520584,
-0.0532691664993763,
0.004409390036016703,
0.01094071939587593,
0.008118540048599243,
0.061145804822444916,
0.018095899373292923,
0.016415322199463844,
-0.0036348821595311165,
0.008148247376084328,
0.015490157529711723,
0.028450962156057358,
-0.03289854899048805,
-0.0021463416051119566,
-0.0013262120774015784,
-0.009905212558805943,
0.019403014332056046,
0.009718482382595539,
-0.044611651450395584,
-0.006726547610014677,
0.0339680053293705,
0.053676579147577286,
-0.022611385211348534,
0.038568370044231415,
-0.02087988331913948,
0.023324357345700264,
-0.020828956738114357,
0.031234947964549065,
0.006357330363243818,
0.04481535777449608,
-0.06640821695327759,
0.017298050224781036,
0.04671661555767059,
-0.03853441774845123,
-0.06654401868581772,
0.05517042428255081,
-0.029282763600349426,
-0.03384917601943016,
0.057037729769945145,
0.026889216154813766,
-0.0010646830778568983,
-0.024071279913187027,
0.019233258441090584,
0.0031807872001081705,
-0.030708706006407738,
0.04834626615047455,
0.05119815468788147,
-0.07027862966060638,
0.05259014666080475,
-0.04046962782740593,
0.0030513487290591,
0.058192066848278046,
-0.005657090339809656,
-0.020947786048054695,
-0.020506422966718674,
-0.02242465503513813,
0.0694638043642044,
0.011789495125412941,
-0.014845088124275208,
0.07795156538486481,
0.01437826082110405,
-0.021915389224886894,
0.020251790061593056,
-0.05486486479640007,
0.06861503422260284,
-0.0028837155550718307,
-0.035037461668252945,
-0.0010959816863760352,
0.01863911561667919,
0.04827836528420448,
-0.061553217470645905,
-0.033917080610990524,
-0.025853708386421204,
-0.039824556559324265,
-0.022747190669178963,
0.005737724248319864,
-0.011449985206127167,
-0.051945075392723083,
0.051979027688503265,
0.03541092574596405,
-0.07360583543777466,
0.013240901753306389,
-0.041114695370197296,
-0.01715375855565071,
0.0025420833844691515,
-0.050281476229429245,
0.0041802204214036465,
-0.015838155522942543,
-0.004804070573300123,
-0.0190125759691,
-0.018384482711553574,
-0.02568395435810089,
0.043219659477472305,
0.041827667504549026,
0.011602764017879963,
-0.016313469037413597,
-0.05160556361079216,
-0.01874096877872944,
-0.021626805886626244,
-0.012706172652542591,
0.05051913112401962,
-0.02536141872406006,
-0.02902813069522381,
-0.010830378159880638,
-0.04498511552810669,
0.0265327300876379,
0.00006249774742173031,
-0.019963204860687256,
0.03629365190863609,
-0.06260570138692856,
-0.015260987915098667,
0.0114839356392622,
0.06919220089912415,
0.03244020789861679,
0.056630317121744156,
-0.01269768550992012,
-0.050553083419799805,
-0.01733200065791607,
-0.011933786794543266,
0.013122073374688625,
-0.03267786651849747,
-0.012035639956593513,
-0.0005495822988450527,
-0.03907763585448265,
0.009531751275062561,
-0.004226903431117535,
0.00099731155205518,
0.006998156197369099,
0.009226192720234394,
-0.0016975514590740204,
0.03075963258743286,
0.03427356481552124,
0.03340781480073929,
-0.05876923352479935,
0.05656241625547409,
-0.051401861011981964,
0.017671510577201843,
0.02794169820845127,
0.008131271228194237,
0.019521841779351234,
-0.03965480253100395,
-0.03374732285737991,
-0.03592018783092499,
0.011492423713207245,
-0.010558770038187504,
-0.0000795727246440947,
0.05472905933856964,
0.022611385211348534,
-0.07088974863290787,
0.030963338911533356,
-0.005966893397271633,
0.040944941341876984,
0.046207353472709656,
-0.023629916831851006,
0.00620879465714097,
-0.04627525433897972,
-0.04074123501777649,
0.009013998322188854,
0.020099010318517685,
0.043661024421453476,
-0.08806896954774857,
-0.0051817758940160275,
-0.016041861847043037,
-0.07129716128110886,
0.03204977139830589,
0.03359454497694969,
-0.009777897037565708,
0.014751722104847431,
-0.05204692855477333,
-0.0033250791020691395,
-0.001917172223329544,
0.00775356637313962,
-0.0027521552983671427,
0.027873795479536057,
-0.02400337904691696,
0.03639550507068634,
-0.00881029199808836,
-0.024716349318623543,
0.01396236103028059,
-0.012129005044698715,
0.0008005016134120524,
-0.02155890315771103,
0.016109764575958252,
-0.05842972174286842,
0.022034218534827232,
-0.04600364714860916,
-0.0524882934987545,
0.0434233658015728,
0.005474603734910488,
0.011662178672850132,
0.029503444209694862,
0.015065769664943218,
0.006026307586580515,
0.05377843230962753,
0.06555943936109543,
0.007554104086011648,
-0.0038364664651453495,
-0.011466960422694683,
0.009642092511057854,
-0.025446297600865364,
-0.020913833752274513,
-0.09275421500205994,
-0.018282629549503326,
0.0030258854385465384,
0.012791050598025322,
0.032779719680547714,
-0.00338237127289176,
0.017807316035032272,
-0.041386306285858154,
-0.006336111109703779,
-0.022933920845389366,
-0.008878194727003574,
-0.016466248780488968,
0.04277829825878143,
-0.04579994082450867,
0.00768566457554698,
-0.014089677482843399,
-0.045630183070898056,
0.021541928872466087,
-0.06308101117610931,
0.024597521871328354,
-0.011051060631871223,
-0.0015129427192732692,
-0.06236804276704788,
0.05622290447354317,
-0.03228743001818657,
0.042404837906360626,
0.0033293229062110186,
-0.02254348434507847,
0.014004799537360668,
-0.03060685284435749,
-0.0496024563908577,
0.01931813545525074,
-0.0021420978009700775,
-0.0006535573047585785,
-0.011959250085055828,
-0.0335775688290596,
-0.02312065102159977,
0.004413634072989225,
0.009964627213776112,
0.06202853098511696,
-0.05432164669036865,
0.006883571390062571,
0.023952452465891838,
-0.022203974425792694,
-0.04087704047560692,
-0.02960529737174511,
0.041827667504549026,
-0.034901659935712814,
0.03148958086967468,
-0.008759365417063236,
0.01833355613052845,
0.01802799664437771,
-0.007006643805652857,
-0.012774075381457806,
0.007431031670421362,
-0.009192241355776787,
0.04861787334084511,
-0.08881589770317078,
0.0016773930983617902,
-0.030148513615131378,
-0.022764164954423904,
-0.056766122579574585,
-0.0283660851418972,
-0.028417011722922325,
0.019284185022115707,
-0.07632191479206085,
-0.002824301365762949,
-0.02242465503513813,
-0.01819775253534317,
0.03921344131231308,
0.004388170782476664,
-0.010168333537876606,
0.03440937027335167,
-0.0038046373520046473,
0.004004099406301975,
-0.016007911413908005,
-0.02155890315771103,
0.0004090038128197193,
0.038160957396030426,
0.004246000666171312,
0.04851602017879486,
-0.013164511881768703,
0.037312183529138565,
-0.049704309552907944,
-0.04990801215171814,
0.05876923352479935,
-0.00501202093437314,
0.06959961354732513,
-0.01904652826488018,
-0.02014993689954281,
0.047429587692022324,
-0.04396658390760422,
-0.002482668962329626,
-0.04074123501777649,
0.029809003695845604,
0.02848491445183754,
0.0022089388221502304,
-0.01958974450826645,
0.03255903720855713,
-0.04355917125940323,
0.007019375450909138,
0.07713674008846283,
0.020200863480567932,
0.032219529151916504,
-0.0010068602859973907,
-0.036599211394786835,
-0.0217116829007864,
0.03284762054681778,
-0.01290139090269804,
0.005771675147116184,
-0.021236369386315346,
-0.02211909554898739,
-0.014802648685872555,
-0.067936010658741,
-0.0065864999778568745,
-0.022322801873087883,
0.02412220649421215,
-0.009981602430343628,
0.011144425719976425,
0.0013537972699850798,
-0.05031542479991913,
-0.0246993750333786,
-0.07489597052335739,
-0.014896014705300331,
-0.041929520666599274,
0.0032147380989044905,
0.03174421191215515,
0.037447985261678696,
-0.03177816420793533,
-0.05910874158143997,
0.02622717060148716,
0.014369773678481579,
-0.052691999822854996,
0.0059159668162465096,
-0.017569657415151596,
-0.02468239888548851,
-0.013325778767466545,
0.021762609481811523,
0.0038088811561465263,
0.029401591047644615,
0.044781409204006195,
-0.02663458324968815,
-0.07964911311864853,
-0.050281476229429245,
-0.008869706653058529,
0.0355127789080143,
0.006497378461062908,
0.0006461305310949683,
-0.049296896904706955,
-0.021524952724575996,
0.018265653401613235,
-0.04566413536667824,
0.014675332233309746,
0.02580278180539608,
0.04797280579805374,
0.030810559168457985,
0.005402457434684038,
-0.03585228696465492,
-0.03989246115088463,
0.0397566556930542,
0.015320402570068836,
-0.00451124319806695,
0.0434233658015728,
0.00038407102692872286,
-0.02128729596734047,
0.04481535777449608,
-0.019691597670316696,
0.04471350461244583,
-0.02879047393798828,
0.049432698637247086,
-0.019352087751030922,
-0.045324623584747314,
0.01692458800971508,
0.014751722104847431,
0.024750301614403725,
-0.021626805886626244,
-0.041250500828027725,
-0.03951899707317352,
0.03002968616783619,
-0.0035054439213126898,
0.10450126975774765,
0.04481535777449608,
-0.008886681869626045,
0.007167911157011986
] |
724,892 | pipfile.api | assert_requirements | "Asserts PEP 508 specifiers. | def assert_requirements(self):
""""Asserts PEP 508 specifiers."""
# Support for 508's implementation_version.
if hasattr(sys, 'implementation'):
implementation_version = format_full_version(sys.implementation.version)
else:
implementation_version = "0"
# Default to cpython for 2.7.
if hasattr(sys, 'implementation'):
implementation_name = sys.implementation.name
else:
implementation_name = 'cpython'
lookup = {
'os_name': os.name,
'sys_platform': sys.platform,
'platform_machine': platform.machine(),
'platform_python_implementation': platform.python_implementation(),
'platform_release': platform.release(),
'platform_system': platform.system(),
'platform_version': platform.version(),
'python_version': platform.python_version()[:3],
'python_full_version': platform.python_version(),
'implementation_name': implementation_name,
'implementation_version': implementation_version
}
# Assert each specified requirement.
for marker, specifier in self.data['_meta']['requires'].items():
if marker in lookup:
try:
assert lookup[marker] == specifier
except AssertionError:
raise AssertionError('Specifier {!r} does not match {!r}.'.format(marker, specifier))
| (self) | [
0.050107818096876144,
0.030631473287940025,
-0.05638934671878815,
-0.009936726652085781,
0.018790431320667267,
-0.018420400097966194,
0.02772536315023899,
0.010279684327542782,
-0.010378961451351643,
-0.008528798818588257,
0.05122694373130798,
0.049819014966487885,
0.056894756853580475,
0.00987355038523674,
0.0072020962834358215,
0.008145228028297424,
0.05021611973643303,
-0.01585724763572216,
0.035468973219394684,
-0.011263429187238216,
-0.02548711933195591,
0.014828376471996307,
0.013194818049669266,
-0.007784220855683088,
0.010469213128089905,
0.0756671354174614,
0.024674851447343826,
0.0014113130746409297,
0.0609380379319191,
-0.023826485499739647,
-0.12021544575691223,
0.04711145907640457,
-0.01828502118587494,
0.028537631034851074,
0.024620700627565384,
0.0002548204211052507,
0.07108234614133835,
-0.03474695608019829,
-0.005415109917521477,
-0.031100783497095108,
0.008321219123899937,
0.03314047306776047,
-0.008009850047528744,
-0.03514406457543373,
-0.061443448066711426,
-0.029801156371831894,
-0.011100975796580315,
0.027346305549144745,
-0.016308506950736046,
0.034349847584962845,
0.04418729990720749,
-0.017211025580763817,
0.06823039054870605,
-0.0010480494238436222,
-0.014611772261559963,
0.04606453701853752,
0.04675045236945152,
0.0008432905888184905,
0.02640768699347973,
0.04231005907058716,
-0.012120821513235569,
0.05783337727189064,
-0.03584802895784378,
-0.06823039054870605,
-0.03906099498271942,
0.0021209181286394596,
0.012824785895645618,
-0.07249027490615845,
0.04321257770061493,
0.044295601546764374,
-0.009837450459599495,
-0.005541462916880846,
-0.029385996982455254,
0.008776990696787834,
0.03801407292485237,
0.001211630878970027,
-0.04920529946684837,
-0.032869718968868256,
0.0518045537173748,
-0.06324848532676697,
0.023772332817316055,
0.02016226015985012,
-0.009174099192023277,
-0.039241496473550797,
0.0511186383664608,
-0.01748177967965603,
-0.0304509699344635,
0.035541173070669174,
0.04588403180241585,
0.013537775725126266,
-0.05855539068579674,
0.046606048941612244,
-0.02388063631951809,
0.02122723124921322,
0.0713711529970169,
0.0227615125477314,
-0.0015715101035311818,
-0.016398757696151733,
-0.06256256997585297,
0.041624147444963455,
0.0017170411301776767,
-0.010324809700250626,
-0.016479985788464546,
0.037292059510946274,
-0.04487321153283119,
0.019295843318104744,
-0.019151439890265465,
-0.0012533724075183272,
-0.02604668028652668,
-0.05707526206970215,
-0.022815663367509842,
-0.043320879340171814,
0.016868067905306816,
-0.02220195159316063,
0.0019855403807014227,
-0.03095638006925583,
0.0021750691812485456,
-0.07368160039186478,
0.054584309458732605,
0.0009369268664158881,
-0.0013898782199248672,
0.010902421548962593,
0.015776021406054497,
0.01828502118587494,
0.06610044091939926,
-0.01624532975256443,
-0.013267019763588905,
0.04397069290280342,
-0.019368043169379234,
-0.059133004397153854,
0.02597447857260704,
-0.004661507438868284,
-0.03859168663620949,
0.019025087356567383,
-0.0143500417470932,
0.006240914575755596,
0.020053958520293236,
-0.017644234001636505,
0.02359182946383953,
-0.046100638806819916,
-0.024602649733424187,
-0.015703819692134857,
-0.016687564551830292,
-0.017418604344129562,
-0.04256276413798332,
-0.029873358085751534,
-0.0255593191832304,
-0.055992238223552704,
0.018682129681110382,
0.01078509446233511,
0.01564064249396324,
-0.01898898556828499,
-0.04086603224277496,
-0.07530613243579865,
-0.018131593242287636,
0.000923953193705529,
-0.005500849336385727,
-0.07357329875230789,
0.011958368122577667,
0.02969285473227501,
-0.03873608633875847,
-0.028411278501152992,
-0.01000892836600542,
0.0071975840255618095,
0.047364164143800735,
0.08093784749507904,
-0.06992711871862411,
-0.08642515540122986,
0.03801407292485237,
-0.003828934160992503,
0.009232763200998306,
0.02324887365102768,
0.03732815757393837,
-0.049530208110809326,
0.03747256100177765,
-0.09415071457624435,
0.003686787560582161,
0.026227183640003204,
0.008321219123899937,
-0.026136931031942368,
0.06281527876853943,
-0.02646183781325817,
-0.06036042794585228,
0.016795866191387177,
0.004909699782729149,
0.029006939381361008,
-0.023429377004504204,
-0.0030730750877410173,
0.00037454511038959026,
-0.03198524937033653,
-0.017355427145957947,
0.0032874231692403555,
0.041696347296237946,
0.0770389661192894,
-0.02911524288356304,
-0.04906089976429939,
0.04703925549983978,
0.016579262912273407,
0.036931052803993225,
-0.023339124396443367,
0.013375322334468365,
-0.002224707743152976,
0.019620748236775398,
0.03474695608019829,
0.006592896766960621,
-0.03270726650953293,
0.03212965279817581,
-0.07375379651784897,
-0.007666893303394318,
-0.0241513904184103,
-0.021606288850307465,
0.024674851447343826,
-0.03225600719451904,
-0.029079141095280647,
0.018104517832398415,
-0.009196662344038486,
0.029728954657912254,
-0.047941774129867554,
-0.027815615758299828,
0.012554029934108257,
0.08859120309352875,
0.060179922729730606,
0.0532124824821949,
-0.020360814407467842,
0.03514406457543373,
-0.013086516410112381,
-0.014774225652217865,
0.08599194884300232,
0.008542336523532867,
0.021804843097925186,
-0.009332039393484592,
0.015072057023644447,
0.03626318648457527,
-0.0001943234819918871,
-0.03305022045969963,
-0.010460187681019306,
-0.00574001669883728,
0.025667622685432434,
-0.020126160234212875,
0.008844680152833462,
-0.011822990141808987,
0.04075773060321808,
-0.011669562198221684,
0.03653394430875778,
0.038194578140974045,
-0.03880828991532326,
-0.05747237056493759,
-0.01823989674448967,
0.058627594262361526,
0.005866369232535362,
-0.042671069502830505,
-0.032382357865571976,
-0.005902470089495182,
-0.057111360132694244,
-0.02052326686680317,
0.015315736643970013,
-0.039241496473550797,
-0.06245427206158638,
0.06425930559635162,
0.0069674416445195675,
0.01722005009651184,
0.08101005107164383,
-0.012472803704440594,
0.05685865506529808,
0.015514290891587734,
-0.0241694413125515,
0.020739872008562088,
0.024530449882149696,
-0.03297802060842514,
-0.0011822989908978343,
0.01617312803864479,
0.05487311631441116,
-0.0030978943686932325,
0.041696347296237946,
-0.016597311943769455,
-0.06631705164909363,
-0.005685865879058838,
0.019241690635681152,
0.010568490251898766,
0.032526761293411255,
0.03572167828679085,
-0.014783251099288464,
-0.020830124616622925,
0.08310388773679733,
-0.00869576446712017,
-0.05209336057305336,
-0.07682236284017563,
-0.01974710077047348,
-0.009593769907951355,
-0.016886118799448013,
-0.05606444180011749,
-0.01884458400309086,
0.03647979348897934,
-0.06844699382781982,
0.055414628237485886,
-0.0040162065997719765,
0.04823058098554611,
-0.021877044811844826,
0.07198486477136612,
-0.004205735400319099,
0.06573943793773651,
0.017544956877827644,
0.026136931031942368,
0.00100010319147259,
-0.014313940890133381,
-0.01746373064815998,
0.02998165972530842,
0.02647988870739937,
-0.10339250415563583,
-0.005500849336385727,
0.02093842625617981,
-0.007373575121164322,
0.044837113469839096,
0.0036461742129176855,
0.06169615313410759,
0.018375273793935776,
-0.010794119909405708,
0.05386229604482651,
-0.03153399005532265,
0.014783251099288464,
0.019548548385500908,
0.02911524288356304,
0.06458421051502228,
0.004634431563317776,
-0.028248824179172516,
-0.024620700627565384,
-0.009936726652085781,
-0.0255593191832304,
0.0042486051097512245,
-0.005613664165139198,
-0.026136931031942368,
-0.03480110689997673,
0.02709360048174858,
0.05292367562651634,
0.027635112404823303,
0.08079344034194946,
0.030360717326402664,
-0.0511186383664608,
0.03314047306776047,
0.0033867000602185726,
0.054728712886571884,
-0.020559368655085564,
0.02911524288356304,
0.011804940178990364,
-0.05631714686751366,
-0.036732498556375504,
0.016822941601276398,
-0.027129702270030975,
-0.012427677400410175,
0.024494348093867302,
-0.009647921659052372,
0.01673269085586071,
0.003032461740076542,
-0.043790191411972046,
-0.013131641782820225,
0.013276045210659504,
0.011976419016718864,
-0.013402397744357586,
0.02122723124921322,
0.059133004397153854,
0.06610044091939926,
-0.017355427145957947,
0.04508981853723526,
-0.021931195631623268,
-0.07472851872444153,
-0.06559503078460693,
0.06646145135164261,
0.029602602124214172,
-0.009900626726448536,
0.014927653595805168,
-0.018257945775985718,
0.006028822623193264,
-0.027219953015446663,
0.0009470802033320069,
-0.06111854314804077,
-0.026173032820224762,
-0.00941326655447483,
0.0707574412226677,
-0.053248584270477295,
-0.0412992388010025,
-0.012689407914876938,
-0.012481829151511192,
-0.05606444180011749,
-0.011822990141808987,
-0.07198486477136612,
-0.03510796278715134,
-0.02016226015985012,
-0.014620797708630562,
-0.027003349736332893,
0.041912954300642014,
0.04675045236945152,
-0.018086468800902367,
0.025541270151734352,
0.015595517121255398,
-0.01828502118587494,
-0.0004549256700556725,
0.015378912910819054,
-0.01641680859029293,
0.0043749576434493065,
0.014043185859918594,
0.025577370077371597,
-0.012373526580631733,
-0.030360717326402664,
-0.033645883202552795,
0.011281479150056839,
0.03332097828388214,
0.0318588986992836,
0.054945316165685654,
0.009557669050991535,
0.05407889932394028,
-0.03703935444355011,
0.011714688502252102,
-0.006895240396261215,
-0.05122694373130798,
-0.03647979348897934,
0.02638963609933853,
-0.003418288193643093,
-0.0581221804022789,
0.04328478127717972,
-0.025017809122800827,
0.0033889564219862223,
-0.023826485499739647,
0.02911524288356304,
0.06906070560216904,
0.007319423835724592,
-0.02548711933195591,
-0.022851765155792236,
0.007351011969149113,
0.005049590021371841,
-0.0021017396356910467,
-0.011236353777348995,
0.014485419727861881,
-0.04194905236363411,
-0.012427677400410175,
-0.015478190034627914,
-0.01755398139357567,
-0.03306827321648598,
0.011768839322030544,
0.008406958542764187,
-0.06967441737651825,
-0.006195788737386465,
0.028321025893092155,
0.06664195656776428,
0.0004233375075273216,
-0.005374496802687645,
0.027779515832662582,
0.007955699227750301,
0.011091950349509716,
-0.007184046320617199,
0.009259838610887527,
-0.07180435955524445,
0.02465680241584778,
-0.006665098015218973,
-0.047219760715961456,
-0.013348246924579144,
-0.023916736245155334,
0.013934883289039135,
-0.024945607408881187,
-0.07295958697795868,
-0.05306807905435562,
0.04729196056723595,
-0.01799621619284153,
0.019927605986595154,
-0.034692805260419846,
0.03037876822054386,
0.03682274743914604,
-0.020703770220279694,
0.030017759650945663,
-0.021516038104891777,
0.0483027808368206,
0.05559512972831726,
0.01743665523827076,
0.03859168663620949,
0.01518938411027193,
-0.044006794691085815,
0.026010578498244286,
-0.006723761558532715,
0.059421807527542114,
0.032526761293411255,
0.006958416663110256,
0.0629957839846611,
0.022869816049933434,
0.019656850025057793,
0.04718365892767906,
-0.01499082986265421,
-0.05902469903230667,
-0.04783347249031067,
-0.03978300839662552,
-0.05512582138180733,
-0.051154740154743195,
-0.034133244305849075,
-0.012400601990520954,
0.015550391748547554,
0.018303072080016136,
0.10100985318422318,
0.016525110229849815,
0.046533845365047455,
-0.019855404272675514,
-0.00861002504825592,
-0.0008004209958016872,
0.023754283785820007,
0.03297802060842514,
0.039530303329229355,
-0.013330196030437946,
0.015478190034627914,
-0.057797275483608246,
0.014864477328956127,
-0.053392987698316574,
0.035956330597400665,
-0.007400650531053543,
0.03225600719451904,
0.013221894390881062,
0.03240041062235832,
-0.013844631612300873,
0.02303226850926876,
0.017211025580763817,
-0.023447426036000252,
-0.008465622551739216,
-0.029494300484657288,
0.02478315494954586,
0.015568441711366177,
0.036876898258924484,
0.0629957839846611,
-0.07295958697795868,
0.0007406291551887989,
-0.026425737887620926,
-0.03261701390147209,
-0.013068465515971184,
0.02647988870739937,
0.0046705324202775955,
0.05194895714521408,
0.017102722078561783,
0.02429579384624958,
-0.00782934669405222,
-0.026931148022413254,
0.005379009526222944,
-0.0022292202338576317,
0.03906099498271942,
0.0360465832054615,
0.01891678385436535,
0.030992479994893074,
0.017102722078561783,
0.020631570369005203,
0.019783202558755875,
0.00716148316860199,
0.03740036115050316,
-0.013465574011206627,
-0.03032461740076542,
-0.0567142553627491,
-0.03660614416003227,
-0.016994420439004898,
-0.0049864137545228004,
0.009467417374253273,
-0.054656513035297394,
0.011236353777348995,
-0.02149798721075058,
0.08772478252649307,
0.003397981636226177,
0.00032265030313283205,
0.015306711196899414,
0.007662381045520306,
0.005031540058553219,
0.03066757321357727,
0.025595420971512794,
-0.023122521117329597,
-0.0385194830596447,
0.006191276013851166,
-0.019368043169379234,
-0.009864525869488716,
0.016750739887356758,
0.018086468800902367,
0.019241690635681152,
0.05487311631441116,
0.033230725675821304,
-0.053609590977430344,
-0.08014363050460815,
-0.040505025535821915,
0.024404095485806465,
-0.005193992983549833,
-0.026136931031942368,
0.021895095705986023,
0.005676840431988239,
-0.011777864769101143,
-0.08180426061153412,
0.04194905236363411,
-0.0538983978331089,
0.012725508771836758,
0.0143500417470932,
-0.013555825687944889,
0.003285166807472706,
-0.03696715086698532,
-0.01229230035096407,
0.02563152089715004,
-0.043862391263246536,
0.006349216680973768,
-0.029024990275502205,
-0.03971080854535103,
-0.019349994137883186,
-0.003740938613191247,
-0.0002607431961223483,
0.016994420439004898,
0.039097096771001816,
0.02864593267440796,
-0.003472439479082823,
0.049530208110809326,
0.011019749566912651,
-0.018330147489905357,
-0.029927508905529976,
0.005500849336385727,
0.019007036462426186,
0.004661507438868284,
0.03191304951906204,
-0.04137144237756729,
-0.06974662095308304,
-0.00495482562109828,
-0.03725595772266388,
-0.03373613581061363,
0.04090213030576706,
0.009440341964364052,
0.006001747213304043,
0.043032076209783554,
0.020902324467897415,
0.04346528276801109,
0.005730991717427969,
0.0011067130835726857,
0.014295890927314758,
-0.05371789261698723,
-0.06537842750549316,
0.012265224941074848,
-0.07249027490615845,
0.06245427206158638,
-0.015911398455500603,
0.015748945996165276,
-0.059205204248428345,
-0.026515988633036613,
0.0031881460454314947,
-0.007784220855683088,
-0.027328256517648697,
0.03508991375565529,
0.04111873731017113,
-0.014909603632986546,
-0.000932978349737823,
-0.011425882577896118,
0.04263496771454811,
-0.030144114047288895,
0.0497107096016407,
-0.03572167828679085,
-0.06841088831424713,
0.10794119536876678,
-0.010424086824059486,
-0.01828502118587494,
0.08931321650743484,
0.000511051039211452,
-0.016507061198353767,
0.005564025603234768,
0.03480110689997673,
-0.049746811389923096,
0.012526954524219036,
-0.028176622465252876,
-0.025180261582136154,
-0.0015647412510588765,
-0.002504488453269005,
0.051299143582582474,
-0.009341064840555191,
0.020072007551789284,
0.015270610339939594,
0.030017759650945663,
-0.03229210525751114,
-0.03599243238568306,
0.0412992388010025,
-0.014467368833720684,
0.016615362837910652,
0.07415090501308441,
-0.04476490989327431,
-0.01677781715989113,
-0.019765151664614677,
-0.016055801883339882,
0.015821147710084915,
-0.0031610706355422735,
0.04032452031970024,
0.04714755713939667,
-0.014846427366137505,
-0.059060800820589066,
-0.02393478713929653,
0.01960269920527935,
0.006750837434083223,
-0.06050483137369156,
0.07090184092521667,
-0.031245185062289238,
0.009106410667300224,
0.04530642181634903,
-0.008984570391476154,
0.03146179020404816,
0.012933088466525078,
0.0019990780856460333,
-0.03153399005532265,
-0.023826485499739647,
-0.005013489630073309,
0.04404289647936821,
-0.030902229249477386,
0.009584745392203331,
-0.01870018057525158,
-0.018257945775985718,
-0.004869086667895317,
-0.01828502118587494,
0.027960019186139107,
-0.07151555269956589,
0.009963802993297577,
-0.022562958300113678,
-0.05523412302136421,
0.0022111700382083654,
0.050938136875629425,
-0.00200020638294518,
-0.14750759303569794,
0.03934980183839798,
-0.07393430173397064,
0.02388063631951809,
0.020884275436401367,
0.0045644864439964294,
-0.047219760715961456,
-0.013257994316518307,
0.04317647963762283,
0.0062905531376600266,
-0.07270687818527222,
-0.03550507128238678,
0.0560283400118351,
-0.07306788861751556,
-0.07804978638887405,
-0.017418604344129562,
0.017238100990653038,
0.04465660825371742,
0.027364356443285942,
-0.04090213030576706,
0.0057761175557971,
0.0015839197440072894,
-0.05162404850125313,
-0.06353729218244553,
-0.02122723124921322,
0.04014401510357857,
0.006412392947822809,
0.01369120366871357,
0.05267097055912018,
0.006944878958165646,
-0.013312146067619324,
-0.029584551230072975,
0.027815615758299828,
-0.012734534218907356,
-0.0185557771474123,
0.012590130791068077,
0.0010034876177087426,
0.012689407914876938,
-0.001884007127955556,
-0.024945607408881187,
-0.07797758281230927,
-0.0006898624706082046,
-0.03633539006114006,
0.046317242085933685,
-0.03198524937033653,
-0.00645751878619194,
-0.002321728505194187,
-0.06628094613552094,
0.06364559382200241,
-0.002621815772727132,
0.02458460070192814,
0.015478190034627914,
0.0012059902073815465,
-0.01201251894235611,
0.03801407292485237
] |
724,893 | pipfile.api | find | Returns the path of a Pipfile in parent directories. | @staticmethod
def find(max_depth=3):
"""Returns the path of a Pipfile in parent directories."""
i = 0
for c, d, f in walk_up(os.getcwd()):
i += 1
if i < max_depth:
if 'Pipfile':
p = os.path.join(c, 'Pipfile')
if os.path.isfile(p):
return p
raise RuntimeError('No Pipfile found!')
| (max_depth=3) | [
0.022638771682977676,
-0.07531388103961945,
-0.01794559508562088,
0.03297305479645729,
-0.03795433044433594,
-0.0065425680950284,
0.06984934955835342,
-0.0060453698970377445,
0.013605567626655102,
-0.027936022728681564,
0.041485827416181564,
-0.04501732811331749,
0.011049876920878887,
0.004240123089402914,
-0.026560595259070396,
0.019441835582256317,
0.08869640529155731,
0.05048185959458351,
-0.012155793607234955,
0.019683465361595154,
0.036876291036605835,
0.07074151933193207,
0.032991643995046616,
0.0013533543096855283,
-0.035723909735679626,
0.06918022036552429,
0.0019318697741255164,
0.02955307811498642,
0.017778312787413597,
-0.04947816953063011,
-0.05973810702562332,
0.013512633740901947,
0.007457970175892115,
0.05791659653186798,
-0.004772171378135681,
0.07598300278186798,
0.007769299671053886,
0.03027796372771263,
-0.04286125674843788,
-0.027601458132267,
-0.012639052234590054,
-0.018150050193071365,
-0.0001501468213973567,
-0.00010803601617226377,
0.025240929797291756,
-0.008921683765947819,
-0.007155933883041143,
-0.019739225506782532,
-0.009925372898578644,
0.03241544961929321,
0.02672787755727768,
0.049961429089307785,
0.017713259905576706,
-0.05103946477174759,
0.03284294903278351,
0.0451660230755806,
0.007973754778504372,
-0.026244619861245155,
0.03382804989814758,
0.005859501659870148,
0.016449354588985443,
-0.013066548854112625,
0.023977024480700493,
0.016486527398228645,
-0.028214825317263603,
-0.008498833514750004,
-0.020371178165078163,
-0.06654088944196701,
-0.05044468492269516,
0.030296551063656807,
-0.036876291036605835,
0.018363798037171364,
-0.023066269233822823,
-0.006965418811887503,
0.08557381480932236,
-0.013605567626655102,
0.02042693831026554,
-0.017462337389588356,
0.05059337988495827,
-0.001751809730194509,
-0.026802225038409233,
-0.016486527398228645,
-0.00008022835390875116,
-0.010018307715654373,
0.036560315638780594,
0.0432329922914505,
0.09479288756847382,
-0.030724048614501953,
0.05750768631696701,
0.019051512703299522,
-0.024571804329752922,
0.02864232286810875,
0.027601458132267,
0.05572335049510002,
0.06765609979629517,
-0.013401112519204617,
0.03042665868997574,
0.009353827685117722,
-0.04847448319196701,
-0.019832158461213112,
-0.016709569841623306,
0.04479428753256798,
0.0007057191105559468,
-0.037192270159721375,
0.020185308530926704,
-0.019627703353762627,
-0.015408490784466267,
0.05204315483570099,
0.052786629647016525,
-0.0191072728484869,
-0.11211582273244858,
-0.055388785898685455,
-0.0013893663417547941,
0.002806612988933921,
0.013215243816375732,
-0.02325213886797428,
-0.021263346076011658,
0.02380974404513836,
0.029943400993943214,
-0.03546369448304176,
0.030816981568932533,
0.0714106410741806,
-0.03654173016548157,
-0.015120395459234715,
0.049998603761196136,
-0.008498833514750004,
-0.019590530544519424,
-0.020129548385739326,
0.050742074847221375,
0.016486527398228645,
0.010826834477484226,
-0.020501285791397095,
-0.03925540670752525,
-0.07204259932041168,
0.017081307247281075,
0.02189529873430729,
0.03836324065923691,
-0.007634544745087624,
-0.050779249519109726,
0.024776259437203407,
0.02918134070932865,
0.01929314061999321,
0.0160590298473835,
0.026523422449827194,
-0.001181426108814776,
0.051336854696273804,
0.011179984547197819,
0.0004579913802444935,
0.019813572987914085,
0.01892140507698059,
0.010157709009945393,
-0.06364134699106216,
-0.00994396023452282,
0.03944127634167671,
0.05364162474870682,
-0.03533358499407768,
0.007787886541336775,
-0.014441975392401218,
-0.01112422440201044,
-0.08988596498966217,
-0.01297361496835947,
0.001792468479834497,
-0.028344932943582535,
-0.0017506481381133199,
-0.026095924898982048,
0.014999580569565296,
-0.04037061706185341,
0.04018475115299225,
0.0148230055347085,
0.05185728520154953,
-0.010362164117395878,
-0.007202400825917721,
-0.019404662773013115,
-0.021579323336482048,
-0.01888423040509224,
-0.018754122778773308,
-0.004005464259535074,
-0.012416009791195393,
0.01402377150952816,
0.027508525177836418,
0.0023535587824881077,
-0.009860319085419178,
0.05129968002438545,
0.004256386775523424,
0.028437865898013115,
0.06025853753089905,
0.017155654728412628,
0.029441555961966515,
0.03743389621376991,
0.039924535900354385,
-0.07925429195165634,
0.04906925931572914,
0.04806556925177574,
0.037062160670757294,
0.008986737579107285,
0.011235745623707771,
0.0032829008996486664,
0.058399856090545654,
-0.04048214107751846,
-0.03189501911401749,
-0.012871387414634228,
0.0501844696700573,
0.012601878494024277,
-0.010966235771775246,
-0.04379059746861458,
0.016988372430205345,
-0.03674618527293205,
0.010864008218050003,
-0.0326199047267437,
0.068399578332901,
-0.00028504664078354836,
-0.029497316107153893,
0.04468276724219322,
-0.06408742815256119,
0.03494326025247574,
-0.01653299480676651,
0.03739672526717186,
0.013717088848352432,
-0.03866063058376312,
0.04048214107751846,
0.04304712265729904,
-0.012332368642091751,
0.017573857679963112,
0.034999020397663116,
-0.0006633179145865142,
-0.04144865646958351,
-0.009497875347733498,
0.03765694051980972,
0.0188191756606102,
-0.049366649240255356,
0.014488442800939083,
-0.04486863315105438,
0.005668986588716507,
-0.019348900765180588,
0.024478869512677193,
-0.07181955128908157,
-0.023103443905711174,
-0.019144445657730103,
-0.006816723849624395,
-0.03351207450032234,
-0.010129828006029129,
-0.021226173266768456,
-0.006054663565009832,
0.06962630897760391,
0.0004707698244601488,
-0.032118059694767,
0.038511935621500015,
-0.028623735532164574,
0.009028557687997818,
0.02393985167145729,
0.03611423075199127,
0.01942324824631214,
-0.08587120473384857,
-0.013215243816375732,
0.044905807822942734,
-0.08505338430404663,
-0.027099614962935448,
-0.009418881498277187,
0.034144025295972824,
0.08193079382181168,
0.0021758221555501223,
-0.010074067860841751,
0.03985018655657768,
-0.02626320719718933,
-0.06401307880878448,
-0.02933003567159176,
0.006649442482739687,
-0.035277824848890305,
-0.06828805059194565,
0.011839817278087139,
0.09271116554737091,
0.03607705980539322,
0.06133657693862915,
0.029292860999703407,
-0.016012564301490784,
-0.043344512581825256,
-0.045128848403692245,
0.05085359886288643,
-0.0011698092566803098,
-0.0035570566542446613,
-0.003150469623506069,
0.04159735143184662,
-0.04862317442893982,
0.027508525177836418,
-0.03786139562726021,
-0.02832634560763836,
-0.04204343259334564,
0.03802867606282234,
-0.0025440738536417484,
0.07791604101657867,
0.028400693088769913,
-0.0023860856890678406,
-0.013847196474671364,
-0.04709905385971069,
0.0017506481381133199,
0.024739084765315056,
0.03221099451184273,
0.022675946354866028,
0.024869192391633987,
-0.08267427235841751,
-0.02089160867035389,
-0.01245318353176117,
-0.04840013384819031,
-0.0062916455790400505,
-0.008652174845337868,
0.039329756051301956,
-0.001962073380127549,
-0.07174520939588547,
-0.007053706329315901,
-0.033865224570035934,
-0.03501760959625244,
-0.004632770083844662,
0.02973894588649273,
0.04903208836913109,
-0.011793350800871849,
-0.04906925931572914,
-0.008089922368526459,
0.019720638170838356,
-0.020557045936584473,
0.013178070075809956,
-0.04267538711428642,
0.05382749065756798,
0.03200653940439224,
0.008573180064558983,
-0.015194742940366268,
-0.03583543002605438,
-0.013401112519204617,
0.016133377328515053,
-0.01951618306338787,
0.03334479406476021,
-0.007532317191362381,
0.007541610859334469,
0.047545138746500015,
-0.007755359634757042,
-0.007360388990491629,
0.08973726630210876,
-0.0035314997658133507,
-0.014079531654715538,
0.04144865646958351,
0.012741279788315296,
0.09062943607568741,
-0.034906089305877686,
-0.03644879534840584,
0.0012801686534658074,
-0.005306543316692114,
-0.0071466402150690556,
0.07419867068529129,
0.010910475626587868,
0.032675664871931076,
-0.00795516837388277,
0.09107552468776703,
0.012332368642091751,
-0.03483173996210098,
-0.013233831152319908,
-0.03074263595044613,
0.021244758740067482,
-0.017480924725532532,
0.030798396095633507,
0.019218793138861656,
0.03672759607434273,
0.01869836263358593,
-0.027787327766418457,
-0.030705461278557777,
-0.035649560391902924,
-0.049589693546295166,
-0.013466166332364082,
0.010659553110599518,
0.008954210206866264,
-0.015501425601541996,
0.03182067349553108,
0.012713399715721607,
-0.010780368000268936,
0.0191072728484869,
-0.09427245706319809,
0.015789521858096123,
-0.0033107809722423553,
0.00872187502682209,
0.005227549001574516,
-0.013986597768962383,
0.014321161434054375,
-0.013038668781518936,
-0.013178070075809956,
-0.02864232286810875,
-0.015371317975223064,
0.010659553110599518,
-0.043344512581825256,
0.042526692152023315,
-0.02143062837421894,
0.052600760012865067,
0.00268579856492579,
0.012183674611151218,
-0.02111465111374855,
0.026560595259070396,
0.00686319125816226,
0.01562223955988884,
-0.07378976047039032,
0.049961429089307785,
-0.00996254663914442,
-0.020724328234791756,
0.006356699857860804,
0.01391225028783083,
-0.011523841880261898,
0.0059199086390435696,
0.012044273316860199,
0.017202122136950493,
-0.005687573458999395,
0.0181035827845335,
0.005603932775557041,
-0.041708871722221375,
-0.037006400525569916,
-0.026597769930958748,
-0.024367349222302437,
0.02873525582253933,
-0.022099753841757774,
0.018614720553159714,
-0.0010065935784950852,
-0.053604450076818466,
-0.0016228635795414448,
0.041337136179208755,
-0.05081642419099808,
-0.020036615431308746,
-0.09464419633150101,
-0.006319526117295027,
0.020854435861110687,
0.0070258257910609245,
0.015835989266633987,
-0.026021577417850494,
0.01496240682899952,
0.05063055455684662,
0.08616859465837479,
-0.04040779173374176,
-0.018308037891983986,
-0.024664737284183502,
-0.03059394098818302,
0.008912390097975731,
-0.011077756993472576,
-0.0035709969233721495,
-0.01270410604774952,
-0.028475040569901466,
0.03393957018852234,
0.03366076946258545,
0.02061280608177185,
-0.01938607543706894,
0.04590949788689613,
0.0065332744270563126,
0.04025909677147865,
-0.042526692152023315,
0.05081642419099808,
-0.02704385295510292,
-0.011021996848285198,
-0.021765191107988358,
-0.028307758271694183,
0.0392182357609272,
-0.002239714376628399,
-0.002402349142357707,
-0.024478869512677193,
-0.09360332787036896,
0.055202916264534,
0.013354645110666752,
-0.015231916680932045,
-0.0011250847019255161,
0.07174520939588547,
0.11940186470746994,
-0.06787914037704468,
0.021672256290912628,
-0.0983615592122078,
-0.012889973819255829,
-0.033047404140233994,
0.005743334069848061,
-0.056392475962638855,
0.05345575511455536,
-0.06512828916311264,
-0.08535077422857285,
-0.02814047783613205,
-0.002860050182789564,
-0.01998085342347622,
0.01938607543706894,
0.01741586998105049,
0.015018167905509472,
-0.05884593725204468,
-0.03009209595620632,
-0.04375342279672623,
0.012369542382657528,
0.013094429858028889,
-0.04237799718976021,
-0.12371401488780975,
-0.02832634560763836,
-0.014888059347867966,
-0.07564844191074371,
-0.04405081272125244,
0.03024079091846943,
0.01907009817659855,
-0.016291366890072823,
0.005892028566449881,
0.0050370339304208755,
-0.019553355872631073,
-0.0051671420224010944,
0.08401252329349518,
-0.01546425186097622,
-0.09962546825408936,
0.015566479414701462,
-0.00005645026976708323,
0.04338168725371361,
-0.004096074961125851,
-0.06873413920402527,
0.0241257194429636,
0.0046258000656962395,
0.014980994164943695,
0.017638912424445152,
0.023233551532030106,
0.07152216136455536,
0.022954748943448067,
-0.027787327766418457,
0.011300799436867237,
0.02262018620967865,
0.0191072728484869,
0.030408071354031563,
0.026300380006432533,
0.05564900115132332,
0.0316162183880806,
0.0028321698773652315,
-0.03624434024095535,
0.0037684820126742125,
-0.021449213847517967,
-0.004042638000100851,
0.012443889863789082,
0.026597769930958748,
0.012769159860908985,
-0.055388785898685455,
0.055388785898685455,
0.0019736902322620153,
-0.007713539060205221,
0.0201109629124403,
0.01281562726944685,
0.06167113780975342,
-0.028883950784802437,
-0.018995750695466995,
0.01947901025414467,
-0.010566619224846363,
-0.02148638851940632,
0.008266497403383255,
0.012499650940299034,
0.021504975855350494,
-0.0012894620886072516,
0.027211135253310204,
0.015194742940366268,
-0.06494241952896118,
-0.03631868585944176,
0.009776677936315536,
0.032080888748168945,
0.03224816918373108,
0.009860319085419178,
0.025965817272663116,
0.007569490931928158,
0.06773044914007187,
0.021504975855350494,
-0.01675603725016117,
-0.008480246178805828,
-0.0008323419606313109,
-0.0033200744073837996,
-0.04159735143184662,
0.0009862642036750913,
0.011681829579174519,
-0.02262018620967865,
-0.022694533690810204,
-0.057805076241493225,
-0.06074179708957672,
0.05996114760637283,
0.03230392932891846,
-0.06460785865783691,
0.04520319774746895,
0.06761892884969711,
-0.02007378824055195,
-0.04297277703881264,
0.015417784452438354,
0.013140896335244179,
0.03059394098818302,
-0.015557185746729374,
0.04274973273277283,
-0.0008236293797381222,
-0.04360472783446312,
-0.059626586735248566,
0.06286069750785828,
0.009823145344853401,
-0.04787970334291458,
-0.010864008218050003,
0.02550114504992962,
0.004883692599833012,
-0.019163032993674278,
0.01675603725016117,
0.0063892267644405365,
-0.047768183052539825,
0.01942324824631214,
-0.0012743603438138962,
0.034645870327949524,
-0.010733900591731071,
-0.005427357740700245,
0.003173703094944358,
0.02732265554368496,
-0.0062684123404324055,
-0.03533358499407768,
0.009028557687997818,
-0.0024976066779345274,
0.01947901025414467,
0.0022989599965512753,
-0.011914164759218693,
0.014488442800939083,
-0.010176295414566994,
-0.024664737284183502,
0.06966347992420197,
-0.013038668781518936,
-0.004356290679425001,
0.026746464893221855,
-0.04706188291311264,
-0.07029543071985245,
0.03092850372195244,
-0.014980994164943695,
-0.035147715359926224,
-0.013020082376897335,
-0.033084578812122345,
-0.09546201676130295,
0.005111381411552429,
-0.010222762823104858,
-0.001258096774108708,
-0.053158365190029144,
0.036095645278692245,
0.006923598237335682,
-0.036783359944820404,
-0.010436511598527431,
0.026839397847652435,
0.03124447911977768,
-0.0030412718188017607,
0.02485060691833496,
-0.05371597036719322,
-0.0492551289498806,
-0.012824920006096363,
0.021449213847517967,
-0.04468276724219322,
-0.07821342349052429,
0.026523422449827194,
-0.03602129966020584,
-0.034144025295972824,
-0.06319525837898254,
0.0035570566542446613,
0.02224844880402088,
-0.05471966043114662,
-0.02823341079056263,
0.0196091178804636,
0.053158365190029144,
-0.05616943538188934,
0.029887640848755836,
-0.03711792081594467,
-0.010473685339093208,
0.02321496419608593,
-0.027564285323023796,
-0.04386494308710098,
0.030816981568932533,
-0.013345351442694664,
0.013837902806699276,
-0.026095924898982048,
0.006807430647313595,
-0.010315696708858013,
-0.027397003024816513,
0.008271144703030586,
-0.0002350944996578619,
-0.021467801183462143,
0.03996170684695244,
-0.057805076241493225,
-0.004509632475674152,
-0.006356699857860804,
0.03745248541235924,
0.027750153094530106,
-0.0021839537657797337,
-0.02732265554368496,
-0.005274015944451094,
-0.022545838728547096,
-0.018531080335378647,
0.055574655532836914,
-0.026430487632751465,
0.015352730639278889,
0.026932332664728165,
0.022954748943448067,
-0.008884510025382042,
0.08304600417613983,
0.046541448682546616,
0.09293420612812042,
0.01866118796169758,
0.02243431657552719,
0.04457124322652817,
-0.028010370209813118,
-0.06148527190089226,
-0.002569630742073059,
0.021876711398363113,
0.04806556925177574,
-0.019757812842726707,
-0.006672675721347332,
-0.005032387096434832,
0.014469855464994907,
-0.010278522968292236,
-0.014451269060373306,
0.07468193024396896,
0.007439383305609226,
-0.0038823264185339212,
-0.049552518874406815,
-0.036783359944820404,
-0.008243263699114323,
-0.03388381004333496,
0.02001802809536457,
-0.07260020077228546,
0.03451576456427574,
-0.0392182357609272,
-0.015371317975223064,
0.0013928513508290052,
-0.08505338430404663,
0.0027020620182156563,
0.006407813634723425,
-0.010557325556874275,
-0.004609536379575729,
0.0036546376068145037,
-0.022155513986945152,
0.004147188737988472,
-0.007467263378202915,
-0.04483146220445633,
-0.01529697049409151,
-0.015334144234657288,
0.029199928045272827,
-0.003064505523070693,
-0.04237799718976021,
-0.03880932554602623,
0.060370057821273804,
-0.0573589913547039,
-0.04862317442893982,
-0.02553831972181797,
-0.0148230055347085,
0.04419950768351555,
-0.0021653668954968452,
0.004335380624979734,
0.02977611869573593,
-0.029404383152723312,
-0.05869724228978157,
0.025705602020025253,
0.044757112860679626,
-0.07546257227659225,
-0.018484612926840782,
0.0059013222344219685,
-0.0062916455790400505,
0.04903208836913109,
-0.015269089490175247,
-0.022471491247415543,
-0.00994396023452282,
0.019664878025650978,
0.031987953931093216,
0.0168489720672369,
-0.0007092041778378189,
-0.059403542429208755,
-0.024478869512677193,
0.0009427013574168086,
0.013902957551181316,
0.02183953858911991,
0.006816723849624395,
-0.028214825317263603,
-0.05609508603811264,
-0.0015008874470368028,
0.038326065987348557,
0.11687405407428741,
0.045723628252744675,
-0.03544510528445244,
0.0011854919139295816
] |
724,894 | pipfile.api | lock | Returns a JSON representation of the Pipfile. | def lock(self):
"""Returns a JSON representation of the Pipfile."""
data = self.data
data['_meta']['hash'] = {"sha256": self.hash}
# return _json.dumps(data)
return json.dumps(data, indent=4, separators=(',', ': '))
| (self) | [
0.010830101557075977,
-0.048718374222517014,
-0.037034161388874054,
0.02736564911901951,
0.031294550746679306,
-0.00827204529196024,
-0.030320866033434868,
0.02915927767753601,
0.007541781757026911,
-0.02517913095653057,
0.050939057022333145,
-0.056132037192583084,
-0.03812742233276367,
-0.011513388715684414,
-0.030713757500052452,
-0.05052908509969711,
0.03305401653051376,
0.0015801015542820096,
-0.03305401653051376,
0.02043028548359871,
0.005607225000858307,
-0.0031196328345686197,
0.04301292449235916,
0.04267128184437752,
-0.004783010110259056,
0.0019078657496720552,
0.04923084005713463,
-0.010778854601085186,
0.04554108902812004,
-0.00015547451039310545,
-0.04970913752913475,
-0.02150646224617958,
0.033173590898513794,
0.06757710129022598,
0.038708217442035675,
0.013674283400177956,
0.017543397843837738,
0.008182363584637642,
-0.09080886095762253,
-0.02681902050971985,
-0.002724607475101948,
0.0334298238158226,
-0.06908033043146133,
-0.05531209334731102,
0.03645337000489235,
-0.007025045808404684,
0.008365997113287449,
0.06617636233568192,
0.031670358031988144,
-0.04010895639657974,
0.06289657950401306,
0.015476454049348831,
-0.015826638787984848,
0.009788088500499725,
0.01500669401139021,
0.03781994432210922,
0.051417358219623566,
-0.018585409969091415,
-0.019422436133027077,
0.04024561122059822,
-0.028885964304208755,
0.007759579457342625,
0.04396952688694,
-0.054492149502038956,
-0.002131001790985465,
0.021762695163488388,
-0.03442059084773064,
-0.013819482177495956,
0.00566274207085371,
-0.0047744689509272575,
0.01018097810447216,
-0.05691782012581825,
-0.026186980307102203,
0.014989611692726612,
0.014485687017440796,
-0.026494458317756653,
-0.01855124533176422,
-0.04014312103390694,
-0.028151430189609528,
-0.015467912890017033,
-0.0019452330889180303,
-0.08465927839279175,
-0.01638180948793888,
0.017457986250519753,
-0.013392427936196327,
-0.01156463474035263,
0.05350138247013092,
0.0027075253892689943,
-0.036965835839509964,
-0.019439518451690674,
-0.0016761887818574905,
0.08472760766744614,
-0.03884487226605415,
0.08513757586479187,
0.054492149502038956,
-0.09470359981060028,
-0.02398337796330452,
0.019080793485045433,
-0.011855031363666058,
0.04598522558808327,
-0.01916620507836342,
0.03312234580516815,
-0.05821606516838074,
0.011513388715684414,
0.012939750216901302,
-0.05466297268867493,
0.0037837026175111532,
0.015143351629376411,
-0.03349815309047699,
-0.028117265552282333,
-0.016193905845284462,
-0.005235687829554081,
-0.036419205367565155,
0.0013292069779708982,
0.07543490082025528,
0.0237954743206501,
-0.022036010399460793,
-0.008391620591282845,
0.13877561688423157,
-0.003582987003028393,
0.015168974176049232,
0.0488208644092083,
0.03073083981871605,
0.012299168854951859,
0.019798245280981064,
0.04526777192950249,
-0.03320775553584099,
-0.00206587603315711,
0.02975715510547161,
-0.006166666280478239,
0.015681440010666847,
0.020105723291635513,
-0.014118420891463757,
-0.027809785678982735,
0.0030278160702437162,
-0.06767959147691727,
0.030406277626752853,
0.012948291376233101,
0.029603416100144386,
0.0488208644092083,
0.03061126358807087,
-0.004170186817646027,
-0.027673128992319107,
-0.011846491135656834,
0.04014312103390694,
-0.0026947136502712965,
-0.009694136679172516,
0.0016954061575233936,
-0.036965835839509964,
-0.020276546478271484,
0.10857432335615158,
-0.03204616531729698,
-0.0014028738951310515,
0.005773776210844517,
0.007409394718706608,
0.03812742233276367,
-0.023761309683322906,
-0.04017728194594383,
-0.039254844188690186,
-0.029620496556162834,
0.01585226133465767,
-0.053057245910167694,
0.0752982422709465,
-0.004326061811298132,
-0.00879732146859169,
0.01933702640235424,
0.022582639008760452,
-0.022941365838050842,
-0.0059702214784920216,
0.022736379876732826,
-0.027673128992319107,
-0.011265696957707405,
-0.0451994426548481,
0.03235364705324173,
0.03242197632789612,
0.03189242631196976,
0.0013281393330544233,
0.00029333302518352866,
0.010855724103748798,
0.0054235914722085,
-0.060573406517505646,
-0.0391523540019989,
0.0044370959512889385,
0.0843859612941742,
0.02777562290430069,
-0.04550692439079285,
0.052578944712877274,
-0.001971923978999257,
0.03693167120218277,
0.026528622955083847,
-0.0421588160097599,
0.013307017274200916,
-0.011983147822320461,
0.03406186401844025,
0.03826408088207245,
-0.04297875985503197,
-0.02362465299665928,
-0.01788504049181938,
-0.03023545630276203,
-0.023402584716677666,
-0.021250229328870773,
-0.06863619387149811,
-0.0034463293850421906,
-0.0033694596495479345,
0.018090026453137398,
-0.03115789406001568,
-0.016040164977312088,
-0.03717081993818283,
0.043901197612285614,
0.04048476368188858,
0.016766158863902092,
-0.007174515165388584,
-0.0028591295704245567,
0.0012235110625624657,
0.006696213968098164,
-0.042329639196395874,
0.05247645080089569,
-0.01976408064365387,
-0.01500669401139021,
0.022873036563396454,
0.029142197221517563,
0.009506232105195522,
-0.0421929806470871,
0.03781994432210922,
-0.0903988853096962,
0.0035680399741977453,
0.007571675814688206,
0.004358090925961733,
-0.016731994226574898,
-0.019849492236971855,
0.005517543759196997,
-0.01879039593040943,
0.020618189126253128,
0.014767543412744999,
-0.023334255442023277,
0.006687672808766365,
-0.032080329954624176,
-0.006700484547764063,
-0.021318558603525162,
0.015826638787984848,
0.02060110680758953,
0.019593259319663048,
0.06730378419160843,
0.04765927791595459,
0.012077100574970245,
-0.029808402061462402,
0.03840073570609093,
0.020515697076916695,
0.03013296239078045,
-0.013571790419518948,
0.026682361960411072,
0.028117265552282333,
-0.026767773553729057,
0.032507386058568954,
0.0355309322476387,
-0.05343305319547653,
0.07700645923614502,
-0.044379498809576035,
0.03291735798120499,
0.019729916006326675,
0.026528622955083847,
-0.07536657154560089,
0.0014551880303770304,
-0.009557479061186314,
0.035394273698329926,
-0.029210524633526802,
0.0027651775162667036,
-0.0019633828196674585,
-0.07632317394018173,
0.039801474660634995,
0.03761495649814606,
0.00019591122691053897,
-0.0033950828947126865,
-0.05924099311232567,
-0.03542843833565712,
-0.07461495697498322,
0.014724837616086006,
0.012213757261633873,
0.031602028757333755,
-0.013734071515500546,
-0.017936287447810173,
-0.0015929131768643856,
0.0765281617641449,
0.005795129109174013,
0.0006138907629065216,
-0.008365997113287449,
0.005026430822908878,
0.06662049889564514,
-0.0018758367514237761,
-0.0007815096760168672,
-0.0031922319903969765,
0.054184671491384506,
-0.052032314240932465,
-0.06412649899721146,
0.060095105320215225,
0.04396952688694,
-0.008570983074605465,
0.04776177182793617,
0.052203137427568436,
-0.014178208075463772,
-0.004103993531316519,
0.009301246143877506,
-0.009642889723181725,
-0.03758079186081886,
-0.044072020798921585,
0.0027651775162667036,
0.028424745425581932,
-0.028766388073563576,
-0.028885964304208755,
-0.0076698982156813145,
0.050939057022333145,
0.010616573505103588,
0.04834256321191788,
0.05818190053105354,
-0.059445980936288834,
0.004118940327316523,
-0.016074329614639282,
0.054252997040748596,
0.025572020560503006,
0.027041088789701462,
-0.060231760144233704,
-0.033463988453149796,
0.054560478776693344,
-0.02060110680758953,
0.06761126220226288,
-0.05520959943532944,
0.019490765407681465,
0.020208217203617096,
0.00036299630301073194,
0.052749767899513245,
-0.016731994226574898,
0.010881347581744194,
0.0475909486413002,
0.034608494490385056,
-0.014665050432085991,
0.02813434787094593,
0.030115880072116852,
-0.09354200959205627,
-0.029603416100144386,
-0.02095983363687992,
0.035086795687675476,
-0.0759131982922554,
0.024598337709903717,
0.026784855872392654,
-0.07919298112392426,
-0.02458125539124012,
0.05978762358427048,
0.029261771589517593,
-0.03457432985305786,
-0.02488873340189457,
0.01566435769200325,
0.035223450511693954,
0.0310212355107069,
0.04827423766255379,
0.042261309921741486,
-0.08008125424385071,
-0.04058725759387016,
-0.030628345906734467,
-0.036965835839509964,
0.013341180980205536,
-0.01571560464799404,
-0.04120221361517906,
-0.008899815380573273,
0.04584856703877449,
-0.045096952468156815,
-0.01024076621979475,
-0.01709926128387451,
0.039323173463344574,
0.03969898447394371,
-0.0034911702387034893,
-0.009873499162495136,
-0.020566942170262337,
-0.03406186401844025,
-0.048410892486572266,
-0.01400738675147295,
0.03146537393331528,
-0.033463988453149796,
-0.010992381721735,
-0.06662049889564514,
-0.07741643488407135,
-0.02324884571135044,
0.0093354107812047,
0.003185826353728771,
0.012734764255583286,
-0.017176130786538124,
0.03891320154070854,
0.031311631202697754,
-0.0850009173154831,
0.0554487518966198,
0.05049492046236992,
-0.006824330426752567,
-0.01819252036511898,
0.023949213325977325,
0.051554013043642044,
-0.02784395031630993,
-0.019422436133027077,
0.010437211021780968,
0.008908355608582497,
0.013358263298869133,
-0.015416665934026241,
0.03324192017316818,
-0.06176915764808655,
0.026836102828383446,
-0.035394273698329926,
-0.0037580791395157576,
-0.07201846688985825,
0.021250229328870773,
-0.032148659229278564,
0.01647576130926609,
-0.022992612794041634,
-0.0789196640253067,
-0.017440903931856155,
0.028458910062909126,
-0.027382731437683105,
0.05343305319547653,
0.04420867934823036,
-0.02283887192606926,
-0.06101754307746887,
0.01723591797053814,
0.037204984575510025,
0.026477375999093056,
0.019422436133027077,
-0.0030513040255755186,
0.025503693148493767,
-0.05087072774767876,
-0.021848106756806374,
-0.018055861815810204,
0.026955677196383476,
-0.016014542430639267,
0.05374053493142128,
0.06774792075157166,
0.03891320154070854,
0.035394273698329926,
-0.02434210479259491,
0.026135733351111412,
-0.017748383805155754,
0.033651892095804214,
-0.05821606516838074,
-0.011137580499053001,
0.043047089129686356,
0.05930932238698006,
0.01147922407835722,
0.03655586019158363,
0.004962373059242964,
0.05380886048078537,
0.022992612794041634,
-0.07277008146047592,
0.05237396061420441,
0.05900184437632561,
-0.010317635722458363,
-0.010539704002439976,
0.014246536418795586,
-0.009249999187886715,
-0.08356601744890213,
-0.02874930575489998,
-0.006380193866789341,
0.03536010906100273,
-0.07973960787057877,
-0.00614531384781003,
-0.03486472740769386,
-0.003149526659399271,
0.038161586970090866,
0.02415420114994049,
0.02873222343623638,
0.011026546359062195,
-0.10385964810848236,
-0.0421929806470871,
-0.0030064634047448635,
-0.05391135439276695,
0.029910894110798836,
0.03590673953294754,
0.023419667035341263,
-0.04752261936664581,
-0.011018005199730396,
-0.01721029542386532,
0.052271466702222824,
0.05233979597687721,
0.02892012894153595,
-0.04936749488115311,
-0.03758079186081886,
-0.08787072449922562,
-0.037375807762145996,
0.0019249479519203305,
0.04906001687049866,
-0.007076292298734188,
-0.03037211298942566,
0.02753647230565548,
-0.04813757911324501,
0.05169067159295082,
-0.016006000339984894,
-0.015373960137367249,
-0.01024076621979475,
-0.049606647342443466,
0.03390812501311302,
0.01699676737189293,
0.03717081993818283,
0.014887118712067604,
0.02119898423552513,
-0.027331486344337463,
-0.022787626832723618,
-0.021130654960870743,
0.030150044709444046,
0.03860572353005409,
0.01892705447971821,
0.001046817284077406,
-0.024803323671221733,
0.0009389860206283629,
-0.013127653859555721,
0.02012280561029911,
0.0445844866335392,
-0.02248014695942402,
-0.01885872520506382,
0.0031794204842299223,
0.0201911348849535,
-0.021950598806142807,
0.04109971970319748,
-0.02198476344347,
0.03378855064511299,
-0.02143813483417034,
-0.01662096008658409,
-0.03518928587436676,
0.040758077055215836,
0.05254478007555008,
-0.07782640308141708,
-0.03935733810067177,
-0.02090858668088913,
0.011368189938366413,
-0.05090489238500595,
-0.059685129672288895,
0.06419482827186584,
-0.01033471804112196,
-0.024717912077903748,
0.0047744689509272575,
-0.012990996241569519,
-0.0334298238158226,
0.050460755825042725,
-0.01976408064365387,
0.01075323112308979,
-0.03549676761031151,
-0.09436195343732834,
0.006756001617759466,
-0.0018950541270896792,
0.01270914077758789,
-0.04977746680378914,
-0.0056157661601901054,
0.08404431492090225,
-0.010385964065790176,
0.030867496505379677,
-0.01952493004500866,
-0.024307940155267715,
-0.010983840562403202,
-0.009070636704564095,
0.05083656311035156,
-0.06856786459684372,
-0.017304247245192528,
-0.03717081993818283,
0.02572576142847538,
-0.042261309921741486,
0.035462602972984314,
-0.014237995259463787,
0.03399353474378586,
0.04222714528441429,
-0.04844505712389946,
-0.004586564842611551,
-0.03563342243432999,
0.0026562786661088467,
-0.015109186992049217,
0.07037857174873352,
-0.015408124774694443,
-0.006990881636738777,
0.055995382368564606,
0.02193351648747921,
0.07126684486865997,
-0.001072440529242158,
0.04410618543624878,
-0.0379565991461277,
0.051417358219623566,
0.05855770781636238,
0.023607570677995682,
-0.044379498809576035,
0.01721029542386532,
0.003467682283371687,
-0.0016377539141103625,
-0.03419852256774902,
-0.0421929806470871,
0.014716296456754208,
0.016270775347948074,
0.06552723795175552,
0.06286241859197617,
0.052749767899513245,
-0.0729067400097847,
-0.016074329614639282,
0.024974144995212555,
-0.0262040626257658,
0.023692982271313667,
0.01916620507836342,
0.008506924845278263,
-0.016655124723911285,
-0.009446444921195507,
0.01304224319756031,
-0.016697829589247704,
0.03450600057840347,
-0.04994828999042511,
-0.015433748252689838,
-0.013016619719564915,
0.02210433967411518,
-0.0334298238158226,
-0.015143351629376411,
-0.01890997216105461,
0.006794436369091272,
-0.030355030670762062,
-0.04724930599331856,
-0.022565558552742004,
-0.03532594442367554,
-0.027929361909627914,
0.05114404112100601,
0.010599492117762566,
-0.021233147010207176,
-0.038161586970090866,
0.004146698862314224,
0.02109649032354355,
0.020259464159607887,
0.0015950484666973352,
0.011359648779034615,
-0.03320775553584099,
-0.0180729441344738,
-0.010881347581744194,
0.030150044709444046,
-0.02760479971766472,
-0.06091504916548729,
-0.022787626832723618,
-0.013008078560233116,
0.07912465184926987,
0.02007156051695347,
0.05066573992371559,
0.030577098950743675,
-0.024307940155267715,
-0.024632500484585762,
0.009386656805872917,
-0.015040857717394829,
0.05848937854170799,
-0.045028623193502426,
-0.06559556722640991,
-0.03778577968478203,
-0.028903046622872353,
-0.017731301486492157,
0.009019389748573303,
-0.012786010280251503,
0.012418744154274464,
-0.09525022655725479,
-0.02524746023118496,
-0.04899168759584427,
0.0013591008028015494,
0.030935825780034065,
-0.008899815380573273,
-0.01014681439846754,
0.00861795898526907,
0.0319436751306057,
-0.018722066655755043,
-0.02717774547636509,
-0.050768233835697174,
0.020891504362225533,
-0.03840073570609093,
-0.0256061851978302,
0.03416435793042183,
-0.02517913095653057,
-0.016057247295975685,
0.0090364720672369,
0.006854224018752575,
0.030389195308089256,
0.013751153834164143,
0.011906278319656849,
0.00034965082886628807,
-0.008959602564573288,
-0.006858494598418474,
-0.04632686823606491,
0.0015267196577042341,
0.016398891806602478,
0.012171052396297455,
0.048957522958517075,
-0.01778254844248295,
-0.032199908047914505,
0.0035659046843647957,
0.019507847726345062,
-0.013033702038228512,
0.13207940757274628,
0.016843028366565704,
0.020020313560962677,
-0.024854568764567375,
0.0259136650711298,
-0.0015811690827831626,
-0.07242843508720398,
-0.01776546612381935,
0.023658817633986473,
-0.006076985038816929,
-0.02482040598988533,
0.01916620507836342,
0.027502307668328285,
0.012581024318933487,
-0.03416435793042183,
0.0584552139043808,
-0.0019046629313379526,
0.05462880805134773,
0.026836102828383446,
-0.008485572412610054,
-0.028117265552282333,
-0.021540626883506775,
-0.04171467944979668,
-0.05872853100299835,
-0.025708679109811783,
0.005837834440171719,
0.030337948352098465,
0.022258078679442406,
0.01747506856918335,
0.05169067159295082,
0.002972299000248313,
-0.050699904561042786,
-0.020566942170262337,
0.04813757911324501,
-0.022975530475378036,
-0.06884118169546127,
0.043388731777668,
-0.012948291376233101,
0.009454986080527306,
0.041783008724451065,
0.03018420934677124,
-0.015049398876726627,
0.00413602264598012,
-0.019319944083690643,
0.03809325769543648,
-0.00793894287198782,
-0.010872806422412395,
-0.04024561122059822,
-0.009497690945863724,
0.06539057940244675,
-0.007947483099997044,
0.01802169904112816,
0.0008450340246781707,
-0.0061581251211464405,
0.027792705222964287,
0.00442855479195714,
-0.0021993303671479225,
-0.03216574341058731,
0.022787626832723618,
0.031960755586624146,
-0.040997229516506195,
0.047215141355991364,
-0.0033822713885456324,
-0.03406186401844025,
-0.0091902120038867,
-0.001711420714855194,
0.03402769938111305,
-0.05862603709101677,
0.0034271120093762875,
0.008319021202623844,
-0.029842564836144447,
0.017680054530501366,
0.06655216962099075,
0.01752631552517414,
-0.0007879154873080552,
-0.029927976429462433,
-0.03197783976793289,
-0.020259464159607887,
0.016603877767920494,
0.06439981609582901,
0.031106647104024887,
-0.004174457397311926,
-0.0252987053245306
] |
724,897 | pipfile.api | load | Loads a pipfile from a given path.
If none is provided, one will try to be found.
| def load(pipfile_path=None):
"""Loads a pipfile from a given path.
If none is provided, one will try to be found.
"""
if pipfile_path is None:
pipfile_path = Pipfile.find()
return Pipfile.load(filename=pipfile_path)
| (pipfile_path=None) | [
0.042414888739585876,
-0.02025921829044819,
-0.04722895845770836,
-0.06692288815975189,
-0.02252037264406681,
-0.023979181423783302,
0.03946080058813095,
0.06338527798652649,
0.03225792571902275,
0.000171809020685032,
0.03978903219103813,
-0.004396943375468254,
-0.046572495251894,
-0.001351678278297186,
-0.011770769953727722,
0.023231541737914085,
0.045879561454057693,
0.02200978994369507,
-0.03371673449873924,
-0.011524595320224762,
0.04376428574323654,
0.03214851766824722,
0.054340656846761703,
0.025638578459620476,
0.0033962910529226065,
0.04008079320192337,
-0.0016103889793157578,
-0.007366988342255354,
-0.03548554331064224,
-0.01698601432144642,
0.04011726379394531,
0.011579301208257675,
-0.04168548434972763,
0.08679916709661484,
0.01189841516315937,
0.0798698216676712,
0.027225034311413765,
-0.02126215025782585,
0.00853403564542532,
-0.046718377619981766,
-0.0016696531092748046,
0.04008079320192337,
0.004618044011294842,
-0.02760797180235386,
-0.017077188938856125,
-0.00819212757050991,
-0.03320615366101265,
0.003058941336348653,
-0.0047821602784097195,
0.04394663870334625,
0.06845463812351227,
0.028775019571185112,
0.03978903219103813,
0.004891570657491684,
0.022903310135006905,
0.03530319035053253,
0.0072986064478755,
0.06429703533649445,
0.02346859872341156,
0.014816034585237503,
0.004057314246892929,
-0.00040915049612522125,
-0.024325650185346603,
-0.02076980099081993,
0.0007351032691076398,
0.030434414744377136,
0.020952152088284492,
-0.06174411624670029,
0.010020198300480843,
-0.048468947410583496,
-0.030051477253437042,
0.051167745143175125,
-0.03657964989542961,
-0.03340673819184303,
0.08796621859073639,
0.0010262953583151102,
-0.011752534657716751,
-0.046536024659872055,
-0.010156962089240551,
0.012500174343585968,
-0.026750920340418816,
-0.014588096179068089,
-0.010612839832901955,
-0.02363271452486515,
-0.03211204707622528,
-0.06360409408807755,
0.1219564825296402,
0.017013367265462875,
0.0456242710351944,
0.0025392405223101377,
-0.0024982113391160965,
0.01355781126767397,
-0.02955912984907627,
0.10000139474868774,
0.05073010176420212,
-0.06943933665752411,
0.05758650600910187,
0.030872058123350143,
-0.05966531112790108,
0.0555441752076149,
-0.059008847922086716,
-0.004841424059122801,
-0.010941071435809135,
0.005976560525596142,
-0.014433097094297409,
0.012582232244312763,
0.04730189964175224,
0.016967779025435448,
0.009491379372775555,
-0.04708307981491089,
-0.05288184806704521,
-0.0066102310083806515,
-0.012591349892318249,
0.07388870418071747,
-0.002894825302064419,
0.013111051172018051,
0.0017175202956423163,
-0.02168155647814274,
0.05864414572715759,
0.03608730062842369,
-0.0645158514380455,
0.050219520926475525,
0.01965745911002159,
0.02935854345560074,
0.02507328987121582,
-0.004408339969813824,
-0.03687141090631485,
-0.06524525582790375,
0.03833021968603134,
-0.002379683079198003,
0.06389585882425308,
-0.042196065187454224,
-0.03781963884830475,
-0.018061885610222816,
-0.024653881788253784,
-0.05951942875981331,
0.03978903219103813,
-0.0022429197560995817,
0.00787301268428564,
0.05941002070903778,
0.014724859036505222,
0.03880433365702629,
0.01277370098978281,
0.0059309727512300014,
0.02762620709836483,
-0.00742169376462698,
0.04865130037069321,
-0.019383931532502174,
-0.05620063841342926,
0.03388085216283798,
0.038585513830184937,
-0.08818504214286804,
-0.03716317564249039,
0.0199674554169178,
0.03444614261388779,
-0.02667797915637493,
0.02490917406976223,
-0.03112734854221344,
-0.00917226541787386,
-0.06509937345981598,
-0.014296334236860275,
0.03561319038271904,
0.01900099404156208,
0.0031296024098992348,
-0.025146229192614555,
0.022702723741531372,
-0.011871063150465488,
0.0025210052262991667,
0.0039251092821359634,
0.027535030618309975,
-0.019930986687541008,
-0.05791474133729935,
-0.07202871888875961,
0.002429829677566886,
0.04423839971423149,
-0.06743346899747849,
-0.005119509994983673,
0.01638425514101982,
0.024653881788253784,
-0.01698601432144642,
0.02106156386435032,
-0.004855100531131029,
0.03284145146608353,
0.030744411051273346,
0.05237126350402832,
0.06922051310539246,
0.009236088022589684,
0.04803130403161049,
0.003088573459535837,
0.07315929979085922,
-0.07261224836111069,
0.036944352090358734,
0.05280890688300133,
0.0046773082576692104,
0.022921545431017876,
-0.054048895835876465,
-0.011451655067503452,
0.012709878385066986,
-0.02439858950674534,
0.020386863499879837,
-0.00025429442757740617,
0.01030284259468317,
0.020824506878852844,
0.007654191460460424,
-0.07410752773284912,
-0.016293078660964966,
-0.039861973375082016,
0.019365696236491203,
0.003929668106138706,
0.04471251368522644,
-0.010065785609185696,
-0.05747709795832634,
0.02202802523970604,
-0.03605083003640175,
0.012864876538515091,
-0.004937158431857824,
0.006318469066172838,
0.0034031292889267206,
-0.027243269607424736,
-0.0017984387231990695,
0.12064354866743088,
0.05558064579963684,
-0.030580295249819756,
0.04810424521565437,
0.004096063785254955,
-0.0018428867915645242,
-0.04332664608955383,
0.041101958602666855,
-0.0127007607370615,
0.03592318668961525,
0.0446760430932045,
-0.02153567597270012,
0.015800731256604195,
-0.06812641024589539,
-0.012354293838143349,
-0.07177343219518661,
0.0031341612339019775,
0.022465666756033897,
-0.0009932441171258688,
-0.020824506878852844,
0.04037255421280861,
0.012846642173826694,
-0.010676662437617779,
0.025164464488625526,
-0.06214528903365135,
0.006468908861279488,
-0.034573785960674286,
-0.053100667893886566,
-0.017824828624725342,
-0.004850541707128286,
0.03482908010482788,
0.03242204338312149,
-0.02631327696144581,
0.029942067340016365,
0.03276851028203964,
-0.009053736925125122,
-0.01746012642979622,
-0.08118275552988052,
0.02140803076326847,
0.061379414051771164,
0.004230547696352005,
-0.011861945502460003,
0.03384438157081604,
-0.029887361451983452,
0.010986659675836563,
-0.032002635300159454,
-0.011360479518771172,
-0.02058744989335537,
0.024307414889335632,
-0.01774277165532112,
0.09117560088634491,
0.014460450038313866,
0.07246636599302292,
-0.003371217753738165,
-0.01934746280312538,
-0.05138656869530678,
0.02076980099081993,
-0.014259863644838333,
0.03670729696750641,
0.046572495251894,
-0.03214851766824722,
0.04617132246494293,
0.024143299087882042,
0.05911825969815254,
-0.04040902480483055,
0.02538328617811203,
-0.024033887311816216,
0.03927844762802124,
0.0017243585316464305,
0.05342889949679375,
0.058498263359069824,
0.01636601984500885,
-0.01962098851799965,
-0.02855619788169861,
-0.0025916662998497486,
0.017770124599337578,
-0.022793900221586227,
0.030744411051273346,
0.034537315368652344,
-0.04901600256562233,
-0.019675694406032562,
-0.04168548434972763,
0.009418439120054245,
-0.02073333039879799,
0.025164464488625526,
-0.02808208391070366,
-0.013083698228001595,
-0.09248852729797363,
-0.05747709795832634,
0.02521917037665844,
0.019055699929594994,
0.02664151042699814,
-0.04551485925912857,
0.03254968672990799,
-0.0003000246942974627,
0.05893590673804283,
-0.0030612207483500242,
0.01821688376367092,
0.01332075521349907,
-0.05780532956123352,
-0.05109480395913124,
-0.010968424379825592,
0.018371883779764175,
-0.054705359041690826,
0.0032321750186383724,
0.023195073008537292,
-0.00574862165376544,
-0.03276851028203964,
-0.015654850751161575,
0.03276851028203964,
0.05561711639165878,
0.08213097602128983,
0.017159247770905495,
0.008082716725766659,
0.024653881788253784,
0.0012137751327827573,
0.035649657249450684,
0.007895806804299355,
-0.008214921690523624,
0.005210685543715954,
0.06881934404373169,
-0.06812641024589539,
-0.030762646347284317,
-0.003847610205411911,
-0.03484731540083885,
-0.0014394347090274096,
-0.01316575612872839,
0.021316854283213615,
-0.0019431799883022904,
-0.030434414744377136,
0.06870993226766586,
-0.013101933524012566,
-0.019493343308568,
-0.0006752692861482501,
-0.07155460864305496,
-0.0004516041371971369,
-0.00221784645691514,
0.08030746877193451,
0.0031820284202694893,
-0.017615126445889473,
-0.04281606152653694,
-0.039679620414972305,
-0.05098539590835571,
-0.01491632778197527,
-0.008784769102931023,
0.01509867887943983,
-0.003323350567370653,
0.015025738626718521,
-0.03513907641172409,
0.08059922605752945,
0.030780881643295288,
-0.010457840748131275,
-0.024799762293696404,
-0.02939501218497753,
0.012336058542132378,
-0.003991211764514446,
-0.005757738836109638,
0.018453940749168396,
-0.014496919699013233,
-0.014743094332516193,
0.0017084027640521526,
0.0030999702867120504,
0.00967373140156269,
-0.007973305881023407,
-0.05032892897725105,
0.03574083372950554,
0.0517512708902359,
-0.05142303556203842,
0.027188563719391823,
-0.03307850658893585,
-0.018800407648086548,
-0.024343885481357574,
0.021663323044776917,
0.009746671654284,
0.02456270530819893,
-0.018061885610222816,
0.008041687309741974,
0.05474182963371277,
0.03340673819184303,
0.0482136569917202,
0.016748957335948944,
0.011050482280552387,
-0.02027745358645916,
-0.019548047333955765,
-0.03337026759982109,
-0.005279066972434521,
-0.0036926118191331625,
-0.00942755676805973,
-0.007517428137362003,
-0.01549073401838541,
0.03978903219103813,
-0.001535169081762433,
0.033753205090761185,
-0.0647711455821991,
-0.00265548937022686,
0.06542760878801346,
-0.042852532118558884,
-0.02155391126871109,
0.02217390574514866,
-0.04577014967799187,
0.00281276716850698,
-0.005415830761194229,
-0.03371673449873924,
-0.036944352090358734,
-0.022866839542984962,
0.038986686617136,
0.046827785670757294,
0.0355767197906971,
0.058388851583004,
0.03592318668961525,
-0.014031924307346344,
-0.014834269881248474,
0.027407385408878326,
-0.028027378022670746,
0.031674403697252274,
-0.027845026925206184,
-0.021006857976317406,
0.0346284918487072,
0.0018645409727469087,
-0.01461544819176197,
0.010384900495409966,
-0.007713455706834793,
0.05255361646413803,
-0.02173626236617565,
0.0040732696652412415,
0.020204512402415276,
-0.07651456445455551,
0.08074510842561722,
0.004515471402555704,
-0.05879002436995506,
-0.012618702836334705,
-0.017551302909851074,
0.05922766774892807,
-0.004645396955311298,
-0.006364056840538979,
0.03862198442220688,
-0.016949543729424477,
0.007307724095880985,
0.018371883779764175,
0.0018178134923800826,
0.004246503580361605,
0.04547838866710663,
0.07297694683074951,
-0.05911825969815254,
0.02237449213862419,
-0.0399349108338356,
-0.055143002420663834,
-0.012919582426548004,
-0.0028879870660603046,
0.024982113391160965,
-0.00873006321489811,
-0.0725393071770668,
-0.015718672424554825,
-0.0661570131778717,
0.025802694261074066,
0.06404174119234085,
0.05641946196556091,
0.04646308347582817,
0.012308705598115921,
-0.0083881551399827,
-0.009974610060453415,
-0.009609907865524292,
-0.042706649750471115,
0.008255950175225735,
0.022283315658569336,
-0.06922051310539246,
-0.02634974755346775,
0.03318791836500168,
-0.017159247770905495,
-0.01357604656368494,
0.009919905103743076,
0.05590887740254402,
-0.029322072863578796,
-0.009236088022589684,
0.01132400892674923,
0.017095424234867096,
0.019055699929594994,
0.04938070476055145,
0.037929050624370575,
-0.013977219350636005,
-0.013311637565493584,
-0.006737876683473587,
0.02855619788169861,
0.0026395334862172604,
0.008602418005466461,
-0.017505714669823647,
-0.007070667576044798,
0.01916510984301567,
0.025802694261074066,
0.00654640793800354,
0.009030942805111408,
-0.012737231329083443,
-0.022283315658569336,
0.030397944152355194,
0.01659395918250084,
0.05142303556203842,
-0.026896800845861435,
0.08125569671392441,
-0.006911110132932663,
0.005566270090639591,
-0.0049736290238797665,
0.02589387074112892,
-0.006113323848694563,
-0.03501142933964729,
-0.032020870596170425,
-0.0642605647444725,
-0.009391086176037788,
-0.06024883687496185,
0.017122777178883553,
0.01788865216076374,
0.08198510110378265,
-0.050547752529382706,
-0.007649632636457682,
-0.017095424234867096,
0.04708307981491089,
0.0026258572470396757,
-0.04635367542505264,
-0.027370914816856384,
-0.07341459393501282,
-0.057404156774282455,
-0.0031296024098992348,
0.013083698228001595,
0.013038110919296741,
0.017505714669823647,
0.006550966762006283,
0.0346284918487072,
-0.07578516006469727,
-0.019493343308568,
0.017833946272730827,
-0.024161534383893013,
-0.005775974132120609,
-0.0043126055970788,
-0.010202549397945404,
-0.04912541061639786,
-0.00770889688283205,
-0.03501142933964729,
-0.036342594772577286,
-0.020332157611846924,
-0.015700437128543854,
-0.030306769534945488,
-0.004859659355133772,
0.0012160545447841287,
0.00933638121932745,
0.005315537564456463,
-0.03318791836500168,
-0.005361125338822603,
-0.09321793168783188,
0.03187498822808266,
0.041758425533771515,
-0.04026314243674278,
0.07666043937206268,
-0.00770889688283205,
-0.024963878095149994,
0.01766071282327175,
0.02859266847372055,
0.04354546591639519,
0.049891285598278046,
-0.019930986687541008,
0.042706649750471115,
0.033315565437078476,
-0.049271292984485626,
0.021517440676689148,
0.04004432260990143,
-0.020496275275945663,
-0.055325351655483246,
0.0100475512444973,
0.03466496244072914,
0.05288184806704521,
0.00012194736336823553,
0.004845982883125544,
0.012399881146848202,
-0.04489486292004585,
0.019602753221988678,
0.011123422533273697,
0.025109760463237762,
-0.04515015706419945,
0.019438637420535088,
0.051495976746082306,
-0.0062272935174405575,
-0.0086571229621768,
-0.035047899931669235,
0.009837847203016281,
-0.012281352654099464,
-0.0011944003636017442,
-0.077973373234272,
0.05317360907793045,
-0.009436674416065216,
0.007357870694249868,
-0.0020286571234464645,
0.017961593344807625,
-0.022465666756033897,
-0.02507328987121582,
0.022155670449137688,
-0.003754155244678259,
-0.021043328568339348,
-0.012864876538515091,
-0.00940932147204876,
-0.037600815296173096,
-0.0702052116394043,
-0.07425341010093689,
-0.023213306441903114,
-0.0011066438164561987,
0.04168548434972763,
0.030616765841841698,
-0.016812780871987343,
-0.016621312126517296,
-0.0023888007272034883,
-0.013831337913870811,
-0.006482584867626429,
-0.01196223869919777,
0.04865130037069321,
-0.03214851766824722,
0.027571501210331917,
-0.014633683487772942,
-0.016466312110424042,
-0.0661570131778717,
0.0564923994243145,
-0.004198636393994093,
0.008183009922504425,
0.02013157121837139,
-0.021462736651301384,
-0.07476399093866348,
-0.029814420267939568,
-0.012162825092673302,
0.034409672021865845,
-0.015445146709680557,
-0.03402673453092575,
0.03258615732192993,
0.06181705743074417,
-0.03978903219103813,
0.033114977180957794,
-0.03668906167149544,
-0.02490917406976223,
0.009883434511721134,
-0.03574083372950554,
-0.06870993226766586,
0.06922051310539246,
-0.009691965766251087,
-0.030908528715372086,
-0.016539253294467926,
-0.002207589102908969,
0.00048066634917631745,
-0.030908528715372086,
0.02073333039879799,
0.0026851212605834007,
-0.02200978994369507,
0.03862198442220688,
0.03497495874762535,
-0.019402166828513145,
0.010539899580180645,
0.020350392907857895,
0.04598897323012352,
-0.027735617011785507,
-0.011998708359897137,
0.0362696535885334,
-0.036470238119363785,
-0.05383007228374481,
-0.05776885896921158,
0.01461544819176197,
0.041612543165683746,
0.036488473415374756,
-0.004155328031629324,
-0.008989914320409298,
0.06838169693946838,
-0.038877274841070175,
0.05638299137353897,
0.03605083003640175,
0.021426266059279442,
0.037217877805233,
-0.023523304611444473,
-0.006332145072519779,
0.014971033670008183,
-0.01778835989534855,
-0.01978510431945324,
-0.005329213570803404,
-0.011624888516962528,
-0.016402490437030792,
-0.020003926008939743,
0.025036819279193878,
0.017824828624725342,
0.03400849923491478,
-0.03409967198967934,
0.010877248831093311,
0.026222102344036102,
-0.07855689525604248,
-0.025656813755631447,
-0.13245990872383118,
0.0222103763371706,
-0.03081735223531723,
-0.005215244367718697,
-0.005994795355945826,
-0.02684209682047367,
-0.025346815586090088,
-0.04938070476055145,
0.07826513051986694,
-0.0030771763995289803,
-0.04555132985115051,
0.011150775477290154,
-0.014332803897559643,
-0.02985089085996151,
-0.006660377606749535,
-0.010011080652475357,
-0.07775454968214035,
-0.018371883779764175,
0.015107796527445316,
-0.005055686924606562,
-0.028537962585687637,
-0.02665974572300911,
-0.0446760430932045,
0.036342594772577286,
-0.018071003258228302,
-0.005999354179948568,
-0.0007328238571062684,
-0.04697366803884506,
0.031546756625175476,
-0.0635676234960556,
-0.013548693619668484,
0.019201580435037613,
0.07013227045536041,
-0.07622279971837997,
-0.0004994713235646486,
-0.045405447483062744,
-0.0014907210133969784,
0.0009556342265568674,
0.006491702515631914,
-0.06407821178436279,
0.05474182963371277,
-0.02713385783135891,
-0.02264801785349846,
0.020988622680306435,
-0.02760797180235386,
0.06407821178436279,
-0.012427234090864658,
0.013813103549182415,
-0.019511578604578972,
-0.0472654290497303,
-0.032969094812870026,
0.015782495960593224,
-0.0021859349217265844,
-0.018289824947714806,
-0.05496064946055412,
-0.03406320512294769,
0.008967120200395584,
-0.08898738026618958,
0.07432635128498077,
0.024216238409280777,
-0.05142303556203842,
0.013922513462603092
] |
724,898 | tf_keras.src.engine.input_layer | Input | `Input()` is used to instantiate a TF-Keras tensor.
A TF-Keras tensor is a symbolic tensor-like object, which we augment with
certain attributes that allow us to build a TF-Keras model just by knowing
the inputs and outputs of the model.
For instance, if `a`, `b` and `c` are TF-Keras tensors,
it becomes possible to do:
`model = Model(input=[a, b], output=c)`
Args:
shape: A shape tuple (integers), not including the batch size.
For instance, `shape=(32,)` indicates that the expected input
will be batches of 32-dimensional vectors. Elements of this tuple
can be None; 'None' elements represent dimensions where the shape is
not known.
batch_size: optional static batch size (integer).
name: An optional name string for the layer.
Should be unique in a model (do not reuse the same name twice).
It will be autogenerated if it isn't provided.
dtype: The data type expected by the input, as a string
(`float32`, `float64`, `int32`...)
sparse: A boolean specifying whether the placeholder to be created is
sparse. Only one of 'ragged' and 'sparse' can be True. Note that,
if `sparse` is False, sparse tensors can still be passed into the
input - they will be densified with a default value of 0.
tensor: Optional existing tensor to wrap into the `Input` layer.
If set, the layer will use the `tf.TypeSpec` of this tensor rather
than creating a new placeholder tensor.
ragged: A boolean specifying whether the placeholder to be created is
ragged. Only one of 'ragged' and 'sparse' can be True. In this case,
values of 'None' in the 'shape' argument represent ragged
dimensions. For more information about RaggedTensors, see
[this guide](https://www.tensorflow.org/guide/ragged_tensor).
type_spec: A `tf.TypeSpec` object to create the input placeholder from.
When provided, all other args except name must be None.
**kwargs: deprecated arguments support. Supports `batch_shape` and
`batch_input_shape`.
Returns:
A `tensor`.
Example:
```python
# this is a logistic regression in Keras
x = Input(shape=(32,))
y = Dense(16, activation='softmax')(x)
model = Model(x, y)
```
Note that even if eager execution is enabled,
`Input` produces a symbolic tensor-like object (i.e. a placeholder).
This symbolic tensor-like object can be used with lower-level
TensorFlow ops that take tensors as inputs, as such:
```python
x = Input(shape=(32,))
y = tf.square(x) # This op will be treated like a layer
model = Model(x, y)
```
(This behavior does not work for higher-order TensorFlow APIs such as
control flow and being directly watched by a `tf.GradientTape`).
However, the resulting model will not track any variables that were
used as inputs to TensorFlow ops. All variable usages must happen within
TF-Keras layers to make sure they will be tracked by the model's weights.
The TF-Keras Input can also create a placeholder from an arbitrary
`tf.TypeSpec`, e.g:
```python
x = Input(type_spec=tf.RaggedTensorSpec(shape=[None, None],
dtype=tf.float32, ragged_rank=1))
y = x.values
model = Model(x, y)
```
When passing an arbitrary `tf.TypeSpec`, it must represent the signature of
an entire batch instead of just one example.
Raises:
ValueError: If both `sparse` and `ragged` are provided.
ValueError: If both `shape` and (`batch_input_shape` or `batch_shape`) are
provided.
ValueError: If `shape`, `tensor` and `type_spec` are None.
ValueError: If arguments besides `type_spec` are non-None while
`type_spec` is passed.
ValueError: if any unrecognized parameters are provided.
| @keras_export("keras.layers.InputLayer")
class InputLayer(base_layer.Layer):
"""Layer to be used as an entry point into a Network (a graph of layers).
It can either wrap an existing tensor (pass an `input_tensor` argument)
or create a placeholder tensor (pass arguments `input_shape`, and
optionally, `dtype`).
It is generally recommend to use the TF-Keras Functional model via `Input`,
(which creates an `InputLayer`) without directly using `InputLayer`.
When using `InputLayer` with the TF-Keras Sequential model, it can be
skipped by moving the `input_shape` parameter to the first layer after the
`InputLayer`.
This class can create placeholders for `tf.Tensors`, `tf.SparseTensors`, and
`tf.RaggedTensors` by choosing `sparse=True` or `ragged=True`. Note that
`sparse` and `ragged` can't be configured to `True` at the same time.
Usage:
```python
# With explicit InputLayer.
model = tf.keras.Sequential([
tf.keras.layers.InputLayer(input_shape=(4,)),
tf.keras.layers.Dense(8)])
model.compile(tf.keras.optimizers.RMSprop(0.001), loss='mse')
model.fit(np.zeros((10, 4)),
np.ones((10, 8)))
# Without InputLayer and let the first layer to have the input_shape.
# TF-Keras will add a input for the model behind the scene.
model = tf.keras.Sequential([
tf.keras.layers.Dense(8, input_shape=(4,))])
model.compile(tf.keras.optimizers.RMSprop(0.001), loss='mse')
model.fit(np.zeros((10, 4)),
np.ones((10, 8)))
```
Args:
input_shape: Shape tuple (not including the batch axis), or
`TensorShape` instance (not including the batch axis).
batch_size: Optional input batch size (integer or `None`).
dtype: Optional datatype of the input. When not provided, the Keras
default `float` type will be used.
input_tensor: Optional tensor to use as layer input. If set, the layer
will use the `tf.TypeSpec` of this tensor rather
than creating a new placeholder tensor.
sparse: Boolean, whether the placeholder created is meant to be sparse.
Defaults to `False`.
ragged: Boolean, whether the placeholder created is meant to be ragged.
In this case, values of `None` in the `shape` argument represent
ragged dimensions. For more information about `tf.RaggedTensor`, see
[this guide](https://www.tensorflow.org/guide/ragged_tensor).
Defaults to `False`.
type_spec: A `tf.TypeSpec` object to create Input from. This
`tf.TypeSpec` represents the entire batch. When provided, all other
args except name must be `None`.
name: Optional name of the layer (string).
"""
@traceback_utils.filter_traceback
def __init__(
self,
input_shape=None,
batch_size=None,
dtype=None,
input_tensor=None,
sparse=None,
name=None,
ragged=None,
type_spec=None,
**kwargs,
):
self._init_input_shape = input_shape
self._init_batch_size = batch_size
self._init_dtype = dtype
self._init_sparse = sparse
self._init_ragged = ragged
self._init_type_spec = type_spec
strategy = tf.distribute.get_strategy()
if (
strategy
and batch_size is not None
and distributed_training_utils.global_batch_size_supported(strategy)
):
if batch_size % strategy.num_replicas_in_sync != 0:
raise ValueError(
"The `batch_size` argument ({}) must be divisible by "
"the number of replicas ({})".format(
batch_size, strategy.num_replicas_in_sync
)
)
batch_size = batch_size // strategy.num_replicas_in_sync
if "batch_input_shape" in kwargs:
batch_input_shape = kwargs.pop("batch_input_shape")
if input_shape and batch_input_shape:
raise ValueError(
"Only provide the input_shape OR "
"batch_input_shape argument to "
"InputLayer, not both at the same time."
)
# Set the input shape and batch size from the batch_input_shape.
# Note that batch_input_shape can be None (unknown rank) or []
# (scalar), in which case the batch size must be None.
if batch_input_shape:
batch_size = batch_input_shape[0]
input_shape = batch_input_shape[1:]
if kwargs:
raise ValueError(
f"Unrecognized keyword arguments: {list(kwargs.keys())}"
)
if sparse and ragged:
raise ValueError(
"Cannot set both sparse and ragged to True in a TF-Keras input."
)
if not name:
prefix = "input"
name = prefix + "_" + str(backend.get_uid(prefix))
if not dtype:
if input_tensor is None:
dtype = backend.floatx()
else:
dtype = backend.dtype(input_tensor)
elif input_tensor is not None and input_tensor.dtype != dtype:
raise ValueError(
"`input_tensor.dtype` differs from `dtype`. Received: "
f"input_tensor.dtype={input_tensor.dtype} "
f"but expected dtype={dtype}"
)
super().__init__(dtype=dtype, name=name)
self.built = True
self.sparse = True if sparse else False
self.ragged = True if ragged else False
self.batch_size = batch_size
self.supports_masking = True
if isinstance(input_shape, tf.TensorShape):
input_shape = tuple(input_shape.as_list())
elif isinstance(input_shape, int):
input_shape = (input_shape,)
if type_spec is not None:
args_that_must_be_none = [
("(input_)shape", self._init_input_shape),
("batch_size", self._init_batch_size),
("dtype", self._init_dtype),
("input_tensor", input_tensor),
("sparse", self._init_sparse),
("ragged", self._init_ragged),
]
for arg_name, arg in args_that_must_be_none:
_assert_other_arg_none(arg_name, arg)
if not tf.compat.v1.executing_eagerly_outside_functions():
raise ValueError(
"Creating TF-Keras inputs from a type_spec is only "
"supported when eager execution is enabled."
)
# Needed for type_spec deserialization since TypeSpec objects
# are not Keras-native (not automatically deserialized).
if isinstance(type_spec, dict):
type_spec = serialization_lib.deserialize_keras_object(
type_spec
)
input_tensor = keras_tensor.keras_tensor_from_type_spec(type_spec)
if isinstance(input_tensor, keras_tensor.SparseKerasTensor):
self.sparse = True
if isinstance(input_tensor, keras_tensor.RaggedKerasTensor):
self.ragged = True
self.is_placeholder = True
try:
self._batch_input_shape = tuple(input_tensor.shape.as_list())
except ValueError:
# If the shape cannot be represented as a tuple (e.g. unknown
# rank)
self._batch_input_shape = None
elif input_tensor is None:
if input_shape is not None:
batch_input_shape = (batch_size,) + tuple(input_shape)
else:
batch_input_shape = None
graph = backend.get_graph()
with graph.as_default():
input_tensor = backend.placeholder(
shape=batch_input_shape,
dtype=dtype,
name=self.name,
sparse=sparse,
ragged=ragged,
)
| (shape=None, batch_size=None, name=None, dtype=None, sparse=None, tensor=None, ragged=None, type_spec=None, **kwargs) | [
0.021937713027000427,
-0.06982540339231491,
-0.03541174158453941,
0.008982685394585133,
-0.006282889284193516,
0.006392677780240774,
-0.07689178735017776,
0.044953349977731705,
0.03880520164966583,
-0.050263114273548126,
-0.01912313885986805,
-0.007770022843033075,
-0.027447093278169632,
0.031279705464839935,
0.0609624907374382,
0.05146080628037453,
0.03521212562918663,
0.020061330869793892,
-0.02153848297894001,
-0.044594042003154755,
0.03621020168066025,
-0.04902549833059311,
-0.019911618903279305,
0.03179870545864105,
0.0014671719400212169,
0.017226794734597206,
0.036010585725307465,
-0.006587302312254906,
-0.01647823676466942,
-0.03295647352933884,
-0.011378067545592785,
-0.005419553257524967,
0.005349688231945038,
0.019083214923739433,
0.0006225499673746526,
-0.03549158573150635,
0.001570722321048379,
0.05708995461463928,
0.00547943776473403,
-0.02215729095041752,
0.018604138866066933,
-0.03305628150701523,
-0.023674365133047104,
-0.040462005883455276,
0.035511549562215805,
0.07725109159946442,
-0.0166778527200222,
-0.01397306565195322,
-0.022835981100797653,
0.030561091378331184,
0.011248317547142506,
-0.041559889912605286,
-0.0017728327075019479,
0.03716835379600525,
-0.046270810067653656,
-0.06794901937246323,
-0.00010503191879251972,
-0.05357672646641731,
-0.01095887552946806,
-0.02079990692436695,
-0.023774173110723495,
-0.0053896112367510796,
-0.0010305135510861874,
0.0034059348981827497,
-0.04347619786858559,
-0.03802670165896416,
-0.03884512186050415,
-0.05708995461463928,
0.015100891701877117,
-0.006247956771403551,
-0.032497357577085495,
-0.04355604201555252,
0.030820591375231743,
0.0006347140297293663,
-0.004708424210548401,
0.0032013291493058205,
0.04754834622144699,
-0.016967294737696648,
0.007520503830164671,
-0.08551516383886337,
-0.0018988398369401693,
0.010689395479857922,
-0.007290946319699287,
0.004710919223725796,
0.0064974757842719555,
-0.028145747259259224,
0.011417990550398827,
0.06188071891665459,
-0.019522368907928467,
-0.04243819788098335,
0.015190718695521355,
0.03181866556406021,
-0.005189995747059584,
0.009955809451639652,
0.043156810104846954,
0.026688555255532265,
-0.03155916556715965,
-0.05114142224192619,
-0.02141871303319931,
-0.004541246220469475,
0.002996723633259535,
0.02794613130390644,
-0.03770731762051582,
0.023414865136146545,
-0.026349209249019623,
-0.012236413545906544,
-0.02153848297894001,
-0.012475951574742794,
-0.033116165548563004,
-0.019791848957538605,
-0.004102092701941729,
-0.012715489603579044,
-0.03133958950638771,
0.044234734028577805,
-0.006432600785046816,
-0.01643831469118595,
0.04722896218299866,
0.023434827104210854,
-0.04124050587415695,
0.0037752229254692793,
0.02904401533305645,
0.04655027016997337,
-0.03062097541987896,
-0.020779944956302643,
0.04587157815694809,
0.013933142647147179,
0.039503853768110275,
0.046630118042230606,
0.039124585688114166,
-0.05134103447198868,
-0.01669781282544136,
0.0027671661227941513,
-0.03569120168685913,
0.07058394700288773,
-0.004401515703648329,
0.01815500482916832,
-0.000633466464933008,
0.011767317540943623,
-0.03493266552686691,
0.06315825879573822,
0.07792978733778,
-0.003580598160624504,
0.0070963213220238686,
0.00924717541784048,
-0.019791848957538605,
-0.04319673404097557,
0.008428753353655338,
-0.028644785284996033,
0.022716213017702103,
-0.018823714926838875,
-0.013783431611955166,
0.0056890337727963924,
0.01755615882575512,
0.03958369791507721,
-0.0077201188541948795,
0.027926169335842133,
-0.03884512186050415,
-0.05920587480068207,
0.020290886983275414,
0.0030491226352751255,
-0.054255418479442596,
-0.020171118900179863,
0.025091633200645447,
-0.030920399352908134,
-0.04032227396965027,
0.0003502623294480145,
-0.023015635088086128,
-0.033475473523139954,
0.006302850786596537,
0.034293897449970245,
0.05178019031882286,
0.004952952731400728,
0.046670038253068924,
0.0008022036636248231,
0.041200581938028336,
0.04547234997153282,
0.011737375520169735,
0.006407648790627718,
-0.007879811339080334,
-0.002367935609072447,
0.029702745378017426,
0.01802525483071804,
-0.02481217309832573,
-0.004825698211789131,
-0.0298823993653059,
0.05405580252408981,
-0.048466578125953674,
-0.002594997873529792,
0.06982540339231491,
0.04419481009244919,
0.0047558327205479145,
0.03365512564778328,
0.007031446322798729,
0.006881734821945429,
-0.01427248865365982,
-0.0010648224269971251,
-0.0049429722130298615,
0.04850649833679199,
0.05485426262021065,
0.04722896218299866,
-0.037567585706710815,
0.0012126625515520573,
0.05118134245276451,
0.03149928152561188,
-0.07749062776565552,
-0.023434827104210854,
0.008543531410396099,
-0.029123861342668533,
-0.023035597056150436,
-0.02591005712747574,
-0.08455701172351837,
0.0024739811196923256,
0.05058249831199646,
0.031040167436003685,
0.05357672646641731,
-0.06954594701528549,
-0.08591439574956894,
-0.00031065120128914714,
0.0067769368179142475,
-0.04319673404097557,
0.0793670117855072,
0.04163973778486252,
-0.006342773791402578,
-0.04443434998393059,
0.05213949829339981,
-0.02032083086669445,
0.023055559024214745,
-0.019163060933351517,
-0.010080568492412567,
0.001037999172694981,
-0.0032637089025229216,
-0.07653247565031052,
0.013184585608541965,
0.035172201693058014,
0.009875963442027569,
-0.010070588439702988,
-0.0360904335975647,
-0.07222078740596771,
0.056570954620838165,
-0.05916595458984375,
-0.03884512186050415,
-0.009766174480319023,
0.005649110767990351,
-0.07014478743076324,
-0.04619096219539642,
0.027427131310105324,
-0.00900763738900423,
0.0831996276974678,
-0.039044737815856934,
-0.02167821303009987,
-0.02517147921025753,
0.028964169323444366,
0.001417268067598343,
0.04746850207448006,
0.015350410714745522,
-0.038286201655864716,
0.012675566598773003,
-0.029004093259572983,
0.032617129385471344,
0.001765347202308476,
-0.04670996218919754,
0.013923161663115025,
0.014661738649010658,
0.08447716385126114,
0.01584944874048233,
-0.03858562186360359,
0.03331578150391579,
0.003216300392523408,
-0.002224462106823921,
-0.027546901255846024,
0.07473593950271606,
0.09860992431640625,
-0.041559889912605286,
-0.01717689074575901,
0.030321553349494934,
-0.02782636322081089,
0.02079990692436695,
0.043396349996328354,
0.008987675420939922,
-0.0020610271021723747,
-0.0015382848214358091,
-0.06555364280939102,
-0.024233289062976837,
0.008114359341561794,
-0.018374580889940262,
-0.03644974157214165,
-0.008892858400940895,
-0.055852338671684265,
-0.02165825292468071,
-0.017117004841566086,
0.03295647352933884,
0.005369649734348059,
0.032736897468566895,
0.020001444965600967,
-0.02916378527879715,
-0.020540406927466393,
-0.05872679874300957,
0.008882877416908741,
-0.02153848297894001,
-0.03726816177368164,
0.029722707346081734,
0.039164505898952484,
0.03982323780655861,
0.010300145484507084,
0.008628368377685547,
-0.055453110486269,
-0.03038143739104271,
0.018125062808394432,
-0.03894492983818054,
0.02854497730731964,
0.004818212706595659,
-0.0018364600837230682,
-0.05154065042734146,
-0.045312657952308655,
0.0037727276794612408,
-0.051979806274175644,
0.044354502111673355,
0.025011787191033363,
0.0425579659640789,
0.05629149451851845,
-0.0023878971114754677,
0.026588747277855873,
-0.03918446972966194,
-0.005768880248069763,
-0.07565417140722275,
-0.03874531388282776,
0.0839182436466217,
-0.008882877416908741,
-0.05653103068470955,
0.06958586722612381,
-0.01669781282544136,
-0.028006015345454216,
0.0058337547816336155,
0.02553078718483448,
-0.05900626257061958,
-0.03291654959321022,
0.018184946849942207,
0.016518160700798035,
-0.010669433511793613,
-0.0025064186193048954,
0.05038288235664368,
0.0294033233076334,
-0.01421260368078947,
0.004533760715276003,
-0.018055196851491928,
-0.029463207349181175,
0.03597066551446915,
-0.013903200626373291,
0.025969941169023514,
0.05146080628037453,
0.03355531767010689,
-0.004798251204192638,
-0.01162758655846119,
0.013633719645440578,
0.06587302684783936,
0.018374580889940262,
-0.002560065360739827,
-0.0030690841376781464,
0.02213732898235321,
-0.011248317547142506,
0.05605195462703705,
-0.01035004947334528,
0.04163973778486252,
0.013763469643890858,
0.057369414716959,
0.014801468700170517,
-0.011008779518306255,
-0.026309287175536156,
0.023414865136146545,
0.044833578169345856,
-0.022177251055836678,
-0.07365801930427551,
-0.006058322265744209,
0.014142738655209541,
-0.03355531767010689,
0.020300868898630142,
-0.03816642984747887,
0.0005969742778688669,
0.0005738937761634588,
0.06295864284038544,
0.044713810086250305,
0.029463207349181175,
0.0380067378282547,
0.011517798528075218,
-0.002814574632793665,
-0.01360377762466669,
-0.0372881256043911,
-0.014901276677846909,
0.03846585378050804,
-0.050981730222702026,
-0.003026665886864066,
-0.0003440243599470705,
0.03387470543384552,
-0.0039823236875236034,
-0.004491342697292566,
0.0033784876577556133,
0.020759982988238335,
0.060203950852155685,
-0.004102092701941729,
-0.03355531767010689,
-0.022217174991965294,
-0.06323810666799545,
0.032497357577085495,
0.047388654202222824,
0.03131962940096855,
-0.0602438747882843,
0.037467777729034424,
0.03816642984747887,
-0.013873258605599403,
0.0298823993653059,
0.018913542851805687,
0.020051348954439163,
0.011058683507144451,
0.054894186556339264,
0.0028245553839951754,
-0.01142797153443098,
-0.008059464395046234,
0.015280545689165592,
-0.02129894495010376,
0.03229774534702301,
0.008793050423264503,
0.07757047563791275,
0.022436751052737236,
0.03315608948469162,
-0.005684043746441603,
0.036829009652137756,
-0.024712365120649338,
0.10755268484354019,
-0.04068158194422722,
0.04439442604780197,
-0.0384858138859272,
-0.029582977294921875,
-0.002914382377639413,
-0.01168747153133154,
-0.03365512564778328,
0.012086701579391956,
0.05553295463323593,
0.015031026676297188,
0.010539683513343334,
0.03786700963973999,
0.0552135705947876,
-0.030062053352594376,
0.05038288235664368,
0.0039049729239195585,
0.0010411181719973683,
0.01631854474544525,
-0.010449857451021671,
0.08894854784011841,
-0.003927429672330618,
-0.004406506195664406,
0.06822848320007324,
-0.05086195841431618,
0.0370485857129097,
0.0147016616538167,
-0.04056181386113167,
-0.04535257816314697,
-0.002112178597599268,
0.011148510500788689,
-0.07234055548906326,
-0.032357629388570786,
0.008803031407296658,
0.052458882331848145,
-0.01752621680498123,
-0.0004329155199229717,
0.027447093278169632,
-0.009801107458770275,
0.03265704959630966,
0.00720111932605505,
-0.0380067378282547,
0.04116065800189972,
0.03339562565088272,
-0.017396466806530952,
-0.003498256905004382,
-0.024293173104524612,
-0.04563204199075699,
-0.007111292332410812,
0.03629004955291748,
0.030900437384843826,
-0.0070863403379917145,
-0.002041065599769354,
0.04050192981958389,
-0.07804955542087555,
-0.03173882141709328,
0.022197213023900986,
0.02273617498576641,
0.06012410670518875,
-0.0002861671382561326,
0.03193843737244606,
0.04271765798330307,
0.007755051366984844,
-0.07701155543327332,
0.014791488647460938,
0.06535402685403824,
0.01790548488497734,
-0.02251659706234932,
-0.049544498324394226,
-0.006761965807527304,
-0.0017341573256999254,
0.06874748319387436,
0.03820635378360748,
0.01300493162125349,
0.04140019789338112,
-0.0147016616538167,
0.012635643593966961,
0.02579028718173504,
0.0044539147056639194,
0.000363673985702917,
0.022316982969641685,
-0.018813734874129295,
-0.0319184735417366,
-0.06208033487200737,
0.02954305335879326,
0.054494958370923996,
-0.0022344428580254316,
-0.0014821430668234825,
0.00035400514025241137,
0.029982207342982292,
0.05237903445959091,
-0.02213732898235321,
-0.015889372676610947,
0.02543097920715809,
0.03714839369058609,
-0.021698174998164177,
-0.043755657970905304,
-0.023155367001891136,
0.06838817894458771,
0.029622899368405342,
-0.031060129404067993,
0.06559356302022934,
0.028704669326543808,
-0.014122777618467808,
-0.018594158813357353,
-0.003939905669540167,
0.06495479494333267,
-0.004254299681633711,
-0.022935789078474045,
0.055732570588588715,
-0.024293173104524612,
-0.06439587473869324,
-0.020161136984825134,
-0.004670996218919754,
0.03497258946299553,
0.0413602739572525,
-0.01058958750218153,
-0.025969941169023514,
0.04287735000252724,
-0.011887086555361748,
0.011827202513813972,
-0.04391534999012947,
-0.031020205467939377,
-0.07234055548906326,
0.00240536336787045,
0.00080594647442922,
-0.0008396315388381481,
0.009057540446519852,
-0.009801107458770275,
-0.017875542864203453,
0.0277265552431345,
-0.016667870804667473,
0.018943484872579575,
0.011068664491176605,
0.04826696217060089,
0.035152241587638855,
-0.0188836008310318,
0.006801888812333345,
0.011777298524975777,
-0.08854931592941284,
-0.03535185754299164,
-0.03183862939476967,
0.04587157815694809,
0.007944686338305473,
-0.06603271514177322,
0.023315059021115303,
0.017985332757234573,
-0.02179798297584057,
-0.008333935402333736,
-0.01802525483071804,
0.02505171112716198,
-0.009112435393035412,
-0.040601737797260284,
0.03337566554546356,
-0.004311688710004091,
0.009666367433965206,
-0.01755615882575512,
0.033695049583911896,
-0.01434235367923975,
0.0037153384182602167,
0.06112218275666237,
-0.0738576352596283,
-0.031060129404067993,
0.006577321793884039,
0.02648894116282463,
-0.01179725956171751,
-0.017456350848078728,
-0.024852095171809196,
0.017356544733047485,
-0.019322752952575684,
-0.03074074536561966,
0.0392044298350811,
-0.01571969874203205,
-0.06531409919261932,
0.004815717227756977,
-0.016178814694285393,
0.004214376676827669,
-0.008917810395359993,
-0.06283887475728989,
-0.04674988612532616,
0.03423400968313217,
0.017406446859240532,
-0.05916595458984375,
0.026449017226696014,
0.003682900918647647,
-0.03559139370918274,
-0.0394439697265625,
-0.05509380251169205,
-0.02591005712747574,
-0.023394905030727386,
0.06619241088628769,
0.07613324373960495,
-0.09254162013530731,
0.05349688231945038,
-0.01961219683289528,
-0.028385285288095474,
-0.0074057248421013355,
-0.029483169317245483,
0.021738098934292793,
0.0022119861096143723,
-0.027387209236621857,
0.006163120269775391,
0.013024893589317799,
0.06499471515417099,
0.027247479185461998,
-0.015809526666998863,
0.006482504308223724,
0.06591294705867767,
-0.04926503822207451,
-0.02756686322391033,
0.0069466098211705685,
-0.014182661660015583,
0.020660175010561943,
-0.023295097053050995,
-0.029722707346081734,
0.010419914498925209,
0.004047198686748743,
0.02539105713367462,
-0.062040410935878754,
0.04151996597647667,
0.0005972862127237022,
0.06188071891665459,
0.044474273920059204,
-0.06100241467356682,
0.06786917895078659,
0.025271287187933922,
-0.041559889912605286,
0.054175570607185364,
0.01863408088684082,
-0.01524062268435955,
-0.040961045771837234,
0.020899714902043343,
-0.007146225310862064,
0.013773450627923012,
-0.021558444947004318,
-0.016777658835053444,
0.025810249149799347,
-0.0580880306661129,
0.007854859344661236,
-0.028485093265771866,
-0.055453110486269,
0.01451202668249607,
0.035751085728406906,
-0.1214459016919136,
-0.04379558190703392,
-0.00341591564938426,
-0.0387253537774086,
0.04235835000872612,
-0.07800962775945663,
0.04287735000252724,
0.008049484342336655,
0.009726251475512981,
-0.02433309517800808,
-0.005898629780858755,
0.017396466806530952,
0.010220299474895,
0.06387687474489212,
0.0052448902279138565,
-0.050542574375867844,
-0.04383550211787224,
-0.037208277732133865,
0.012436028569936752,
-0.024991827085614204,
0.04742857813835144,
-0.01986171491444111,
0.049784038215875626,
-0.030780667439103127,
-0.06826841086149216,
-0.05744926258921623,
-0.025271287187933922,
0.03231770545244217,
-0.04259788990020752,
0.0019425057107582688,
-0.0049080392345786095,
-0.024293173104524612,
-0.047508422285318375,
0.007854859344661236,
0.028245555236935616,
0.09493700414896011,
-0.11346129328012466,
0.002219471847638488,
-0.002315536607056856,
-0.017206832766532898,
0.03397450968623161,
-0.012505893595516682,
0.020131194964051247,
-0.05605195462703705,
0.0034059348981827497,
-0.019452502951025963,
0.007819926366209984,
0.005060245748609304,
-0.007106301840394735,
0.029682783409953117,
0.009172319434583187,
0.008628368377685547,
0.007924724370241165,
0.0072610038332641125,
-0.047987502068281174,
-0.018604138866066933,
-0.05772872269153595,
-0.07058394700288773,
0.01925288885831833,
0.020640214905142784,
0.046909578144550323,
0.09413854032754898,
-0.028125785291194916,
-0.0000621458311798051,
0.025071673095226288,
-0.04295719787478447,
0.03640981763601303,
-0.011877105571329594,
-0.009656386449933052,
-0.011917028576135635,
0.021738098934292793,
-0.03698870167136192,
-0.0760134756565094,
0.02311544306576252,
0.028385285288095474,
0.05828764662146568,
0.07469601929187775,
-0.04970419034361839,
-0.025470903143286705,
0.0004313560202717781,
0.014062892645597458,
-0.013184585608541965,
-0.041320350021123886,
0.00387004017829895,
0.058527182787656784,
-0.033335741609334946,
-0.032497357577085495,
-0.018065178766846657,
-0.038905005902051926,
-0.06651179492473602,
-0.023754211142659187,
-0.09781146049499512,
0.03766739368438721,
-0.035531509667634964,
0.03315608948469162,
0.029223669320344925,
-0.009351973421871662,
0.010030665434896946
] |
724,899 | tf_keras.src.engine.training | Model | A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
| class Model(base_layer.Layer, version_utils.ModelVersionSelector):
"""A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
"""
_TF_MODULE_IGNORED_PROPERTIES = frozenset(
itertools.chain(
(
"_train_counter",
"_test_counter",
"_predict_counter",
"_steps_per_execution",
"_compiled_trainable_state",
),
base_layer.Layer._TF_MODULE_IGNORED_PROPERTIES,
)
)
_SCALAR_UPRANKING_ON = False
def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, *args, **kwargs):
self._is_model_for_instrumentation = True
# Special case for Subclassed Functional Model, which we couldn't detect
# when __new__ is called. We only realize it is a functional model when
# it calls super.__init__ with input and output tensor.
from tf_keras.src.engine import functional
if is_functional_model_init_params(args, kwargs) and not isinstance(
self, functional.Functional
):
# Filter the kwargs for multiple inheritance.
supported_kwargs = [
"inputs",
"outputs",
"name",
"trainable",
"skip_init",
]
model_kwargs = {
k: kwargs[k] for k in kwargs if k in supported_kwargs
}
other_kwargs = {
k: kwargs[k] for k in kwargs if k not in supported_kwargs
}
inject_functional_model_class(self.__class__)
functional.Functional.__init__(self, *args, **model_kwargs)
# In case there is any multiple inheritance here, we need to call
# the __init__ for any class that appears after the Functional
# class.
clz_to_init = []
found_functional_class = False
for clz in self.__class__.__bases__:
if issubclass(clz, functional.Functional):
found_functional_class = True
continue
if found_functional_class:
clz_to_init.append(clz)
if clz_to_init:
for clz in clz_to_init:
clz.__init__(self, *args, **other_kwargs)
elif other_kwargs:
# In case there are unused kwargs, we should raise an error to
# user, in case they have a typo in the param name.
raise TypeError(
"The following keyword arguments passed to `Model` aren't "
"supported: {}.".format(other_kwargs)
)
return
# The following are implemented as property functions:
# self.trainable_weights
# self.non_trainable_weights
# `inputs` / `outputs` will only appear in kwargs if either are
# misspelled.
generic_utils.validate_kwargs(
kwargs,
{
"trainable",
"dtype",
"dynamic",
"name",
"autocast",
"inputs",
"outputs",
},
)
super().__init__(**kwargs)
# By default, Model is a subclass model, which is not in graph network.
self._is_graph_network = False
self.inputs = None
self.outputs = None
self.input_names = None
self.output_names = None
# stop_training is used by callback to stop training when error happens
self.stop_training = False
self.history = None
# These objects are used in the default `Model.compile`. They are not
# guaranteed to be set after `Model.compile` is called, as users can
# override compile with custom logic.
self.compiled_loss = None
self.compiled_metrics = None
# This is True for Sequential networks a | (*args, **kwargs) | [
0.012583411298692226,
-0.07537095993757248,
-0.023936539888381958,
0.04463549703359604,
0.00115878542419523,
-0.01805492863059044,
-0.09047968685626984,
0.015108726918697357,
-0.0034884971100836992,
-0.018950659781694412,
-0.014784968458116055,
0.028318069875240326,
-0.013414391316473484,
0.052966877818107605,
0.03235425800085068,
0.03865675628185272,
0.0037124298978596926,
-0.017558498308062553,
0.004330269061028957,
-0.012615786865353584,
0.012637371197342873,
-0.028361238539218903,
-0.01927441917359829,
0.04271452873945236,
0.03203050047159195,
0.050376810133457184,
-0.02145439200103283,
0.01165530364960432,
0.038009241223335266,
-0.03328236564993858,
-0.06643523275852203,
0.010225370526313782,
-0.0341888889670372,
0.011417880654335022,
0.03537600487470627,
-0.017871465533971786,
0.010532940737903118,
0.0779610276222229,
-0.06328397989273071,
-0.02216666005551815,
0.04429015517234802,
-0.04908177629113197,
-0.009507705457508564,
-0.01210856530815363,
0.0014218391152098775,
0.00582765182480216,
-0.0037421078886836767,
0.01724553294479847,
0.0029003359377384186,
-0.053830236196517944,
-0.043815307319164276,
0.0049642957746982574,
0.01732107624411583,
0.031231896951794624,
-0.012766874395310879,
-0.02795114368200302,
-0.012119357474148273,
-0.018432646989822388,
0.016274256631731987,
0.006583088077604771,
-0.03308811038732529,
-0.015605156309902668,
0.00909221637994051,
0.0026939399540424347,
-0.03101605735719204,
-0.003399463603273034,
-0.03913160413503647,
-0.052966877818107605,
-0.002341852756217122,
0.057672169059515,
-0.033109694719314575,
-0.044980838894844055,
0.04523984342813492,
0.04925445094704628,
0.022814176976680756,
-0.008779249154031277,
0.013964780606329441,
-0.03723222017288208,
0.04623270407319069,
-0.04403114691376686,
-0.03289385512471199,
-0.025814339518547058,
-0.052362531423568726,
-0.05724048987030983,
0.007635302841663361,
-0.044246986508369446,
-0.008401531726121902,
-0.034987494349479675,
0.0005433071055449545,
0.013533102348446846,
-0.054693590849637985,
0.04597369581460953,
0.016910981386899948,
0.05119699984788895,
0.041074153035879135,
-0.016403760761022568,
-0.03915318474173546,
-0.04511034116148949,
0.01383527647703886,
-0.020806875079870224,
0.004705289378762245,
0.04649171233177185,
-0.04215334728360176,
0.009399786591529846,
-0.042239684611558914,
-0.06552870571613312,
-0.09134304523468018,
-0.02680719830095768,
-0.0475277379155159,
-0.022123493254184723,
-0.04375055432319641,
0.0034561213105916977,
-0.0016889398684725165,
0.012540243566036224,
-0.02928934618830681,
0.014806551858782768,
-0.004343758802860975,
-0.019511841237545013,
-0.013662605546414852,
0.005142363253980875,
-0.006761155091226101,
0.06898213177919388,
-0.03837616741657257,
-0.016328217461705208,
-0.00525028258562088,
0.026461856439709663,
0.03619619086384773,
-0.008779249154031277,
0.03895892947912216,
-0.023871788755059242,
-0.030174285173416138,
-0.008428511209785938,
-0.00608665868639946,
0.06039173901081085,
0.00829361192882061,
0.004446282517164946,
-0.019824808463454247,
0.025555331259965897,
-0.04131157696247101,
0.0869830995798111,
0.05611812695860863,
0.033390287309885025,
0.0629386380314827,
0.021573103964328766,
-0.0448945015668869,
-0.01231361273676157,
0.01940392144024372,
-0.07373058795928955,
-0.02196161262691021,
-0.0518445149064064,
0.0014272350817918777,
-0.0028086043894290924,
0.003925570752471685,
0.0070201619528234005,
-0.022986847907304764,
0.04299512133002281,
-0.03649836778640747,
-0.06315448135137558,
0.03841933235526085,
-0.019954310730099678,
-0.07144269347190857,
-0.02881450019776821,
0.025404244661331177,
-0.04072881117463112,
0.00189398683141917,
-0.009259491227567196,
-0.024454552680253983,
-0.04536934942007065,
0.0010643558343872428,
0.03699479624629021,
0.0064104171469807625,
0.01025774609297514,
0.05836285278201103,
0.02842598967254162,
-0.005638792645186186,
0.046275872737169266,
0.05607496201992035,
-0.009259491227567196,
0.01919887401163578,
0.04247710481286049,
0.0757163017988205,
-0.04305987060070038,
-0.10178965330123901,
-0.019749265164136887,
-0.017741961404681206,
0.024411385878920555,
-0.05141283944249153,
0.02708778902888298,
0.03496591001749039,
0.002795114414766431,
0.034275226294994354,
0.008736081421375275,
0.03593718633055687,
0.020051438361406326,
-0.04219651594758034,
-0.006896054372191429,
-0.004465168341994286,
0.03928269073367119,
0.028944004327058792,
0.0025954635348170996,
-0.007478819694370031,
0.001386765274219215,
0.02520998939871788,
0.0027586915530264378,
-0.06470851600170135,
0.005978738889098167,
0.008320591412484646,
-0.018648484721779823,
-0.027756890282034874,
-0.09099770337343216,
-0.03697321191430092,
0.014428834430873394,
0.042390771210193634,
0.07860855013132095,
0.05331222340464592,
-0.06259329617023468,
-0.004279007203876972,
0.007236001081764698,
0.011979062110185623,
-0.013252511620521545,
0.06401783227920532,
0.03565659373998642,
-0.035160165280103683,
0.002545550698414445,
0.009799088351428509,
-0.034275226294994354,
0.01747216284275055,
0.007926685735583305,
-0.00741946417838335,
-0.04511034116148949,
-0.029051922261714935,
-0.10178965330123901,
0.002776228589937091,
0.021594686433672905,
-0.024001291021704674,
0.02624601684510708,
-0.027476299554109573,
-0.01600445806980133,
0.029310930520296097,
-0.06095292046666145,
-0.0029650875367224216,
-0.04191592335700989,
-0.02128172107040882,
-0.02926776185631752,
-0.005752108059823513,
0.00868751760572195,
0.021292513236403465,
0.059312544763088226,
-0.035138580948114395,
-0.03552709147334099,
0.029742607846856117,
0.031210312619805336,
-0.023008432239294052,
0.0779610276222229,
-0.024109210819005966,
-0.052664704620838165,
0.0036233963910490274,
-0.08551539480686188,
0.042822446674108505,
0.017871465533971786,
-0.0269582848995924,
-0.0031647386495023966,
-0.011277585290372372,
0.0929834246635437,
0.025123653933405876,
-0.06807560473680496,
0.0059031955897808075,
0.015011599287390709,
0.03101605735719204,
-0.007770202122628689,
0.15410901606082916,
0.03656311705708504,
-0.0464053750038147,
0.01722394861280918,
-0.03157724067568779,
-0.06056440994143486,
-0.01383527647703886,
-0.018724029883742332,
-0.017364243045449257,
-0.009491518139839172,
0.0009004531311802566,
-0.05970105528831482,
-0.04029713198542595,
-0.007203625049442053,
0.01382448524236679,
-0.03358454257249832,
0.01963055320084095,
-0.046448543667793274,
-0.009254095144569874,
-0.01754770614206791,
0.04467866197228432,
-0.012551034800708294,
0.06384516507387161,
0.0011992552317678928,
-0.0002586694899946451,
-0.03336870297789574,
-0.027562635019421577,
0.034987494349479675,
0.02810223214328289,
-0.06427683681249619,
0.019457882270216942,
0.038613587617874146,
0.09125670790672302,
-0.005973343271762133,
-0.006728779524564743,
-0.0790833905339241,
0.016673559322953224,
0.009162363596260548,
-0.017741961404681206,
-0.007424859795719385,
0.0008383994572795928,
0.019662927836179733,
0.028857668861746788,
-0.018152056261897087,
-0.0021408526226878166,
-0.034685321152210236,
0.00038480039802379906,
-0.0285554938018322,
0.05603179335594177,
0.06082341820001602,
0.014871303923428059,
0.06682374328374863,
0.0006205369718372822,
0.024173961952328682,
-0.00640502106398344,
-0.022706257179379463,
0.0732557401061058,
-0.0031404567416757345,
-0.01318776048719883,
0.014504377730190754,
-0.01562673971056938,
-0.018303142860531807,
0.041786421090364456,
0.046146366745233536,
-0.09790454804897308,
-0.005784484092146158,
0.03185782954096794,
0.017083652317523956,
0.012518659234046936,
0.019306793808937073,
0.06129826232790947,
0.0282749030739069,
-0.05732682719826698,
0.011946686543524265,
-0.024821478873491287,
-0.03200891613960266,
0.04623270407319069,
0.030152702704072,
0.00815331656485796,
0.003102684859186411,
-0.01421299483627081,
-0.01179559901356697,
-0.025598499923944473,
0.04718239605426788,
0.020839251577854156,
0.014169827103614807,
-0.04593053087592125,
-0.018119679763913155,
0.027152540162205696,
-0.054693590849637985,
0.020148565992712975,
0.006820511072874069,
-0.04666438326239586,
0.026699278503656387,
0.06147093325853348,
-0.015659116208553314,
0.02913825958967209,
0.0024861949495971203,
-0.0011837417259812355,
-0.010090471245348454,
0.009836860001087189,
-0.06449268013238907,
0.055686451494693756,
-0.008180296048521996,
-0.0278000570833683,
0.020375197753310204,
0.03162040561437607,
0.02769213728606701,
-0.0069769942201673985,
0.0006282937247306108,
0.031231896951794624,
0.03734013810753822,
0.013457559049129486,
0.04172166809439659,
0.07498244941234589,
-0.009944779798388481,
-0.014828136190772057,
-0.026116512715816498,
0.020396780222654343,
0.0017145706806331873,
0.0022703560534864664,
-0.010344081558287144,
-0.015497236512601376,
0.01368418987840414,
-0.0004026745446026325,
-0.00380685948766768,
0.03371404483914375,
0.053959738463163376,
-0.024260299280285835,
-0.04670754820108414,
-0.03984387218952179,
-0.04314620792865753,
0.06621938943862915,
0.04109573736786842,
0.0005261074402369559,
-0.0018036043038591743,
0.0355055071413517,
0.030951306223869324,
-0.027217291295528412,
0.02810223214328289,
-0.003377879736945033,
0.011601343750953674,
-0.09635050594806671,
0.025879090651869774,
-0.00481320871040225,
0.07075200974941254,
0.03319603204727173,
-0.03276435285806656,
0.030152702704072,
-0.004670215304940939,
0.03401621803641319,
0.057456329464912415,
0.06263646483421326,
0.014180619269609451,
-0.00007335151894949377,
0.04575785994529724,
-0.03421047329902649,
0.10835115611553192,
0.01610158570110798,
0.017644833773374557,
-0.006097450386732817,
-0.03792290389537811,
-0.00781336985528469,
-0.05270787328481674,
-0.033821962773799896,
-0.014040323905646801,
0.05680881440639496,
-0.04228284955024719,
-0.013716565445065498,
0.04232601821422577,
-0.029246177524328232,
-0.02087162621319294,
0.029656272381544113,
0.03170674294233322,
-0.03792290389537811,
-0.024152379482984543,
-0.009464537724852562,
0.06250695884227753,
-0.03565659373998642,
-0.0011742988135665655,
0.04463549703359604,
-0.013457559049129486,
0.02840440720319748,
0.028512325137853622,
-0.008169504813849926,
-0.00691763823851943,
0.03144773468375206,
0.0038662152364850044,
-0.016036834567785263,
-0.0006583087961189449,
-0.0016120471991598606,
0.05970105528831482,
0.028922419995069504,
0.006890658754855394,
-0.044246986508369446,
0.017277907580137253,
0.10334368795156479,
-0.040793560445308685,
-0.05814701318740845,
0.00793747790157795,
0.07731351256370544,
0.003572134766727686,
0.033670876175165176,
-0.022512003779411316,
-0.06250695884227753,
0.01899382844567299,
0.018454231321811676,
-0.04679388552904129,
0.009286470711231232,
-0.05607496201992035,
0.0269582848995924,
-0.03740489110350609,
-0.02464880794286728,
0.03291543945670128,
0.018152056261897087,
0.04502400755882263,
0.04662121459841728,
-0.012281236238777637,
0.017083652317523956,
-0.003939060959964991,
-0.054693590849637985,
0.021011922508478165,
0.08081010729074478,
0.016749102622270584,
-0.06410416960716248,
-0.027195708826184273,
0.03865675628185272,
-0.005180134903639555,
0.02115221694111824,
0.0003283112891949713,
0.04726872965693474,
0.009356618858873844,
-0.04185117408633232,
-0.010128242895007133,
0.012194900773465633,
0.023936539888381958,
-0.041376326233148575,
-0.016166336834430695,
-0.015378525480628014,
-0.03198733180761337,
-0.046319037675857544,
-0.017871465533971786,
0.0394553616642952,
-0.003199812490493059,
-0.02013777382671833,
-0.03764231503009796,
0.029742607846856117,
0.03133981674909592,
-0.019090956076979637,
-0.002254168037325144,
0.023850204423069954,
0.021422015503048897,
0.008790041320025921,
-0.02566325105726719,
0.00023539936228189617,
0.061643604189157486,
0.00020656462584156543,
-0.0044840541668236256,
0.09565982222557068,
0.013705773279070854,
-0.0030217452440410852,
-0.004111731890588999,
-0.04146266356110573,
0.07856538146734238,
-0.026483438909053802,
-0.059614717960357666,
0.017839089035987854,
-0.01354389451444149,
-0.07398959249258041,
-0.02956993691623211,
0.02566325105726719,
0.035289667546749115,
0.007538175676018,
0.01719157211482525,
0.011461048386991024,
-0.03544075787067413,
0.008196484297513962,
0.010489773005247116,
-0.035980354994535446,
0.007160457316786051,
-0.05024730786681175,
0.014029531739652157,
-0.023245856165885925,
0.014461209997534752,
0.03030378930270672,
0.020904002711176872,
-0.011709263548254967,
0.02419554628431797,
-0.012799249961972237,
0.04219651594758034,
-0.017277907580137253,
0.032980192452669144,
0.06000322848558426,
-0.054564088582992554,
-0.0031242689583450556,
0.049038611352443695,
-0.022360915318131447,
-0.028857668861746788,
-0.0864219143986702,
-0.010635464452207088,
-0.006782738957554102,
0.013015088625252247,
0.0029435036703944206,
0.00525028258562088,
-0.05206035450100899,
-0.0017725774087011814,
-0.0074464441277086735,
0.02464880794286728,
-0.00640502106398344,
-0.033260781317949295,
-0.0044381883926689625,
-0.0010535639012232423,
-0.03138298541307449,
-0.002285194816067815,
0.04323254153132439,
-0.05460725352168083,
0.010505961254239082,
0.032073669135570526,
-0.0200082715600729,
-0.007932081818580627,
0.023073183372616768,
0.023526446893811226,
-0.014882096089422703,
-0.03824666142463684,
-0.03511699661612511,
0.015205854550004005,
-0.08150079101324081,
-0.019058579578995705,
0.024022875353693962,
0.01266974676400423,
-0.08801912516355515,
-0.007192833349108696,
0.019209666177630424,
-0.033821962773799896,
0.014374874532222748,
0.0019250137265771627,
-0.04200226068496704,
0.03000161424279213,
0.0007513893651776016,
-0.006771947257220745,
-0.008822416886687279,
-0.002573879435658455,
-0.04925445094704628,
-0.0413331612944603,
-0.006583088077604771,
-0.024994151666760445,
-0.04344838112592697,
0.04718239605426788,
0.061082422733306885,
-0.03880784288048744,
0.042671360075473785,
-0.003178228624165058,
-0.021346472203731537,
0.01600445806980133,
-0.058449190109968185,
0.026202848181128502,
0.02562008425593376,
-0.020148565992712975,
0.044246986508369446,
0.012907169759273529,
0.04813208803534508,
0.023159518837928772,
0.01714840531349182,
0.012022229842841625,
0.07800419628620148,
-0.04511034116148949,
-0.007932081818580627,
0.009086820296943188,
0.005145060829818249,
-0.0075273835100233555,
-0.029332512989640236,
-0.018929075449705124,
0.014720216393470764,
-0.01846502162516117,
-0.004192671738564968,
-0.05085165798664093,
0.01739661954343319,
-0.006146014202386141,
0.09686852246522903,
-0.01281004212796688,
-0.03647678345441818,
0.03086497075855732,
0.02838282287120819,
-0.05529794096946716,
0.02421713061630726,
-0.031641989946365356,
-0.007797182071954012,
-0.03332553431391716,
0.05590228736400604,
-0.008498658426105976,
-0.02246883511543274,
-0.021011922508478165,
0.06436317414045334,
0.03058438003063202,
-0.0168138537555933,
0.029936863109469414,
-0.014094283804297447,
-0.027433130890130997,
-0.02069895528256893,
0.03619619086384773,
-0.03746964409947395,
-0.032829105854034424,
-0.009113799780607224,
-0.00761371897533536,
-0.01613396219909191,
0.0008795437170192599,
0.03142615035176277,
0.012130149640142918,
-0.007403275929391384,
-0.017428996041417122,
0.005172040779143572,
0.02233933098614216,
-0.021702606230974197,
0.03351978957653046,
0.05305321514606476,
-0.02564166858792305,
-0.07860855013132095,
0.016986526548862457,
0.006777343340218067,
-0.03446948155760765,
0.008174899965524673,
-0.009480725973844528,
0.028598660603165627,
-0.02102271467447281,
-0.056161295622587204,
-0.06220478564500809,
-0.05892403423786163,
-0.013058256357908249,
-0.048477429896593094,
-0.005277262534946203,
0.021540727466344833,
0.021184593439102173,
-0.050635818392038345,
0.016123170033097267,
0.054693590849637985,
0.08093960583209991,
-0.08512688428163528,
-0.03548392280936241,
0.013414391316473484,
-0.08858031034469604,
0.04016762971878052,
0.030325373634696007,
0.017990177497267723,
-0.030239038169384003,
0.01572386734187603,
-0.0026885438710451126,
0.03272118419408798,
0.032699599862098694,
-0.010646256618201733,
0.0032537721563130617,
0.0349443256855011,
0.02434663474559784,
0.03257009759545326,
-0.006329477299004793,
-0.05098116025328636,
-0.020375197753310204,
-0.019134122878313065,
-0.02117380127310753,
0.05434824898838997,
0.027001453563570976,
0.039779119193553925,
0.019134122878313065,
-0.036455199122428894,
0.004384228959679604,
0.005822255741804838,
-0.04118207097053528,
0.02840440720319748,
-0.009874632582068443,
-0.01927441917359829,
-0.02635393664240837,
0.029634688049554825,
-0.029742607846856117,
-0.05857869237661362,
0.01029551774263382,
-0.014223787002265453,
0.07230605185031891,
0.04234760254621506,
-0.010862095281481743,
0.029332512989640236,
-0.013997156172990799,
-0.0003959295863751322,
-0.016986526548862457,
0.006129826419055462,
0.0074464441277086735,
0.06289546936750412,
-0.01159055158495903,
-0.01651168055832386,
-0.03755597770214081,
-0.053398557007312775,
-0.09496913850307465,
0.0075489673763513565,
-0.06013273075222969,
0.03244059532880783,
-0.01732107624411583,
0.06017589941620827,
0.04256344214081764,
0.015896538272500038,
0.03328236564993858
] |
724,900 | tf_keras.src.engine.training | __call__ | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Training-related part of the TF-Keras engine."""
import copy
import itertools
import json
import warnings
import weakref
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow.python.distribute import distribute_utils
from tensorflow.python.distribute import input_ops
from tensorflow.python.eager import context
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util.tf_export import keras_export
from tensorflow.tools.docs import doc_controls
from tf_keras.src import backend
from tf_keras.src import callbacks as callbacks_module
from tf_keras.src import optimizers
from tf_keras.src.dtensor import dtensor_api
from tf_keras.src.dtensor import layout_map as layout_map_lib
from tf_keras.src.engine import base_layer
from tf_keras.src.engine import base_layer_utils
from tf_keras.src.engine import compile_utils
from tf_keras.src.engine import data_adapter
from tf_keras.src.engine import input_layer as input_layer_module
from tf_keras.src.engine import training_utils
from tf_keras.src.metrics import base_metric
from tf_keras.src.mixed_precision import loss_scale_optimizer as lso
from tf_keras.src.optimizers import optimizer
from tf_keras.src.optimizers import optimizer_v1
from tf_keras.src.saving import pickle_utils
from tf_keras.src.saving import saving_api
from tf_keras.src.saving import saving_lib
from tf_keras.src.saving import serialization_lib
from tf_keras.src.saving.legacy import serialization
from tf_keras.src.saving.legacy.saved_model import json_utils
from tf_keras.src.saving.legacy.saved_model import model_serialization
from tf_keras.src.utils import generic_utils
from tf_keras.src.utils import io_utils
from tf_keras.src.utils import layer_utils
from tf_keras.src.utils import steps_per_execution_tuning
from tf_keras.src.utils import tf_inspect
from tf_keras.src.utils import tf_utils
from tf_keras.src.utils import traceback_utils
from tf_keras.src.utils import version_utils
from tf_keras.src.utils.mode_keys import ModeKeys
try:
import h5py
except ImportError:
h5py = None
@keras_export("keras.Model", "keras.models.Model")
class Model(base_layer.Layer, version_utils.ModelVersionSelector):
"""A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
"""
_TF_MODULE_IGNORED_PROPERTIES = frozenset(
itertools.chain(
(
"_train_counter",
"_test_counter",
"_predict_counter",
"_steps_per_execution",
"_compiled_trainable_state",
),
base_layer.Layer._TF_MODULE_IGNORED_PROPERTIES,
)
)
_SCALAR_UPRANKING_ON = False
def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, *args, **kwargs):
self._is_model_for_instrumentation = True
# Special case for Subclassed Functional Model, which we couldn't detect
# when __new__ is called. We only realize it is a functional model when
# it calls super.__init__ with input and output tensor.
from tf_keras.src.engine import functional
if is_functional_model_init_params(args, kwargs) and not isinstance(
self, functional.Functional
):
# Filter the kwargs for multiple inheritance.
support | (self, *args, **kwargs) | [
0.024942101910710335,
-0.08747810125350952,
-0.039559438824653625,
0.04965827986598015,
-0.00267297332175076,
-0.002055916003882885,
-0.08698106557130814,
0.00023880961816757917,
-0.009330695495009422,
-0.024399882182478905,
-0.0193052776157856,
0.00976560078561306,
-0.02758542262017727,
0.0508330874145031,
0.05711380019783974,
0.03992091864347458,
0.0009750069002620876,
-0.007670148275792599,
0.0006516519351862371,
-0.01573566533625126,
0.027517644688487053,
-0.04254164919257164,
-0.045297931879758835,
0.03549279272556305,
0.018458059057593346,
0.05205308273434639,
-0.007122280541807413,
0.006365432403981686,
0.020231569185853004,
-0.025913579389452934,
-0.055577509105205536,
0.0008465121500194073,
-0.036102790385484695,
-0.009940693154931068,
0.0195876844227314,
-0.03497316688299179,
0.012990678660571575,
0.0643433928489685,
-0.03809092938899994,
-0.03759389370679855,
0.03578649461269379,
-0.04482349008321762,
0.0034397055860608816,
-0.01901157572865486,
-0.004577802028506994,
0.017656026408076286,
-0.006467098370194435,
0.00822366401553154,
0.019632868468761444,
-0.04857384040951729,
-0.042812757194042206,
-0.010499857366085052,
-0.00792431365698576,
0.03325613588094711,
-0.027020610868930817,
-0.048121992498636246,
-0.016978250816464424,
-0.04631459340453148,
0.011013835668563843,
-0.007551537826657295,
-0.009714768268167973,
-0.02469358593225479,
0.0017396212788298726,
0.017689915373921394,
-0.03264613822102547,
-0.001828579232096672,
-0.043874602764844894,
-0.047127921134233475,
0.002551538636907935,
0.044529784470796585,
-0.049613095819950104,
-0.04412312060594559,
0.05657158046960831,
0.029166897758841515,
0.009562268853187561,
0.00042643313645385206,
0.0006703613325953484,
-0.0407116562128067,
0.03809092938899994,
-0.04577237367630005,
-0.041728317737579346,
-0.002704037819057703,
-0.029392821714282036,
-0.03397909551858902,
0.011601240374147892,
-0.0288957878947258,
-0.007399038411676884,
-0.006003952585160732,
-0.013837896287441254,
-0.005823212675750256,
-0.009980229660868645,
0.04211239144206047,
0.023428406566381454,
0.04739903286099434,
0.0663767158985138,
-0.017938433215022087,
-0.05521602928638458,
-0.03777463361620903,
-0.006969781126827002,
-0.02489691786468029,
0.02153063751757145,
0.032962433993816376,
-0.024332106113433838,
0.010240043513476849,
-0.042270537465810776,
-0.04554644599556923,
-0.07229594886302948,
-0.017486583441495895,
-0.05598417669534683,
-0.028376160189509392,
-0.02760801464319229,
-0.009646990336477757,
-0.00895227212458849,
0.013386046513915062,
-0.027449868619441986,
0.03210391849279404,
0.00016882586351130158,
-0.01169161032885313,
-0.030364299193024635,
-0.002346794353798032,
0.0004087827692274004,
0.05598417669534683,
-0.04943235591053963,
-0.03897203505039215,
-0.017181584611535072,
0.012968085706233978,
0.05051679536700249,
0.02158711850643158,
0.04599829763174057,
-0.040440548211336136,
-0.039017219096422195,
-0.01762213744223118,
-0.003445353824645281,
0.060773782432079315,
0.013352158479392529,
-0.0038689628709107637,
-0.0021166333463042974,
0.02693024091422558,
-0.05982489883899689,
0.062174517661333084,
0.06700930744409561,
0.0056820097379386425,
0.05982489883899689,
0.02663653902709484,
-0.037616487592458725,
-0.021564526483416557,
-0.004877152387052774,
-0.06366562098264694,
-0.009488843381404877,
-0.04197683557868004,
-0.002817000262439251,
0.008528662845492363,
0.017576953396201134,
0.00912171509116888,
-0.005975712090730667,
0.03232984617352486,
-0.03594464063644409,
-0.06465969234704971,
0.028715047985315323,
-0.009675230830907822,
-0.06090933829545975,
-0.04645014554262161,
0.0234735906124115,
-0.03797796741127968,
0.013815304264426231,
0.003911323845386505,
-0.04132165387272835,
-0.023315442726016045,
0.005354418884962797,
0.02063823491334915,
0.04195424169301987,
0.01710250973701477,
0.03463427722454071,
0.01981360837817192,
0.010996891185641289,
0.04468793421983719,
0.052007898688316345,
-0.01174809131771326,
0.02041230909526348,
0.047444216907024384,
0.045297931879758835,
-0.01741880550980568,
-0.0903247520327568,
-0.03689352795481682,
-0.05404122173786163,
0.02235526219010353,
-0.049929387867450714,
0.025393951684236526,
0.041389431804418564,
-0.0006410617497749627,
0.03007059544324875,
0.02824060432612896,
0.021146565675735474,
0.03910759091377258,
-0.04351312294602394,
-0.00703755859285593,
-0.000034352047805441543,
0.047896064817905426,
0.04988420382142067,
0.020084718242287636,
-0.011454389430582523,
0.0097938422113657,
0.0386105552315712,
-0.0004306692280806601,
-0.07297372072935104,
0.006173396483063698,
0.008319682441651821,
-0.018401578068733215,
-0.049070876091718674,
-0.07694999873638153,
-0.036102790385484695,
0.013939562253654003,
0.04622422158718109,
0.07288335263729095,
0.07193446904420853,
-0.06371080130338669,
-0.029731709510087967,
0.02009601518511772,
-0.00408923951908946,
-0.030160965397953987,
0.033504653722047806,
0.027766162529587746,
-0.040011290460824966,
0.0010392542462795973,
0.028940971940755844,
-0.037277597934007645,
0.04358090087771416,
0.004942106083035469,
-0.017226768657565117,
-0.055577509105205536,
-0.02336062863469124,
-0.07550407946109772,
0.004027110058814287,
0.02500987984240055,
0.016910474747419357,
0.010166618041694164,
-0.04263201728463173,
-0.03596723452210426,
0.04035017639398575,
-0.0697655901312828,
-0.013081048615276814,
-0.06520190834999084,
-0.011155039072036743,
-0.031448736786842346,
-0.024851731956005096,
0.04272238910198212,
0.02575543150305748,
0.06953966617584229,
-0.037842411547899246,
-0.0508330874145031,
0.03343687579035759,
0.027110980823636055,
-0.01276475377380848,
0.08291441947221756,
-0.0244450680911541,
-0.031855400651693344,
0.03160688653588295,
-0.07803443819284439,
0.056752320379018784,
0.01471900288015604,
-0.012041794136166573,
0.02835356816649437,
-0.02575543150305748,
0.0883817970752716,
0.022287486121058464,
-0.05078790336847305,
0.02084156684577465,
0.020457495003938675,
0.04297090321779251,
-0.015216037631034851,
0.13374750316143036,
0.05639084056019783,
-0.05987008288502693,
0.005868397653102875,
-0.03655463829636574,
-0.019655460491776466,
0.0053939553909003735,
-0.0009594745351932943,
0.024919509887695312,
-0.0006982489721849561,
0.004004517570137978,
-0.0903247520327568,
-0.052233822643756866,
-0.00010237219248665497,
0.0026037837378680706,
-0.026049133390188217,
0.005441964603960514,
-0.04925161600112915,
-0.0025374183896929026,
-0.02033323608338833,
0.02007342129945755,
-0.017893247306346893,
0.08860772103071213,
0.001763625768944621,
-0.02238915115594864,
-0.02184693142771721,
-0.019971756264567375,
0.010364302434027195,
0.019836200401186943,
-0.03323354572057724,
0.007421630900353193,
0.05987008288502693,
0.07789888232946396,
0.002852301113307476,
0.007596722804009914,
-0.08241738379001617,
0.002584015252068639,
0.00960745383054018,
-0.023563960567116737,
-0.021621007472276688,
-0.013013270683586597,
-0.0007141343085095286,
0.0352894589304924,
-0.0333465076982975,
-0.009754304774105549,
-0.059237491339445114,
0.006410617381334305,
-0.018661390990018845,
0.056436024606227875,
0.057746388018131256,
0.01767861843109131,
0.06456931680440903,
0.005693305749446154,
0.003482066560536623,
-0.0017975145019590855,
-0.05539676919579506,
0.10022025555372238,
-0.015182149596512318,
-0.00020509739988483489,
0.018582317978143692,
-0.0026602649595588446,
-0.05715898424386978,
0.03580908849835396,
0.052866414189338684,
-0.08580625057220459,
-0.018751760944724083,
0.009234678000211716,
-0.00001763934596965555,
-0.010104488581418991,
0.0343179814517498,
0.051239755004644394,
0.05096864327788353,
-0.050923459231853485,
0.021282119676470757,
-0.009053938090801239,
-0.02783394046127796,
0.02683987095952034,
0.03183281049132347,
0.007415982894599438,
0.00456085754558444,
-0.005450436845421791,
-0.009624398313462734,
-0.031109850853681564,
0.0372324138879776,
0.016469920054078102,
0.031222812831401825,
-0.034159835427999496,
-0.008799772709608078,
0.020773788914084435,
-0.03754870966076851,
0.036419082432985306,
0.006687375251203775,
-0.033369097858667374,
0.026772093027830124,
0.0814233124256134,
-0.009341992437839508,
0.0031488274689763784,
-0.01567918434739113,
0.01687658578157425,
0.015498444437980652,
0.001998022897168994,
-0.07184410095214844,
0.07329002022743225,
0.014956224709749222,
-0.040530916303396225,
0.023338036611676216,
0.012843826785683632,
0.030477261170744896,
0.007365149911493063,
0.01113809458911419,
0.04468793421983719,
0.05304715409874916,
0.0032137809321284294,
0.048438284546136856,
0.05684268847107887,
-0.024648400023579597,
-0.032194290310144424,
-0.02272803895175457,
0.02369951643049717,
-0.012425865978002548,
0.013442528434097767,
-0.018175654113292694,
-0.014481781981885433,
0.021293416619300842,
-0.011098558083176613,
0.026139503344893456,
0.009234678000211716,
0.0488901361823082,
-0.025597283616662025,
-0.04699236527085304,
-0.03700648993253708,
-0.037819817662239075,
0.06551820039749146,
0.05566788092255592,
0.00900875311344862,
-0.011268001049757004,
0.024286920204758644,
0.01790454424917698,
-0.045727185904979706,
0.03409205749630928,
-0.005399603862315416,
0.01796102523803711,
-0.06949447840452194,
0.05273085832595825,
-0.00613950751721859,
0.06881670653820038,
0.012730864807963371,
-0.023631738498806953,
0.03492797911167145,
0.004202201962471008,
0.019745830446481705,
0.04098276421427727,
0.03330131992697716,
0.015385481528937817,
-0.02070601098239422,
0.022886186838150024,
-0.04059869423508644,
0.11278168112039566,
-0.007421630900353193,
0.017509175464510918,
-0.003312622895464301,
-0.05652639642357826,
-0.015871219336986542,
-0.03628353029489517,
-0.05173678696155548,
-0.00011155039101140574,
0.07148262113332748,
-0.009726064279675484,
0.002937022829428315,
0.020118607208132744,
-0.025710247457027435,
-0.019395647570490837,
0.0534990020096302,
0.025371359661221504,
-0.028647270053625107,
-0.027223942801356316,
-0.02369951643049717,
0.08621291816234589,
-0.03605760633945465,
-0.0042389146983623505,
0.04635977745056152,
-0.017317138612270355,
0.04236090928316116,
0.026681723073124886,
-0.017260657623410225,
-0.021688785403966904,
0.03833944350481033,
-0.010256987996399403,
-0.021598415449261665,
-0.00512566976249218,
-0.001314600114710629,
0.056436024606227875,
0.020231569185853004,
0.0032589659094810486,
-0.012798641808331013,
0.022253597155213356,
0.09158992767333984,
-0.007969498634338379,
-0.0543123297393322,
0.017802877351641655,
0.08006776124238968,
0.009567917324602604,
0.041931651532649994,
0.0059192306362092495,
-0.06773226708173752,
0.01710250973701477,
0.013555490411818027,
-0.020751196891069412,
0.014459189958870411,
-0.03452131524682045,
0.04220275953412056,
-0.05566788092255592,
-0.019937867298722267,
0.026320243254303932,
0.00881106872111559,
0.05941823124885559,
0.02781134843826294,
0.0010526685509830713,
0.010053655132651329,
0.008912734687328339,
-0.05467380955815315,
0.009336343966424465,
0.06872633844614029,
0.0027802875265479088,
-0.057972315698862076,
-0.030341705307364464,
0.03061281517148018,
-0.0028240603860467672,
0.009991525672376156,
0.0010378422448411584,
0.042270537465810776,
-0.0018794122152030468,
-0.03797796741127968,
-0.03275910019874573,
0.010036710649728775,
0.0420897975564003,
-0.04019203037023544,
0.0050352998077869415,
-0.021462859585881233,
-0.019632868468761444,
-0.03531205281615257,
-0.02510024979710579,
0.043242014944553375,
-0.011940128169953823,
-0.01293419674038887,
-0.010889577679336071,
0.05182715877890587,
0.03275910019874573,
-0.02650098316371441,
0.008398756384849548,
0.010929114185273647,
0.02469358593225479,
0.018458059057593346,
-0.03691611811518669,
0.00862468034029007,
0.05517084524035454,
-0.010595874860882759,
0.00037489403621293604,
0.09642472118139267,
0.012403273954987526,
0.006879411172121763,
-0.00700367009267211,
-0.013397343456745148,
0.053950853645801544,
-0.016537697985768318,
-0.06090933829545975,
0.03160688653588295,
-0.021067490801215172,
-0.06872633844614029,
-0.03117762878537178,
0.019824905321002007,
-0.005408075638115406,
0.022321375086903572,
-0.0008705166401341558,
0.009567917324602604,
0.00010952059528790414,
0.015351592563092709,
-0.001613950589671731,
-0.017079917713999748,
0.008788476698100567,
-0.04834791645407677,
0.0048263194039464,
-0.015193445608019829,
0.028421344235539436,
0.007043207064270973,
-0.0016153625911101699,
-0.006822930183261633,
0.029302451759576797,
-0.020593049004673958,
0.02966393157839775,
-0.011307538487017155,
0.03386613354086876,
0.04477830231189728,
-0.05408640578389168,
0.01955379545688629,
0.046811625361442566,
-0.0387687012553215,
-0.03251058608293533,
-0.08901438862085342,
0.010420783422887325,
-0.011714203283190727,
0.021462859585881233,
0.028285790234804153,
0.005241456441581249,
-0.07161817699670792,
0.002863597357645631,
-0.022795816883444786,
0.014165487140417099,
0.0021265174727886915,
-0.01618751510977745,
-0.007399038411676884,
-0.00021374608331825584,
-0.021519340574741364,
0.012572716921567917,
0.06375598907470703,
-0.042586833238601685,
0.03831685334444046,
0.031109850853681564,
-0.04202201962471008,
-0.02009601518511772,
0.00832532998174429,
0.029686523601412773,
-0.02392544038593769,
-0.05706861615180969,
-0.00673820823431015,
0.02663653902709484,
-0.06533746421337128,
-0.01964416541159153,
0.024603215977549553,
0.018153060227632523,
-0.08969216048717499,
-0.007342557422816753,
0.014470485970377922,
-0.0059361751191318035,
0.016978250816464424,
-0.006630894262343645,
-0.04543348401784897,
0.030386891216039658,
0.011205872520804405,
-0.00041125380084849894,
-0.014041229151189327,
-0.005077660549432039,
-0.0412764698266983,
-0.03865573927760124,
0.006015249062329531,
-0.011205872520804405,
-0.02124823071062565,
0.04785088077187538,
0.056752320379018784,
-0.049839019775390625,
0.07396779209375381,
0.015826035290956497,
-0.039446476846933365,
0.009025697596371174,
-0.06687375158071518,
0.017452694475650787,
0.0176447294652462,
-0.004077943507581949,
0.04511719197034836,
0.015317704528570175,
0.04240609332919121,
0.024761362001299858,
0.02478395588696003,
0.0037192876916378736,
0.08485736697912216,
-0.01818694919347763,
-0.001933069434016943,
0.0032985026482492685,
0.0011183279566466808,
-0.0001623834832571447,
-0.017893247306346893,
0.016865288838744164,
0.018717873841524124,
-0.006625245790928602,
0.009313751943409443,
-0.05313752219080925,
0.005554927047342062,
0.005501269828528166,
0.07821518182754517,
-0.011928831227123737,
-0.05639084056019783,
0.020739899948239326,
0.03698389604687691,
-0.05941823124885559,
0.021621007472276688,
-0.01855972595512867,
0.00811070203781128,
-0.04857384040951729,
0.04830273240804672,
-0.011510870419442654,
-0.0037672966718673706,
-0.03551538661122322,
0.061632297933101654,
0.023835070431232452,
-0.02101100981235504,
0.013035863637924194,
-0.027630608528852463,
-0.004467663820832968,
0.002903134096413851,
0.029505783692002296,
-0.054718997329473495,
-0.05833379551768303,
-0.01872916892170906,
0.0016492513241246343,
-0.007404686417430639,
-0.02564246952533722,
0.025348767638206482,
0.021654896438121796,
-0.010522449389100075,
-0.030386891216039658,
-0.005975712090730667,
0.031222812831401825,
-0.03264613822102547,
0.02552950754761696,
0.04412312060594559,
-0.045388299971818924,
-0.06881670653820038,
0.007331260945647955,
-0.006789041217416525,
-0.036306120455265045,
0.01055068988353014,
-0.008404403924942017,
0.023021740838885307,
-0.035108719021081924,
-0.0705789178609848,
-0.07541371136903763,
-0.021406378597021103,
0.018921205773949623,
-0.04534311592578888,
-0.020999714732170105,
0.0003337686648592353,
0.008748939260840416,
-0.0322168804705143,
-0.009517083875834942,
0.05462862551212311,
0.08648402988910675,
-0.10500986874103546,
-0.034679461270570755,
-0.018424170091748238,
-0.08860772103071213,
0.0412764698266983,
0.026049133390188217,
0.007421630900353193,
-0.0277209784835577,
-0.008551254868507385,
-0.030974294990301132,
-0.006241173483431339,
0.02467099204659462,
-0.01822083815932274,
0.012188645079731941,
0.037616487592458725,
0.04391979053616524,
0.030251335352659225,
-0.0032533176708966494,
-0.037277597934007645,
-0.00027269835118204355,
-0.016628067940473557,
-0.010522449389100075,
0.06316858530044556,
0.00665913475677371,
0.0504264235496521,
0.001736797159537673,
-0.023541368544101715,
-0.008799772709608078,
-0.012301607988774776,
-0.006495339330285788,
0.0234735906124115,
-0.01229031104594469,
-0.011804573237895966,
-0.03158429265022278,
0.05304715409874916,
-0.017147695645689964,
-0.09271955490112305,
0.0025458906311541796,
-0.010070599615573883,
0.08291441947221756,
0.033820949494838715,
-0.0420897975564003,
0.023948032408952713,
-0.008201071992516518,
0.008619032800197601,
-0.021316008642315865,
-0.008314033970236778,
0.026862462982535362,
0.059373047202825546,
-0.0023044333793222904,
-0.02063823491334915,
-0.025800617411732674,
-0.051465678960084915,
-0.08634847402572632,
0.01157864835113287,
-0.07265742868185043,
0.027969494462013245,
-0.009392824955284595,
0.05313752219080925,
0.0368257500231266,
0.013736230321228504,
0.019519906491041183
] |
|
724,905 | tf_keras.src.engine.training | __init__ | def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
| (self, *args, **kwargs) | [
0.017745215445756912,
-0.06812427192926407,
0.025872036814689636,
0.02296120673418045,
-0.017853694036602974,
-0.026233630254864693,
-0.03832894191145897,
0.027824642136693,
0.002899530343711376,
0.01639827899634838,
-0.002962809056043625,
0.03252536058425903,
-0.03306775167584419,
0.02292504720389843,
-0.0006243142997846007,
0.01460838969796896,
-0.011435403488576412,
0.004601281136274338,
0.009080524556338787,
-0.05445602536201477,
0.0018192688003182411,
0.029035981744527817,
-0.04252342879772186,
0.06309811770915985,
0.06664173305034637,
0.07007687538862228,
-0.037533435970544815,
-0.008827408775687218,
0.06761804223060608,
-0.02411830611526966,
-0.022780409082770348,
0.04396980628371239,
0.024841492995619774,
0.06418289989233017,
0.00962743442505598,
-0.015006142668426037,
-0.011607160791754723,
0.04823661223053932,
-0.06581006944179535,
-0.03720800206065178,
0.0037763952277600765,
-0.021984903141856194,
-0.020122693851590157,
-0.017862733453512192,
0.017302263528108597,
-0.00870537105947733,
0.029343336820602417,
0.014653588645160198,
-0.008863568305969238,
0.009080524556338787,
-0.050153058022260666,
0.022563451901078224,
0.028891343623399734,
0.005419387016445398,
-0.038111984729766846,
0.007385553326457739,
0.0023887790739536285,
-0.00845225527882576,
-0.027571527287364006,
0.05734877660870552,
-0.0159734059125185,
0.03397173807024956,
0.056480951607227325,
-0.03341126814484596,
-0.01821528747677803,
-0.01408407837152481,
-0.03371862322092056,
-0.029903806746006012,
0.007145997602492571,
0.06533999741077423,
-0.03728032112121582,
-0.044512197375297546,
0.03424293175339699,
0.06613550335168839,
0.06139862537384033,
-0.02169562689960003,
-0.032055288553237915,
-0.021876424551010132,
0.03483956307172775,
0.003462260589003563,
0.015394856221973896,
-0.03901597112417221,
-0.021514831110835075,
-0.001780849415808916,
-0.008095181547105312,
-0.03319431096315384,
-0.06664173305034637,
-0.0741267278790474,
0.014635508880019188,
0.020737404003739357,
-0.08953062444925308,
0.044873788952827454,
-0.026504825800657272,
-0.0014746247325092554,
0.07004071772098541,
-0.0139123210683465,
0.010883972980082035,
0.0121585913002491,
0.07058311253786087,
-0.035056520253419876,
0.009509916417300701,
0.06787115335464478,
-0.042161837220191956,
-0.009410478174686432,
0.0009859080892056227,
-0.046103209257125854,
-0.02802351862192154,
0.004336865618824959,
-0.04971914738416672,
0.013460328802466393,
0.023033523932099342,
0.06418289989233017,
0.01925486885011196,
0.058686673641204834,
-0.06964296847581863,
-0.01670563407242298,
0.012827539816498756,
-0.005451026372611523,
0.02755344659090042,
0.005301869008690119,
-0.06371282786130905,
0.05051465332508087,
-0.06364050507545471,
-0.011534841731190681,
0.029035981744527817,
0.02292504720389843,
0.03991995379328728,
-0.08707178384065628,
0.05893978849053383,
-0.004994514398276806,
-0.023142002522945404,
0.013785763643682003,
0.0028543309308588505,
0.055251531302928925,
-0.01032350305467844,
-0.02659522369503975,
0.0003590513369999826,
0.030590835958719254,
-0.028692467138171196,
0.04523538425564766,
-0.01574740931391716,
0.06371282786130905,
0.07955063134431839,
0.007570870220661163,
-0.034261010587215424,
0.014653588645160198,
0.00835281703621149,
-0.05655327066779137,
0.010911093093454838,
-0.013234333135187626,
0.013216253370046616,
0.006119974888861179,
0.014093117788434029,
0.07221028208732605,
-0.0017672897083684802,
0.026107072830200195,
0.0025537561159580946,
-0.055323850363492966,
0.03948604315519333,
0.02003229595720768,
-0.013713444583117962,
0.01207723282277584,
0.02411830611526966,
-0.07644093036651611,
0.00517983129248023,
-0.026034753769636154,
-0.025600841268897057,
-0.05152711644768715,
-0.01698586903512478,
0.03013884276151657,
-0.03254344314336777,
-0.027661925181746483,
0.04349973425269127,
0.037461116909980774,
0.004058890510350466,
0.055251531302928925,
0.04820045456290245,
-0.0019548663403838873,
0.030590835958719254,
0.012936018407344818,
0.1030542328953743,
-0.01617228239774704,
-0.07065542787313461,
-0.013035456649959087,
0.05058697238564491,
0.05286501348018646,
-0.051310159265995026,
0.0328688770532608,
-0.0078963041305542,
-0.005523345433175564,
0.014445671811699867,
0.0014847945421934128,
0.0523226223886013,
0.020050376653671265,
-0.0355808287858963,
0.004063410218805075,
-0.003923292737454176,
0.033013515174388885,
-0.012411707080900669,
0.05655327066779137,
0.026197470724582672,
0.015991484746336937,
0.01205915305763483,
0.0007164077251218259,
-0.07047463208436966,
0.012981217354536057,
0.029704930260777473,
0.021117078140378,
-0.044439878314733505,
-0.0869271457195282,
-0.019291028380393982,
-0.012574424035847187,
0.0001659659028518945,
0.06443601101636887,
0.003762835403904319,
-0.018007371574640274,
0.02670370228588581,
0.01948990486562252,
-0.002150353044271469,
-0.005799060687422752,
0.08627627789974213,
0.05828892067074776,
-0.04628400504589081,
0.024371420964598656,
0.020213093608617783,
-0.01659715548157692,
-0.005500745493918657,
-0.036683689802885056,
-0.04317430034279823,
-0.033447425812482834,
-0.03483956307172775,
-0.05434754863381386,
0.005631823558360338,
0.026107072830200195,
-0.02643250674009323,
0.0074352724477648735,
0.02261769212782383,
0.021442512050271034,
-0.043752849102020264,
-0.027499208226799965,
0.036448653787374496,
-0.009112163446843624,
-0.0035729988012462854,
0.024769175797700882,
0.006034096237272024,
-0.004971914459019899,
-0.017284182831645012,
0.04313813894987106,
-0.00841609574854374,
-0.04118553176522255,
0.028421271592378616,
0.004922195337712765,
-0.036647532135248184,
0.05492609739303589,
-0.005274749360978603,
-0.0012271589366719127,
0.0061290147714316845,
-0.08020150661468506,
0.030428117141127586,
0.00393685232847929,
-0.03738879784941673,
0.015078460797667503,
0.027463048696517944,
0.10876741260290146,
-0.0002354597090743482,
-0.058144282549619675,
-0.004298446234315634,
0.02041197009384632,
0.017745215445756912,
0.00516175152733922,
0.0869271457195282,
-0.01744689978659153,
0.01683219149708748,
0.019743021577596664,
-0.009012725204229355,
-0.1237373948097229,
-0.04975530505180359,
-0.021080918610095978,
0.0047413986176252365,
-0.015467174351215363,
-0.005541424732655287,
-0.04089625924825668,
0.019291028380393982,
0.003713116282597184,
-0.022400734946131706,
-0.023358959704637527,
0.0034057616721838713,
-0.0346587635576725,
-0.007340353913605213,
-0.04353589192032814,
-0.009672634303569794,
0.0139123210683465,
0.02744496986269951,
0.01675083301961422,
0.05684254318475723,
-0.030084604397416115,
-0.018857115879654884,
0.016949709504842758,
0.06483376771211624,
-0.05225030332803726,
0.022762330248951912,
-0.04472915083169937,
0.021098997443914413,
-0.015051341615617275,
-0.004687159787863493,
-0.06837738305330276,
-0.003448700765147805,
-0.01020598504692316,
-0.021641388535499573,
-0.004773037973791361,
0.001358236651867628,
0.06295347958803177,
-0.004535742104053497,
-0.0073539139702916145,
-0.0025017771404236555,
0.009582235477864742,
0.005288309417665005,
-0.042125675827264786,
0.048345088958740234,
0.07369281351566315,
0.019616464152932167,
0.032597679644823074,
-0.044331397861242294,
0.030735472217202187,
-0.021984903141856194,
-0.017392661422491074,
0.03724415972828865,
-0.0650145635008812,
-0.040498506277799606,
0.007588949985802174,
-0.0288732647895813,
0.05384131520986557,
0.07181252539157867,
0.011815077625215054,
-0.13834579288959503,
0.004113129340112209,
0.04415060207247734,
0.01034158281981945,
0.0011113359360024333,
-0.017229944467544556,
0.029704930260777473,
-0.009320080280303955,
-0.016307879239320755,
0.03536387160420418,
-0.04122169315814972,
-0.03346550464630127,
0.006924521178007126,
-0.0434635728597641,
0.08960293978452682,
-0.06758187711238861,
-0.0038035146426409483,
-0.046717919409275055,
-0.010811654850840569,
0.008131340146064758,
0.05438370630145073,
-0.0019187070429325104,
-0.04404212534427643,
0.025600841268897057,
-0.00829857774078846,
-0.08179251849651337,
0.018513603135943413,
0.017582498490810394,
-0.07112549990415573,
0.02625170908868313,
0.01972494088113308,
0.01628980040550232,
0.028222395107150078,
0.026305949315428734,
-0.026577144861221313,
0.020393889397382736,
0.0037379758432507515,
-0.05622783675789833,
0.03238072618842125,
0.011263647116720676,
0.015232138335704803,
-0.011245567351579666,
-0.00596177764236927,
-0.007489511277526617,
0.012646743096411228,
0.030428117141127586,
0.00818105973303318,
0.03897980973124504,
0.009446637704968452,
-0.008036422543227673,
0.039883796125650406,
0.023250481113791466,
-0.020809723064303398,
0.021930662915110588,
0.03218184784054756,
0.013821923173964024,
-0.011480603367090225,
-0.048923641443252563,
-0.015241178683936596,
-0.03145866096019745,
0.039232928305864334,
0.02084588259458542,
-0.01030542328953743,
0.04194488003849983,
0.003762835403904319,
0.006481568794697523,
-0.02771616354584694,
-0.022436894476413727,
0.03775039315223694,
0.004669080022722483,
-0.007918904535472393,
0.00019435666035860777,
0.03095242939889431,
-0.002467877697199583,
-0.022364575415849686,
-0.0029854087624698877,
0.04454835504293442,
0.01729322411119938,
-0.07651324570178986,
0.027354570105671883,
0.028113918378949165,
0.05951833724975586,
0.058722831308841705,
-0.09379743039608002,
0.010124626569449902,
-0.04415060207247734,
0.0407516211271286,
0.07036615163087845,
0.016262680292129517,
-0.006327891256660223,
0.023901350796222687,
0.11057538539171219,
-0.01666947454214096,
0.05340740457177162,
0.04230647534132004,
0.01387616153806448,
-0.013830962590873241,
-0.009546075947582722,
-0.00693808076903224,
0.011173248291015625,
-0.0517079122364521,
0.006807003170251846,
0.030554676428437233,
-0.04711567237973213,
-0.009374319575726986,
0.03850973770022392,
-0.04689871519804001,
-0.05091240629553795,
0.02254537306725979,
0.06132630631327629,
-0.036846406757831573,
-0.06259188801050186,
0.019507985562086105,
0.03304967284202576,
-0.0074217128567397594,
-0.007652228698134422,
0.05492609739303589,
0.035020358860492706,
-0.00835281703621149,
0.038075827062129974,
0.024751095101237297,
-0.040426187217235565,
0.009663593955338001,
-0.016488676890730858,
0.0017921492690220475,
0.023286640644073486,
-0.03115130588412285,
0.05622783675789833,
-0.019363347440958023,
-0.061000872403383255,
-0.01685931161046028,
-0.0036701769568026066,
0.03782271221280098,
-0.06053080037236214,
-0.052467260509729385,
-0.006029576528817415,
0.06150710582733154,
0.0019887657836079597,
0.029343336820602417,
-0.03503843769431114,
-0.08627627789974213,
0.02126171439886093,
0.01435527391731739,
-0.051310159265995026,
-0.0023187201004475355,
-0.03319431096315384,
-0.0004082054947502911,
0.01562989130616188,
-0.017654817551374435,
0.06237493082880974,
-0.005857819691300392,
0.005148191470652819,
0.00852909404784441,
-0.020285412669181824,
0.03818430379033089,
0.03333894908428192,
-0.03677408769726753,
0.04823661223053932,
0.0626642033457756,
0.077814981341362,
-0.013098735362291336,
-0.007946023717522621,
0.05633631348609924,
0.020285412669181824,
-0.00017839568317867815,
0.02616131119430065,
0.042161837220191956,
-0.008479374460875988,
-0.05539616942405701,
-0.008000263012945652,
-0.003480340354144573,
-0.04411444440484047,
-0.058758992701768875,
-0.021352114155888557,
-0.0056001837365329266,
-0.008366376161575317,
-0.01408407837152481,
0.007620589341968298,
0.01571124978363514,
0.013785763643682003,
-0.013821923173964024,
-0.03738879784941673,
-0.025637000799179077,
-0.0068793217651546,
-0.01983341947197914,
0.00974495243281126,
0.02485957369208336,
0.023919429630041122,
0.0007808165973983705,
-0.07380129396915436,
-0.0015819728141650558,
0.029686851426959038,
0.018504561856389046,
-0.024787254631519318,
0.10442829132080078,
0.012836580164730549,
-0.007037519011646509,
-0.012791380286216736,
-0.03160329908132553,
0.06031384319067001,
-0.03818430379033089,
-0.04393364489078522,
-0.01683219149708748,
-0.0022384915500879288,
0.010007108561694622,
-0.0765855684876442,
0.0011729198740795255,
0.0000014522016726914444,
0.006639766041189432,
0.09177250415086746,
0.02071932516992092,
-0.05174407362937927,
0.006630726158618927,
0.015575652942061424,
-0.08352816849946976,
-0.003713116282597184,
-0.0769471600651741,
-0.011417323723435402,
-0.04512690380215645,
-0.0069697205908596516,
0.007204756140708923,
0.043897487223148346,
0.01567509025335312,
0.01178795751184225,
-0.010486220009624958,
0.023883270099759102,
-0.02176794596016407,
0.0015198239125311375,
0.04975530505180359,
0.014445671811699867,
-0.03991995379328728,
0.02061084657907486,
0.015403895638883114,
-0.0071866768412292,
-0.06241108849644661,
-0.022201858460903168,
-0.0022305818274617195,
-0.0049809543415904045,
-0.018341844901442528,
0.029614532366394997,
-0.012438826262950897,
-0.0007310974760912359,
0.01941758766770363,
0.03010268323123455,
-0.051274001598358154,
-0.07311426848173141,
-0.025311565026640892,
0.009189002215862274,
-0.07184869050979614,
-0.029361415654420853,
-0.030590835958719254,
-0.0827326625585556,
0.0017616397235542536,
0.0074217128567397594,
-0.056444790214300156,
0.0013107775012031198,
0.018016410991549492,
0.037533435970544815,
-0.009708793833851814,
-0.05112936347723007,
-0.04718799144029617,
-0.02466069720685482,
-0.04751342535018921,
-0.044982269406318665,
0.0024859572295099497,
0.014310074038803577,
-0.0815032422542572,
0.018161049112677574,
-0.00089833460515365,
-0.034405648708343506,
0.03245304152369499,
-0.017654817551374435,
-0.06295347958803177,
0.02898174338042736,
0.007697428110986948,
-0.026956817135214806,
0.01399367954581976,
0.012917938642203808,
-0.0284393522888422,
0.01806160993874073,
0.04288502410054207,
-0.005333508364856243,
-0.0538051575422287,
0.008117781020700932,
0.06602703034877777,
-0.005243110004812479,
-0.0010593568440526724,
-0.005848779808729887,
0.014138317666947842,
0.025347724556922913,
-0.06298963725566864,
0.04830893129110336,
0.015015182085335255,
-0.041040897369384766,
0.019092151895165443,
-0.02115323767066002,
0.02551044151186943,
-0.019544145092368126,
0.005256669595837593,
0.017808495089411736,
0.04700719192624092,
-0.03764191269874573,
-0.024714935570955276,
0.03033771924674511,
0.04574161395430565,
0.023919429630041122,
-0.0666055753827095,
-0.0020949840545654297,
0.0029899287037551403,
-0.024714935570955276,
-0.014816305600106716,
-0.049032118171453476,
-0.010468140244483948,
0.012339388020336628,
0.048381250351667404,
-0.023142002522945404,
-0.01379480306059122,
0.017148585990071297,
-0.002899530343711376,
-0.021912584081292152,
0.0036724370438605547,
-0.04747726395726204,
-0.008402535691857338,
-0.01775425486266613,
0.08128628879785538,
-0.03999227285385132,
-0.026107072830200195,
0.024877652525901794,
0.08020150661468506,
0.04082394018769264,
0.02890942431986332,
0.037497278302907944,
-0.011950675398111343,
-0.06186869740486145,
-0.040353868156671524,
-0.009889590553939342,
-0.020285412669181824,
0.0026012153830379248,
-0.016696592792868614,
-0.008461294695734978,
-0.007534710690379143,
0.024172544479370117,
0.018802877515554428,
0.016262680292129517,
0.02871054783463478,
0.02299736626446247,
0.0011113359360024333,
-0.008610452525317669,
-0.0063685704953968525,
0.019019832834601402,
0.025727398693561554,
0.008926847018301487,
-0.06468912959098816,
0.03145866096019745,
0.008845488540828228,
-0.07181252539157867,
0.019851500168442726,
-0.03160329908132553,
0.0401369109749794,
-0.008890687488019466,
-0.002890490461140871,
-0.05488993972539902,
-0.0815032422542572,
-0.016886429861187935,
-0.015394856221973896,
-0.00003728935917024501,
0.028782866895198822,
0.04820045456290245,
-0.05951833724975586,
0.011119008995592594,
0.02755344659090042,
0.03400789573788643,
-0.05742109566926956,
-0.01045910082757473,
-0.0009209341951645911,
-0.07795961946249008,
0.024443740025162697,
0.009121203795075417,
0.023322800174355507,
-0.015105580911040306,
0.020050376653671265,
0.03241688385605812,
0.03843741863965988,
-0.011046690866351128,
-0.004248727113008499,
-0.046175528317689896,
0.037497278302907944,
-0.03304967284202576,
0.007616069167852402,
0.0291806198656559,
-0.011977794580161572,
-0.017745215445756912,
-0.05886746942996979,
0.012954098172485828,
0.008524573408067226,
-0.0061290147714316845,
0.06241108849644661,
-0.0010435370495542884,
-0.06053080037236214,
-0.00791438389569521,
0.02411830611526966,
-0.035219237208366394,
-0.0015288637951016426,
0.004547041840851307,
-0.023684393614530563,
-0.0062872120179235935,
-0.014038879424333572,
0.013134894892573357,
-0.030590835958719254,
0.026070913299918175,
0.009889590553939342,
0.04107705503702164,
0.0325072817504406,
-0.021062837913632393,
0.04736878722906113,
-0.00835281703621149,
-0.016606194898486137,
-0.002029445255175233,
0.029578372836112976,
-0.0011508852476254106,
0.029939966276288033,
-0.04360821098089218,
-0.010739335790276527,
-0.027264172211289406,
-0.033899419009685516,
-0.0434635728597641,
-0.0068115233443677425,
-0.06121782958507538,
0.04642864316701889,
-0.009329119697213173,
0.02258153259754181,
0.02520308829843998,
0.04057082533836365,
0.05152711644768715
] |
|
724,906 | tf_keras.src.engine.training | __new__ | null | def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
| (cls, *args, **kwargs) | [
0.017745215445756912,
-0.06812427192926407,
0.025872036814689636,
0.02296120673418045,
-0.017853694036602974,
-0.026233630254864693,
-0.03832894191145897,
0.027824642136693,
0.002899530343711376,
0.01639827899634838,
-0.002962809056043625,
0.03252536058425903,
-0.03306775167584419,
0.02292504720389843,
-0.0006243142997846007,
0.01460838969796896,
-0.011435403488576412,
0.004601281136274338,
0.009080524556338787,
-0.05445602536201477,
0.0018192688003182411,
0.029035981744527817,
-0.04252342879772186,
0.06309811770915985,
0.06664173305034637,
0.07007687538862228,
-0.037533435970544815,
-0.008827408775687218,
0.06761804223060608,
-0.02411830611526966,
-0.022780409082770348,
0.04396980628371239,
0.024841492995619774,
0.06418289989233017,
0.00962743442505598,
-0.015006142668426037,
-0.011607160791754723,
0.04823661223053932,
-0.06581006944179535,
-0.03720800206065178,
0.0037763952277600765,
-0.021984903141856194,
-0.020122693851590157,
-0.017862733453512192,
0.017302263528108597,
-0.00870537105947733,
0.029343336820602417,
0.014653588645160198,
-0.008863568305969238,
0.009080524556338787,
-0.050153058022260666,
0.022563451901078224,
0.028891343623399734,
0.005419387016445398,
-0.038111984729766846,
0.007385553326457739,
0.0023887790739536285,
-0.00845225527882576,
-0.027571527287364006,
0.05734877660870552,
-0.0159734059125185,
0.03397173807024956,
0.056480951607227325,
-0.03341126814484596,
-0.01821528747677803,
-0.01408407837152481,
-0.03371862322092056,
-0.029903806746006012,
0.007145997602492571,
0.06533999741077423,
-0.03728032112121582,
-0.044512197375297546,
0.03424293175339699,
0.06613550335168839,
0.06139862537384033,
-0.02169562689960003,
-0.032055288553237915,
-0.021876424551010132,
0.03483956307172775,
0.003462260589003563,
0.015394856221973896,
-0.03901597112417221,
-0.021514831110835075,
-0.001780849415808916,
-0.008095181547105312,
-0.03319431096315384,
-0.06664173305034637,
-0.0741267278790474,
0.014635508880019188,
0.020737404003739357,
-0.08953062444925308,
0.044873788952827454,
-0.026504825800657272,
-0.0014746247325092554,
0.07004071772098541,
-0.0139123210683465,
0.010883972980082035,
0.0121585913002491,
0.07058311253786087,
-0.035056520253419876,
0.009509916417300701,
0.06787115335464478,
-0.042161837220191956,
-0.009410478174686432,
0.0009859080892056227,
-0.046103209257125854,
-0.02802351862192154,
0.004336865618824959,
-0.04971914738416672,
0.013460328802466393,
0.023033523932099342,
0.06418289989233017,
0.01925486885011196,
0.058686673641204834,
-0.06964296847581863,
-0.01670563407242298,
0.012827539816498756,
-0.005451026372611523,
0.02755344659090042,
0.005301869008690119,
-0.06371282786130905,
0.05051465332508087,
-0.06364050507545471,
-0.011534841731190681,
0.029035981744527817,
0.02292504720389843,
0.03991995379328728,
-0.08707178384065628,
0.05893978849053383,
-0.004994514398276806,
-0.023142002522945404,
0.013785763643682003,
0.0028543309308588505,
0.055251531302928925,
-0.01032350305467844,
-0.02659522369503975,
0.0003590513369999826,
0.030590835958719254,
-0.028692467138171196,
0.04523538425564766,
-0.01574740931391716,
0.06371282786130905,
0.07955063134431839,
0.007570870220661163,
-0.034261010587215424,
0.014653588645160198,
0.00835281703621149,
-0.05655327066779137,
0.010911093093454838,
-0.013234333135187626,
0.013216253370046616,
0.006119974888861179,
0.014093117788434029,
0.07221028208732605,
-0.0017672897083684802,
0.026107072830200195,
0.0025537561159580946,
-0.055323850363492966,
0.03948604315519333,
0.02003229595720768,
-0.013713444583117962,
0.01207723282277584,
0.02411830611526966,
-0.07644093036651611,
0.00517983129248023,
-0.026034753769636154,
-0.025600841268897057,
-0.05152711644768715,
-0.01698586903512478,
0.03013884276151657,
-0.03254344314336777,
-0.027661925181746483,
0.04349973425269127,
0.037461116909980774,
0.004058890510350466,
0.055251531302928925,
0.04820045456290245,
-0.0019548663403838873,
0.030590835958719254,
0.012936018407344818,
0.1030542328953743,
-0.01617228239774704,
-0.07065542787313461,
-0.013035456649959087,
0.05058697238564491,
0.05286501348018646,
-0.051310159265995026,
0.0328688770532608,
-0.0078963041305542,
-0.005523345433175564,
0.014445671811699867,
0.0014847945421934128,
0.0523226223886013,
0.020050376653671265,
-0.0355808287858963,
0.004063410218805075,
-0.003923292737454176,
0.033013515174388885,
-0.012411707080900669,
0.05655327066779137,
0.026197470724582672,
0.015991484746336937,
0.01205915305763483,
0.0007164077251218259,
-0.07047463208436966,
0.012981217354536057,
0.029704930260777473,
0.021117078140378,
-0.044439878314733505,
-0.0869271457195282,
-0.019291028380393982,
-0.012574424035847187,
0.0001659659028518945,
0.06443601101636887,
0.003762835403904319,
-0.018007371574640274,
0.02670370228588581,
0.01948990486562252,
-0.002150353044271469,
-0.005799060687422752,
0.08627627789974213,
0.05828892067074776,
-0.04628400504589081,
0.024371420964598656,
0.020213093608617783,
-0.01659715548157692,
-0.005500745493918657,
-0.036683689802885056,
-0.04317430034279823,
-0.033447425812482834,
-0.03483956307172775,
-0.05434754863381386,
0.005631823558360338,
0.026107072830200195,
-0.02643250674009323,
0.0074352724477648735,
0.02261769212782383,
0.021442512050271034,
-0.043752849102020264,
-0.027499208226799965,
0.036448653787374496,
-0.009112163446843624,
-0.0035729988012462854,
0.024769175797700882,
0.006034096237272024,
-0.004971914459019899,
-0.017284182831645012,
0.04313813894987106,
-0.00841609574854374,
-0.04118553176522255,
0.028421271592378616,
0.004922195337712765,
-0.036647532135248184,
0.05492609739303589,
-0.005274749360978603,
-0.0012271589366719127,
0.0061290147714316845,
-0.08020150661468506,
0.030428117141127586,
0.00393685232847929,
-0.03738879784941673,
0.015078460797667503,
0.027463048696517944,
0.10876741260290146,
-0.0002354597090743482,
-0.058144282549619675,
-0.004298446234315634,
0.02041197009384632,
0.017745215445756912,
0.00516175152733922,
0.0869271457195282,
-0.01744689978659153,
0.01683219149708748,
0.019743021577596664,
-0.009012725204229355,
-0.1237373948097229,
-0.04975530505180359,
-0.021080918610095978,
0.0047413986176252365,
-0.015467174351215363,
-0.005541424732655287,
-0.04089625924825668,
0.019291028380393982,
0.003713116282597184,
-0.022400734946131706,
-0.023358959704637527,
0.0034057616721838713,
-0.0346587635576725,
-0.007340353913605213,
-0.04353589192032814,
-0.009672634303569794,
0.0139123210683465,
0.02744496986269951,
0.01675083301961422,
0.05684254318475723,
-0.030084604397416115,
-0.018857115879654884,
0.016949709504842758,
0.06483376771211624,
-0.05225030332803726,
0.022762330248951912,
-0.04472915083169937,
0.021098997443914413,
-0.015051341615617275,
-0.004687159787863493,
-0.06837738305330276,
-0.003448700765147805,
-0.01020598504692316,
-0.021641388535499573,
-0.004773037973791361,
0.001358236651867628,
0.06295347958803177,
-0.004535742104053497,
-0.0073539139702916145,
-0.0025017771404236555,
0.009582235477864742,
0.005288309417665005,
-0.042125675827264786,
0.048345088958740234,
0.07369281351566315,
0.019616464152932167,
0.032597679644823074,
-0.044331397861242294,
0.030735472217202187,
-0.021984903141856194,
-0.017392661422491074,
0.03724415972828865,
-0.0650145635008812,
-0.040498506277799606,
0.007588949985802174,
-0.0288732647895813,
0.05384131520986557,
0.07181252539157867,
0.011815077625215054,
-0.13834579288959503,
0.004113129340112209,
0.04415060207247734,
0.01034158281981945,
0.0011113359360024333,
-0.017229944467544556,
0.029704930260777473,
-0.009320080280303955,
-0.016307879239320755,
0.03536387160420418,
-0.04122169315814972,
-0.03346550464630127,
0.006924521178007126,
-0.0434635728597641,
0.08960293978452682,
-0.06758187711238861,
-0.0038035146426409483,
-0.046717919409275055,
-0.010811654850840569,
0.008131340146064758,
0.05438370630145073,
-0.0019187070429325104,
-0.04404212534427643,
0.025600841268897057,
-0.00829857774078846,
-0.08179251849651337,
0.018513603135943413,
0.017582498490810394,
-0.07112549990415573,
0.02625170908868313,
0.01972494088113308,
0.01628980040550232,
0.028222395107150078,
0.026305949315428734,
-0.026577144861221313,
0.020393889397382736,
0.0037379758432507515,
-0.05622783675789833,
0.03238072618842125,
0.011263647116720676,
0.015232138335704803,
-0.011245567351579666,
-0.00596177764236927,
-0.007489511277526617,
0.012646743096411228,
0.030428117141127586,
0.00818105973303318,
0.03897980973124504,
0.009446637704968452,
-0.008036422543227673,
0.039883796125650406,
0.023250481113791466,
-0.020809723064303398,
0.021930662915110588,
0.03218184784054756,
0.013821923173964024,
-0.011480603367090225,
-0.048923641443252563,
-0.015241178683936596,
-0.03145866096019745,
0.039232928305864334,
0.02084588259458542,
-0.01030542328953743,
0.04194488003849983,
0.003762835403904319,
0.006481568794697523,
-0.02771616354584694,
-0.022436894476413727,
0.03775039315223694,
0.004669080022722483,
-0.007918904535472393,
0.00019435666035860777,
0.03095242939889431,
-0.002467877697199583,
-0.022364575415849686,
-0.0029854087624698877,
0.04454835504293442,
0.01729322411119938,
-0.07651324570178986,
0.027354570105671883,
0.028113918378949165,
0.05951833724975586,
0.058722831308841705,
-0.09379743039608002,
0.010124626569449902,
-0.04415060207247734,
0.0407516211271286,
0.07036615163087845,
0.016262680292129517,
-0.006327891256660223,
0.023901350796222687,
0.11057538539171219,
-0.01666947454214096,
0.05340740457177162,
0.04230647534132004,
0.01387616153806448,
-0.013830962590873241,
-0.009546075947582722,
-0.00693808076903224,
0.011173248291015625,
-0.0517079122364521,
0.006807003170251846,
0.030554676428437233,
-0.04711567237973213,
-0.009374319575726986,
0.03850973770022392,
-0.04689871519804001,
-0.05091240629553795,
0.02254537306725979,
0.06132630631327629,
-0.036846406757831573,
-0.06259188801050186,
0.019507985562086105,
0.03304967284202576,
-0.0074217128567397594,
-0.007652228698134422,
0.05492609739303589,
0.035020358860492706,
-0.00835281703621149,
0.038075827062129974,
0.024751095101237297,
-0.040426187217235565,
0.009663593955338001,
-0.016488676890730858,
0.0017921492690220475,
0.023286640644073486,
-0.03115130588412285,
0.05622783675789833,
-0.019363347440958023,
-0.061000872403383255,
-0.01685931161046028,
-0.0036701769568026066,
0.03782271221280098,
-0.06053080037236214,
-0.052467260509729385,
-0.006029576528817415,
0.06150710582733154,
0.0019887657836079597,
0.029343336820602417,
-0.03503843769431114,
-0.08627627789974213,
0.02126171439886093,
0.01435527391731739,
-0.051310159265995026,
-0.0023187201004475355,
-0.03319431096315384,
-0.0004082054947502911,
0.01562989130616188,
-0.017654817551374435,
0.06237493082880974,
-0.005857819691300392,
0.005148191470652819,
0.00852909404784441,
-0.020285412669181824,
0.03818430379033089,
0.03333894908428192,
-0.03677408769726753,
0.04823661223053932,
0.0626642033457756,
0.077814981341362,
-0.013098735362291336,
-0.007946023717522621,
0.05633631348609924,
0.020285412669181824,
-0.00017839568317867815,
0.02616131119430065,
0.042161837220191956,
-0.008479374460875988,
-0.05539616942405701,
-0.008000263012945652,
-0.003480340354144573,
-0.04411444440484047,
-0.058758992701768875,
-0.021352114155888557,
-0.0056001837365329266,
-0.008366376161575317,
-0.01408407837152481,
0.007620589341968298,
0.01571124978363514,
0.013785763643682003,
-0.013821923173964024,
-0.03738879784941673,
-0.025637000799179077,
-0.0068793217651546,
-0.01983341947197914,
0.00974495243281126,
0.02485957369208336,
0.023919429630041122,
0.0007808165973983705,
-0.07380129396915436,
-0.0015819728141650558,
0.029686851426959038,
0.018504561856389046,
-0.024787254631519318,
0.10442829132080078,
0.012836580164730549,
-0.007037519011646509,
-0.012791380286216736,
-0.03160329908132553,
0.06031384319067001,
-0.03818430379033089,
-0.04393364489078522,
-0.01683219149708748,
-0.0022384915500879288,
0.010007108561694622,
-0.0765855684876442,
0.0011729198740795255,
0.0000014522016726914444,
0.006639766041189432,
0.09177250415086746,
0.02071932516992092,
-0.05174407362937927,
0.006630726158618927,
0.015575652942061424,
-0.08352816849946976,
-0.003713116282597184,
-0.0769471600651741,
-0.011417323723435402,
-0.04512690380215645,
-0.0069697205908596516,
0.007204756140708923,
0.043897487223148346,
0.01567509025335312,
0.01178795751184225,
-0.010486220009624958,
0.023883270099759102,
-0.02176794596016407,
0.0015198239125311375,
0.04975530505180359,
0.014445671811699867,
-0.03991995379328728,
0.02061084657907486,
0.015403895638883114,
-0.0071866768412292,
-0.06241108849644661,
-0.022201858460903168,
-0.0022305818274617195,
-0.0049809543415904045,
-0.018341844901442528,
0.029614532366394997,
-0.012438826262950897,
-0.0007310974760912359,
0.01941758766770363,
0.03010268323123455,
-0.051274001598358154,
-0.07311426848173141,
-0.025311565026640892,
0.009189002215862274,
-0.07184869050979614,
-0.029361415654420853,
-0.030590835958719254,
-0.0827326625585556,
0.0017616397235542536,
0.0074217128567397594,
-0.056444790214300156,
0.0013107775012031198,
0.018016410991549492,
0.037533435970544815,
-0.009708793833851814,
-0.05112936347723007,
-0.04718799144029617,
-0.02466069720685482,
-0.04751342535018921,
-0.044982269406318665,
0.0024859572295099497,
0.014310074038803577,
-0.0815032422542572,
0.018161049112677574,
-0.00089833460515365,
-0.034405648708343506,
0.03245304152369499,
-0.017654817551374435,
-0.06295347958803177,
0.02898174338042736,
0.007697428110986948,
-0.026956817135214806,
0.01399367954581976,
0.012917938642203808,
-0.0284393522888422,
0.01806160993874073,
0.04288502410054207,
-0.005333508364856243,
-0.0538051575422287,
0.008117781020700932,
0.06602703034877777,
-0.005243110004812479,
-0.0010593568440526724,
-0.005848779808729887,
0.014138317666947842,
0.025347724556922913,
-0.06298963725566864,
0.04830893129110336,
0.015015182085335255,
-0.041040897369384766,
0.019092151895165443,
-0.02115323767066002,
0.02551044151186943,
-0.019544145092368126,
0.005256669595837593,
0.017808495089411736,
0.04700719192624092,
-0.03764191269874573,
-0.024714935570955276,
0.03033771924674511,
0.04574161395430565,
0.023919429630041122,
-0.0666055753827095,
-0.0020949840545654297,
0.0029899287037551403,
-0.024714935570955276,
-0.014816305600106716,
-0.049032118171453476,
-0.010468140244483948,
0.012339388020336628,
0.048381250351667404,
-0.023142002522945404,
-0.01379480306059122,
0.017148585990071297,
-0.002899530343711376,
-0.021912584081292152,
0.0036724370438605547,
-0.04747726395726204,
-0.008402535691857338,
-0.01775425486266613,
0.08128628879785538,
-0.03999227285385132,
-0.026107072830200195,
0.024877652525901794,
0.08020150661468506,
0.04082394018769264,
0.02890942431986332,
0.037497278302907944,
-0.011950675398111343,
-0.06186869740486145,
-0.040353868156671524,
-0.009889590553939342,
-0.020285412669181824,
0.0026012153830379248,
-0.016696592792868614,
-0.008461294695734978,
-0.007534710690379143,
0.024172544479370117,
0.018802877515554428,
0.016262680292129517,
0.02871054783463478,
0.02299736626446247,
0.0011113359360024333,
-0.008610452525317669,
-0.0063685704953968525,
0.019019832834601402,
0.025727398693561554,
0.008926847018301487,
-0.06468912959098816,
0.03145866096019745,
0.008845488540828228,
-0.07181252539157867,
0.019851500168442726,
-0.03160329908132553,
0.0401369109749794,
-0.008890687488019466,
-0.002890490461140871,
-0.05488993972539902,
-0.0815032422542572,
-0.016886429861187935,
-0.015394856221973896,
-0.00003728935917024501,
0.028782866895198822,
0.04820045456290245,
-0.05951833724975586,
0.011119008995592594,
0.02755344659090042,
0.03400789573788643,
-0.05742109566926956,
-0.01045910082757473,
-0.0009209341951645911,
-0.07795961946249008,
0.024443740025162697,
0.009121203795075417,
0.023322800174355507,
-0.015105580911040306,
0.020050376653671265,
0.03241688385605812,
0.03843741863965988,
-0.011046690866351128,
-0.004248727113008499,
-0.046175528317689896,
0.037497278302907944,
-0.03304967284202576,
0.007616069167852402,
0.0291806198656559,
-0.011977794580161572,
-0.017745215445756912,
-0.05886746942996979,
0.012954098172485828,
0.008524573408067226,
-0.0061290147714316845,
0.06241108849644661,
-0.0010435370495542884,
-0.06053080037236214,
-0.00791438389569521,
0.02411830611526966,
-0.035219237208366394,
-0.0015288637951016426,
0.004547041840851307,
-0.023684393614530563,
-0.0062872120179235935,
-0.014038879424333572,
0.013134894892573357,
-0.030590835958719254,
0.026070913299918175,
0.009889590553939342,
0.04107705503702164,
0.0325072817504406,
-0.021062837913632393,
0.04736878722906113,
-0.00835281703621149,
-0.016606194898486137,
-0.002029445255175233,
0.029578372836112976,
-0.0011508852476254106,
0.029939966276288033,
-0.04360821098089218,
-0.010739335790276527,
-0.027264172211289406,
-0.033899419009685516,
-0.0434635728597641,
-0.0068115233443677425,
-0.06121782958507538,
0.04642864316701889,
-0.009329119697213173,
0.02258153259754181,
0.02520308829843998,
0.04057082533836365,
0.05152711644768715
] |
724,916 | tf_keras.src.engine.base_layer | _autographed_call | null | def _autographed_call(self):
# Wrapping `call` function in autograph to allow for dynamic control
# flow and control dependencies in call. We are limiting this to
# subclassed layers as autograph is strictly needed only for
# subclassed layers and models.
# tf_convert will respect the value of autograph setting in the
# enclosing tf.function, if any.
if self._should_use_autograph():
return tf.__internal__.autograph.tf_convert(
self.call, tf.__internal__.autograph.control_status_ctx()
)
return self.call
| (self) | [
-0.03271239995956421,
-0.09952139109373093,
0.0021168007515370846,
0.06405813246965408,
0.018607696518301964,
0.013763037510216236,
-0.028384622186422348,
-0.023846587166190147,
0.012352567166090012,
-0.05512223765254021,
0.018485046923160553,
0.023268381133675575,
0.0036794880870729685,
-0.03668975457549095,
-0.011993379332125187,
0.007569232489913702,
0.00520384730771184,
0.010723079554736614,
0.0020270037930458784,
-0.03830171748995781,
0.029278213158249855,
-0.014639106579124928,
-0.020797869190573692,
-0.03795129060745239,
0.04590599611401558,
0.05175813287496567,
0.028594879433512688,
0.002827511401847005,
-0.05039146542549133,
-0.027350861579179764,
0.025914108380675316,
-0.013824362307786942,
0.005497330334037542,
0.0234085526317358,
0.03308035060763359,
-0.003913836553692818,
-0.013920729979872704,
0.06864873319864273,
-0.06896412372589111,
-0.10127352923154831,
-0.039037615060806274,
-0.03280000761151314,
0.019063252955675125,
-0.010433977469801903,
-0.07155728340148926,
-0.006482907570898533,
-0.0363042838871479,
0.0419461652636528,
-0.006119339261204004,
-0.016382481902837753,
0.017372440546751022,
-0.04015898331999779,
-0.02051752619445324,
0.06941967457532883,
-0.028822656720876694,
0.014875644817948341,
0.00558055704459548,
-0.03893248736858368,
0.03060983680188656,
-0.006837715394794941,
-0.00026815911405719817,
-0.000610510294791311,
-0.021130774170160294,
-0.02433718554675579,
0.056313689798116684,
-0.0035108448937535286,
-0.030382059514522552,
0.02030727081000805,
-0.02614188753068447,
0.03879231587052345,
-0.03668975457549095,
0.0008908522431738675,
0.040544454008340836,
-0.07001540064811707,
0.0012768700253218412,
-0.04015898331999779,
0.026124365627765656,
-0.004327778704464436,
0.020885474979877472,
-0.024109408259391785,
-0.00841025821864605,
-0.0014641296584159136,
0.012851926498115063,
-0.03162607550621033,
-0.0010775644332170486,
-0.026755135506391525,
0.0007271369104273617,
-0.016093380749225616,
-0.09342395514249802,
0.025073083117604256,
0.006868377793580294,
-0.009549147449433804,
-0.03413163125514984,
0.016391243785619736,
-0.008760686032474041,
-0.0068289549089968204,
-0.015760473906993866,
-0.008997224271297455,
0.015795517712831497,
-0.0038503215182572603,
0.007118057459592819,
0.061570100486278534,
-0.028279494494199753,
0.010854490101337433,
0.052353858947753906,
-0.060553859919309616,
0.026930348947644234,
0.030382059514522552,
0.0007687502074986696,
-0.027894023805856705,
-0.0335359051823616,
0.027736332267522812,
0.01025876309722662,
0.02589658834040165,
0.014455132186412811,
-0.008694981224834919,
0.0025099364574998617,
-0.01252778060734272,
-0.0005434363265521824,
0.03749573603272438,
-0.058836765587329865,
0.00305747939273715,
0.00941773783415556,
-0.03725043684244156,
-0.023653851822018623,
0.08326155692338943,
0.009978421032428741,
0.022217100486159325,
0.038021378219127655,
-0.05330001190304756,
0.045380353927612305,
0.002573451492935419,
0.021428637206554413,
0.01033760979771614,
0.028314536437392235,
0.04741283133625984,
0.03805641829967499,
0.022479919716715813,
-0.08228036016225815,
0.08192993700504303,
0.011336327530443668,
-0.007556091528385878,
0.03060983680188656,
-0.005970407277345657,
0.05540257692337036,
0.053370099514722824,
0.008773826994001865,
0.021586330607533455,
0.0115378238260746,
-0.04485471174120903,
0.07078634202480316,
0.013421370647847652,
0.014963251538574696,
0.03455214574933052,
-0.026176929473876953,
0.007223185617476702,
-0.006934083066880703,
-0.0066318390890955925,
0.037180352956056595,
-0.013649148866534233,
-0.018555132672190666,
0.010469019412994385,
0.0058477576822042465,
-0.00968931894749403,
0.045800864696502686,
-0.0364094115793705,
-0.0083839762955904,
-0.02085043303668499,
-0.010030985809862614,
0.005492950323969126,
0.026895305141806602,
0.001176122110337019,
0.05330001190304756,
0.018047012388706207,
0.024319663643836975,
0.04380343109369278,
-0.02021966315805912,
0.04905984178185463,
-0.010898292995989323,
0.05291454493999481,
0.009382694959640503,
-0.007367737125605345,
-0.03956325724720955,
-0.03442949429154396,
-0.01265043020248413,
0.052318815141916275,
0.06510941684246063,
-0.055052150040864944,
0.002492415253072977,
0.007450963370501995,
-0.036549583077430725,
0.05414104089140892,
0.08970942348241806,
-0.0023281523026525974,
0.012746797874569893,
-0.07026070356369019,
-0.050041038542985916,
0.035498298704624176,
0.004660685081034899,
0.006658121477812529,
-0.00027760423836298287,
0.006772010121494532,
0.0833316445350647,
0.017714107409119606,
-0.035498298704624176,
0.0699453204870224,
0.05137266218662262,
0.04278719052672386,
-0.026124365627765656,
-0.024232057854533195,
-0.026124365627765656,
-0.03837180510163307,
-0.019606415182352066,
0.06255129724740982,
-0.02530086040496826,
-0.010539105162024498,
0.08865813910961151,
0.02559872530400753,
0.021288467571139336,
0.013368806801736355,
0.06524959206581116,
-0.024494877085089684,
-0.004954168107360601,
-0.07274873554706573,
0.029067955911159515,
-0.01399957574903965,
0.005195086821913719,
-0.022252142429351807,
-0.03076752834022045,
-0.03791625052690506,
-0.021849151700735092,
-0.062411125749349594,
0.01515598688274622,
0.035585906356573105,
-0.01634743995964527,
0.027017954736948013,
-0.01685556024312973,
0.002167174592614174,
-0.03195898234844208,
-0.015988251194357872,
-0.005414104089140892,
0.012291242368519306,
0.03668975457549095,
0.0028691247571259737,
-0.0615350566804409,
-0.0021069450303912163,
-0.02109573222696781,
0.021831629797816277,
-0.04149060696363449,
-0.02488034777343273,
0.035620950162410736,
0.016084618866443634,
-0.010705558583140373,
0.002658868208527565,
-0.08284104615449905,
-0.012124788947403431,
-0.006412822287529707,
-0.00901474617421627,
0.03700513765215874,
0.03830171748995781,
-0.012431413866579533,
0.05270428583025932,
-0.023058125749230385,
0.023601287975907326,
-0.025756416842341423,
-0.05182821676135063,
-0.04502992704510689,
0.004787714686244726,
-0.021200859919190407,
0.049830783158540726,
0.03309787064790726,
0.04944531247019768,
0.004056197591125965,
-0.009995942935347557,
-0.02884017862379551,
-0.055262405425310135,
0.0018955934792757034,
0.03187137469649315,
-0.005838997196406126,
-0.009715600870549679,
0.046466678380966187,
-0.047097448259592056,
-0.06419830769300461,
0.021796585991978645,
-0.055928219109773636,
-0.021744022145867348,
0.07723420858383179,
0.03428932651877403,
0.026054279878735542,
-0.04737779125571251,
0.049375224858522415,
0.02067521959543228,
0.06409318000078201,
0.02265513315796852,
0.01920342445373535,
0.02109573222696781,
-0.009636754170060158,
-0.04881454259157181,
0.013614105992019176,
-0.008169339969754219,
0.03258975222706795,
-0.014350003562867641,
-0.023969236761331558,
-0.021744022145867348,
0.07162737101316452,
-0.014428850263357162,
-0.0009894099785014987,
-0.015138464979827404,
-0.0314859040081501,
-0.007875856943428516,
-0.0720478817820549,
-0.020867954939603806,
-0.01557649951428175,
-0.019308552145957947,
-0.038617104291915894,
-0.020114535465836525,
-0.0068946597166359425,
0.010521584190428257,
0.0875367745757103,
0.06150001659989357,
-0.01920342445373535,
0.06051881983876228,
0.02072778344154358,
0.05543762072920799,
-0.04818377271294594,
-0.051512833684682846,
0.03721539303660393,
-0.017293594777584076,
-0.010144874453544617,
0.0384068489074707,
-0.05196838825941086,
-0.03816154971718788,
0.0019065443193539977,
0.029856417328119278,
-0.02114829607307911,
-0.013982054777443409,
0.036759838461875916,
0.006193805020302534,
0.012300003319978714,
-0.022094450891017914,
-0.01908077485859394,
0.0594324953854084,
0.008913997560739517,
0.06079915910959244,
-0.00026460009394213557,
0.03938804566860199,
0.0286649651825428,
0.02030727081000805,
0.06714189797639847,
-0.07274873554706573,
-0.03031197376549244,
-0.05967779457569122,
-0.01368419174104929,
0.019869236275553703,
0.06079915910959244,
0.05575300380587578,
-0.016724148765206337,
0.033518385142087936,
0.0016064908122643828,
-0.06402309238910675,
0.04804360121488571,
-0.06609061360359192,
0.02530086040496826,
0.03103034943342209,
0.04944531247019768,
0.014691670425236225,
-0.022059407085180283,
-0.0037167209666222334,
-0.02703547663986683,
-0.001521074096672237,
-0.04019402712583542,
-0.04576582461595535,
0.03169616311788559,
-0.003434188896790147,
-0.021919235587120056,
0.06570514291524887,
0.005177565384656191,
-0.0378461629152298,
0.017162183299660683,
0.04191112145781517,
0.027946587651968002,
0.05880172550678253,
0.05154787749052048,
0.013079703785479069,
0.05116240680217743,
0.018047012388706207,
-0.05764531344175339,
-0.031047871336340904,
0.013903209008276463,
-0.06132480129599571,
0.02656240016222,
-0.007394019048660994,
-0.015550217591226101,
-0.01395577285438776,
-0.011266241781413555,
-0.009698078967630863,
0.04741283133625984,
0.006474147085100412,
0.013105986639857292,
-0.03190641850233078,
-0.011923293583095074,
-0.018397441133856773,
0.08207010477781296,
0.028559835627675056,
0.003964210394769907,
-0.0022306896280497313,
-0.001259348588064313,
0.02349616028368473,
-0.038231633603572845,
0.008046690374612808,
-0.05519232153892517,
-0.04047437012195587,
-0.05585813522338867,
0.03931795805692673,
-0.000825694645754993,
0.07744446396827698,
-0.08655557781457901,
0.01383312325924635,
-0.02568633109331131,
0.014770516194403172,
0.007783869281411171,
0.07884617149829865,
-0.010688036680221558,
0.09678805619478226,
0.06209574267268181,
0.024792741984128952,
0.015961969271302223,
-0.01437628548592329,
0.01763526163995266,
0.03704018145799637,
0.0004481638316065073,
-0.04443420097231865,
-0.030820094048976898,
0.018274791538715363,
0.008962181396782398,
-0.001655769650824368,
0.02316325344145298,
0.0336410328745842,
0.012387610040605068,
0.00983825046569109,
0.02291795425117016,
0.03647949546575546,
0.008773826994001865,
-0.01850256882607937,
-0.021463681012392044,
-0.007266988977789879,
-0.08270087838172913,
0.04898975417017937,
-0.003692629048600793,
-0.035042744129896164,
0.10758122056722641,
0.0440487302839756,
0.03980855643749237,
0.03980855643749237,
-0.060133349150419235,
-0.011231199838221073,
-0.0399487279355526,
-0.011117310263216496,
0.0016294876113533974,
0.04026411101222038,
-0.02139359526336193,
0.025318382307887077,
-0.05266924574971199,
-0.010679276660084724,
-0.0024026180617511272,
0.016426285728812218,
0.02262009121477604,
0.06391796469688416,
-0.09426498413085938,
-0.04436411336064339,
0.06619574129581451,
-0.06668633967638016,
0.004778954200446606,
0.007669980637729168,
-0.016321158036589622,
0.024564962834119797,
0.01040769461542368,
0.03763590753078461,
0.02496795542538166,
-0.015813037753105164,
-0.02274274080991745,
-0.0314859040081501,
-0.05217864736914635,
0.02337351068854332,
-0.005352779291570187,
0.07961711287498474,
-0.018800431862473488,
-0.002470513340085745,
0.026755135506391525,
-0.0004311900120228529,
-0.05414104089140892,
0.06955984979867935,
0.03711026534438133,
-0.034324366599321365,
-0.07169745117425919,
0.010968378745019436,
0.04320770502090454,
-0.022795304656028748,
-0.0094352588057518,
0.013272439129650593,
0.01187948975712061,
-0.0028559835627675056,
-0.005808334797620773,
0.02283034846186638,
0.034622229635715485,
-0.012939533218741417,
-0.023986758664250374,
-0.010144874453544617,
-0.057154715061187744,
0.0030815713107585907,
-0.034026503562927246,
-0.02997906692326069,
0.02601923793554306,
0.005002351477742195,
-0.009803207591176033,
-0.03064487874507904,
0.013780559413135052,
-0.05764531344175339,
-0.07576241344213486,
-0.03732052072882652,
0.02593163028359413,
0.03682992234826088,
-0.03602394089102745,
0.008278848603367805,
0.03136325627565384,
-0.006955984514206648,
0.016759192571043968,
0.034026503562927246,
0.0014104704605415463,
-0.01463034562766552,
0.005874040070921183,
-0.005387821700423956,
-0.00014797346375416964,
0.046641893684864044,
0.032607272267341614,
-0.016084618866443634,
-0.08150941878557205,
-0.014542738907039165,
-0.07019061595201492,
0.014796799048781395,
-0.04713249206542969,
-0.03791625052690506,
-0.022935476154088974,
-0.0008393832249566913,
0.014052140526473522,
-0.0532299280166626,
0.02274274080991745,
0.015243593603372574,
0.014604063704609871,
-0.03509530797600746,
-0.021113254129886627,
-0.007096155546605587,
0.010977139696478844,
0.0685085654258728,
-0.030627358704805374,
0.02021966315805912,
-0.0010195248760282993,
0.03872223198413849,
-0.06941967457532883,
-0.0587666817009449,
-0.020061971619725227,
0.021235903725028038,
0.004189798142760992,
-0.010328848846256733,
0.00881763081997633,
0.002135417191311717,
0.008979703299701214,
0.08038805425167084,
-0.033570948988199234,
-0.07471112906932831,
0.010355130769312382,
-0.028577357530593872,
0.01628611609339714,
-0.024372227489948273,
-0.005860899109393358,
0.05410599708557129,
0.04520513862371445,
-0.008800108917057514,
0.025861544534564018,
-0.009785686619579792,
-0.011520301923155785,
-0.04881454259157181,
-0.024529920890927315,
-0.009663037024438381,
0.015348722226917744,
-0.009829489514231682,
0.0011914533097296953,
0.044959839433431625,
0.00853290781378746,
-0.0713820680975914,
-0.044539328664541245,
-0.027175648137927055,
-0.012063464149832726,
0.009680557996034622,
-0.018940603360533714,
-0.009768164716660976,
-0.03295769914984703,
0.016724148765206337,
0.01473547425121069,
-0.023128211498260498,
-0.06577523052692413,
0.06111454591155052,
0.005961646791547537,
-0.017714107409119606,
0.016934406012296677,
0.009496583603322506,
-0.06780771166086197,
0.026422228664159775,
0.001611966174095869,
-0.00435625109821558,
0.004967309068888426,
0.04751795902848244,
-0.018274791538715363,
0.022637613117694855,
0.02757863886654377,
-0.005252031143754721,
-0.04173590987920761,
0.04814872890710831,
0.03879231587052345,
0.01613718271255493,
0.02181410789489746,
0.0047395313158631325,
-0.07099659740924835,
0.02000940591096878,
-0.03337821364402771,
0.016329918056726456,
0.04667693376541138,
-0.09209232777357101,
0.04531026631593704,
0.02370641566812992,
0.025651289150118828,
0.018047012388706207,
0.00182879320345819,
0.012457695789635181,
0.0510222353041172,
-0.06069403141736984,
-0.04341796040534973,
0.06489916145801544,
-0.03679488226771355,
-0.07372993230819702,
-0.02375897951424122,
0.03837180510163307,
-0.0019076393218711019,
-0.0297162476927042,
0.06065899133682251,
-0.038862403482198715,
-0.06696668267250061,
-0.008826390840113163,
0.06931454688310623,
0.037811119109392166,
-0.00428178533911705,
0.03283505141735077,
0.06111454591155052,
0.02475769817829132,
0.001525454455986619,
0.031223084777593613,
-0.013587824068963528,
-0.032554708421230316,
0.04944531247019768,
-0.022392313927412033,
-0.06206069886684418,
-0.0034122872166335583,
-0.005558655131608248,
0.004064958076924086,
-0.056558988988399506,
-0.00645224517211318,
-0.06037864834070206,
-0.039668384939432144,
-0.018485046923160553,
-0.023058125749230385,
-0.036094024777412415,
-0.008016027510166168,
-0.0003008748171851039,
-0.025125646963715553,
0.003983921837061644,
-0.016233550384640694,
0.04510001093149185,
0.011520301923155785,
0.020500004291534424,
-0.023005561903119087,
-0.06857865303754807,
0.004936646670103073,
-0.035620950162410736,
-0.0037189112044870853,
-0.06668633967638016,
-0.057154715061187744,
0.019694022834300995,
0.0015955399721860886,
0.02703547663986683,
-0.06626582890748978,
-0.007494766730815172,
-0.027858981862664223,
-0.02845470793545246,
0.012045943178236485,
0.000026042507670354098,
-0.018730346113443375,
-0.0775846317410469,
-0.029663681983947754,
0.008230664767324924,
0.028402144089341164,
0.034744881093502045,
0.004189798142760992,
-0.012273721396923065,
-0.0037342424038797617,
0.026930348947644234,
0.04107009619474411,
-0.0036729176063090563,
-0.020780347287654877,
-0.03553334251046181,
-0.022129492834210396,
0.005532373208552599,
-0.04948035627603531,
-0.0017335207667201757,
0.01883547566831112,
0.006798292510211468,
-0.04776325821876526,
-0.036549583077430725,
0.05806582793593407,
-0.010083549655973911,
-0.021796585991978645,
-0.031100435182452202,
0.004713248927146196,
0.07716412097215652,
-0.03187137469649315,
0.07541198283433914,
0.01920342445373535,
0.01658397912979126,
0.020289748907089233,
0.04121026769280434,
0.00041202601278200746,
0.018852995708584785,
-0.005330877378582954,
-0.01542756799608469,
-0.012413891963660717,
0.030837614089250565,
0.00322174234315753,
0.0015473561361432076,
-0.016986969858407974,
-0.032344453036785126,
-0.07436070591211319,
-0.009847011417150497,
-0.04545043781399727,
-0.08662566542625427,
0.0053264969028532505,
0.01811709813773632,
0.013377567753195763,
0.04531026631593704,
-0.06227095425128937,
0.05270428583025932,
0.007481625769287348,
0.02535342611372471,
0.03458718955516815,
0.01237884908914566,
0.0011859778314828873,
0.07730429619550705,
-0.008077352307736874,
0.003322490258142352,
0.04299744591116905,
-0.00983825046569109,
-0.07968720048666,
-0.030154280364513397,
0.0019448723178356886,
-0.02526581846177578,
-0.024740178138017654,
0.017924362793564796,
-0.007227566093206406,
-0.004176657181233168,
-0.00005769732888438739
] |
724,951 | tf_keras.src.engine.base_layer | _infer_output_signature | Call the layer on input KerasTensors, returns output KerasTensors. | def _infer_output_signature(self, inputs, args, kwargs, input_masks):
"""Call the layer on input KerasTensors, returns output KerasTensors."""
keras_tensor_inputs = inputs
call_fn = self.call
# Wrapping `call` function in autograph to allow for dynamic control
# flow and control dependencies in call. We are limiting this to
# subclassed layers as autograph is strictly needed only for
# subclassed layers and models.
# tf_convert will respect the value of autograph setting in the
# enclosing tf.function, if any.
if self._should_use_autograph():
call_fn = tf.__internal__.autograph.tf_convert(
self.call, tf.__internal__.autograph.control_status_ctx()
)
call_fn = traceback_utils.inject_argument_info_in_traceback(
call_fn,
object_name=f'layer "{self.name}" (type {self.__class__.__name__})',
)
# We enter a scratch graph and build placeholder inputs inside of it
# that match the input args.
# We then call the layer inside of the scratch graph to identify the
# output signatures, then we build KerasTensors corresponding to those
# outputs.
scratch_graph = tf.__internal__.FuncGraph(
str(self.name) + "_scratch_graph"
)
with scratch_graph.as_default():
inputs = tf.nest.map_structure(
keras_tensor.keras_tensor_to_placeholder, inputs
)
args = tf.nest.map_structure(
keras_tensor.keras_tensor_to_placeholder, args
)
kwargs = tf.nest.map_structure(
keras_tensor.keras_tensor_to_placeholder, kwargs
)
input_masks = tf.nest.map_structure(
keras_tensor.keras_tensor_to_placeholder, input_masks
)
with backend.name_scope(self._name_scope()):
with autocast_variable.enable_auto_cast_variables(
self._compute_dtype_object
):
# Build layer if applicable (if the `build` method has been
# overridden).
# TODO(kaftan): do we maybe_build here, or have we already
# done it?
self._maybe_build(inputs)
inputs = self._maybe_cast_inputs(inputs)
outputs = call_fn(inputs, *args, **kwargs)
self._handle_activity_regularization(inputs, outputs)
self._set_mask_metadata(
inputs, outputs, input_masks, build_graph=False
)
outputs = tf.nest.map_structure(
keras_tensor.keras_tensor_from_tensor, outputs
)
self._set_save_spec(keras_tensor_inputs, args, kwargs)
if hasattr(self, "_set_inputs") and not self.inputs:
# TODO(kaftan): figure out if we need to do this at all
# Subclassed network: explicitly set metadata normally set by
# a call to self._set_inputs().
self._set_inputs(inputs, outputs)
del scratch_graph
return outputs
| (self, inputs, args, kwargs, input_masks) | [
-0.014744695276021957,
-0.07174026966094971,
0.016373414546251297,
0.05070105567574501,
-0.039223380386829376,
0.017561420798301697,
-0.10224521160125732,
0.03951080143451691,
0.058442261070013046,
-0.011075287126004696,
0.03330250829458237,
0.028492996469140053,
0.0029149274341762066,
-0.00306342844851315,
0.05813567712903023,
0.062274541705846786,
0.02954687364399433,
0.02822473831474781,
-0.013604591600596905,
-0.043113142251968384,
0.02377929352223873,
-0.05303874611854553,
0.0006466971244663,
0.03573600575327873,
0.014438112266361713,
0.020215272903442383,
0.017513517290353775,
-0.03943415358662605,
-0.035985104739665985,
0.00015029720088932663,
-0.05909374728798866,
-0.03786291927099228,
0.024928977712988853,
0.019362591207027435,
0.012876458466053009,
-0.0033316879998892546,
-0.01449559722095728,
0.08607299625873566,
-0.05679437890648842,
-0.02600201591849327,
-0.00022185304260347039,
-0.07059058547019958,
0.0002697565359994769,
-0.03531445562839508,
-0.00883819442242384,
0.015731506049633026,
-0.02397090755403042,
-0.0012969870585948229,
-0.033321671187877655,
-0.04683045297861099,
0.009508843533694744,
-0.039108410477638245,
0.013135137967765331,
0.04349637031555176,
-0.028263060376048088,
-0.006922054570168257,
0.0490148551762104,
-0.04997292160987854,
0.0006119671161286533,
-0.020924245938658714,
-0.017494356259703636,
0.027975639328360558,
-0.01697699725627899,
0.012100421823561192,
-0.03631084784865379,
0.01145851518958807,
-0.03822698816657066,
-0.056564442813396454,
-0.011247740127146244,
0.05246390402317047,
-0.02734331414103508,
-0.06740979105234146,
0.034643806517124176,
-0.018260810524225235,
0.0075687519274652,
-0.037824597209692,
0.033494122326374054,
-0.02956603467464447,
0.022687094286084175,
-0.06077995151281357,
-0.025944530963897705,
0.017159031704068184,
-0.04315146431326866,
-0.039395831525325775,
0.03855273127555847,
-0.022495480254292488,
-0.012129164300858974,
0.06077995151281357,
-0.060511693358421326,
-0.028876224532723427,
-0.020426049828529358,
0.002070628572255373,
0.0034897695295512676,
0.04652387276291847,
-0.011477677151560783,
0.008866936899721622,
-0.05552972853183746,
-0.04794181510806084,
-0.028473835438489914,
-0.015731506049633026,
0.00976273138076067,
0.033168379217386246,
-0.04169519990682602,
0.046485550701618195,
-0.007137620355933905,
-0.047826845198869705,
-0.034528836607933044,
-0.015520731918513775,
-0.04778852313756943,
-0.013690818101167679,
-0.02259128727018833,
-0.020924245938658714,
0.007722042966634035,
0.0005925063160248101,
0.03738388419151306,
-0.017206935212016106,
0.029489390552043915,
-0.013939916156232357,
-0.021326635032892227,
0.013527946546673775,
0.01580815203487873,
0.05572134256362915,
-0.003839464858174324,
-0.019247623160481453,
-0.03383902832865715,
0.05142918974161148,
0.0437646321952343,
0.052387259900569916,
0.033934835344552994,
-0.07059058547019958,
0.018883556127548218,
0.001778417150489986,
-0.0016622511902824044,
0.10324160754680634,
0.05805903300642967,
0.05541475862264633,
-0.0055711762979626656,
-0.006256196182221174,
-0.0532686822116375,
0.04686877876520157,
0.0473286509513855,
-0.021192505955696106,
0.031233077868819237,
-0.0036334798205643892,
-0.007817849516868591,
-0.005556805059313774,
0.04158022999763489,
-0.028742095455527306,
0.031233077868819237,
-0.06062665954232216,
0.018883556127548218,
-0.018088359385728836,
-0.012387842871248722,
0.03631084784865379,
-0.02676847204566002,
0.03263185918331146,
0.012483649887144566,
-0.011439354158937931,
0.005470579024404287,
0.000412568828323856,
-0.07388634979724884,
-0.03521864861249924,
0.02600201591849327,
-0.05572134256362915,
0.01690993271768093,
0.010117217898368835,
0.013815367594361305,
-0.0023891867604106665,
0.023415226489305496,
0.008890888653695583,
0.011822582222521305,
0.03962576761841774,
0.02276374027132988,
-0.01853865198791027,
0.02218889817595482,
0.004627477377653122,
0.02883790247142315,
0.003350849263370037,
-0.05813567712903023,
0.045604124665260315,
0.06043504551053047,
-0.022246381267905235,
-0.06691160053014755,
0.0240858756005764,
-0.010107636451721191,
0.06545533239841461,
0.003959223628044128,
0.007808269467204809,
0.00728133087977767,
0.007003490813076496,
-0.01166929118335247,
0.05710096284747124,
0.035985104739665985,
0.018193745985627174,
0.01660335063934326,
-0.02793731726706028,
-0.027381636202335358,
0.07534261047840118,
0.04299817606806755,
-0.02632775902748108,
-0.01805003546178341,
-0.008186707273125648,
0.0715869814157486,
0.03797788918018341,
-0.057867418974637985,
-0.016814125701785088,
0.06997742503881454,
0.023012837395071983,
-0.043687984347343445,
-0.046792130917310715,
-0.044722702354192734,
-0.03238276019692421,
0.043802954256534576,
0.0313863679766655,
0.03253605216741562,
-0.053575266152620316,
-0.007640607189387083,
0.023012837395071983,
-0.006993909832090139,
-0.03211450204253197,
0.062466155737638474,
0.015424924902617931,
-0.01545366644859314,
-0.021614056080579758,
0.0217098630964756,
-0.028914548456668854,
0.022495480254292488,
0.007147200871258974,
0.03977905958890915,
-0.02674931101500988,
-0.014112369157373905,
-0.045795738697052,
-0.0160285085439682,
0.018988944590091705,
-0.02973848767578602,
0.003815513104200363,
-0.011650129221379757,
-0.08201077580451965,
0.06603017449378967,
-0.04863162711262703,
-0.019985336810350418,
-0.022093091160058975,
-0.0022921820636838675,
-0.038533568382263184,
-0.026710987091064453,
-0.02604033797979355,
0.029163645580410957,
0.04437779635190964,
-0.009120824746787548,
-0.007966350764036179,
0.01569318398833275,
-0.0026011597365140915,
-0.003597552189603448,
0.03146301209926605,
-0.010807028040289879,
-0.04127364978194237,
0.01857697404921055,
-0.031098946928977966,
0.0851532444357872,
0.014141110703349113,
0.011439354158937931,
0.06139311566948891,
-0.002761636395007372,
0.018816491588950157,
-0.0073915086686611176,
-0.0664900466799736,
0.013652495108544827,
-0.01262736041098833,
-0.04637058079242706,
0.008110061287879944,
-0.006917264312505722,
0.08507660031318665,
-0.053115393966436386,
-0.02998758666217327,
-0.018529070541262627,
-0.03263185918331146,
0.05215732380747795,
0.02556130290031433,
-0.012704006396234035,
0.002274218248203397,
0.037824597209692,
-0.06794631481170654,
-0.06319428980350494,
0.016881190240383148,
-0.002300565131008625,
-0.006088533904403448,
0.04625561088323593,
0.008675322867929935,
0.0347779355943203,
-0.0520806759595871,
0.07239175587892532,
-0.0011125586461275816,
0.07085884362459183,
0.011650129221379757,
-0.0335899293422699,
-0.020732631906867027,
-0.06737147271633148,
-0.045795738697052,
0.010251346975564957,
-0.04786517098546028,
-0.008316046558320522,
0.03751801699399948,
0.06679663062095642,
0.011305224150419235,
0.029891779646277428,
-0.010692059062421322,
0.0008490894106216729,
-0.0026155307423323393,
-0.01690993271768093,
0.0211158599704504,
-0.021364957094192505,
-0.0007401089533232152,
0.0015939887380227447,
-0.05234893783926964,
0.02853132039308548,
-0.0023520614486187696,
0.05131421983242035,
0.03167378902435303,
0.06100988760590553,
0.09166812151670456,
-0.0027736122719943523,
0.06062665954232216,
0.002570022363215685,
0.0188260730355978,
-0.00018742241081781685,
-0.07400131225585938,
0.05112260580062866,
0.004404725972563028,
-0.009767522104084492,
0.04123532772064209,
-0.013288429006934166,
-0.03209533914923668,
0.04016228765249252,
0.032746829092502594,
-0.04805678501725197,
-0.004220297560095787,
0.02084759995341301,
0.018720684573054314,
0.0006454995600506663,
-0.02262960933148861,
0.017561420798301697,
0.024737363681197166,
-0.0066298432648181915,
0.039970673620700836,
-0.0038370697293430567,
0.02809060737490654,
0.02897203154861927,
0.026385243982076645,
0.0015400972915813327,
0.031098946928977966,
0.028205575421452522,
-0.0005029866588301957,
0.021690702065825462,
0.05679437890648842,
0.04491431266069412,
0.05863387510180473,
-0.006725650280714035,
-0.0035688101779669523,
0.020445210859179497,
-0.03472045063972473,
0.06384577602148056,
-0.0013424953212961555,
0.02335774339735508,
-0.007377137895673513,
0.12539218366146088,
-0.03236360102891922,
0.012368681840598583,
0.0034107286483049393,
0.02320445142686367,
-0.005959194619208574,
-0.02100089192390442,
-0.07185523957014084,
-0.005805903114378452,
-0.0012005813186988235,
-0.026423566043376923,
0.059668589383363724,
-0.03044746071100235,
0.008282514289021492,
-0.0015077624702826142,
0.03759466111660004,
-0.003815513104200363,
0.053153716027736664,
-0.0033388733863830566,
0.022533802315592766,
0.04912982136011124,
-0.011286063119769096,
-0.01598060503602028,
-0.022687094286084175,
0.04315146431326866,
-0.015836894512176514,
0.04541251063346863,
0.019017687067389488,
0.0085651446133852,
-0.0033077362459152937,
-0.014227337203919888,
-0.010519606992602348,
-0.004119700286537409,
0.0727749839425087,
-0.03636833280324936,
-0.03815034031867981,
-0.05706264078617096,
-0.07572583854198456,
0.04786517098546028,
0.04112035781145096,
0.03090733289718628,
-0.014514758251607418,
0.018222488462924957,
0.019142234697937965,
-0.010759124532341957,
-0.007448993157595396,
-0.03046662174165249,
-0.04361134022474289,
-0.0062466152012348175,
0.016124315559864044,
0.01660335063934326,
0.0720851719379425,
-0.05602792650461197,
0.01765722781419754,
0.011343547143042088,
-0.009044179692864418,
0.019563786685466766,
0.08070780336856842,
0.06553197652101517,
0.06714153289794922,
0.06116317957639694,
0.035678520798683167,
-0.03075404278934002,
0.07258336991071701,
-0.008929210714995861,
0.026519373059272766,
-0.014141110703349113,
-0.04357301816344261,
-0.04939808323979378,
0.0022335003595799208,
0.00027589418459683657,
-0.008062157779932022,
0.04081377387046814,
-0.0048741805367171764,
0.011515999212861061,
0.04361134022474289,
-0.02573375590145588,
0.03977905958890915,
0.025369688868522644,
-0.03738388419151306,
-0.011535161174833775,
-0.007951979525387287,
-0.013470462523400784,
0.0882190689444542,
-0.046217288821935654,
-0.027726542204618454,
0.09435071796178818,
-0.010979480110108852,
0.08147425949573517,
-0.026346920058131218,
-0.024469103664159775,
-0.008934001438319683,
0.0020299104508012533,
-0.012809393927454948,
-0.057752449065446854,
-0.01228245534002781,
-0.009106453508138657,
0.02496729977428913,
-0.004625082015991211,
0.013135137967765331,
0.006902893073856831,
-0.016239283606410027,
0.055797986686229706,
-0.00799030251801014,
-0.06622178852558136,
0.025810401886701584,
0.09067173302173615,
-0.03196121007204056,
0.016382994130253792,
0.018663201481103897,
-0.04893820732831955,
0.0027592412661761045,
0.03962576761841774,
-0.002761636395007372,
-0.045604124665260315,
-0.013508784584701061,
0.015539892949163914,
-0.04775020107626915,
-0.05794406309723854,
0.040890421718358994,
-0.0006443019956350327,
0.06725650280714035,
0.015386601909995079,
0.014993793331086636,
0.03190372511744499,
-0.00023308042727876455,
-0.07476776838302612,
0.024449942633509636,
0.0513908676803112,
-0.019276365637779236,
-0.04832504317164421,
-0.02157573215663433,
0.029949262738227844,
-0.0102609284222126,
0.011851323768496513,
-0.028033124282956123,
-0.025216398760676384,
0.002828701166436076,
-0.01544408593326807,
-0.023683486506342888,
0.04127364978194237,
0.031079785898327827,
-0.02954687364399433,
-0.0021903871092945337,
-0.05081602558493614,
-0.00362389930523932,
-0.06449726223945618,
-0.010605833493173122,
0.006601101253181696,
0.0071663623675704,
-0.03529529273509979,
0.0005338245537132025,
0.022572126239538193,
-0.007243007887154818,
-0.034222256392240524,
-0.007899286225438118,
0.03962576761841774,
0.055644698441028595,
-0.01875900849699974,
-0.02054101787507534,
0.046217288821935654,
0.027573250234127045,
0.021230828016996384,
0.019266784191131592,
0.05748419091105461,
-0.005135254468768835,
-0.02071347087621689,
-0.012981845997273922,
-0.014150691218674183,
0.043534692376852036,
0.0002832293976098299,
-0.043956246227025986,
0.012598618865013123,
-0.019276365637779236,
-0.0797114148736,
0.007425041403621435,
-0.008747178129851818,
0.009542375802993774,
-0.01719735376536846,
-0.022284705191850662,
0.008934001438319683,
0.03529529273509979,
0.02600201591849327,
-0.0049963342025876045,
0.004972382448613644,
-0.013403397053480148,
-0.05644947662949562,
-0.004943640436977148,
0.05756083503365517,
0.04246165603399277,
-0.01308723445981741,
0.008124432526528835,
0.001243095612153411,
0.043074820190668106,
-0.044262826442718506,
0.007659768220037222,
-0.009446568787097931,
0.059668589383363724,
0.029623519629240036,
-0.042806562036275864,
-0.023875100538134575,
0.016699157655239105,
-0.059668589383363724,
0.01677580364048481,
-0.07737372070550919,
-0.00301073445007205,
-0.028052285313606262,
0.000031417956051882356,
0.03740304708480835,
-0.02542717382311821,
-0.015089600346982479,
0.04602567479014397,
0.014303983189165592,
0.0034897695295512676,
0.02008114382624626,
-0.034203093498945236,
0.045910708606243134,
-0.018404521048069,
-0.007209475617855787,
-0.00919268000870943,
0.030389975756406784,
-0.0234918724745512,
0.003310131374746561,
0.0020826044492423534,
-0.059783559292554855,
0.008349578827619553,
-0.04016228765249252,
0.044569410383701324,
-0.021077536046504974,
-0.000007578482382086804,
-0.008469337597489357,
-0.02130747400224209,
-0.05043279752135277,
0.0023999649565666914,
0.0245074275881052,
-0.05096931755542755,
-0.07097381353378296,
-0.0027161280158907175,
0.01226329430937767,
-0.020809277892112732,
-0.003575995797291398,
-0.03868686035275459,
-0.04859330132603645,
0.03485457971692085,
-0.009585488587617874,
-0.036119233816862106,
-0.004004731774330139,
0.007755575235933065,
0.006409487221390009,
-0.013489623554050922,
-0.012215390801429749,
-0.0332450233399868,
-0.030409136787056923,
0.07526596635580063,
0.04874659329652786,
-0.028052285313606262,
0.035429421812295914,
0.005068189464509487,
-0.07016903907060623,
-0.009877700358629227,
-0.049589693546295166,
0.03412644937634468,
0.012234551832079887,
-0.03343663737177849,
0.049589693546295166,
0.003599947551265359,
0.05836561694741249,
0.029949262738227844,
-0.0015077624702826142,
-0.030332490801811218,
0.0697091594338417,
-0.06775470077991486,
-0.003863416612148285,
0.01367165707051754,
-0.03786291927099228,
-0.021824831143021584,
0.010203443467617035,
-0.04671548679471016,
-0.019420076161623,
-0.016584189608693123,
0.03604258596897125,
-0.04468437656760216,
-0.005772370845079422,
-0.010912415571510792,
0.06813792884349823,
0.04775020107626915,
-0.04031557962298393,
0.0810910314321518,
0.0053220777772367,
-0.02144160307943821,
0.060511693358421326,
0.012675263918936253,
-0.017044061794877052,
-0.025906208902597427,
-0.0077364142052829266,
-0.011841743253171444,
-0.001492193783633411,
-0.03343663737177849,
-0.02100089192390442,
-0.010069314390420914,
-0.06511043012142181,
-0.009029808454215527,
-0.07016903907060623,
-0.02234218828380108,
0.005609498824924231,
0.0245074275881052,
-0.05081602558493614,
-0.05863387510180473,
-0.019582947716116905,
-0.03238276019692421,
-0.028914548456668854,
-0.04184849187731743,
0.0525788739323616,
0.039395831525325775,
0.010749544017016888,
-0.024622395634651184,
-0.03416477143764496,
0.012598618865013123,
-0.019563786685466766,
0.041618555784225464,
-0.018921880051493645,
-0.07909824699163437,
-0.0085651446133852,
-0.000663463375531137,
0.030945656821131706,
-0.04790349304676056,
0.024066714569926262,
-0.04004732146859169,
0.017858421429991722,
0.007904076017439365,
-0.0505477637052536,
-0.034797098487615585,
-0.06890438497066498,
-0.02588704787194729,
-0.016306348145008087,
-0.02897203154861927,
0.01745603233575821,
-0.037767112255096436,
-0.06507210433483124,
-0.028148092329502106,
0.022418834269046783,
0.053460296243429184,
-0.0883723646402359,
-0.010318412445485592,
0.030064232647418976,
-0.010059733875095844,
0.0011904017301276326,
-0.020751792937517166,
0.0352761335670948,
-0.024488264694809914,
-0.02126915007829666,
-0.0743078961968422,
0.006002307403832674,
0.06373080611228943,
0.017484774813055992,
0.014246498234570026,
-0.014399790205061436,
0.02835886739194393,
0.07380969822406769,
-0.0006472959648817778,
-0.017034482210874557,
-0.00020568561740219593,
-0.014936309307813644,
-0.04985795542597771,
0.0573308989405632,
0.02736247517168522,
0.03473961353302002,
0.041886813938617706,
-0.0342605784535408,
-0.01738896779716015,
-0.009029808454215527,
-0.014131530188024044,
0.03677072003483772,
-0.0469837449491024,
-0.03343663737177849,
-0.03744136914610863,
0.013901593163609505,
-0.0165362861007452,
-0.0605500154197216,
0.016526704654097557,
0.05441836640238762,
0.030696557834744453,
0.06794631481170654,
-0.05008789151906967,
0.036444976925849915,
-0.05556805059313774,
0.04594903066754341,
0.023166129365563393,
-0.03374322131276131,
-0.04050719365477562,
0.0851532444357872,
0.0019820069428533316,
0.028646288439631462,
-0.0352761335670948,
-0.0286654494702816,
-0.037326402962207794,
0.0034203093964606524,
-0.04112035781145096,
0.0217098630964756,
-0.03387735038995743,
0.042346686124801636,
0.02027275785803795,
-0.01875900849699974,
0.0064238584600389
] |
724,955 | tf_keras.src.engine.base_layer | _instrument_layer_creation | null | def _instrument_layer_creation(self):
self._instrumented_keras_api = False
self._instrumented_keras_layer_class = False
self._instrumented_keras_model_class = False
if not getattr(self, "_disable_keras_instrumentation", False):
self._instrumented_keras_api = True
if getattr(self, "_is_model_for_instrumentation", False):
self._instrumented_keras_model_class = True
else:
self._instrumented_keras_layer_class = True
| (self) | [
0.015182103961706161,
-0.047834258526563644,
0.02311762236058712,
0.06273568421602249,
-0.014884415082633495,
-0.00728911068290472,
-0.07974644750356674,
0.05137249454855919,
-0.034974124282598495,
-0.002819533459842205,
0.0005592287634499371,
0.016381362453103065,
0.015777479857206345,
-0.04572492465376854,
-0.008194933645427227,
-0.012196714989840984,
-0.04171038419008255,
-0.026894012466073036,
0.006697986740618944,
-0.10846060514450073,
0.013242877088487148,
0.04776621609926224,
-0.010070370510220528,
0.04133614897727966,
0.012468887493014336,
0.0813794806599617,
-0.052767377346754074,
0.012307285331189632,
0.03388543426990509,
-0.0030002729035913944,
-0.07362256944179535,
-0.022896483540534973,
-0.010044854134321213,
0.01399985607713461,
0.0515085831284523,
0.008373546414077282,
-0.0009866240434348583,
0.02946263737976551,
-0.06334806978702545,
-0.018575750291347504,
-0.012179704383015633,
0.0030385470017790794,
0.019035041332244873,
0.024359408766031265,
-0.060592327266931534,
0.01620274968445301,
0.004580147098749876,
-0.000008139914825733285,
0.01951134204864502,
-0.07130910456180573,
0.010325531475245953,
0.01465476956218481,
0.0037189775612205267,
0.11900728195905685,
0.003942243754863739,
-0.08532597124576569,
0.04912707582116127,
0.00014791387366130948,
0.0019775009714066982,
-0.029632743448019028,
-0.03776388615369797,
0.03094257228076458,
0.013982844538986683,
-0.02184181660413742,
-0.025414075702428818,
0.0006432193913497031,
-0.08403315395116806,
0.0463373102247715,
0.029853884130716324,
0.05705409124493599,
0.020787149667739868,
-0.06372230499982834,
0.006753271911293268,
0.017402008175849915,
-0.0417444072663784,
-0.03215033560991287,
-0.006455583497881889,
-0.07049258798360825,
0.00576664786785841,
-0.05531899258494377,
-0.024155279621481895,
0.01600712537765503,
-0.040009308606386185,
0.031214745715260506,
0.05161064490675926,
-0.027710529044270515,
-0.00388057972304523,
-0.007386922836303711,
-0.01859276182949543,
-0.027149172499775887,
-0.020719105377793312,
0.061953186988830566,
0.031163712963461876,
0.027098141610622406,
0.015301179140806198,
-0.008820079267024994,
-0.03204827383160591,
-0.014663275331258774,
0.02570325881242752,
0.006561900954693556,
0.006766030099242926,
-0.0391247496008873,
-0.024512505158782005,
0.019443299621343613,
-0.0021189027465879917,
-0.03403853252530098,
0.0028067755047231913,
-0.016440900042653084,
-0.04460221156477928,
0.030874529853463173,
0.032184358686208725,
-0.02332175150513649,
-0.019834546372294426,
0.011830983683466911,
0.0067192502319812775,
-0.040213435888290405,
0.02250523492693901,
-0.0602521114051342,
-0.03078947588801384,
-0.010402079671621323,
-0.038988661020994186,
-0.0187968909740448,
-0.029904916882514954,
0.003283076686784625,
0.0120946504175663,
-0.01539473794400692,
0.04273102805018425,
0.06202123314142227,
0.05790462717413902,
-0.06249753385782242,
0.012417854741215706,
-0.0009127336088567972,
-0.04286711663007736,
0.05912940204143524,
0.01285162940621376,
-0.0028982083313167095,
0.018524717539548874,
0.028867259621620178,
0.0009940663585439324,
0.03922681137919426,
-0.02112736366689205,
-0.035586509853601456,
-0.010419090278446674,
0.039601050317287445,
0.012826113030314445,
0.016908695921301842,
-0.07130910456180573,
0.001213079784065485,
0.0008994439267553389,
-0.05310759320855141,
0.04126810282468796,
-0.02122942917048931,
-0.02083818055689335,
-0.0023411058355122805,
-0.03841029480099678,
0.009900262579321861,
-0.03257560729980469,
0.043105266988277435,
0.04780023545026779,
-0.006255707237869501,
-0.04313928633928299,
-0.00859043374657631,
0.021314483135938644,
-0.07246583700180054,
0.0046864645555615425,
-0.0023644957691431046,
-0.02301555871963501,
-0.003587143961340189,
0.01798037439584732,
0.027098141610622406,
-0.009985316544771194,
-0.00950050912797451,
0.0813794806599617,
0.04909305274486542,
0.0014331565471366048,
0.05552311986684799,
0.03926083445549011,
-0.0008234271081164479,
-0.014535694383084774,
0.016849158331751823,
0.04354754462838173,
0.015624383464455605,
-0.05919744446873665,
0.04079180210828781,
-0.017691191285848618,
-0.026689883321523666,
0.03308592736721039,
-0.03830823302268982,
0.011652370914816856,
0.012324295938014984,
0.07226170599460602,
0.056169528514146805,
0.04892294481396675,
-0.01251991931349039,
0.029683776199817657,
-0.0002929040347225964,
0.021008288487792015,
0.010265993885695934,
-0.023542892187833786,
0.07396278530359268,
-0.039090726524591446,
0.03677726536989212,
0.011346177197992802,
0.017844287678599358,
0.010776316747069359,
0.015964599326252937,
-0.011882016435265541,
0.0075697884894907475,
-0.0587211437523365,
0.007250836584717035,
0.0058474489487707615,
-0.018065426498651505,
0.051236409693956375,
0.10254086554050446,
0.03994126617908478,
0.0057921637780964375,
0.049297183752059937,
0.08913638442754745,
-0.0027918911073356867,
-0.018677813932299614,
-0.024920763447880745,
0.017640158534049988,
-0.09457982331514359,
-0.0347529835999012,
0.007837708108127117,
0.007744148373603821,
0.023406805470585823,
0.00005594945469056256,
-0.001970058772712946,
-0.050113700330257416,
0.0007011622656136751,
-0.021144375205039978,
-0.06634196639060974,
0.02097426727414131,
-0.013523554429411888,
-0.011490768752992153,
0.015326694585382938,
-0.03422565013170242,
0.029496658593416214,
-0.10873278230428696,
0.05684996023774147,
0.021654697135090828,
0.03521227464079857,
-0.045895032584667206,
-0.04147223383188248,
-0.039635069668293,
-0.03283076733350754,
0.02306659147143364,
-0.0012577330926433206,
-0.010963435284793377,
0.037015415728092194,
-0.0031299798283725977,
0.001192879513837397,
0.025056850165128708,
-0.037525735795497894,
-0.10553475469350815,
-0.003606281243264675,
-0.03260962665081024,
0.021858826279640198,
-0.0019849431701004505,
-0.04137016832828522,
0.06069439277052879,
-0.013829748146235943,
0.03158898279070854,
0.0432753749191761,
-0.020514976233243942,
0.029751820489764214,
-0.010061864741146564,
0.010104391723871231,
0.007642084266990423,
0.009764176793396473,
-0.006225938443094492,
-0.007752654142677784,
0.0028046490624547005,
-0.011822477914392948,
-0.039090726524591446,
0.006498110480606556,
0.025567172095179558,
-0.029445625841617584,
0.05620355159044266,
0.06015004962682724,
-0.014382597990334034,
0.000705414975527674,
0.011218596249818802,
-0.03133381903171539,
-0.04137016832828522,
0.013310919515788555,
0.04977348446846008,
0.029190463945269585,
-0.059367552399635315,
-0.018575750291347504,
0.08559814840555191,
0.050930216908454895,
-0.010359552688896656,
0.013421489857137203,
-0.03779790922999382,
-0.04436406120657921,
0.007535766810178757,
0.013549070805311203,
0.0023326005320996046,
-0.007437955122441053,
0.026179559528827667,
0.009577058255672455,
0.044432107359170914,
0.0060813468880951405,
0.042594943195581436,
0.010129908099770546,
-0.017793254926800728,
-0.028884271159768105,
0.014195479452610016,
-0.012996220961213112,
0.05259726941585541,
0.07450713217258453,
0.006914874073117971,
0.049807507544755936,
-0.05399215221405029,
0.015777479857206345,
0.023355774581432343,
-0.004860824905335903,
0.09628090262413025,
0.0015692426823079586,
0.026791946962475777,
-0.066444031894207,
-0.00014259801537264138,
0.04667752608656883,
-0.02493777498602867,
0.09743763506412506,
-0.01757211610674858,
-0.01889895461499691,
-0.015003490261733532,
-0.09736958891153336,
-0.04586100950837135,
0.008854100480675697,
-0.0011322787031531334,
-0.012247747741639614,
-0.019035041332244873,
-0.025226958096027374,
-0.030347196385264397,
-0.03448081016540527,
0.015437264926731586,
0.004746002145111561,
0.0008834963664412498,
-0.06293981522321701,
0.02352588064968586,
0.010708273388445377,
-0.014969469048082829,
0.0453166663646698,
0.01976650394499302,
-0.012001091614365578,
0.019902588799595833,
-0.03915876895189285,
0.01570093259215355,
-0.009168799966573715,
0.12070835381746292,
0.04977348446846008,
-0.0025388558860868216,
-0.04208461940288544,
0.006732008419930935,
-0.011363187804818153,
-0.010461617261171341,
0.030143067240715027,
0.04045158624649048,
0.02063405141234398,
-0.0003540364559739828,
0.05178075283765793,
-0.028084764257073402,
0.04943326860666275,
-0.05337976664304733,
-0.005354136694222689,
-0.050215765833854675,
-0.053924109786748886,
-0.04797034338116646,
-0.0013683029683306813,
0.011694897897541523,
-0.0131323067471385,
-0.010886886157095432,
0.022386159747838974,
-0.0021518610883504152,
0.03779790922999382,
0.07967840135097504,
0.0047630127519369125,
0.04242483526468277,
0.0005757079343311489,
0.021807795390486717,
0.04933120310306549,
-0.015309683978557587,
-0.008564917370676994,
-0.021620675921440125,
0.05127043277025223,
-0.03393646702170372,
0.024104246869683266,
-0.018167492002248764,
-0.050011634826660156,
0.02184181660413742,
0.039294857531785965,
-0.00858192890882492,
-0.05076010897755623,
0.04215266555547714,
-0.035994768142700195,
0.02864612080156803,
-0.036403026431798935,
-0.03858040273189545,
0.029989970847964287,
-0.01003634836524725,
-0.0005371678853407502,
0.024512505158782005,
0.029581712558865547,
0.03327304869890213,
0.023798054084181786,
-0.026553796604275703,
-0.05259726941585541,
-0.015573350712656975,
-0.04262896627187729,
-0.02066807448863983,
0.025975430384278297,
0.0023411058355122805,
0.051032282412052155,
0.02925850823521614,
-0.014714307151734829,
0.03339212387800217,
0.02682596817612648,
0.04875284060835838,
0.014790856279432774,
0.01718086749315262,
0.009874746203422546,
0.039805177599191666,
-0.007527261506766081,
0.04705176129937172,
0.009577058255672455,
0.009747165255248547,
-0.03138485178351402,
0.03725356608629227,
0.01655997522175312,
0.003516974626109004,
0.02946263737976551,
-0.020157750695943832,
0.05208694934844971,
-0.01884792186319828,
-0.026383688673377037,
0.012715543620288372,
-0.01379572693258524,
-0.028731174767017365,
-0.016270792111754417,
0.004018791951239109,
-0.03221837803721428,
0.0208722036331892,
-0.03830823302268982,
0.06777086853981018,
0.056781917810440063,
-0.007199804298579693,
0.06310991942882538,
-0.01641538366675377,
0.03616487607359886,
-0.014714307151734829,
0.0090157026425004,
-0.03408956527709961,
0.003121474524959922,
-0.023968162015080452,
0.014416619203984737,
-0.020004654303193092,
-0.004933120682835579,
0.028867259621620178,
-0.0771608054637909,
-0.015403243713080883,
0.015564845874905586,
0.06004798412322998,
0.04439808428287506,
0.004035803023725748,
-0.006553395185619593,
0.03494010120630264,
0.09342309832572937,
-0.0018711836310103536,
0.038886599242687225,
-0.013447006233036518,
-0.023253709077835083,
0.009611079469323158,
-0.02342381700873375,
0.04211864247918129,
0.007063718046993017,
-0.016474921256303787,
0.01490993145853281,
-0.009781187400221825,
-0.030959583818912506,
0.00038114734343253076,
0.014272027648985386,
0.02452951669692993,
-0.01519060879945755,
-0.011618349701166153,
0.03687932714819908,
-0.01112503744661808,
-0.07865775376558304,
-0.002553740283474326,
0.022165020927786827,
-0.0042930906638503075,
-0.020242804661393166,
-0.01798037439584732,
0.014110425487160683,
-0.005898481234908104,
0.03313696011900902,
0.021552633494138718,
0.02774455025792122,
-0.025056850165128708,
-0.01333643589168787,
-0.029241496697068214,
0.05460454151034355,
0.01777624525129795,
-0.04708578437566757,
0.007165782619267702,
-0.03892061859369278,
0.057088110595941544,
0.022437192499637604,
0.03349418565630913,
-0.006247201468795538,
0.043309394270181656,
0.03158898279070854,
-0.0027408588211983442,
-0.03240549936890602,
-0.011865004897117615,
-0.004137867596000433,
-0.005889975931495428,
0.05229107663035393,
0.05868712440133095,
0.04994359239935875,
-0.04892294481396675,
0.03977115824818611,
0.011303650215268135,
-0.01605815812945366,
0.03994126617908478,
0.026553796604275703,
0.03148691728711128,
0.010402079671621323,
-0.03058534674346447,
-0.027149172499775887,
0.018167492002248764,
0.01616022177040577,
-0.03562053292989731,
0.02961573377251625,
-0.026094505563378334,
-0.057428326457738876,
-0.07049258798360825,
0.040655717253685,
-0.028135797008872032,
0.013047252781689167,
-0.06314393877983093,
-0.01976650394499302,
0.006970158778131008,
-0.017002254724502563,
0.021671708673238754,
-0.07443908601999283,
-0.03490608185529709,
0.03514423221349716,
0.030449260026216507,
-0.023389795795083046,
-0.03735562786459923,
0.06501512229442596,
-0.00483956141397357,
0.05912940204143524,
0.03160599246621132,
-0.006336508318781853,
0.0865507498383522,
-0.03728758543729782,
-0.0022751891519874334,
-0.0009276180062443018,
-0.021365514025092125,
-0.03585868328809738,
-0.0025367296766489744,
-0.019749492406845093,
0.03369831666350365,
-0.040519632399082184,
-0.03728758543729782,
0.01782727614045143,
-0.05344780907034874,
0.0280507430434227,
-0.0037997786421328783,
-0.0659337043762207,
0.04780023545026779,
0.010725283995270729,
0.06494708359241486,
0.0018913839012384415,
-0.0566118098795414,
0.016134705394506454,
0.015420254319906235,
-0.061340801417827606,
-0.03742367401719093,
-0.006472594104707241,
-0.10104391723871231,
0.013089779764413834,
-0.015224630013108253,
-0.008671235293149948,
-0.018813900649547577,
-0.040213435888290405,
-0.014348575845360756,
-0.028118787333369255,
-0.04538470879197121,
-0.014731318689882755,
0.04861675202846527,
-0.036709219217300415,
0.011711908504366875,
0.011779951862990856,
0.052018903195858,
-0.034378744661808014,
0.03226941078901291,
0.03164001554250717,
-0.01544577069580555,
-0.0037253564223647118,
-0.015964599326252937,
-0.028339926153421402,
-0.011796962469816208,
-0.038342252373695374,
-0.04126810282468796,
-0.041438210755586624,
0.02851003408432007,
0.011882016435265541,
-0.05055597797036171,
0.05480866879224777,
-0.05688398331403732,
-0.02066807448863983,
0.03352820873260498,
0.07539168745279312,
-0.01630481332540512,
0.029530679807066917,
0.012681521475315094,
-0.01236682292073965,
-0.004095340613275766,
-0.03283076733350754,
-0.03332407772541046,
0.06266763806343079,
-0.05749636888504028,
0.03158898279070854,
-0.016789620742201805,
0.023866096511483192,
0.00950050912797451,
-0.004267574287950993,
-0.06926781684160233,
0.03596074879169464,
-0.03403853252530098,
-0.010546671226620674,
0.04252690076828003,
0.009602573700249195,
-0.01874585822224617,
-0.010495639406144619,
-0.0453166663646698,
0.01656848005950451,
-0.03148691728711128,
-0.014807866886258125,
-0.042594943195581436,
0.006651207339018583,
-0.0509982593357563,
0.02493777498602867,
0.011754435487091541,
-0.06450480222702026,
-0.007420944049954414,
-0.0010897518368437886,
-0.02951366826891899,
-0.02514190413057804,
0.01661951281130314,
-0.06290578842163086,
0.04861675202846527,
0.05800669267773628,
-0.06256557255983353,
-0.050828151404857635,
0.021875837817788124,
-0.009951294399797916,
0.04858273267745972,
0.0771608054637909,
0.01661100797355175,
-0.04140419140458107,
-0.04177842661738396,
-0.01140571478754282,
-0.003814663039520383,
-0.034378744661808014,
-0.005396663676947355,
0.01524164155125618,
0.012264758348464966,
-0.0308915413916111,
-0.01645790971815586,
-0.010623219422996044,
-0.01625378057360649,
0.012707037851214409,
-0.015199114568531513,
-0.05460454151034355,
0.007816444151103497,
-0.008930648677051067,
0.008271481841802597,
0.013506543822586536,
0.018966997042298317,
-0.035586509853601456,
-0.040315501391887665,
0.04541872814297676,
-0.013846758753061295,
-0.031520940363407135,
-0.006302486639469862,
0.025175925344228745,
0.03830823302268982,
-0.052018903195858,
-0.093695268034935,
-0.05137249454855919,
-0.05929950997233391,
0.04558883607387543,
-0.027863625437021255,
0.029190463945269585,
0.005468959454447031,
-0.04120006039738655,
-0.003516974626109004,
0.016857663169503212,
0.05303955078125,
-0.061953186988830566,
-0.03388543426990509,
0.05953766033053398,
-0.09015703201293945,
-0.00670649204403162,
0.013234371319413185,
0.01864379271864891,
-0.03211631625890732,
0.0027918911073356867,
-0.040621694177389145,
-0.05531899258494377,
-0.02992192655801773,
0.004380270838737488,
0.01671307161450386,
0.0319121852517128,
0.06824716925621033,
-0.010546671226620674,
0.017044782638549805,
-0.055659208446741104,
0.012809102423489094,
0.00485231913626194,
-0.030976593494415283,
0.04208461940288544,
0.013583092018961906,
0.014101920649409294,
0.01894998736679554,
-0.05756441131234169,
0.03363027423620224,
0.0014023245312273502,
-0.005107480566948652,
-0.032184358686208725,
-0.0071785408072173595,
0.025226958096027374,
-0.029326550662517548,
0.013566081412136555,
-0.03148691728711128,
-0.02082117088139057,
0.04943326860666275,
-0.04007735103368759,
0.03704943507909775,
0.07369061559438705,
0.02173975110054016,
0.0324225090444088,
-0.0421866849064827,
0.014646264724433422,
0.015301179140806198,
-0.017589125782251358,
-0.00512023875489831,
0.06824716925621033,
-0.0002057238743873313,
-0.009806702844798565,
-0.0009265548433177173,
0.021450567990541458,
-0.09859436750411987,
0.018813900649547577,
-0.0695059671998024,
0.03932887688279152,
-0.025686247274279594,
0.005005415994673967,
0.05940157547593117,
0.02718319557607174,
0.015939082950353622
] |
724,962 | tf_keras.src.engine.base_layer | _maybe_create_attribute | Create attribute (with the default value) if it hasn't been created.
This is useful for fields that is used for tracking purpose,
_trainable_weights, or _layers. Note that user could create a layer
subclass and assign an internal field before invoking the
Layer.__init__(), the __setattr__() need to create the tracking fields
and __init__() need to not override them.
Args:
name: String, the name of the attribute.
default_value: Object, the default value of the attribute.
| @keras_export("keras.layers.Layer")
class Layer(tf.Module, version_utils.LayerVersionSelector):
"""This is the class from which all layers inherit.
A layer is a callable object that takes as input one or more tensors and
that outputs one or more tensors. It involves *computation*, defined
in the `call()` method, and a *state* (weight variables). State can be
created in various places, at the convenience of the subclass implementer:
* in `__init__()`;
* in the optional `build()` method, which is invoked by the first
`__call__()` to the layer, and supplies the shape(s) of the input(s),
which may not have been known at initialization time;
* in the first invocation of `call()`, with some caveats discussed
below.
Layers are recursively composable: If you assign a Layer instance as an
attribute of another Layer, the outer layer will start tracking the weights
created by the inner layer. Nested layers should be instantiated in the
`__init__()` method.
Users will just instantiate a layer and then treat it as a callable.
Args:
trainable: Boolean, whether the layer's variables should be trainable.
name: String name of the layer.
dtype: The dtype of the layer's computations and weights. Can also be a
`tf.keras.mixed_precision.Policy`, which allows the computation and
weight dtype to differ. Default of `None` means to use
`tf.keras.mixed_precision.global_policy()`, which is a float32 policy
unless set to different value.
dynamic: Set this to `True` if your layer should only be run eagerly, and
should not be used to generate a static computation graph.
This would be the case for a Tree-RNN or a recursive network,
for example, or generally for any layer that manipulates tensors
using Python control flow. If `False`, we assume that the layer can
safely be used to generate a static computation graph.
Attributes:
name: The name of the layer (string).
dtype: The dtype of the layer's weights.
variable_dtype: Alias of `dtype`.
compute_dtype: The dtype of the layer's computations. Layers automatically
cast inputs to this dtype which causes the computations and output to
also be in this dtype. When mixed precision is used with a
`tf.keras.mixed_precision.Policy`, this will be different than
`variable_dtype`.
dtype_policy: The layer's dtype policy. See the
`tf.keras.mixed_precision.Policy` documentation for details.
trainable_weights: List of variables to be included in backprop.
non_trainable_weights: List of variables that should not be
included in backprop.
weights: The concatenation of the lists trainable_weights and
non_trainable_weights (in this order).
trainable: Whether the layer should be trained (boolean), i.e. whether
its potentially-trainable weights should be returned as part of
`layer.trainable_weights`.
input_spec: Optional (list of) `InputSpec` object(s) specifying the
constraints on inputs that can be accepted by the layer.
We recommend that descendants of `Layer` implement the following methods:
* `__init__()`: Defines custom layer attributes, and creates layer weights
that do not depend on input shapes, using `add_weight()`, or other state.
* `build(self, input_shape)`: This method can be used to create weights that
depend on the shape(s) of the input(s), using `add_weight()`, or other
state. `__call__()` will automatically build the layer (if it has not been
built yet) by calling `build()`.
* `call(self, inputs, *args, **kwargs)`: Called in `__call__` after making
sure `build()` has been called. `call()` performs the logic of applying
the layer to the `inputs`. The first invocation may additionally create
state that could not be conveniently created in `build()`; see its
docstring for details.
Two reserved keyword arguments you can optionally use in `call()` are:
- `training` (boolean, whether the call is in inference mode or training
mode). See more details in [the layer/model subclassing guide](
https://www.tensorflow.org/guide/keras/custom_layers_and_models#privileged_training_argument_in_the_call_method)
- `mask` (boolean tensor encoding masked timesteps in the input, used
in RNN layers). See more details in
[the layer/model subclassing guide](
https://www.tensorflow.org/guide/keras/custom_layers_and_models#privileged_mask_argument_in_the_call_method)
A typical signature for this method is `call(self, inputs)`, and user
could optionally add `training` and `mask` if the layer need them. `*args`
and `**kwargs` is only useful for future extension when more input
parameters are planned to be added.
* `get_config(self)`: Returns a dictionary containing the configuration used
to initialize this layer. If the keys differ from the arguments
in `__init__`, then override `from_config(self)` as well.
This method is used when saving
the layer or a model that contains this layer.
Examples:
Here's a basic example: a layer with two variables, `w` and `b`,
that returns `y = w . x + b`.
It shows how to implement `build()` and `call()`.
Variables set as attributes of a layer are tracked as weights
of the layers (in `layer.weights`).
```python
class SimpleDense(Layer):
def __init__(self, units=32):
super(SimpleDense, self).__init__()
self.units = units
def build(self, input_shape): # Create the state of the layer (weights)
w_init = tf.random_normal_initializer()
self.w = tf.Variable(
initial_value=w_init(shape=(input_shape[-1], self.units),
dtype='float32'),
trainable=True)
b_init = tf.zeros_initializer()
self.b = tf.Variable(
initial_value=b_init(shape=(self.units,), dtype='float32'),
trainable=True)
def call(self, inputs): # Defines the computation from inputs to outputs
return tf.matmul(inputs, self.w) + self.b
# Instantiates the layer.
linear_layer = SimpleDense(4)
# This will also call `build(input_shape)` and create the weights.
y = linear_layer(tf.ones((2, 2)))
assert len(linear_layer.weights) == 2
# These weights are trainable, so they're listed in `trainable_weights`:
assert len(linear_layer.trainable_weights) == 2
```
Note that the method `add_weight()` offers a shortcut to create weights:
```python
class SimpleDense(Layer):
def __init__(self, units=32):
super(SimpleDense, self).__init__()
self.units = units
def build(self, input_shape):
self.w = self.add_weight(shape=(input_shape[-1], self.units),
initializer='random_normal',
trainable=True)
self.b = self.add_weight(shape=(self.units,),
initializer='random_normal',
trainable=True)
def call(self, inputs):
return tf.matmul(inputs, self.w) + self.b
```
Besides trainable weights, updated via backpropagation during training,
layers can also have non-trainable weights. These weights are meant to
be updated manually during `call()`. Here's a example layer that computes
the running sum of its inputs:
```python
class ComputeSum(Layer):
def __init__(self, input_dim):
super(ComputeSum, self).__init__()
# Create a non-trainable weight.
self.total = tf.Variable(initial_value=tf.zeros((input_dim,)),
trainable=False)
def call(self, inputs):
self.total.assign_add(tf.reduce_sum(inputs, axis=0))
return self.total
my_sum = ComputeSum(2)
x = tf.ones((2, 2))
y = my_sum(x)
print(y.numpy()) # [2. 2.]
y = my_sum(x | (self, name, default_value) | [
0.005079122260212898,
-0.05363301560282707,
-0.012654628604650497,
0.06669586151838303,
0.020682834088802338,
-0.0011834276374429464,
-0.12116623669862747,
0.01769973337650299,
0.023843875154852867,
-0.007096640300005674,
0.018034677952528,
0.03920946270227432,
0.013879270292818546,
0.022064480930566788,
0.016684431582689285,
0.05417730286717415,
0.02013854868710041,
-0.013083776459097862,
-0.0491112656891346,
-0.033389799296855927,
0.025518598034977913,
-0.039649076759815216,
0.018725501373410225,
0.030521834269165993,
-0.0029831011779606342,
0.048818185925483704,
0.00222947564907372,
0.005489952862262726,
-0.00849398784339428,
-0.027674803510308266,
-0.06246718391776085,
-0.02388574182987213,
-0.02021181769669056,
0.007112341001629829,
0.018285885453224182,
-0.017333386465907097,
0.008179977536201477,
0.05267005041241646,
-0.04214022681117058,
-0.06786816567182541,
0.03142199665307999,
-0.0023040531668812037,
0.023153051733970642,
-0.006761695723980665,
0.0031819744035601616,
0.017260117456316948,
-0.022734370082616806,
0.030438097193837166,
-0.03816276043653488,
-0.04471511393785477,
0.017804402858018875,
-0.012340618297457695,
0.025455795228481293,
0.019301187247037888,
0.001495475647971034,
-0.054344773292541504,
0.04886005446314812,
-0.022818107157945633,
0.020180417224764824,
-0.055852025747299194,
-0.02901458367705345,
-0.04961368069052696,
-0.019625665619969368,
0.00213788915425539,
-0.03916759416460991,
-0.01981407217681408,
-0.07109200954437256,
-0.0518745593726635,
0.019845472648739815,
0.04128193110227585,
0.02895178087055683,
-0.018610363826155663,
0.05166521668434143,
-0.00620171008631587,
-0.03969094529747963,
-0.008012505248188972,
0.029307659715414047,
-0.06552354991436005,
0.012183613143861294,
-0.06715641170740128,
-0.028323760256171227,
-0.0053905160166323185,
0.0028993648011237383,
-0.01796140894293785,
0.038016222417354584,
-0.06213223934173584,
0.002875814214348793,
0.014496824704110622,
-0.017992809414863586,
-0.01975126937031746,
-0.013115177862346172,
0.033536337316036224,
0.0036346730776131153,
0.02679557539522648,
0.025916345417499542,
-0.02922392264008522,
-0.02290184237062931,
-0.04835763946175575,
-0.028512166813015938,
-0.003608505707234144,
0.01138811931014061,
0.018139347434043884,
-0.03573441132903099,
0.03542039915919304,
-0.009074907749891281,
-0.03724166005849838,
-0.06062498688697815,
-0.015093444846570492,
-0.07414837926626205,
-0.0008465203572995961,
-0.008043905720114708,
0.00290459836833179,
-0.004984918981790543,
-0.0030197356827557087,
-0.009090607985854149,
0.03533666580915451,
-0.015093444846570492,
-0.041575007140636444,
-0.022755304351449013,
0.030626503750681877,
0.036634575575590134,
0.04417083039879799,
-0.019719868898391724,
-0.012989573180675507,
-0.008938835933804512,
0.024304423481225967,
0.027360793203115463,
0.02415788546204567,
0.06648652255535126,
-0.048943791538476944,
0.022127283737063408,
-0.005267528351396322,
-0.0013751048827543855,
0.0705895945429802,
0.013910671696066856,
0.025686070322990417,
0.021771404892206192,
0.0333060622215271,
-0.0303962305188179,
0.0647699311375618,
0.08608078211545944,
-0.009127242490649223,
0.0282400231808424,
0.057359278202056885,
0.007415884640067816,
-0.03351540118455887,
-0.0009688536520116031,
-0.01612967997789383,
-0.00940985232591629,
-0.03673924505710602,
0.0009335274808108807,
-0.027297992259263992,
0.006615157704800367,
0.021834205836057663,
0.014297951012849808,
0.034394633024930954,
-0.01585753820836544,
-0.036174025386571884,
0.004914266522973776,
-0.024660302326083183,
-0.08365243673324585,
-0.005955735221505165,
0.004477268550544977,
-0.044254567474126816,
-0.0018500459846109152,
0.014884104020893574,
0.007646159268915653,
-0.04659917950630188,
0.008933602832257748,
0.047352805733680725,
0.04831577092409134,
-0.02771667204797268,
0.05777795612812042,
0.047687750309705734,
0.01352339144796133,
0.005427150521427393,
0.04718533158302307,
-0.00937845092266798,
-0.023069314658641815,
0.0024846091400831938,
0.07042212039232254,
-0.0021051797084510326,
-0.06343015283346176,
-0.0026952580083161592,
-0.015187648124992847,
0.023655468598008156,
-0.016673965379595757,
-0.0018134114798158407,
0.03385034576058388,
0.005521353799849749,
0.003773361211642623,
0.017521793022751808,
0.02817722223699093,
-0.0036713078152388334,
-0.03747193515300751,
-0.016496025025844574,
0.026230355724692345,
0.049655549228191376,
0.05941081419587135,
-0.009294714778661728,
-0.009734329767525196,
0.011032240465283394,
0.046557310968637466,
0.034666772931814194,
-0.059201471507549286,
-0.03542039915919304,
0.0042443773709237576,
0.0007850265828892589,
-0.04312412813305855,
-0.03588094934821129,
-0.039000120013952255,
0.012005673721432686,
0.06698893755674362,
0.09705021977424622,
0.05212576687335968,
-0.08235452324151993,
-0.058154769241809845,
0.03835116699337959,
0.04438016936182976,
-0.009556390345096588,
0.0333060622215271,
0.035043586045503616,
0.023446127772331238,
-0.011984739452600479,
0.04521753266453743,
-0.04165874421596527,
0.03751380369067192,
-0.005238743964582682,
0.018087012693285942,
-0.041575007140636444,
0.0018408873584121466,
-0.08172649890184402,
-0.024513764306902885,
0.00861959159374237,
0.012895369902253151,
-0.030186889693140984,
-0.028449364006519318,
-0.042161162942647934,
0.06020630523562431,
-0.061964765191078186,
-0.020421158522367477,
-0.046180497854948044,
-0.006615157704800367,
-0.026669969782233238,
-0.052293237298727036,
0.01981407217681408,
0.039921220391988754,
0.0899326503276825,
-0.03280364349484444,
-0.015606328845024109,
0.015103911980986595,
0.009797131642699242,
-0.005500419531017542,
0.05949454754590988,
-0.00570976035669446,
-0.024367226287722588,
-0.023739203810691833,
-0.03994215279817581,
0.021153850480914116,
0.02409508265554905,
-0.01513531245291233,
0.02099684439599514,
-0.038393035531044006,
0.050953458994627,
0.03627869486808777,
-0.061169274151325226,
0.0108961695805192,
-0.011241581290960312,
0.005793496500700712,
0.017804402858018875,
0.07670233398675919,
0.07280860096216202,
-0.006683193147182465,
-0.017595062032341957,
-0.03738820180296898,
-0.04835763946175575,
0.03711605817079544,
0.0087504293769598,
-0.024262554943561554,
-0.003815229283645749,
-0.0023773221764713526,
-0.052544448524713516,
-0.06954289227724075,
0.02541392855346203,
-0.02916112169623375,
-0.015606328845024109,
0.006541888229548931,
-0.01968846656382084,
-0.018076546490192413,
-0.017615996301174164,
0.05581015720963478,
-0.010048340074717999,
0.08926276117563248,
0.030584637075662613,
0.027235189452767372,
-0.029537934809923172,
-0.055642686784267426,
0.001717899926006794,
0.030228758230805397,
-0.042161162942647934,
0.02428348921239376,
0.04785522073507309,
0.06933354586362839,
-0.002742359647527337,
0.0004935854813084006,
-0.051832690834999084,
0.030124086886644363,
0.006505253724753857,
-0.028072550892829895,
0.03357820585370064,
0.02685837633907795,
-0.017029844224452972,
0.013073309324681759,
-0.024848708882927895,
0.03244776651263237,
-0.07707914710044861,
0.023194918408989906,
-0.014727098867297173,
0.03784874826669693,
0.05534960702061653,
0.02198074385523796,
0.030647438019514084,
-0.025434860959649086,
0.003642523428425193,
-0.017490392550826073,
-0.06192289665341377,
0.10081835091114044,
-0.021478326991200447,
0.006557588931173086,
0.037220727652311325,
-0.016171548515558243,
-0.024053214117884636,
0.04555247724056244,
0.009451719932258129,
-0.07050585746765137,
-0.01519811525940895,
0.03133826330304146,
0.04324973374605179,
-0.010618792846798897,
-0.010315249674022198,
0.029663538560271263,
0.07134322077035904,
-0.0601644366979599,
0.02092357538640499,
-0.04521753266453743,
-0.0006888608331792057,
0.03745100274682045,
0.03278271108865738,
0.003011885331943631,
0.032091885805130005,
0.018851105123758316,
-0.007065239362418652,
-0.04429643601179123,
0.0325315035879612,
0.024639368057250977,
0.02784227579832077,
-0.023467062041163445,
-0.012340618297457695,
0.0305427685379982,
-0.06267652660608292,
0.032552435994148254,
0.016098279505968094,
0.006923934444785118,
0.026837442070245743,
0.08574584126472473,
-0.02158299833536148,
0.009074907749891281,
-0.027423596009612083,
0.01247668918222189,
-0.004492968786507845,
-0.004380448255687952,
-0.09127242863178253,
0.006808797363191843,
0.012926771305501461,
-0.014004874974489212,
0.03523199260234833,
0.0070390719920396805,
0.006840198300778866,
0.053214337676763535,
0.02514178492128849,
0.03527386114001274,
0.028407495468854904,
0.012162678875029087,
0.03717885911464691,
0.06950102001428604,
-0.0007457752944901586,
-0.023341458290815353,
-0.04936247318983078,
0.030584637075662613,
-0.03615309298038483,
0.01619248278439045,
0.015145779587328434,
-0.005981902591884136,
0.024367226287722588,
-0.041491273790597916,
-0.014475890435278416,
0.04500818997621536,
0.0663190484046936,
-0.05325620621442795,
-0.03280364349484444,
-0.03904198855161667,
-0.02639782801270485,
0.049194999039173126,
0.011136910878121853,
0.01894530840218067,
-0.027172386646270752,
0.027088651433587074,
0.04994862526655197,
-0.057233672589063644,
0.047017861157655716,
-0.02434629201889038,
0.002594512887299061,
-0.057233672589063644,
0.03493891656398773,
-0.002993568079546094,
0.021279454231262207,
0.017165914177894592,
-0.013847868889570236,
-0.0005249865353107452,
-0.015449323691427708,
0.019269786775112152,
0.04350094124674797,
0.058071035891771317,
0.05514026805758476,
0.02394854463636875,
0.03745100274682045,
-0.005767328664660454,
0.07172002643346786,
0.001583136967383325,
0.019971076399087906,
-0.01500970870256424,
-0.05811290070414543,
-0.017689265310764313,
-0.011346250772476196,
0.009289481677114964,
-0.04890192300081253,
0.05145587772130966,
-0.01816028170287609,
-0.03378754481673241,
0.008609125390648842,
-0.017678799107670784,
-0.005819663871079683,
0.04257984086871147,
0.000005846812655363465,
-0.03759754076600075,
-0.016014542430639267,
0.0029124487191438675,
0.06179729476571083,
-0.03213375434279442,
-0.025099916383624077,
0.08181023597717285,
-0.006871599704027176,
0.07142695039510727,
-0.00343841640278697,
-0.034122489392757416,
-0.011231114156544209,
-0.01736478880047798,
-0.047938957810401917,
-0.031024251133203506,
-0.04475698247551918,
0.018987176939845085,
0.05601949989795685,
-0.043207865208387375,
-0.017019376158714294,
-0.021603932604193687,
-0.014496824704110622,
0.0687473937869072,
-0.006280212663114071,
-0.032426830381155014,
0.015616795979440212,
0.0770372748374939,
-0.015323719009757042,
0.0022203167900443077,
-0.015491191297769547,
-0.02738172747194767,
0.027088651433587074,
0.010540290735661983,
-0.005950501654297113,
-0.03324326127767563,
-0.05534960702061653,
0.013471056707203388,
-0.03749287128448486,
-0.08235452324151993,
0.01697750948369503,
0.010781032033264637,
0.04760401323437691,
0.016297152265906334,
0.034080620855093,
0.058071035891771317,
0.003943450283259153,
-0.06192289665341377,
0.023508930578827858,
0.06895673274993896,
0.00562602374702692,
-0.07218057662248611,
-0.029831010848283768,
0.014214214868843555,
-0.021687667816877365,
0.04739467427134514,
0.007201310712844133,
-0.004880248568952084,
0.01086476817727089,
-0.011859134770929813,
0.03165227174758911,
0.03362007066607475,
0.028449364006519318,
-0.04530126973986626,
0.0460548922419548,
-0.002432274166494608,
-0.013837401755154133,
-0.028993649408221245,
0.019102314487099648,
0.03548320382833481,
0.025518598034977913,
0.011325317434966564,
-0.017877671867609024,
0.011335783638060093,
0.053926095366477966,
-0.019123248755931854,
-0.04609676077961922,
0.023927610367536545,
0.05099532753229141,
0.002852263394743204,
-0.005128840450197458,
0.01467476412653923,
0.04559434577822685,
-0.024450961500406265,
-0.03586001321673393,
0.06560728698968887,
0.03833023086190224,
0.018474292010068893,
0.013251248747110367,
-0.022001678124070168,
0.05317246913909912,
-0.025058049708604813,
-0.04337533563375473,
0.004608106333762407,
-0.02087124064564705,
-0.13648995757102966,
-0.020452558994293213,
0.020557230338454247,
0.040046822279691696,
0.03165227174758911,
-0.05174895375967026,
-0.024974312633275986,
0.05292126163840294,
0.03673924505710602,
-0.016108745709061623,
-0.017343854531645775,
-0.02434629201889038,
-0.04345907270908356,
0.04530126973986626,
-0.019008111208677292,
-0.00914817675948143,
0.08181023597717285,
-0.025518598034977913,
-0.008703328669071198,
0.009142942726612091,
-0.0647699311375618,
0.027632936835289,
-0.03931413218379021,
0.025958212092518806,
0.02679557539522648,
-0.019719868898391724,
0.015616795979440212,
0.01711357943713665,
-0.03403875231742859,
-0.01993967592716217,
-0.04588742181658745,
-0.01125204749405384,
-0.03887451812624931,
0.015365587547421455,
0.03586001321673393,
-0.0032055252231657505,
-0.033410731703042984,
0.042872920632362366,
0.012623228132724762,
0.020766571164131165,
-0.0016838820884004235,
-0.023739203810691833,
0.01247668918222189,
-0.028449364006519318,
0.0020907875150442123,
0.0011055790819227695,
0.01677863486111164,
-0.017218250781297684,
-0.01565866358578205,
0.03443650156259537,
-0.04747840762138367,
-0.0018945308402180672,
0.010351884178817272,
0.00679833022877574,
-0.013219848275184631,
-0.022797172889113426,
-0.009839000180363655,
0.007080940064042807,
-0.0712176114320755,
0.03845583647489548,
0.07088267058134079,
0.034666772931814194,
-0.07984244078397751,
-0.04576181620359421,
0.012330151163041592,
-0.0064633856527507305,
-0.027130519971251488,
-0.009812832809984684,
-0.03858144208788872,
0.03696952015161514,
-0.028281891718506813,
-0.03594375029206276,
-0.03506452217698097,
-0.012937238439917564,
-0.04668291658163071,
-0.06657025218009949,
-0.003948683850467205,
-0.047938957810401917,
-0.03309672325849533,
0.0776652991771698,
0.04731093719601631,
-0.055852025747299194,
0.01916511543095112,
0.004686608910560608,
-0.045719947665929794,
0.006421517580747604,
-0.05007423087954521,
0.012194080278277397,
0.034394633024930954,
-0.031882546842098236,
0.025958212092518806,
0.03558787330985069,
0.022859973832964897,
0.055265873670578,
-0.02265063486993313,
-0.006159842014312744,
0.06920794397592545,
-0.058280374854803085,
0.016349487006664276,
0.015512125566601753,
0.028909912332892418,
-0.010650194250047207,
0.022211018949747086,
-0.01063449401408434,
0.0018932224484160542,
-0.02849123254418373,
0.0013698714319616556,
-0.025288322940468788,
0.03001941740512848,
-0.016161080449819565,
0.08122408390045166,
0.00776652991771698,
-0.09236099570989609,
0.023781072348356247,
0.03357820585370064,
-0.018704567104578018,
0.07125948369503021,
-0.006489553023129702,
0.03378754481673241,
-0.027612002566456795,
0.041240062564611435,
-0.027653871104121208,
-0.028093485161662102,
-0.04500818997621536,
-0.01477943453937769,
0.013282650150358677,
-0.05438664183020592,
-0.004069054499268532,
-0.018924374133348465,
-0.043417204171419144,
0.002059386344626546,
0.018861573189496994,
-0.04214022681117058,
-0.04396148771047592,
-0.00875566340982914,
-0.006997203920036554,
-0.014475890435278416,
-0.014821302145719528,
0.008111941628158092,
-0.0070233712904155254,
0.021897008642554283,
-0.022880908101797104,
0.00914817675948143,
0.042956653982400894,
-0.013418721035122871,
0.057359278202056885,
0.025288322940468788,
-0.028344694525003433,
-0.06368135660886765,
0.006133674643933773,
0.040905117988586426,
-0.035901881754398346,
-0.0018945308402180672,
-0.01013731025159359,
0.007075706496834755,
-0.012811633758246899,
-0.044254567474126816,
-0.0936170369386673,
-0.043794017285108566,
-0.022127283737063408,
-0.03290831670165062,
-0.017343854531645775,
-0.009001638740301132,
-0.005751628428697586,
-0.04224489629268646,
-0.004121389705687761,
0.034645840525627136,
0.07012904435396194,
-0.10994559526443481,
-0.04345907270908356,
0.03144293278455734,
-0.0432915985584259,
0.012686030007898808,
0.023006513714790344,
-0.0010453937575221062,
-0.07038024812936783,
-0.03217562288045883,
-0.01809748075902462,
0.018578963354229927,
0.003702708752825856,
-0.036488037556409836,
0.04509192705154419,
0.012340618297457695,
0.036571770906448364,
0.028554033488035202,
0.006159842014312744,
-0.03454117104411125,
-0.01606687717139721,
0.002097329357638955,
-0.07423211634159088,
0.022880908101797104,
0.013963006436824799,
0.03711605817079544,
0.06870552897453308,
-0.0012122119078412652,
0.011398586444556713,
0.0073321484960615635,
0.0055684554390609264,
0.018997643142938614,
-0.01640182174742222,
-0.023153051733970642,
0.0009184811497107148,
0.02606288343667984,
-0.003726259572431445,
-0.030961448326706886,
-0.007489153649657965,
0.012162678875029087,
0.05363301560282707,
0.03211282193660736,
0.0017597679980099201,
0.035964686423540115,
-0.02744453027844429,
-0.002099946141242981,
-0.0004144286212977022,
-0.035252928733825684,
0.0273189265280962,
0.07498574256896973,
-0.020096680149435997,
-0.035106390714645386,
-0.05099532753229141,
-0.05467971786856651,
-0.10492142289876938,
0.017940474674105644,
-0.07088267058134079,
0.049864888191223145,
-0.016045942902565002,
0.01835915446281433,
0.03205002099275589,
0.006541888229548931,
0.0202641524374485
] |
724,964 | tf_keras.src.engine.training | _maybe_load_initial_counters_from_ckpt | Maybe load initial epoch from ckpt, considering worker recovery.
Refer to tensorflow/python/tf_keras/distribute/worker_training_state.py
for more information.
Args:
steps_per_epoch: The number of step per epoch.
initial_epoch: The original initial_epoch user passes in `fit()`.
mode: The mode for running `model.fit()`.
Returns:
If the training is recovering from previous failure under multi-worker
training setting, return the (epoch, step) the training is supposed to
continue at. Otherwise, return the `initial_epoch, initial_step` the
user passes in.
| def _maybe_load_initial_counters_from_ckpt(
self, steps_per_epoch, initial_epoch
):
"""Maybe load initial epoch from ckpt, considering worker recovery.
Refer to tensorflow/python/tf_keras/distribute/worker_training_state.py
for more information.
Args:
steps_per_epoch: The number of step per epoch.
initial_epoch: The original initial_epoch user passes in `fit()`.
mode: The mode for running `model.fit()`.
Returns:
If the training is recovering from previous failure under multi-worker
training setting, return the (epoch, step) the training is supposed to
continue at. Otherwise, return the `initial_epoch, initial_step` the
user passes in.
"""
initial_step = 0
if self._training_state is not None:
return self._training_state.maybe_load_initial_counters_from_ckpt(
steps_per_epoch, initial_epoch, mode=ModeKeys.TRAIN
)
return (initial_epoch, initial_step)
| (self, steps_per_epoch, initial_epoch) | [
0.004222314804792404,
0.048570416867733,
-0.03911390155553818,
0.07756548374891281,
0.002773481188341975,
0.023567691445350647,
0.07484259456396103,
-0.004898436833173037,
0.04547956958413124,
0.0013418957823887467,
0.03422006592154503,
-0.013669628649950027,
0.0077041140757501125,
0.0003225379332434386,
0.025333886966109276,
-0.010652375407516956,
-0.006627838127315044,
-0.031589169055223465,
-0.007952486164867878,
0.000004559046374197351,
0.03904031217098236,
0.026492953300476074,
-0.005726341623812914,
0.040364958345890045,
-0.0013740920694544911,
0.042793478816747665,
0.022519011050462723,
0.005146808456629515,
-0.0007934087770991027,
0.013062498532235622,
-0.014065182767808437,
0.06704188883304596,
-0.013862806372344494,
0.045405980199575424,
-0.015941767022013664,
-0.011434285901486874,
0.030798058956861496,
0.01480109803378582,
-0.043970946222543716,
-0.020899998024106026,
-0.004843243397772312,
-0.00987966451793909,
-0.0013924898812547326,
-0.006890007760375738,
-0.028553517535328865,
-0.03212270513176918,
-0.006149493157863617,
-0.03576548770070076,
-0.001566119957715273,
-0.005316988565027714,
-0.02292376384139061,
-0.034808799624443054,
0.0317363515496254,
0.04043855145573616,
0.008922974579036236,
-0.0305772852152586,
0.02483714371919632,
-0.04187358543276787,
-0.05236038193106651,
-0.0038014629390090704,
-0.02441399358212948,
0.011875834316015244,
0.023825261741876602,
0.003594486741349101,
0.03554471209645271,
-0.07572569698095322,
0.012942912057042122,
-0.00019461513147689402,
-0.03054048866033554,
0.04411812871694565,
-0.03114761970937252,
-0.018048325553536415,
-0.01270373910665512,
0.00696819880977273,
0.029436616227030754,
-0.01885783113539219,
0.0007129180594347417,
-0.03534233570098877,
0.026511352509260178,
0.032196298241615295,
0.0009946356294676661,
0.041542425751686096,
-0.006650835275650024,
0.0004651215276680887,
0.037145327776670456,
0.0007451143465004861,
0.06704188883304596,
0.01825990155339241,
0.015077066607773304,
-0.006057503633201122,
-0.002932162955403328,
0.049195945262908936,
0.02941821701824665,
-0.02689770795404911,
0.026916105300188065,
0.04003379866480827,
-0.043823760002851486,
0.019924908876419067,
-0.05453133210539818,
-0.06825615465641022,
0.004348800051957369,
-0.012630147859454155,
0.023917250335216522,
-0.014617119915783405,
-0.001261404948309064,
-0.016696080565452576,
0.022666193544864655,
-0.022298237308859825,
0.015656599774956703,
-0.03539752960205078,
-0.027394451200962067,
-0.04739295318722725,
-0.08374717086553574,
0.07156777381896973,
-0.016226934269070625,
0.0014120376436039805,
0.023089345544576645,
0.002738985000178218,
-0.04820245876908302,
-0.011599866673350334,
-0.02152552455663681,
-0.028240753337740898,
-0.05121971294283867,
-0.015766987577080727,
-0.032527461647987366,
-0.01568419672548771,
0.06755703687667847,
0.013991591520607471,
0.0457739382982254,
-0.08131865411996841,
0.11539153754711151,
-0.013531643897294998,
-0.04095369204878807,
-0.023696476593613625,
-0.014157172292470932,
-0.043492600321769714,
0.08058273792266846,
0.04029136896133423,
-0.059461962431669235,
-0.042646296322345734,
0.037936437875032425,
0.028976669535040855,
0.0010607530130073428,
0.04430210590362549,
0.028461527079343796,
0.033925700932741165,
-0.008647006005048752,
0.05662868916988373,
0.026824116706848145,
0.009047159925103188,
0.047981683164834976,
-0.040364958345890045,
0.002853971906006336,
0.019924908876419067,
-0.023402109742164612,
0.0018880829447880387,
-0.0658276304602623,
-0.0016707578906789422,
0.030982038006186485,
-0.06645315885543823,
-0.007897292263805866,
0.007501737680286169,
0.009824470616877079,
-0.018876230344176292,
0.008463026955723763,
0.02722886949777603,
-0.06832974404096603,
-0.051146119832992554,
-0.003215030301362276,
0.022482214495539665,
0.03867235407233238,
0.0466938316822052,
0.0546417199075222,
-0.0378260500729084,
0.03133159875869751,
-0.009079355746507645,
0.0247451551258564,
-0.040622528642416,
0.018085120245814323,
0.054052986204624176,
-0.001485629240050912,
0.039665840566158295,
0.0233469158411026,
0.00879878830164671,
-0.03243546932935715,
0.014709108509123325,
-0.0002485151926521212,
0.013688025996088982,
0.014147973619401455,
-0.013301670551300049,
0.0182139053940773,
0.062552809715271,
-0.010192427784204483,
0.045221999287605286,
-0.01759757660329342,
0.004806447308510542,
0.010587982833385468,
0.06376706808805466,
0.014653915539383888,
0.035747088491916656,
-0.05202921852469444,
0.0588364340364933,
0.031221210956573486,
-0.048312846571207047,
-0.057916540652513504,
0.00686241127550602,
-0.03992341086268425,
0.02432200312614441,
-0.07557851076126099,
0.05261795222759247,
0.007253366056829691,
-0.008187058381736279,
-0.019538553431630135,
0.08801548182964325,
0.017386000603437424,
-0.06715227663516998,
0.04518520459532738,
0.019115403294563293,
0.011167516000568867,
-0.0026814916636794806,
0.023365313187241554,
-0.009686486795544624,
0.023475700989365578,
-0.018315093591809273,
0.04772411286830902,
-0.01633732207119465,
0.007216570433229208,
-0.006591042038053274,
-0.035563111305236816,
0.013136089779436588,
-0.015003475360572338,
-0.033686526119709015,
-0.043124642223119736,
-0.04603150859475136,
0.05221319571137428,
0.02067922241985798,
0.02128635346889496,
-0.033962495625019073,
0.023604486137628555,
0.034955982118844986,
-0.03528714179992676,
-0.017799952998757362,
0.0017454993212595582,
-0.05236038193106651,
0.0018443879671394825,
0.012280588038265705,
0.02456117607653141,
-0.025885824114084244,
-0.05099893733859062,
0.024579573422670364,
0.01727561466395855,
-0.002752783475443721,
-0.008062873035669327,
0.0030080541037023067,
-0.016328122466802597,
-0.04533238708972931,
-0.05552481487393379,
-0.00005458278610603884,
0.042462319135665894,
0.0317547507584095,
0.009686486795544624,
0.07326037436723709,
-0.03778925538063049,
0.01769876480102539,
-0.05990351364016533,
-0.011829840019345284,
-0.007828299887478352,
0.003258725395426154,
0.014975878410041332,
0.04165280982851982,
-0.0014327352400869131,
0.01634651981294155,
0.027523236349225044,
0.011241107247769833,
-0.0031161417718976736,
-0.04893837496638298,
-0.022335032001137733,
0.02899506688117981,
0.01029361691325903,
0.012400174513459206,
0.034624818712472916,
-0.009861266240477562,
-0.045369185507297516,
-0.013209681026637554,
-0.04960069805383682,
-0.04665703698992729,
-0.019501758739352226,
-0.015445024706423283,
0.013844408094882965,
-0.011314699426293373,
-0.015141459181904793,
-0.0009440414723940194,
0.05081495642662048,
-0.022482214495539665,
0.025481071323156357,
-0.0028953670989722013,
-0.021120771765708923,
-0.027394451200962067,
-0.03434884920716286,
0.04286707192659378,
0.009695685468614101,
-0.015481820330023766,
-0.0424991138279438,
-0.008945971727371216,
0.013862806372344494,
0.023659680038690567,
-0.04029136896133423,
-0.0189130250364542,
0.024009238928556442,
-0.03977622836828232,
0.0007658119429834187,
-0.011047929525375366,
0.08109787851572037,
-0.01924418844282627,
-0.0032863221131265163,
-0.03370492532849312,
0.05640791356563568,
0.01582218147814274,
0.0196121446788311,
0.031957127153873444,
-0.011986222118139267,
0.10104118287563324,
-0.02965738996863365,
0.06111777201294899,
-0.03258265554904938,
-0.027431245893239975,
0.04776090756058693,
0.008274449035525322,
-0.00987966451793909,
0.016190139576792717,
-0.09809752553701401,
-0.005905720870941877,
-0.0326930396258831,
0.009612894617021084,
-0.02643776126205921,
0.019832920283079147,
-0.016843263059854507,
-0.0305772852152586,
0.02167270891368389,
-0.05052059143781662,
0.08234893530607224,
-0.0158681757748127,
-0.042940665036439896,
-0.006627838127315044,
0.01909700408577919,
-0.010587982833385468,
0.045553162693977356,
0.006784220226109028,
0.02246381714940071,
-0.021838288754224777,
-0.09375561773777008,
-0.02167270891368389,
-0.04514840990304947,
0.013430455699563026,
0.006227684207260609,
0.0006743974518030882,
0.009493308141827583,
-0.027394451200962067,
0.044338904321193695,
-0.03039330616593361,
0.043970946222543716,
-0.013632833026349545,
-0.022702990099787712,
0.012041416019201279,
-0.023494098335504532,
-0.01563820242881775,
-0.0007531634182669222,
-0.027394451200962067,
-0.012998105958104134,
0.0006036806153133512,
-0.0443756990134716,
-0.01272213738411665,
-0.024781951680779457,
0.000026123560019186698,
0.0024699161294847727,
0.023089345544576645,
-0.06027147173881531,
0.027670418843626976,
-0.052691541612148285,
0.03859876096248627,
0.02259260229766369,
-0.020899998024106026,
-0.03011733666062355,
0.0350295715034008,
-0.032748233526945114,
-0.03605985268950462,
-0.0919894278049469,
-0.026603341102600098,
0.08750034123659134,
0.0013786915224045515,
0.05673907697200775,
0.014497533440589905,
0.004698359873145819,
-0.018416283652186394,
0.06601160764694214,
0.01596936397254467,
0.030172530561685562,
-0.01480109803378582,
0.006531249266117811,
-0.06074981763958931,
0.012970509007573128,
0.029160646721720695,
0.04673062637448311,
0.020863201469182968,
0.004261409863829613,
0.02273978479206562,
0.0284799262881279,
-0.06825615465641022,
-0.05817411094903946,
0.004587972536683083,
0.008780390955507755,
0.03613344579935074,
0.04323503002524376,
-0.007708713877946138,
-0.01774475909769535,
0.00330931949429214,
-0.08632287383079529,
-0.0010406303917989135,
0.01144348457455635,
-0.008458427153527737,
-0.030945241451263428,
0.04007059335708618,
0.04386055842041969,
0.010698369704186916,
0.009447313845157623,
0.05659189447760582,
-0.015058668330311775,
-0.033079396933317184,
-0.007119981572031975,
0.025554662570357323,
-0.027100084349513054,
-0.028976669535040855,
0.026364168152213097,
-0.011314699426293373,
-0.03631742298603058,
0.05986671894788742,
-0.0043166037648916245,
0.05968273803591728,
-0.028645506128668785,
0.009778475388884544,
0.010118836537003517,
0.011958625167608261,
0.05085175484418869,
0.04168960824608803,
0.03442244231700897,
-0.002971258480101824,
-0.067262664437294,
0.017477991059422493,
-0.07443784177303314,
0.056039959192276,
-0.03725571557879448,
-0.05971953272819519,
0.019170595332980156,
-0.015399029478430748,
0.03449603542685509,
0.009198942221701145,
-0.09677287191152573,
0.05813731625676155,
-0.036207038909196854,
0.016916854307055473,
0.04323503002524376,
0.033962495625019073,
-0.005505566950887442,
-0.010735166259109974,
0.05898362025618553,
-0.03585747629404068,
-0.03545272350311279,
0.0746954157948494,
-0.0490119643509388,
-0.003973943181335926,
0.00610349839553237,
0.014341151341795921,
0.052139606326818466,
0.004105028230696917,
-0.03580228239297867,
-0.005468771327286959,
0.01619933731853962,
-0.0011797643965110183,
0.022537408396601677,
-0.022003870457410812,
0.04846002906560898,
0.00947491079568863,
0.0639510452747345,
-0.031957127153873444,
-0.003028751816600561,
-0.015941767022013664,
-0.10729646682739258,
0.049195945262908936,
-0.04058573395013809,
-0.011949426494538784,
-0.07491618394851685,
0.028259150683879852,
-0.01300730463117361,
0.013080895878374577,
0.03109242580831051,
-0.04198397323489189,
0.07344435900449753,
0.049747880548238754,
0.0915478765964508,
0.011406688950955868,
0.030706070363521576,
-0.004063632804900408,
0.053905803710222244,
0.012869320809841156,
-0.0009745129500515759,
0.03190193325281143,
-0.052139606326818466,
0.006986596621572971,
0.03309779614210129,
0.046951401978731155,
0.04511161521077156,
0.008541218005120754,
0.059829920530319214,
0.010679972358047962,
-0.014138774946331978,
0.013614434748888016,
0.060124289244413376,
-0.030466897413134575,
0.022077461704611778,
0.01793793775141239,
-0.010063642635941505,
0.014727506786584854,
0.05780615285038948,
-0.028314344584941864,
-0.0070831854827702045,
0.06549646705389023,
-0.02908705547451973,
-0.0490119643509388,
-0.045221999287605286,
0.027118481695652008,
0.03609665110707283,
-0.010495993308722973,
0.06983836740255356,
0.04702499508857727,
-0.0233469158411026,
-0.0247451551258564,
-0.011314699426293373,
-0.04213115572929382,
-0.012777331285178661,
-0.041579220443964005,
0.002122655976563692,
-0.04724576696753502,
0.05916759744286537,
0.0076949154026806355,
0.055083267390728,
0.02343890443444252,
-0.01876584254205227,
0.07351794838905334,
-0.06008749082684517,
-0.02811196818947792,
-0.018839433789253235,
-0.012381776235997677,
-0.008642406202852726,
-0.06236882880330086,
-0.011572269722819328,
0.0026676934212446213,
0.02586742676794529,
0.02021927572786808,
0.03694295138120651,
-0.014249161817133427,
-0.00856881495565176,
-0.045737143605947495,
0.012096608988940716,
-0.020697619765996933,
0.011213511228561401,
-0.07484259456396103,
-0.04371337592601776,
-0.007055588997900486,
-0.048349641263484955,
0.015987761318683624,
0.03572869300842285,
0.017220420762896538,
-0.028939872980117798,
-0.001898431801237166,
-0.05052059143781662,
-0.009001165628433228,
-0.024763552471995354,
-0.012344980612397194,
0.007193572819232941,
0.020716018974781036,
0.040180981159210205,
-0.02483714371919632,
0.07602006196975708,
-0.02656654641032219,
0.0457739382982254,
0.0242852084338665,
-0.02273978479206562,
0.013347665779292583,
-0.040548939257860184,
0.018931424245238304,
-0.02750483714044094,
0.05732781067490578,
-0.020899998024106026,
-0.010744364932179451,
0.04687780886888504,
0.009240337647497654,
0.0686241090297699,
-0.0019743230659514666,
-0.015720993280410767,
-0.026548147201538086,
-0.03753168508410454,
0.03605985268950462,
-0.03703494369983673,
0.03536073490977287,
0.006011508870869875,
-0.05331707000732422,
-0.01372482255101204,
0.04790809378027916,
0.005933317821472883,
0.024597972631454468,
-0.015987761318683624,
-0.034109678119421005,
0.028130365535616875,
-0.056003160774707794,
0.0034266060683876276,
-0.01492068450897932,
0.02259260229766369,
-0.09184224158525467,
0.012942912057042122,
0.0013775416882708669,
-0.03762367367744446,
0.005749339237809181,
-0.042793478816747665,
0.02097358927130699,
-0.02016408182680607,
-0.009226539172232151,
-0.00045822231913916767,
0.005031821317970753,
0.00624608201906085,
-0.030062144622206688,
0.04787129536271095,
0.06648995727300644,
0.011130720376968384,
-0.033079396933317184,
0.048901576548814774,
0.011351495049893856,
-0.007860496640205383,
-0.00350249744951725,
-0.023181334137916565,
-0.034624818712472916,
-0.0443756990134716,
0.043823760002851486,
-0.02045844867825508,
-0.011139919050037861,
-0.01815871149301529,
-0.10884188860654831,
0.03789964318275452,
0.04032816365361214,
0.07278203219175339,
0.04065932705998421,
-0.02540747821331024,
-0.0009503657347522676,
0.06141214072704315,
-0.003097743960097432,
-0.08897217363119125,
0.03171795234084129,
0.02049524337053299,
-0.004001540131866932,
0.01639251597225666,
-0.09117991477251053,
-0.05534083768725395,
0.005188203416764736,
-0.03381531313061714,
0.03011733666062355,
-0.030503693968057632,
0.011452683247625828,
-0.0032886220142245293,
-0.03521355241537094,
-0.022427022457122803,
0.0013487949036061764,
-0.07631442695856094,
-0.03758687898516655,
0.04205756634473801,
-0.046804219484329224,
0.0228869691491127,
-0.039297882467508316,
-0.031166017055511475,
-0.01045919768512249,
0.043308619409799576,
-0.009898061864078045,
-0.01802992634475231,
0.04117446765303612,
-0.03804682567715645,
0.03114761970937252,
-0.012298986315727234,
0.021691106259822845,
0.008904576301574707,
0.0053951796144247055,
0.053022705018520355,
0.041395239531993866,
0.005712543148547411,
0.10207146406173706,
0.03357613831758499,
0.02058723382651806,
-0.06840333342552185,
-0.05795333907008171,
-0.06777780503034592,
0.018186308443546295,
-0.0002975282841362059,
-0.06078661233186722,
0.034900788217782974,
-0.017073236405849457,
-0.007906490936875343,
-0.04960069805383682,
-0.07458502799272537,
0.019115403294563293,
-0.09566900134086609,
-0.004847842734307051,
-0.05489929020404816,
0.024082832038402557,
0.020513640716671944,
0.005261795129626989,
-0.018453078344464302,
-0.10405843704938889,
-0.06740985065698624,
0.012032216414809227,
-0.0022353429812937975,
-0.029620595276355743,
-0.024708358570933342,
0.03552631661295891,
-0.0331529900431633,
-0.023144539445638657,
0.01871984824538231,
0.0249843280762434,
-0.049379922449588776,
0.05272833630442619,
0.026124997064471245,
-0.06961759924888611,
0.01010963786393404,
-0.006324273068457842,
0.058946821838617325,
0.0024400195106863976,
-0.05158767104148865,
0.04492763429880142,
0.04102728143334389,
0.027486439794301987,
0.01975932903587818,
0.017910340800881386,
0.014810297638177872,
-0.033318568021059036,
0.024248411878943443,
-0.018747445195913315,
-0.012381776235997677,
0.046620238572359085,
0.0018478375859558582,
-0.007745509501546621,
0.01774475909769535,
-0.004394794814288616,
-0.008486024104058743,
-0.026768922805786133,
-0.02343890443444252,
0.0017949435859918594,
0.009001165628433228,
-0.014902287162840366,
-0.044338904321193695,
-0.01924418844282627,
-0.04665703698992729,
-0.008499822579324245,
0.014699909836053848,
0.010072842240333557,
-0.02283177524805069,
-0.05482569709420204,
0.017781555652618408,
0.033962495625019073,
0.0254442747682333,
-0.029491810128092766,
0.021838288754224777,
0.023236528038978577
] |
724,978 | tf_keras.src.engine.training | _set_save_spec | Defines the save spec so that serialization can trace `call()`.
The TensorSpecs of the call function `inputs`, `args`, and `kwargs` are
saved into a tuple of `([inputs] + args, kwargs)`. The input
`TensorSpec` names are updated to match the built `input_names`.
The specs can be retrieved with the `save_spec` property.
Args:
inputs: possibly nested inputs passed into the call function.
args: a list of positional arguments passed into call.
kwargs: a dictionary of keyword arguments passed into call.
| def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
| (self, inputs, args=None, kwargs=None) | [
0.017745215445756912,
-0.06812427192926407,
0.025872036814689636,
0.02296120673418045,
-0.017853694036602974,
-0.026233630254864693,
-0.03832894191145897,
0.027824642136693,
0.002899530343711376,
0.01639827899634838,
-0.002962809056043625,
0.03252536058425903,
-0.03306775167584419,
0.02292504720389843,
-0.0006243142997846007,
0.01460838969796896,
-0.011435403488576412,
0.004601281136274338,
0.009080524556338787,
-0.05445602536201477,
0.0018192688003182411,
0.029035981744527817,
-0.04252342879772186,
0.06309811770915985,
0.06664173305034637,
0.07007687538862228,
-0.037533435970544815,
-0.008827408775687218,
0.06761804223060608,
-0.02411830611526966,
-0.022780409082770348,
0.04396980628371239,
0.024841492995619774,
0.06418289989233017,
0.00962743442505598,
-0.015006142668426037,
-0.011607160791754723,
0.04823661223053932,
-0.06581006944179535,
-0.03720800206065178,
0.0037763952277600765,
-0.021984903141856194,
-0.020122693851590157,
-0.017862733453512192,
0.017302263528108597,
-0.00870537105947733,
0.029343336820602417,
0.014653588645160198,
-0.008863568305969238,
0.009080524556338787,
-0.050153058022260666,
0.022563451901078224,
0.028891343623399734,
0.005419387016445398,
-0.038111984729766846,
0.007385553326457739,
0.0023887790739536285,
-0.00845225527882576,
-0.027571527287364006,
0.05734877660870552,
-0.0159734059125185,
0.03397173807024956,
0.056480951607227325,
-0.03341126814484596,
-0.01821528747677803,
-0.01408407837152481,
-0.03371862322092056,
-0.029903806746006012,
0.007145997602492571,
0.06533999741077423,
-0.03728032112121582,
-0.044512197375297546,
0.03424293175339699,
0.06613550335168839,
0.06139862537384033,
-0.02169562689960003,
-0.032055288553237915,
-0.021876424551010132,
0.03483956307172775,
0.003462260589003563,
0.015394856221973896,
-0.03901597112417221,
-0.021514831110835075,
-0.001780849415808916,
-0.008095181547105312,
-0.03319431096315384,
-0.06664173305034637,
-0.0741267278790474,
0.014635508880019188,
0.020737404003739357,
-0.08953062444925308,
0.044873788952827454,
-0.026504825800657272,
-0.0014746247325092554,
0.07004071772098541,
-0.0139123210683465,
0.010883972980082035,
0.0121585913002491,
0.07058311253786087,
-0.035056520253419876,
0.009509916417300701,
0.06787115335464478,
-0.042161837220191956,
-0.009410478174686432,
0.0009859080892056227,
-0.046103209257125854,
-0.02802351862192154,
0.004336865618824959,
-0.04971914738416672,
0.013460328802466393,
0.023033523932099342,
0.06418289989233017,
0.01925486885011196,
0.058686673641204834,
-0.06964296847581863,
-0.01670563407242298,
0.012827539816498756,
-0.005451026372611523,
0.02755344659090042,
0.005301869008690119,
-0.06371282786130905,
0.05051465332508087,
-0.06364050507545471,
-0.011534841731190681,
0.029035981744527817,
0.02292504720389843,
0.03991995379328728,
-0.08707178384065628,
0.05893978849053383,
-0.004994514398276806,
-0.023142002522945404,
0.013785763643682003,
0.0028543309308588505,
0.055251531302928925,
-0.01032350305467844,
-0.02659522369503975,
0.0003590513369999826,
0.030590835958719254,
-0.028692467138171196,
0.04523538425564766,
-0.01574740931391716,
0.06371282786130905,
0.07955063134431839,
0.007570870220661163,
-0.034261010587215424,
0.014653588645160198,
0.00835281703621149,
-0.05655327066779137,
0.010911093093454838,
-0.013234333135187626,
0.013216253370046616,
0.006119974888861179,
0.014093117788434029,
0.07221028208732605,
-0.0017672897083684802,
0.026107072830200195,
0.0025537561159580946,
-0.055323850363492966,
0.03948604315519333,
0.02003229595720768,
-0.013713444583117962,
0.01207723282277584,
0.02411830611526966,
-0.07644093036651611,
0.00517983129248023,
-0.026034753769636154,
-0.025600841268897057,
-0.05152711644768715,
-0.01698586903512478,
0.03013884276151657,
-0.03254344314336777,
-0.027661925181746483,
0.04349973425269127,
0.037461116909980774,
0.004058890510350466,
0.055251531302928925,
0.04820045456290245,
-0.0019548663403838873,
0.030590835958719254,
0.012936018407344818,
0.1030542328953743,
-0.01617228239774704,
-0.07065542787313461,
-0.013035456649959087,
0.05058697238564491,
0.05286501348018646,
-0.051310159265995026,
0.0328688770532608,
-0.0078963041305542,
-0.005523345433175564,
0.014445671811699867,
0.0014847945421934128,
0.0523226223886013,
0.020050376653671265,
-0.0355808287858963,
0.004063410218805075,
-0.003923292737454176,
0.033013515174388885,
-0.012411707080900669,
0.05655327066779137,
0.026197470724582672,
0.015991484746336937,
0.01205915305763483,
0.0007164077251218259,
-0.07047463208436966,
0.012981217354536057,
0.029704930260777473,
0.021117078140378,
-0.044439878314733505,
-0.0869271457195282,
-0.019291028380393982,
-0.012574424035847187,
0.0001659659028518945,
0.06443601101636887,
0.003762835403904319,
-0.018007371574640274,
0.02670370228588581,
0.01948990486562252,
-0.002150353044271469,
-0.005799060687422752,
0.08627627789974213,
0.05828892067074776,
-0.04628400504589081,
0.024371420964598656,
0.020213093608617783,
-0.01659715548157692,
-0.005500745493918657,
-0.036683689802885056,
-0.04317430034279823,
-0.033447425812482834,
-0.03483956307172775,
-0.05434754863381386,
0.005631823558360338,
0.026107072830200195,
-0.02643250674009323,
0.0074352724477648735,
0.02261769212782383,
0.021442512050271034,
-0.043752849102020264,
-0.027499208226799965,
0.036448653787374496,
-0.009112163446843624,
-0.0035729988012462854,
0.024769175797700882,
0.006034096237272024,
-0.004971914459019899,
-0.017284182831645012,
0.04313813894987106,
-0.00841609574854374,
-0.04118553176522255,
0.028421271592378616,
0.004922195337712765,
-0.036647532135248184,
0.05492609739303589,
-0.005274749360978603,
-0.0012271589366719127,
0.0061290147714316845,
-0.08020150661468506,
0.030428117141127586,
0.00393685232847929,
-0.03738879784941673,
0.015078460797667503,
0.027463048696517944,
0.10876741260290146,
-0.0002354597090743482,
-0.058144282549619675,
-0.004298446234315634,
0.02041197009384632,
0.017745215445756912,
0.00516175152733922,
0.0869271457195282,
-0.01744689978659153,
0.01683219149708748,
0.019743021577596664,
-0.009012725204229355,
-0.1237373948097229,
-0.04975530505180359,
-0.021080918610095978,
0.0047413986176252365,
-0.015467174351215363,
-0.005541424732655287,
-0.04089625924825668,
0.019291028380393982,
0.003713116282597184,
-0.022400734946131706,
-0.023358959704637527,
0.0034057616721838713,
-0.0346587635576725,
-0.007340353913605213,
-0.04353589192032814,
-0.009672634303569794,
0.0139123210683465,
0.02744496986269951,
0.01675083301961422,
0.05684254318475723,
-0.030084604397416115,
-0.018857115879654884,
0.016949709504842758,
0.06483376771211624,
-0.05225030332803726,
0.022762330248951912,
-0.04472915083169937,
0.021098997443914413,
-0.015051341615617275,
-0.004687159787863493,
-0.06837738305330276,
-0.003448700765147805,
-0.01020598504692316,
-0.021641388535499573,
-0.004773037973791361,
0.001358236651867628,
0.06295347958803177,
-0.004535742104053497,
-0.0073539139702916145,
-0.0025017771404236555,
0.009582235477864742,
0.005288309417665005,
-0.042125675827264786,
0.048345088958740234,
0.07369281351566315,
0.019616464152932167,
0.032597679644823074,
-0.044331397861242294,
0.030735472217202187,
-0.021984903141856194,
-0.017392661422491074,
0.03724415972828865,
-0.0650145635008812,
-0.040498506277799606,
0.007588949985802174,
-0.0288732647895813,
0.05384131520986557,
0.07181252539157867,
0.011815077625215054,
-0.13834579288959503,
0.004113129340112209,
0.04415060207247734,
0.01034158281981945,
0.0011113359360024333,
-0.017229944467544556,
0.029704930260777473,
-0.009320080280303955,
-0.016307879239320755,
0.03536387160420418,
-0.04122169315814972,
-0.03346550464630127,
0.006924521178007126,
-0.0434635728597641,
0.08960293978452682,
-0.06758187711238861,
-0.0038035146426409483,
-0.046717919409275055,
-0.010811654850840569,
0.008131340146064758,
0.05438370630145073,
-0.0019187070429325104,
-0.04404212534427643,
0.025600841268897057,
-0.00829857774078846,
-0.08179251849651337,
0.018513603135943413,
0.017582498490810394,
-0.07112549990415573,
0.02625170908868313,
0.01972494088113308,
0.01628980040550232,
0.028222395107150078,
0.026305949315428734,
-0.026577144861221313,
0.020393889397382736,
0.0037379758432507515,
-0.05622783675789833,
0.03238072618842125,
0.011263647116720676,
0.015232138335704803,
-0.011245567351579666,
-0.00596177764236927,
-0.007489511277526617,
0.012646743096411228,
0.030428117141127586,
0.00818105973303318,
0.03897980973124504,
0.009446637704968452,
-0.008036422543227673,
0.039883796125650406,
0.023250481113791466,
-0.020809723064303398,
0.021930662915110588,
0.03218184784054756,
0.013821923173964024,
-0.011480603367090225,
-0.048923641443252563,
-0.015241178683936596,
-0.03145866096019745,
0.039232928305864334,
0.02084588259458542,
-0.01030542328953743,
0.04194488003849983,
0.003762835403904319,
0.006481568794697523,
-0.02771616354584694,
-0.022436894476413727,
0.03775039315223694,
0.004669080022722483,
-0.007918904535472393,
0.00019435666035860777,
0.03095242939889431,
-0.002467877697199583,
-0.022364575415849686,
-0.0029854087624698877,
0.04454835504293442,
0.01729322411119938,
-0.07651324570178986,
0.027354570105671883,
0.028113918378949165,
0.05951833724975586,
0.058722831308841705,
-0.09379743039608002,
0.010124626569449902,
-0.04415060207247734,
0.0407516211271286,
0.07036615163087845,
0.016262680292129517,
-0.006327891256660223,
0.023901350796222687,
0.11057538539171219,
-0.01666947454214096,
0.05340740457177162,
0.04230647534132004,
0.01387616153806448,
-0.013830962590873241,
-0.009546075947582722,
-0.00693808076903224,
0.011173248291015625,
-0.0517079122364521,
0.006807003170251846,
0.030554676428437233,
-0.04711567237973213,
-0.009374319575726986,
0.03850973770022392,
-0.04689871519804001,
-0.05091240629553795,
0.02254537306725979,
0.06132630631327629,
-0.036846406757831573,
-0.06259188801050186,
0.019507985562086105,
0.03304967284202576,
-0.0074217128567397594,
-0.007652228698134422,
0.05492609739303589,
0.035020358860492706,
-0.00835281703621149,
0.038075827062129974,
0.024751095101237297,
-0.040426187217235565,
0.009663593955338001,
-0.016488676890730858,
0.0017921492690220475,
0.023286640644073486,
-0.03115130588412285,
0.05622783675789833,
-0.019363347440958023,
-0.061000872403383255,
-0.01685931161046028,
-0.0036701769568026066,
0.03782271221280098,
-0.06053080037236214,
-0.052467260509729385,
-0.006029576528817415,
0.06150710582733154,
0.0019887657836079597,
0.029343336820602417,
-0.03503843769431114,
-0.08627627789974213,
0.02126171439886093,
0.01435527391731739,
-0.051310159265995026,
-0.0023187201004475355,
-0.03319431096315384,
-0.0004082054947502911,
0.01562989130616188,
-0.017654817551374435,
0.06237493082880974,
-0.005857819691300392,
0.005148191470652819,
0.00852909404784441,
-0.020285412669181824,
0.03818430379033089,
0.03333894908428192,
-0.03677408769726753,
0.04823661223053932,
0.0626642033457756,
0.077814981341362,
-0.013098735362291336,
-0.007946023717522621,
0.05633631348609924,
0.020285412669181824,
-0.00017839568317867815,
0.02616131119430065,
0.042161837220191956,
-0.008479374460875988,
-0.05539616942405701,
-0.008000263012945652,
-0.003480340354144573,
-0.04411444440484047,
-0.058758992701768875,
-0.021352114155888557,
-0.0056001837365329266,
-0.008366376161575317,
-0.01408407837152481,
0.007620589341968298,
0.01571124978363514,
0.013785763643682003,
-0.013821923173964024,
-0.03738879784941673,
-0.025637000799179077,
-0.0068793217651546,
-0.01983341947197914,
0.00974495243281126,
0.02485957369208336,
0.023919429630041122,
0.0007808165973983705,
-0.07380129396915436,
-0.0015819728141650558,
0.029686851426959038,
0.018504561856389046,
-0.024787254631519318,
0.10442829132080078,
0.012836580164730549,
-0.007037519011646509,
-0.012791380286216736,
-0.03160329908132553,
0.06031384319067001,
-0.03818430379033089,
-0.04393364489078522,
-0.01683219149708748,
-0.0022384915500879288,
0.010007108561694622,
-0.0765855684876442,
0.0011729198740795255,
0.0000014522016726914444,
0.006639766041189432,
0.09177250415086746,
0.02071932516992092,
-0.05174407362937927,
0.006630726158618927,
0.015575652942061424,
-0.08352816849946976,
-0.003713116282597184,
-0.0769471600651741,
-0.011417323723435402,
-0.04512690380215645,
-0.0069697205908596516,
0.007204756140708923,
0.043897487223148346,
0.01567509025335312,
0.01178795751184225,
-0.010486220009624958,
0.023883270099759102,
-0.02176794596016407,
0.0015198239125311375,
0.04975530505180359,
0.014445671811699867,
-0.03991995379328728,
0.02061084657907486,
0.015403895638883114,
-0.0071866768412292,
-0.06241108849644661,
-0.022201858460903168,
-0.0022305818274617195,
-0.0049809543415904045,
-0.018341844901442528,
0.029614532366394997,
-0.012438826262950897,
-0.0007310974760912359,
0.01941758766770363,
0.03010268323123455,
-0.051274001598358154,
-0.07311426848173141,
-0.025311565026640892,
0.009189002215862274,
-0.07184869050979614,
-0.029361415654420853,
-0.030590835958719254,
-0.0827326625585556,
0.0017616397235542536,
0.0074217128567397594,
-0.056444790214300156,
0.0013107775012031198,
0.018016410991549492,
0.037533435970544815,
-0.009708793833851814,
-0.05112936347723007,
-0.04718799144029617,
-0.02466069720685482,
-0.04751342535018921,
-0.044982269406318665,
0.0024859572295099497,
0.014310074038803577,
-0.0815032422542572,
0.018161049112677574,
-0.00089833460515365,
-0.034405648708343506,
0.03245304152369499,
-0.017654817551374435,
-0.06295347958803177,
0.02898174338042736,
0.007697428110986948,
-0.026956817135214806,
0.01399367954581976,
0.012917938642203808,
-0.0284393522888422,
0.01806160993874073,
0.04288502410054207,
-0.005333508364856243,
-0.0538051575422287,
0.008117781020700932,
0.06602703034877777,
-0.005243110004812479,
-0.0010593568440526724,
-0.005848779808729887,
0.014138317666947842,
0.025347724556922913,
-0.06298963725566864,
0.04830893129110336,
0.015015182085335255,
-0.041040897369384766,
0.019092151895165443,
-0.02115323767066002,
0.02551044151186943,
-0.019544145092368126,
0.005256669595837593,
0.017808495089411736,
0.04700719192624092,
-0.03764191269874573,
-0.024714935570955276,
0.03033771924674511,
0.04574161395430565,
0.023919429630041122,
-0.0666055753827095,
-0.0020949840545654297,
0.0029899287037551403,
-0.024714935570955276,
-0.014816305600106716,
-0.049032118171453476,
-0.010468140244483948,
0.012339388020336628,
0.048381250351667404,
-0.023142002522945404,
-0.01379480306059122,
0.017148585990071297,
-0.002899530343711376,
-0.021912584081292152,
0.0036724370438605547,
-0.04747726395726204,
-0.008402535691857338,
-0.01775425486266613,
0.08128628879785538,
-0.03999227285385132,
-0.026107072830200195,
0.024877652525901794,
0.08020150661468506,
0.04082394018769264,
0.02890942431986332,
0.037497278302907944,
-0.011950675398111343,
-0.06186869740486145,
-0.040353868156671524,
-0.009889590553939342,
-0.020285412669181824,
0.0026012153830379248,
-0.016696592792868614,
-0.008461294695734978,
-0.007534710690379143,
0.024172544479370117,
0.018802877515554428,
0.016262680292129517,
0.02871054783463478,
0.02299736626446247,
0.0011113359360024333,
-0.008610452525317669,
-0.0063685704953968525,
0.019019832834601402,
0.025727398693561554,
0.008926847018301487,
-0.06468912959098816,
0.03145866096019745,
0.008845488540828228,
-0.07181252539157867,
0.019851500168442726,
-0.03160329908132553,
0.0401369109749794,
-0.008890687488019466,
-0.002890490461140871,
-0.05488993972539902,
-0.0815032422542572,
-0.016886429861187935,
-0.015394856221973896,
-0.00003728935917024501,
0.028782866895198822,
0.04820045456290245,
-0.05951833724975586,
0.011119008995592594,
0.02755344659090042,
0.03400789573788643,
-0.05742109566926956,
-0.01045910082757473,
-0.0009209341951645911,
-0.07795961946249008,
0.024443740025162697,
0.009121203795075417,
0.023322800174355507,
-0.015105580911040306,
0.020050376653671265,
0.03241688385605812,
0.03843741863965988,
-0.011046690866351128,
-0.004248727113008499,
-0.046175528317689896,
0.037497278302907944,
-0.03304967284202576,
0.007616069167852402,
0.0291806198656559,
-0.011977794580161572,
-0.017745215445756912,
-0.05886746942996979,
0.012954098172485828,
0.008524573408067226,
-0.0061290147714316845,
0.06241108849644661,
-0.0010435370495542884,
-0.06053080037236214,
-0.00791438389569521,
0.02411830611526966,
-0.035219237208366394,
-0.0015288637951016426,
0.004547041840851307,
-0.023684393614530563,
-0.0062872120179235935,
-0.014038879424333572,
0.013134894892573357,
-0.030590835958719254,
0.026070913299918175,
0.009889590553939342,
0.04107705503702164,
0.0325072817504406,
-0.021062837913632393,
0.04736878722906113,
-0.00835281703621149,
-0.016606194898486137,
-0.002029445255175233,
0.029578372836112976,
-0.0011508852476254106,
0.029939966276288033,
-0.04360821098089218,
-0.010739335790276527,
-0.027264172211289406,
-0.033899419009685516,
-0.0434635728597641,
-0.0068115233443677425,
-0.06121782958507538,
0.04642864316701889,
-0.009329119697213173,
0.02258153259754181,
0.02520308829843998,
0.04057082533836365,
0.05152711644768715
] |
724,983 | tf_keras.src.engine.base_layer | _should_use_autograph | null | def _should_use_autograph(self):
if base_layer_utils.from_saved_model(self):
return False
if base_layer_utils.is_subclassed(self):
return True
return False
| (self) | [
0.014059145003557205,
-0.040970899164676666,
0.025790786370635033,
0.0835847407579422,
0.023292144760489464,
-0.04394873231649399,
-0.015719201415777206,
0.02450723759829998,
0.009378467686474323,
-0.005553490482270718,
0.027159906923770905,
0.005981340538710356,
-0.002161711221560836,
-0.00004900217390968464,
-0.022196847945451736,
0.009814874269068241,
-0.021289806813001633,
-0.0055320980027318,
0.051958080381155014,
-0.08201025426387787,
-0.001798038836568594,
-0.0014739426551386714,
-0.009190213866531849,
-0.0102598387748003,
0.014238841831684113,
0.05753724277019501,
-0.028683051466941833,
0.004295612219721079,
0.03720581904053688,
0.013922233134508133,
-0.05161580070853233,
-0.02628709189593792,
0.07954584062099457,
0.016232622787356377,
0.054593637585639954,
0.025551190599799156,
0.027981378138065338,
0.06732644885778427,
-0.036931995302438736,
-0.041689686477184296,
-0.03949909657239914,
-0.014290183782577515,
0.016121381893754005,
0.016018696129322052,
-0.01685728318989277,
0.00031741108978167176,
-0.031832024455070496,
0.05654463171958923,
-0.0011113398941233754,
-0.008137703873217106,
0.007641397882252932,
-0.039054129272699356,
0.017036980018019676,
0.12014022469520569,
-0.04737153276801109,
-0.022522013634443283,
0.033030007034540176,
0.061952654272317886,
-0.0307025033980608,
-0.014435652643442154,
-0.023805564269423485,
0.0008364463574253023,
0.012903950177133083,
-0.11199396848678589,
0.05520974099636078,
-0.007359016686677933,
-0.07872436940670013,
0.005891492124646902,
-0.0038035849574953318,
0.09809740632772446,
-0.057947978377342224,
-0.03368033841252327,
0.017156777903437614,
0.04162123054265976,
-0.0052069323137402534,
-0.03244813159108162,
0.036042068153619766,
-0.010311180725693703,
0.016720371320843697,
-0.04867219552397728,
-0.0026120231486856937,
-0.02310388907790184,
0.007962284609675407,
0.014042031019926071,
0.002836644183844328,
-0.046618517488241196,
-0.016070039942860603,
0.026013268157839775,
0.03860916569828987,
-0.015479606576263905,
-0.004868930671364069,
0.047542672604322433,
0.03381725028157234,
0.008586945943534374,
-0.0049630580469965935,
0.03368033841252327,
-0.03980714827775955,
-0.034553151577711105,
0.013597067445516586,
-0.07311097532510757,
-0.02233375981450081,
0.044154100120067596,
0.007414637133479118,
0.009840546175837517,
0.004813310224562883,
-0.00991755910217762,
-0.005758858285844326,
0.003414241597056389,
-0.06783986836671829,
-0.024490123614668846,
-0.02353174053132534,
0.022898521274328232,
0.018791163340210915,
0.051410432904958725,
-0.016720371320843697,
-0.10507991164922714,
0.013331799767911434,
-0.017781438305974007,
-0.03344074264168739,
0.018380427733063698,
-0.055107057094573975,
0.03255081549286842,
-0.005626224912703037,
-0.02187168225646019,
0.05870099365711212,
0.005348122678697109,
0.034724291414022446,
0.05096546933054924,
0.0021296225022524595,
-0.055791616439819336,
0.018243515864014626,
-0.01880827732384205,
-0.04764535650610924,
-0.008518490009009838,
-0.0008225412457250059,
-0.008638287894427776,
0.028443455696105957,
0.06174728646874428,
-0.025328708812594414,
0.05329297110438347,
-0.00544652808457613,
-0.009541050530970097,
0.039054129272699356,
0.03256792947649956,
0.003059126203879714,
0.058974817395210266,
-0.05113660916686058,
-0.01375965029001236,
-0.028392113745212555,
-0.041005127131938934,
0.05948823690414429,
-0.00784248672425747,
-0.04603663831949234,
-0.012262175790965557,
-0.07851899415254593,
-0.025499848648905754,
-0.036966223269701004,
-0.024404553696513176,
0.02301831915974617,
0.011543387547135353,
-0.02849479764699936,
-0.018294857814908028,
0.03546019271016121,
-0.030907871201634407,
0.002783162984997034,
-0.043811820447444916,
-0.017815666273236275,
-0.04959635064005852,
0.02467837743461132,
0.037308502942323685,
-0.003076240187510848,
0.003707318566739559,
0.05428558588027954,
-0.00482186721637845,
0.048774879425764084,
0.0499386303126812,
0.024199185892939568,
0.011089866980910301,
-0.026269977912306786,
0.06684725731611252,
0.07735524326562881,
-0.020571019500494003,
-0.044154100120067596,
0.01582188531756401,
0.008595502935349941,
0.03087364323437214,
0.044872887432575226,
-0.0426480695605278,
0.015325580723583698,
0.03593938425183296,
0.017216676846146584,
0.04713193699717522,
-0.006477646064013243,
-0.03949909657239914,
0.03508368507027626,
-0.03806151822209358,
0.01467524841427803,
0.01176587026566267,
-0.0328417532145977,
0.06061775982379913,
-0.06030970811843872,
-0.047337304800748825,
0.01622406579554081,
0.018448883667588234,
-0.03451892361044884,
0.04377759248018265,
-0.019698206335306168,
-0.019458608701825142,
0.023001205176115036,
-0.045249395072460175,
-0.0393279567360878,
-0.048021864145994186,
-0.004924551583826542,
0.06137077882885933,
0.04319571703672409,
-0.0030270374845713377,
0.030343107879161835,
0.031660884618759155,
-0.028084062039852142,
0.06277412176132202,
0.02250489965081215,
0.021118666976690292,
0.0011273842537775636,
-0.0010011685080826283,
0.03215719386935234,
0.009267226792871952,
0.0033072789665311575,
0.009421252645552158,
0.050862785428762436,
-0.020742159336805344,
-0.014059145003557205,
-0.04566013067960739,
-0.019989144057035446,
0.06013856828212738,
0.04921984300017357,
0.03532328084111214,
0.019989144057035446,
0.005579161457717419,
0.0027510742656886578,
-0.02000625804066658,
0.005724630318582058,
-0.011072752997279167,
-0.04148431867361069,
-0.027964264154434204,
-0.07934047281742096,
-0.06352713704109192,
-0.015180111862719059,
0.008702465333044529,
-0.013331799767911434,
-0.016181280836462975,
0.039567552506923676,
0.002194869564846158,
-0.036247435957193375,
0.012861165218055248,
-0.021734770387411118,
-0.05199230834841728,
-0.09583836048841476,
-0.01868847943842411,
0.012758481316268444,
-0.0038998511154204607,
-0.056886911392211914,
0.06985931843519211,
-0.012364859692752361,
0.08420084416866302,
-0.005378072150051594,
-0.05093124136328697,
0.03236256167292595,
0.006494760047644377,
-0.032003164291381836,
0.016035810112953186,
0.04073130339384079,
0.018620023503899574,
-0.03441623970866203,
-0.0096437344327569,
0.014144714921712875,
-0.026783399283885956,
-0.002158502349629998,
-0.01831197179853916,
-0.02717702090740204,
0.024900859221816063,
0.04528362303972244,
0.012065364979207516,
-0.023069661110639572,
0.009900445118546486,
-0.028563253581523895,
-0.06982509046792984,
0.003936218097805977,
0.00017207584460265934,
-0.013828106224536896,
-0.019441494718194008,
0.0038485091645270586,
0.06061775982379913,
0.05842716991901398,
0.008047855459153652,
0.010952955111861229,
-0.04302457720041275,
0.03130149096250534,
-0.04049170762300491,
-0.003786470741033554,
-0.02731393277645111,
0.021426718682050705,
0.03741118684411049,
0.012262175790965557,
0.007945170626044273,
0.052848007529973984,
0.013990689069032669,
-0.008976289071142673,
-0.014521222561597824,
0.009883331134915352,
0.045933954417705536,
-0.004289194475859404,
-0.006511874031275511,
0.017695868387818336,
0.03415952995419502,
0.018534453585743904,
-0.0008113101939670742,
0.014495551586151123,
-0.027005881071090698,
0.005848707165569067,
0.07502774149179459,
-0.06318485736846924,
0.0892665833234787,
-0.05620235204696655,
-0.022179733961820602,
-0.022693153470754623,
-0.05219767615199089,
0.06616269797086716,
0.017362145707011223,
-0.025294480845332146,
0.018192173913121223,
-0.08714444935321808,
-0.005549211986362934,
0.026680713519454002,
0.02837499976158142,
-0.05117083713412285,
-0.03833534196019173,
0.015642188489437103,
-0.028614595532417297,
0.039944060146808624,
0.0008102405699901283,
-0.012048250995576382,
0.05623658001422882,
0.014974743127822876,
0.03159242868423462,
-0.0006385658634826541,
0.039396412670612335,
-0.013212001882493496,
0.05517551302909851,
0.03024042397737503,
-0.05555202066898346,
-0.08837665617465973,
-0.004766246769577265,
-0.010653460398316383,
0.03689776733517647,
-0.0066273934207856655,
0.011594729498028755,
-0.010242724791169167,
0.017096878960728645,
0.038917217403650284,
-0.00472346181049943,
0.08707599341869354,
-0.06085735931992531,
0.0013177774380892515,
0.02519179694354534,
-0.012065364979207516,
0.0024494400713592768,
0.04360645264387131,
-0.0474742166697979,
0.019595520570874214,
-0.07537002116441727,
-0.05312183126807213,
-0.028084062039852142,
0.0005572743830271065,
-0.027964264154434204,
-0.000244542898144573,
0.027981378138065338,
0.012159491889178753,
-0.022487785667181015,
0.02875150740146637,
0.05948823690414429,
0.05082855746150017,
0.05342988297343254,
-0.016634801402688026,
0.013477269560098648,
0.04620777815580368,
-0.026218635961413383,
0.017336474731564522,
0.00640063313767314,
0.0049972860142588615,
-0.07270023971796036,
0.032122962176799774,
0.010995740070939064,
-0.05558624863624573,
-0.011688857339322567,
-0.02840922772884369,
-0.036795083433389664,
-0.015633631497621536,
0.020930413156747818,
-0.003414241597056389,
0.025876356288790703,
-0.010165711864829063,
-0.0003171436837874353,
0.08652834594249725,
-0.0008519559632986784,
-0.0032730509992688894,
0.03388570621609688,
0.006272278260439634,
-0.014042031019926071,
-0.004843259695917368,
-0.027074337005615234,
-0.034039732068777084,
0.0014568286715075374,
-0.05390907824039459,
0.00026967909070663154,
0.019133443012833595,
0.05257418379187584,
0.019954916089773178,
-0.013126431964337826,
0.00014627115160692483,
0.01766164042055607,
0.036247435957193375,
0.10446380823850632,
0.007513042539358139,
0.013006634078919888,
0.015539505518972874,
0.00020590271742548794,
-0.020827729254961014,
0.015582290478050709,
0.026646485552191734,
0.01565074548125267,
-0.02628709189593792,
-0.03006928414106369,
0.006866989657282829,
-0.019355924800038338,
0.04904870316386223,
-0.00560483243316412,
0.03566556051373482,
-0.04932252690196037,
-0.06985931843519211,
0.0212726928293705,
-0.001132732373662293,
-0.014641020447015762,
-0.034553151577711105,
0.00794089213013649,
0.0564761757850647,
-0.029401838779449463,
-0.042408473789691925,
0.0639721006155014,
0.04199773818254471,
0.00527538824826479,
0.00456515746191144,
0.04408564418554306,
0.007970841601490974,
0.007119420915842056,
-0.012638683430850506,
-0.02178611233830452,
0.000786708842497319,
-0.015984468162059784,
-0.01576198637485504,
0.0058700996451079845,
-0.03299577906727791,
0.008184767328202724,
-0.08159951865673065,
-0.0008204019977711141,
0.0771498754620552,
0.008950618095695972,
0.005403743125498295,
0.018380427733063698,
-0.036076296120882034,
0.03049713559448719,
0.07578075677156448,
-0.05356679856777191,
0.08276326954364777,
-0.049630578607320786,
-0.039567552506923676,
0.03522059693932533,
0.0474742166697979,
0.072015680372715,
0.019527064636349678,
0.004143725614994764,
0.021820340305566788,
-0.009241555817425251,
-0.07756061106920242,
-0.0015349112218245864,
0.011141208931803703,
0.030171968042850494,
-0.06469089537858963,
0.00887360516935587,
0.013408813625574112,
-0.025362936779856682,
0.010593561455607414,
-0.01648077555000782,
-0.0032709117513149977,
0.032893095165491104,
0.03164377063512802,
0.0011594729730859399,
0.027279704809188843,
-0.014298740774393082,
0.034809861332178116,
-0.006841318681836128,
0.05520974099636078,
0.02029719576239586,
0.010448092594742775,
0.0007134395418688655,
0.027758896350860596,
-0.03542596474289894,
-0.031198808923363686,
0.00985766015946865,
-0.02000625804066658,
0.025876356288790703,
-0.013160659931600094,
-0.0015488163335248828,
0.05414867401123047,
0.037650782614946365,
0.06328754127025604,
-0.013708308339118958,
0.00021499453578144312,
-0.03884876146912575,
0.015385479666292667,
-0.007872436195611954,
0.048021864145994186,
-0.03338940069079399,
-0.0016472217394039035,
-0.031489744782447815,
-0.005536376498639584,
0.02089618518948555,
-0.02221396192908287,
0.06099427118897438,
0.01602725312113762,
0.0007663859869353473,
0.04781649634242058,
-0.006032682489603758,
0.010199939832091331,
0.044530607759952545,
0.012878279201686382,
0.018705593422055244,
-0.025499848648905754,
-0.022316645830869675,
-0.06294526159763336,
-0.03457026556134224,
0.017730096355080605,
-0.046721201390028,
0.05120506510138512,
-0.006576051469892263,
0.05010977014899254,
0.014384310692548752,
0.021033097058534622,
-0.03381725028157234,
0.002515756990760565,
-0.004180092830210924,
-0.0058700996451079845,
0.04459906369447708,
-0.0009926115162670612,
-0.011834326200187206,
0.09645446389913559,
0.008432920090854168,
0.006712963804602623,
0.031027669087052345,
-0.0319347083568573,
0.024113615974783897,
-0.0385749377310276,
-0.03058270551264286,
0.027194134891033173,
0.012681468389928341,
-0.05531242489814758,
-0.00936135370284319,
-0.044154100120067596,
0.02714279294013977,
-0.007889550179243088,
0.004783360753208399,
0.01582188531756401,
-0.06212379410862923,
-0.02356596849858761,
0.0045951069332659245,
0.006606000941246748,
0.02450723759829998,
-0.0006316133076325059,
0.02433609776198864,
-0.04545476287603378,
-0.06438284367322922,
-0.0013263344299048185,
-0.019698206335306168,
0.008347350172698498,
0.008847934193909168,
0.05216344818472862,
-0.08591224253177643,
0.017490500584244728,
0.021546516567468643,
0.012185162864625454,
-0.1033000573515892,
-0.02259046956896782,
0.03477563336491585,
0.07263178378343582,
-0.048774879425764084,
-0.006246607284992933,
-0.028477683663368225,
-0.013134988956153393,
-0.04216887801885605,
-0.003121164394542575,
-0.006101138424128294,
0.011346576735377312,
0.03881453350186348,
0.034553151577711105,
-0.048569511622190475,
0.010713359341025352,
-0.045591674745082855,
-0.042784981429576874,
0.01199690904468298,
-0.02565387450158596,
-0.01766164042055607,
-0.005900049116462469,
0.0680452361702919,
-0.025499848648905754,
-0.05538088083267212,
0.036931995302438736,
-0.03901990130543709,
-0.035015229135751724,
0.03775346651673317,
0.05151311680674553,
-0.005694680847227573,
0.00035056943306699395,
0.011183993890881538,
-0.030599819496273994,
0.010336851701140404,
-0.059898972511291504,
-0.018654251471161842,
0.03253370150923729,
-0.04477020353078842,
0.008950618095695972,
-0.01725946180522442,
0.039088357239961624,
-0.045968182384967804,
0.016489332541823387,
-0.022111278027296066,
0.024233413860201836,
-0.039909832179546356,
-0.03224276378750801,
0.04035479575395584,
0.0102598387748003,
-0.0011819350766018033,
-0.012133820913732052,
-0.043982960283756256,
0.03415952995419502,
0.020964641124010086,
-0.0096437344327569,
-0.04285343736410141,
-0.019355924800038338,
0.02645823173224926,
0.05750301480293274,
-0.011038525030016899,
-0.025790786370635033,
0.02938472479581833,
0.0483299158513546,
-0.03417664393782616,
-0.008479983545839787,
0.0032709117513149977,
-0.010456649586558342,
0.018277743831276894,
0.027998492121696472,
-0.06137077882885933,
-0.061986882239580154,
-0.02697165310382843,
0.001384094124659896,
0.07283715158700943,
0.05500437319278717,
0.0024408830795437098,
-0.054011762142181396,
-0.06417746841907501,
0.005673288367688656,
-0.03652125969529152,
-0.056510403752326965,
0.02688608318567276,
-0.012980963103473186,
-0.016865840181708336,
-0.014777932316064835,
-0.03559710457921028,
0.005596275441348553,
-0.009600949473679066,
0.009395581670105457,
-0.030651161447167397,
-0.03078807331621647,
0.013152102939784527,
-0.03967023640871048,
0.0013113596942275763,
0.04692656919360161,
0.02726259082555771,
-0.018756935372948647,
0.008621173910796642,
0.03895144537091255,
-0.03546019271016121,
-0.021289806813001633,
-0.01352861151099205,
0.0026505296118557453,
0.05750301480293274,
0.05548356473445892,
-0.04774804040789604,
-0.045797042548656464,
0.02671494148671627,
0.012501771561801434,
-0.012390530668199062,
0.028169631958007812,
-0.008595502935349941,
-0.059351325035095215,
0.05852985382080078,
-0.015471049584448338,
0.0565788596868515,
-0.09789203852415085,
-0.009198770858347416,
0.0042207385413348675,
-0.07023582607507706,
-0.03133571892976761,
0.022025708109140396,
0.005386629141867161,
-0.04059439152479172,
-0.004915994592010975,
-0.054901689291000366,
0.025362936779856682,
0.02811829000711441,
-0.005395186133682728,
-0.053361427038908005,
-0.027467958629131317,
0.0017862729728221893,
-0.004911716096103191,
0.009224441833794117,
0.015000414103269577,
0.0001580370299052447,
-0.03919104114174843,
-0.08967731893062592,
0.021683428436517715,
0.03424509987235069,
0.027810238301753998,
-0.013836663216352463,
-0.0729740634560585,
0.04552321881055832,
-0.02616729401051998,
0.02029719576239586,
-0.022984091192483902,
-0.010482320562005043,
-0.06811369210481644,
-0.02969277650117874,
0.04333262890577316,
-0.08290018141269684,
-0.014401424676179886,
0.012681468389928341,
-0.08748672902584076,
0.035905156284570694,
0.04059439152479172,
-0.0006171733839437366,
-0.02645823173224926,
0.018021034076809883,
0.05062318965792656,
0.010353965684771538,
0.022778723388910294,
-0.020964641124010086,
0.08556996285915375,
0.03720581904053688,
-0.025722330436110497,
-0.004838981200009584,
0.030634047463536263,
-0.07564384490251541,
-0.024370325729250908,
-0.04049170762300491,
-0.0006016637780703604,
-0.025362936779856682,
0.018243515864014626,
0.010756144300103188,
0.0010134693002328277,
0.005574882961809635
] |
724,989 | tf_keras.src.engine.training | _updated_config | Util shared between different serialization methods.
Returns:
Model config with TF-Keras version information added.
| def _updated_config(self):
"""Util shared between different serialization methods.
Returns:
Model config with TF-Keras version information added.
"""
from tf_keras.src import __version__ as keras_version
config = self.get_config()
model_config = {
"class_name": self.__class__.__name__,
"config": config,
"keras_version": keras_version,
"backend": backend.backend(),
}
return model_config
| (self) | [
0.05219399929046631,
-0.042321473360061646,
-0.0460842102766037,
0.020192110911011696,
-0.02011760137975216,
-0.0254822950810194,
-0.06422730535268784,
0.006170329172164202,
0.015069574117660522,
-0.009630369953811169,
-0.03229992836713791,
-0.07287042587995529,
-0.03475874662399292,
0.04854302853345871,
0.0732802227139473,
0.0032108996529132128,
0.013840164989233017,
-0.00453810254111886,
0.020695051178336143,
-0.04537636786699295,
0.036006782203912735,
-0.07246062159538269,
-0.07372728735208511,
0.05241752788424492,
0.02257641963660717,
0.055882226675748825,
0.04083127900958061,
-0.010887720622122288,
0.04716460034251213,
-0.012173011898994446,
-0.05692536011338234,
0.001994296908378601,
0.04023520275950432,
0.03975088894367218,
0.002075791824609041,
0.007446306757628918,
0.008871303871273994,
0.03073522448539734,
-0.09030567854642868,
-0.01764015667140484,
0.03794403001666069,
-0.004880381282418966,
0.0003437339037191123,
-0.04902733862400055,
0.029990127310156822,
0.05647830292582512,
-0.02615288272500038,
0.03341757133603096,
0.01650388352572918,
0.0037115111481398344,
0.01153036579489708,
0.007078415248543024,
-0.01029164344072342,
0.07022532820701599,
-0.030418558046221733,
-0.07711747288703918,
0.03911755979061127,
0.006249495781958103,
0.0007480068597942591,
0.053609684109687805,
-0.038484226912260056,
-0.011902914382517338,
0.020154856145381927,
0.0107107600197196,
-0.0474998913705349,
-0.042321473360061646,
-0.02982248179614544,
-0.01444555539637804,
-0.00247977371327579,
0.04176265001296997,
-0.011940169148147106,
-0.063742995262146,
0.007320571690797806,
-0.00806101132184267,
-0.04288029670715332,
-0.029263658449053764,
-0.04261951148509979,
-0.01242448203265667,
-0.0018033660016953945,
-0.029692089185118675,
0.00884336233139038,
0.022259753197431564,
-0.036491092294454575,
-0.020359758287668228,
0.036006782203912735,
-0.03138718381524086,
-0.025873471051454544,
-0.02164504863321781,
-0.00947203766554594,
0.008349736221134663,
-0.018403880298137665,
0.04727636277675629,
0.017118588089942932,
0.03997441753745079,
0.03302639722824097,
-0.024755826219916344,
-0.025575432926416397,
-0.031983260065317154,
0.0341067872941494,
-0.03455384448170662,
-0.024718571454286575,
-0.01803133264183998,
-0.055211640894412994,
-0.03026953898370266,
-0.041241083294153214,
-0.08210961520671844,
-0.03229992836713791,
0.0014517736854031682,
-0.012554873712360859,
-0.01707202009856701,
0.01614064909517765,
-0.0029221747536212206,
-0.056813597679138184,
0.03073522448539734,
0.04306656867265701,
-0.014287222176790237,
0.018925447016954422,
-0.009071548469364643,
0.04623322933912277,
-0.004547416232526302,
-0.03811167925596237,
0.0672076940536499,
-0.01571222022175789,
0.0116235027089715,
0.005243615712970495,
0.0071901800110936165,
0.0339018851518631,
0.004244720563292503,
0.051150865852832794,
-0.09909781813621521,
0.007246062159538269,
0.0006181971402838826,
-0.04668028652667999,
-0.02712150663137436,
0.048170480877161026,
-0.048654790967702866,
-0.0205087773501873,
0.04079402610659599,
0.004503176081925631,
0.052715566009283066,
0.020862698554992676,
0.050927337259054184,
0.03313815966248512,
-0.03952736034989357,
-0.017090648412704468,
-0.039639126509428024,
-0.024010729044675827,
-0.01206124760210514,
-0.03881952166557312,
-0.05368419364094734,
0.04768616706132889,
0.0460842102766037,
0.03323129564523697,
0.0013190533500164747,
-0.014436242170631886,
-0.02551954984664917,
0.004200480878353119,
-0.07719197869300842,
0.03727344423532486,
-0.004605626687407494,
-0.022054852917790413,
0.010468604043126106,
0.05666457861661911,
-0.06024103984236717,
0.014007811434566975,
-0.006254152394831181,
-0.026488175615668297,
-0.01466908399015665,
0.008573264814913273,
-0.0017509764293208718,
-0.00434018624946475,
-0.0027661703061312437,
-0.028127387166023254,
0.011791150085628033,
-0.019484270364046097,
0.05636654049158096,
0.04515283927321434,
-0.004056118428707123,
0.0410175547003746,
-0.00036498080589808524,
0.02125387266278267,
0.025016609579324722,
-0.03514992073178291,
0.03591364249587059,
0.0022981564980000257,
0.03367835655808449,
-0.015768101438879967,
0.04265676438808441,
0.0014541021082550287,
-0.010869093239307404,
0.07074689865112305,
0.016522511839866638,
-0.005900231655687094,
0.0359322726726532,
-0.05707437917590141,
0.005658075213432312,
0.01662496291100979,
-0.00501543004065752,
0.031759731471538544,
0.06549397110939026,
0.03699403256177902,
-0.043923430144786835,
-0.020005837082862854,
0.024066612124443054,
-0.009006352163851261,
-0.024569552391767502,
0.026264647021889687,
-0.018320055678486824,
-0.03185286745429039,
0.013374479487538338,
-0.015982316806912422,
-0.016904372721910477,
0.057893987745046616,
0.02281857654452324,
0.02818327024579048,
-0.07193905115127563,
-0.00242622010409832,
0.012173011898994446,
-0.004342514555901289,
-0.02870483696460724,
0.06400377303361893,
0.053386155515909195,
0.05550967901945114,
0.002640435239300132,
-0.002205019583925605,
-0.04135284572839737,
-0.014566633850336075,
-0.0324862003326416,
-0.024942100048065186,
-0.05018223822116852,
0.025929352268576622,
-0.01514408364892006,
-0.020043091848492622,
0.012927421368658543,
0.021738186478614807,
0.017630841583013535,
-0.025221511721611023,
-0.013057813979685307,
-0.016196532174944878,
-0.030157774686813354,
0.036938153207302094,
-0.05290184170007706,
0.015991630032658577,
0.007343856152147055,
-0.0020455224439501762,
-0.04247049242258072,
0.030846988782286644,
0.02509111911058426,
-0.014603888615965843,
-0.05390772223472595,
0.036938153207302094,
-0.004752317443490028,
0.02710288017988205,
0.0834507942199707,
-0.02209210768342018,
-0.014538692310452461,
0.0026311215478926897,
0.002259737579151988,
0.0497351810336113,
-0.007749001961201429,
-0.02283720299601555,
0.0009028472122736275,
-0.025128373876214027,
0.0334920808672905,
-0.011902914382517338,
-0.04068225994706154,
0.028499934822320938,
0.04623322933912277,
-0.01839456707239151,
-0.005439203232526779,
0.11258406192064285,
0.05029400438070297,
-0.06996455043554306,
-0.00953257642686367,
-0.002336575649678707,
-0.08598411828279495,
-0.006771062966436148,
-0.03565286099910736,
-0.0018441134598106146,
0.024550924077630043,
0.019596034660935402,
-0.08561157435178757,
0.033305805176496506,
0.0401979498565197,
-0.010300956666469574,
-0.05714888870716095,
-0.03721756115555763,
-0.0009552367846481502,
0.010748014785349369,
-0.008321794681251049,
-0.011213700287044048,
-0.040980298072099686,
-0.005564938299357891,
-0.007348512765020132,
-0.008764196187257767,
-0.08434490859508514,
-0.053609684109687805,
0.0275126826018095,
0.0556214414536953,
-0.010040173307061195,
-0.005481115076690912,
0.03021365776658058,
0.021309755742549896,
0.05983123555779457,
0.04492931067943573,
0.00417719641700387,
0.054988112300634384,
-0.024103866890072823,
-0.01514408364892006,
0.02734503522515297,
-0.020620541647076607,
0.0026241361629217863,
0.06560573726892471,
0.02663719467818737,
0.0030874931253492832,
-0.05346066504716873,
0.007227434776723385,
0.0032644534949213266,
-0.007436993066221476,
0.05260380357503891,
-0.029189148917794228,
0.04772341996431351,
-0.019018584862351418,
-0.0036975406110286713,
0.024774454534053802,
-0.07018807530403137,
0.05871359258890152,
-0.007683806121349335,
0.01861809566617012,
0.0225391648709774,
-0.056813597679138184,
-0.013579380698502064,
0.038707755506038666,
0.06910768896341324,
0.004954890813678503,
-0.013923987746238708,
-0.01989407278597355,
-0.010906348004937172,
-0.022967595607042313,
-0.0136538902297616,
0.020154856145381927,
-0.00033180072205141187,
-0.02261367440223694,
-0.006193613633513451,
-0.04463127255439758,
0.019521525129675865,
0.01682986319065094,
0.015851924195885658,
-0.025612687692046165,
-0.016978882253170013,
-0.07711747288703918,
0.01792888157069683,
0.0006897962302900851,
0.08129001408815384,
0.009504634886980057,
0.00828453991562128,
-0.013691145926713943,
-0.042582254856824875,
0.026357783004641533,
0.005886261351406574,
-0.015572513453662395,
0.031275417655706406,
0.020005837082862854,
0.03747834637761116,
0.05550967901945114,
0.04139010235667229,
-0.04068225994706154,
0.00034664443228393793,
0.07324296981096268,
-0.04329009726643562,
-0.03576462343335152,
0.004442636854946613,
0.054280269891023636,
-0.02913326770067215,
0.03518717363476753,
0.017779862508177757,
-0.10036447644233704,
0.025873471051454544,
-0.0011450034799054265,
0.007599982898682356,
0.02144014835357666,
0.02801562286913395,
0.01571222022175789,
-0.00038186187157407403,
0.03315678611397743,
-0.031983260065317154,
0.024699945002794266,
-0.059309668838977814,
0.018804369494318962,
0.014939181506633759,
-0.06504691392183304,
0.013737713918089867,
-0.054280269891023636,
0.043737154453992844,
-0.03993716463446617,
0.03460972383618355,
-0.04668028652667999,
0.04057049751281738,
-0.010338211432099342,
-0.02119799144566059,
-0.025016609579324722,
-0.044109705835580826,
0.04850577190518379,
0.02168230339884758,
-0.0008190238731913269,
0.006677926052361727,
0.027438173070549965,
0.07525473088026047,
-0.018245546147227287,
-0.03183424100279808,
-0.054541051387786865,
-0.019931327551603317,
-0.017062706872820854,
0.01937250606715679,
0.031200909987092018,
0.05580771714448929,
0.06582926213741302,
-0.018115155398845673,
0.03650972247123718,
0.007930619642138481,
0.018972015008330345,
0.07283316552639008,
0.011223013512790203,
0.030101893469691277,
0.02393621951341629,
0.03639795631170273,
-0.0021177034359425306,
0.0716782659292221,
-0.05375870317220688,
-0.0069200824946165085,
0.007823511958122253,
0.016988197341561317,
0.006454396992921829,
-0.01356075331568718,
0.011791150085628033,
-0.0043983967043459415,
0.10051349550485611,
-0.06143319606781006,
-0.034665606915950775,
0.028760720044374466,
-0.006733808200806379,
-0.009965663775801659,
-0.0036276879254728556,
0.024550924077630043,
-0.013868105597794056,
0.0001299552823184058,
-0.049995966255664825,
0.04939989000558853,
-0.01770535297691822,
-0.05290184170007706,
-0.006454396992921829,
-0.042992059141397476,
-0.04336460679769516,
-0.046866562217473984,
0.030604831874370575,
-0.01942838728427887,
0.03636070340871811,
-0.04928812384605408,
-0.014315163716673851,
0.006631357595324516,
-0.02119799144566059,
0.02056465856730938,
0.02103034406900406,
0.02689797803759575,
0.0031107773538678885,
-0.017547018826007843,
0.058564573526382446,
-0.01412888988852501,
-0.04727636277675629,
0.011772522702813148,
0.07477042078971863,
-0.013029872439801693,
-0.007185522932559252,
0.049772437661886215,
-0.07428610324859619,
0.021347010508179665,
0.02984110824763775,
0.0013830851530656219,
-0.05215674638748169,
-0.04813322424888611,
-0.01029164344072342,
0.0042237648740410805,
-0.05148615688085556,
0.04306656867265701,
0.026320528239011765,
-0.009676938876509666,
0.007218121085315943,
-0.004428666550666094,
0.01817103661596775,
-0.0076558650471270084,
-0.06817631423473358,
0.025817587971687317,
0.0019221157999709249,
0.03542933240532875,
-0.023358771577477455,
0.019782308489084244,
0.008307823911309242,
0.01536761224269867,
0.05636654049158096,
0.029189148917794228,
0.04377441108226776,
-0.026488175615668297,
0.0041608973406255245,
-0.0020722991321235895,
0.017183784395456314,
0.010654877871274948,
-0.09656448662281036,
0.006463710684329271,
0.005984054878354073,
0.04645675793290138,
-0.027196016162633896,
0.00650096544995904,
-0.00013985109399072826,
0.02915189415216446,
0.010310270823538303,
-0.04563715308904648,
-0.08441941440105438,
0.03164796903729439,
0.0038395747542381287,
0.01965191587805748,
0.004549744538962841,
0.04891557618975639,
0.07950177788734436,
-0.0854625552892685,
-0.007315914612263441,
0.05822927877306938,
0.005164449103176594,
-0.007567384745925665,
0.03764599189162254,
0.07260964065790176,
-0.0456744059920311,
-0.014873986132442951,
-0.040943045169115067,
0.07059787958860397,
-0.004575357306748629,
-0.05193321406841278,
0.03229992836713791,
0.03546658530831337,
-0.04288029670715332,
-0.04727636277675629,
0.025631314143538475,
-0.06255083531141281,
0.04418421536684036,
-0.004135284572839737,
-0.054503798484802246,
0.027158761397004128,
0.02484896406531334,
0.02484896406531334,
-0.07994883507490158,
-0.061954762786626816,
-0.048170480877161026,
0.0188788790255785,
0.01241516787558794,
-0.009937722235918045,
0.009546547196805477,
-0.012908793985843658,
0.01206124760210514,
-0.035596977919340134,
0.04228421673178673,
-0.0002194541593780741,
-0.008908558636903763,
0.04194892570376396,
-0.014892613515257835,
0.022986222058534622,
0.0047313617542386055,
0.03949010744690895,
-0.04761165753006935,
0.01669015921652317,
-0.07719197869300842,
0.015749474987387657,
0.042321473360061646,
0.004964204505085945,
0.03576462343335152,
-0.02756856568157673,
-0.03615580126643181,
0.012564186938107014,
0.008116893470287323,
0.06609004735946655,
-0.0010087905684486032,
-0.0081215500831604,
0.03274698555469513,
0.02442053332924843,
0.06959199905395508,
-0.013365166261792183,
0.015851924195885658,
-0.07298218458890915,
0.01319751888513565,
0.01849701628088951,
0.0004604462592396885,
0.004875724203884602,
-0.05085282772779465,
0.03321266919374466,
-0.02367543615400791,
-0.04675479605793953,
0.022688183933496475,
-0.0424332357943058,
-0.045525386929512024,
-0.03993716463446617,
-0.003669599536806345,
0.026972487568855286,
-0.018329370766878128,
-0.011977423913776875,
0.040980298072099686,
0.0016648246673867106,
0.0005396127235144377,
-0.05312537029385567,
-0.03718030825257301,
-0.00011438393266871572,
-0.01435241848230362,
0.01571222022175789,
-0.009416155517101288,
0.002824380761012435,
-0.02103034406900406,
-0.07622335851192474,
0.04969792813062668,
-0.019782308489084244,
0.008419589139521122,
0.01983818970620632,
0.03192737698554993,
-0.05718614533543587,
0.0497351810336113,
0.057893987745046616,
0.010300956666469574,
0.02525876648724079,
-0.06806455552577972,
-0.00913674384355545,
-0.01241516787558794,
-0.06504691392183304,
0.012275462038815022,
-0.032635219395160675,
0.0775645300745964,
-0.02509111911058426,
0.08024688065052032,
-0.06854886561632156,
0.0025682540144771338,
-0.002856978913769126,
0.008261255919933319,
-0.01603819988667965,
0.006454396992921829,
0.03203914314508438,
0.06907042860984802,
-0.033305805176496506,
-0.03727344423532486,
-0.004433323163539171,
-0.009816644713282585,
0.014017125591635704,
0.020676422864198685,
-0.033790118992328644,
0.04418421536684036,
-0.006086505949497223,
-0.06933121383190155,
-0.005718614440411329,
0.015451435931026936,
-0.013551440089941025,
-0.0055416543036699295,
-0.046605776995420456,
0.0030292824376374483,
0.04712734371423721,
0.00819140300154686,
-0.05252929404377937,
-0.052976351231336594,
-0.027941113337874413,
0.007101699709892273,
-0.016457315534353256,
0.06169397756457329,
0.028350915759801865,
-0.07786256819963455,
0.009346302598714828,
0.020657796412706375,
-0.0334920808672905,
0.0009971484541893005,
-0.03092149831354618,
-0.0007910827407613397,
-0.011847032234072685,
-0.05290184170007706,
-0.03844697028398514,
0.0005850170855410397,
0.011772522702813148,
0.021738186478614807,
-0.010692132636904716,
-0.01444555539637804,
0.06690965592861176,
-0.041241083294153214,
0.06281162053346634,
0.018953388556838036,
-0.030381303280591965,
-0.0028546503745019436,
0.05707437917590141,
0.059272415935993195,
0.03270972892642021,
-0.0273077804595232,
0.007003905717283487,
-0.016559766605496407,
-0.0008877124637365341,
-0.01048723142594099,
-0.06568024307489395,
0.0038605304434895515,
0.005057341419160366,
-0.03684501349925995,
-0.013504871167242527,
0.02507249265909195,
-0.022222498431801796,
-0.06817631423473358,
-0.0058722905814647675,
0.03539207577705383,
-0.0005431054159998894,
-0.07488218694925308,
-0.0316665954887867,
-0.08866646885871887,
-0.051635175943374634,
0.01300193089991808,
0.024495042860507965,
0.03226267173886299,
-0.06467436254024506,
0.016895059496164322,
0.07883119583129883,
0.018059272319078445,
-0.012461736798286438,
-0.010338211432099342,
0.016634276136755943,
-0.03542933240532875,
0.06955474615097046,
0.029412679374217987,
0.0025659254752099514,
0.027829349040985107,
0.011791150085628033,
-0.02261367440223694,
-0.031294047832489014,
-0.022744067013263702,
0.014873986132442951,
0.029040129855275154,
-0.00011205550981685519,
-0.05286458507180214,
-0.0025566117838025093,
0.013188205659389496,
0.0006205255631357431,
0.02889111079275608,
-0.004424009472131729,
-0.0030688655097037554,
0.017444567754864693,
0.03701266273856163,
0.020397013053297997,
-0.0789802148938179,
0.05100184679031372,
-0.005890917964279652,
0.0062448387034237385,
0.0401979498565197,
-0.030977381393313408,
0.00868968665599823,
-0.031089145690202713,
0.03257933631539345,
0.01198673713952303,
-0.01379359606653452,
-0.021365638822317123,
0.029878363013267517,
-0.04668028652667999,
-0.007446306757628918,
-0.004382098093628883,
0.04261951148509979,
-0.026562685146927834,
0.02509111911058426,
-0.05219399929046631,
0.0479096956551075,
0.025463668629527092,
0.059495944529771805,
0.02326563373208046,
-0.00705978786572814,
-0.01051517203450203
] |
724,994 | tf_keras.src.engine.base_layer | add_metric | Adds metric tensor to the layer.
This method can be used inside the `call()` method of a subclassed layer
or model.
```python
class MyMetricLayer(tf.keras.layers.Layer):
def __init__(self):
super(MyMetricLayer, self).__init__(name='my_metric_layer')
self.mean = tf.keras.metrics.Mean(name='metric_1')
def call(self, inputs):
self.add_metric(self.mean(inputs))
self.add_metric(tf.reduce_sum(inputs), name='metric_2')
return inputs
```
This method can also be called directly on a Functional Model during
construction. In this case, any tensor passed to this Model must
be symbolic and be able to be traced back to the model's `Input`s. These
metrics become part of the model's topology and are tracked when you
save the model via `save()`.
```python
inputs = tf.keras.Input(shape=(10,))
x = tf.keras.layers.Dense(10)(inputs)
outputs = tf.keras.layers.Dense(1)(x)
model = tf.keras.Model(inputs, outputs)
model.add_metric(math_ops.reduce_sum(x), name='metric_1')
```
Note: Calling `add_metric()` with the result of a metric object on a
Functional Model, as shown in the example below, is not supported. This
is because we cannot trace the metric result tensor back to the model's
inputs.
```python
inputs = tf.keras.Input(shape=(10,))
x = tf.keras.layers.Dense(10)(inputs)
outputs = tf.keras.layers.Dense(1)(x)
model = tf.keras.Model(inputs, outputs)
model.add_metric(tf.keras.metrics.Mean()(x), name='metric_1')
```
Args:
value: Metric tensor.
name: String metric name.
**kwargs: Additional keyword arguments for backward compatibility.
Accepted values:
`aggregation` - When the `value` tensor provided is not the result
of calling a `keras.Metric` instance, it will be aggregated by
default using a `keras.Metric.Mean`.
| @doc_controls.do_not_generate_docs
def add_metric(self, value, name=None, **kwargs):
"""Adds metric tensor to the layer.
This method can be used inside the `call()` method of a subclassed layer
or model.
```python
class MyMetricLayer(tf.keras.layers.Layer):
def __init__(self):
super(MyMetricLayer, self).__init__(name='my_metric_layer')
self.mean = tf.keras.metrics.Mean(name='metric_1')
def call(self, inputs):
self.add_metric(self.mean(inputs))
self.add_metric(tf.reduce_sum(inputs), name='metric_2')
return inputs
```
This method can also be called directly on a Functional Model during
construction. In this case, any tensor passed to this Model must
be symbolic and be able to be traced back to the model's `Input`s. These
metrics become part of the model's topology and are tracked when you
save the model via `save()`.
```python
inputs = tf.keras.Input(shape=(10,))
x = tf.keras.layers.Dense(10)(inputs)
outputs = tf.keras.layers.Dense(1)(x)
model = tf.keras.Model(inputs, outputs)
model.add_metric(math_ops.reduce_sum(x), name='metric_1')
```
Note: Calling `add_metric()` with the result of a metric object on a
Functional Model, as shown in the example below, is not supported. This
is because we cannot trace the metric result tensor back to the model's
inputs.
```python
inputs = tf.keras.Input(shape=(10,))
x = tf.keras.layers.Dense(10)(inputs)
outputs = tf.keras.layers.Dense(1)(x)
model = tf.keras.Model(inputs, outputs)
model.add_metric(tf.keras.metrics.Mean()(x), name='metric_1')
```
Args:
value: Metric tensor.
name: String metric name.
**kwargs: Additional keyword arguments for backward compatibility.
Accepted values:
`aggregation` - When the `value` tensor provided is not the result
of calling a `keras.Metric` instance, it will be aggregated by
default using a `keras.Metric.Mean`.
"""
kwargs_keys = list(kwargs.keys())
if len(kwargs_keys) > 1 or (
len(kwargs_keys) == 1 and kwargs_keys[0] != "aggregation"
):
raise TypeError(
f"Unknown keyword arguments: {kwargs.keys()}. "
"Expected `aggregation`."
)
from_metric_obj = hasattr(value, "_metric_obj")
is_symbolic = isinstance(value, keras_tensor.KerasTensor)
in_call_context = base_layer_utils.call_context().in_call
if name is None and not from_metric_obj:
# Eg. `self.add_metric(math_ops.reduce_sum(x))` In eager mode, we
# use metric name to lookup a metric. Without a name, a new Mean
# metric wrapper will be created on every model/layer call. So, we
# raise an error when no name is provided. We will do the same for
# symbolic mode for consistency although a name will be generated if
# no name is provided.
# We will not raise this error in the foll use case for the sake of
# consistency as name in provided in the metric constructor.
# mean = metrics.Mean(name='my_metric')
# model.add_metric(mean(outputs))
raise ValueError(
"Please provide a name for your metric like "
"`self.add_metric(tf.reduce_sum(inputs), "
"name='mean_activation')`"
)
elif from_metric_obj:
name = value._metric_obj.name
if not in_call_context and not is_symbolic:
raise ValueError(
"Expected a symbolic Tensor for the metric value, received: "
+ str(value)
)
# If a metric was added in a Layer's `call` or `build`.
if in_call_context or not getattr(self, "_is_graph_network", False):
# TF Function path should take the eager path.
# If the given metric is available in `metrics` list we just update
# state on it, otherwise we create a new metric instance and
# add it to the `metrics` list.
metric_obj = getattr(value, "_metric_obj", None)
# Tensors that come from a Metric object already updated the Metric
# state.
should_update_state = not metric_obj
name = metric_obj.name if metric_obj else name
with self._metrics_lock:
match = self._get_existing_metric(name)
if match:
metric_obj = match
elif metric_obj:
self._metrics.append(metric_obj)
else:
# Build the metric object with the value's dtype if it
# defines one
metric_obj = metrics_mod.Mean(
name=name, dtype=getattr(value, "dtype", None)
)
self._metrics.append(metric_obj)
if should_update_state:
metric_obj(value)
else:
if from_metric_obj:
raise ValueError(
"Using the result of calling a `Metric` object "
"when calling `add_metric` on a Functional "
"Model is not supported. Please pass the "
"Tensor to monitor directly."
)
# Insert layers into the TF-Keras Graph Network.
aggregation = None if from_metric_obj else "mean"
self._graph_network_add_metric(value, aggregation, name)
| (self, value, name=None, **kwargs) | [
-0.0004251606878824532,
-0.08323600888252258,
0.009142616763710976,
0.08880570530891418,
0.04552452638745308,
0.014417389407753944,
-0.045253776013851166,
-0.021060410887002945,
0.020151467993855476,
-0.01809184066951275,
-0.01246412843465805,
0.01591617986559868,
0.0606091171503067,
-0.022858958691358566,
0.04761316254734993,
0.056083742529153824,
0.033979009836912155,
-0.0007602731348015368,
0.05295078828930855,
-0.019861379638314247,
0.016138579696416855,
-0.05697334557771683,
0.006367438472807407,
-0.01236743200570345,
-0.0016281206626445055,
0.03301205113530159,
0.009514897130429745,
-0.04347456991672516,
-0.009113607928156853,
-0.0038823485374450684,
-0.05117157846689224,
-0.06254304200410843,
0.011729237623512745,
0.0023992720525711775,
0.04293306916952133,
-0.05515545979142189,
-0.017830761149525642,
0.039219941943883896,
-0.1184333935379982,
-0.06965987384319305,
0.037421394139528275,
0.010046725161373615,
-0.016883140429854393,
-0.0042933071963489056,
0.03440447524189949,
0.04022558033466339,
-0.009790481068193913,
0.047265056520700455,
0.01187428180128336,
-0.08207565546035767,
-0.02792583592236042,
-0.009355348534882069,
-0.012860582210123539,
0.060183655470609665,
0.009336008690297604,
0.0036478606052696705,
0.015597081743180752,
-0.06753256171941757,
0.0019085393287241459,
0.022491514682769775,
-0.008644632063806057,
-0.015529394149780273,
-0.008804180659353733,
-0.029395615682005882,
-0.05109422281384468,
-0.02394195646047592,
-0.028892796486616135,
-0.016989504918456078,
-0.02140851691365242,
0.025276362895965576,
-0.04096047207713127,
-0.06254304200410843,
0.08068323135375977,
-0.02177596278488636,
-0.009872672148048878,
-0.03370826318860054,
0.01923285610973835,
-0.036357734352350235,
0.05736013129353523,
-0.04502170532941818,
-0.004416594747453928,
-0.018710697069764137,
-0.0005659743910655379,
-0.053337570279836655,
0.018391599878668785,
-0.030904075130820274,
-0.030246540904045105,
0.0035608340986073017,
-0.031638965010643005,
0.002304993337020278,
-0.010095073841512203,
-0.010655910708010197,
0.0051732417196035385,
0.028351297602057457,
-0.005850114393979311,
-0.04258496314287186,
-0.06830612570047379,
-0.017579352483153343,
-0.005303781479597092,
0.01525864563882351,
0.024580150842666626,
-0.003744556801393628,
0.01730860210955143,
0.025933895260095596,
0.016970166936516762,
-0.0923641175031662,
-0.03916192427277565,
-0.00381949613802135,
-0.011419810354709625,
0.05449792370200157,
-0.02324574440717697,
-0.0480773039162159,
-0.011545514687895775,
-0.0023642198648303747,
-0.0011035442585125566,
0.0317550003528595,
-0.0023823503870517015,
-0.028970154002308846,
0.0010207482846453786,
0.009016911499202251,
-0.023555170744657516,
0.023671206086874008,
0.019329551607370377,
-0.04355192556977272,
0.007919411174952984,
0.005840444937348366,
0.047226376831531525,
0.0007439556648023427,
0.01669941656291485,
-0.006352934055030346,
-0.03912324458360672,
-0.022162746638059616,
0.026262661442160606,
0.04544717073440552,
0.06505714356899261,
-0.002318289130926132,
0.06045440584421158,
0.007276381831616163,
0.001653503393754363,
0.063510000705719,
0.07410789281129837,
0.03216112405061722,
-0.0006895640981383622,
-0.01763737015426159,
0.01425300631672144,
-0.013856551609933376,
-0.011593863368034363,
0.039800118654966354,
-0.020480236038565636,
-0.06993062049150467,
-0.04065104201436043,
-0.0037832350935786963,
0.03628037869930267,
0.003722800174728036,
0.024135347455739975,
0.06687502562999725,
0.013141000643372536,
-0.016912149265408516,
0.002378724282607436,
-0.05016594007611275,
-0.015635760501027107,
0.009365017525851727,
0.019126489758491516,
-0.02452213317155838,
-0.003345685312524438,
0.05639316886663437,
-0.03628037869930267,
0.011265096254646778,
-0.0606091171503067,
0.021563231945037842,
-0.0275197122246027,
-0.06521185487508774,
0.07983230799436569,
0.04873483628034592,
0.02506363019347191,
0.04552452638745308,
0.0037493915297091007,
-0.0038920182269066572,
-0.0034061202313750982,
0.025779182091355324,
0.02181464061141014,
0.018140189349651337,
-0.06281378865242004,
-0.030420593917369843,
-0.07232868671417236,
0.003149875672534108,
0.026436714455485344,
-0.022452834993600845,
0.01189362071454525,
-0.006106358952820301,
0.06699106097221375,
0.016593052074313164,
0.020074112340807915,
0.0063335951417684555,
-0.009737297892570496,
-0.050630081444978714,
0.012696199119091034,
0.02960834838449955,
0.10249786823987961,
0.058133698999881744,
-0.039800118654966354,
0.016109570860862732,
0.03388231620192528,
0.04177271947264671,
-0.0028186915442347527,
-0.0011555184610188007,
0.026398036628961563,
0.03908456489443779,
-0.12145030498504639,
-0.0420047864317894,
-0.038485050201416016,
-0.0011657924624159932,
0.01570344716310501,
0.10690721124410629,
0.022452834993600845,
-0.029221562668681145,
0.030130507424473763,
0.03399835154414177,
-0.009824324399232864,
-0.00830619502812624,
0.020402878522872925,
0.0249282568693161,
-0.008789676241576672,
0.009089433588087559,
0.041192542761564255,
-0.037460070103406906,
0.058791231364011765,
-0.027674425393342972,
0.043938711285591125,
-0.035120025277137756,
-0.0030628491658717394,
-0.04281703382730484,
0.019406909123063087,
0.056779954582452774,
-0.026514071971178055,
0.028931474313139915,
0.003947618417441845,
-0.005874288268387318,
0.01656404323875904,
-0.03330213949084282,
-0.032122448086738586,
-0.04645280912518501,
-0.014726816676557064,
0.014978227205574512,
-0.04811598360538483,
-0.02374856360256672,
0.024174027144908905,
0.06745520234107971,
-0.03334081545472145,
-0.002378724282607436,
0.010829963721334934,
0.05511678010225296,
0.0368218757212162,
0.014833183027803898,
-0.047922588884830475,
-0.06002894416451454,
-0.03691857308149338,
-0.033360157161951065,
0.0587138757109642,
-0.015809813514351845,
-0.035448793321847916,
0.017366619780659676,
0.008683309890329838,
0.04803862422704697,
-0.02312970906496048,
-0.038485050201416016,
0.024541471153497696,
0.036976590752601624,
0.018430277705192566,
0.01579047366976738,
0.043165139853954315,
0.05093950778245926,
0.0017828344134613872,
-0.05875255540013313,
-0.018178867176175117,
-0.06637220829725266,
0.022201426327228546,
0.041115183383226395,
-0.005424651317298412,
-0.01039483118802309,
-0.007034641690552235,
-0.043900031596422195,
-0.04490566998720169,
0.014233666472136974,
-0.05794030800461769,
0.0033698591869324446,
0.03169698268175125,
-0.018710697069764137,
-0.019213516265153885,
-0.012676859274506569,
0.043822675943374634,
-0.037053946405649185,
0.03488795459270477,
0.039065226912498474,
-0.033979009836912155,
0.007648661732673645,
-0.06080251187086105,
0.008644632063806057,
0.006033836863934994,
0.0026978212408721447,
0.02485089935362339,
0.045253776013851166,
0.036435093730688095,
-0.013334392569959164,
-0.0139822568744421,
-0.03281865641474724,
0.06915705651044846,
-0.009751802310347557,
0.00830619502812624,
0.0032489891164004803,
-0.0029734051786363125,
0.04858012497425079,
-0.0293569378554821,
-0.004281220026314259,
-0.0043900031596422195,
0.013605142012238503,
0.006918606348335743,
-0.008069289848208427,
0.07557767629623413,
0.04556320607662201,
0.02697821334004402,
0.031136145815253258,
-0.03666716441512108,
-0.002385976491495967,
-0.02792583592236042,
-0.032586585730314255,
0.06965987384319305,
-0.011835603043437004,
0.012357762083411217,
-0.01780175231397152,
-0.009650271385908127,
-0.0661788135766983,
0.03591293469071388,
0.01326670590788126,
-0.09685081988573074,
-0.05929405242204666,
-0.017627699300646782,
0.0048759011551737785,
-0.027364997193217278,
0.04873483628034592,
0.015635760501027107,
0.034307777881622314,
-0.03726667910814285,
0.015597081743180752,
-0.010607562959194183,
-0.03231583908200264,
0.039800118654966354,
-0.0046075694262981415,
0.021311821416020393,
0.01800481416285038,
-0.014001595787703991,
0.013315053656697273,
-0.018565652891993523,
-0.0017441560048609972,
0.056895989924669266,
0.05991290882229805,
-0.0065318220295012,
-0.054111141711473465,
-0.019000785425305367,
-0.06993062049150467,
0.0025696989614516497,
0.023187726736068726,
0.010162760503590107,
0.03351486846804619,
0.07043344527482986,
0.03227715939283371,
0.022742923349142075,
-0.014301354065537453,
0.018062831833958626,
-0.03415306285023689,
-0.007880732417106628,
-0.05461395904421806,
0.02485089935362339,
0.051442328840494156,
-0.01057855412364006,
0.022201426327228546,
0.028680065646767616,
0.009824324399232864,
-0.008243342861533165,
0.020306183025240898,
0.05113289877772331,
0.05109422281384468,
-0.038813818246126175,
0.025005612522363663,
0.055310171097517014,
0.012328753247857094,
-0.031155485659837723,
-0.055426206439733505,
-0.020731644704937935,
-0.040457651019096375,
0.01824655570089817,
-0.009804985485970974,
-0.0016293294029310346,
-0.005236093886196613,
-0.058829911053180695,
-0.021524552255868912,
0.01627395488321781,
-0.0009089434170164168,
-0.027248961851000786,
-0.07248339802026749,
-0.022201426327228546,
-0.05372435599565506,
0.06788066774606705,
0.019532613456249237,
-0.03022720292210579,
-0.02953099086880684,
-0.03440447524189949,
0.02349715307354927,
-0.05999026447534561,
0.055426206439733505,
-0.0022155495826154947,
-0.06037705019116402,
-0.03452051058411598,
0.04440285265445709,
0.026378696784377098,
-0.028119226917624474,
0.040612366050481796,
-0.0620015412569046,
-0.0018070085207000375,
0.029492313042283058,
0.0038243308663368225,
0.03030455857515335,
0.04575659707188606,
0.05975819379091263,
0.010443179868161678,
-0.056779954582452774,
-0.020596271380782127,
0.00484930956736207,
-0.008238508366048336,
0.008828354068100452,
-0.011448819190263748,
-0.039761438965797424,
0.006348099559545517,
-0.013827542774379253,
-0.0456792414188385,
-0.0494697280228138,
0.020441556349396706,
-0.032876674085855484,
0.010897651314735413,
0.010520536452531815,
-0.0014927461743354797,
-0.013991926796734333,
0.04359060525894165,
0.04471227899193764,
-0.06045440584421158,
-0.014136970974504948,
-0.030942752957344055,
0.06292982399463654,
-0.045137740671634674,
-0.011477828025817871,
0.05179043486714363,
-0.024792881682515144,
0.026185305789113045,
0.03751808777451515,
0.006290081888437271,
-0.01050119660794735,
-0.025817859917879105,
-0.07770498842000961,
0.032373856753110886,
0.008639796636998653,
-0.033572886139154434,
0.07944551855325699,
-0.044480208307504654,
-0.044557563960552216,
-0.06409017741680145,
0.020325521007180214,
0.0625043660402298,
0.020209485664963722,
0.01006606500595808,
0.02510230988264084,
0.07399185746908188,
-0.012744546867907047,
0.012657520361244678,
-0.0291635449975729,
-0.02247217483818531,
0.009921020828187466,
-0.00012600711488630623,
0.011535845696926117,
-0.007556800730526447,
0.0017260254826396704,
0.049895189702510834,
-0.022858958691358566,
-0.0019726005848497152,
-0.0087945107370615,
0.04703298583626747,
0.12732943892478943,
0.020325521007180214,
-0.034307777881622314,
0.06606277823448181,
0.0026663951575756073,
-0.08238508552312851,
0.04076707735657692,
0.06904102116823196,
-0.036435093730688095,
-0.08052852004766464,
0.0111974086612463,
0.043165139853954315,
-0.00939402636140585,
0.021911337971687317,
0.031638965010643005,
0.008054785430431366,
-0.014523754827678204,
-0.05937140807509422,
0.032915353775024414,
0.012502806261181831,
0.010307804681360722,
-0.0531441792845726,
0.011439149267971516,
0.013334392569959164,
-0.029511651024222374,
-0.01693148724734783,
0.03788553550839424,
0.06057044118642807,
0.06509581953287125,
0.0063094208016991615,
-0.06045440584421158,
0.00598548911511898,
0.015838822349905968,
0.005395642481744289,
-0.06312321871519089,
0.01726025529205799,
0.013450427912175655,
-0.01355679426342249,
-0.02514098770916462,
0.01068491954356432,
0.023806581273674965,
-0.06741652637720108,
-0.0016970166470855474,
0.0015664768870919943,
0.016380319371819496,
0.011052364483475685,
0.04397738724946976,
-0.02309102937579155,
0.04827069491147995,
-0.02305235154926777,
-0.030536629259586334,
-0.007010467816144228,
-0.043049104511737823,
-0.09290561825037003,
-0.0033190937247127295,
0.012734876945614815,
-0.005777592305094004,
0.019996754825115204,
-0.02133116126060486,
0.001977435313165188,
0.05326021462678909,
0.0004925457760691643,
-0.02587587758898735,
-0.00619338545948267,
-0.07847855985164642,
-0.021505214273929596,
0.04637545347213745,
-0.029743721708655357,
0.000017696142094791867,
0.04096047207713127,
0.052099861204624176,
-0.015152279287576675,
0.022646227851510048,
-0.017830761149525642,
0.010829963721334934,
0.0028646220453083515,
0.01934889145195484,
0.06699106097221375,
-0.0012485884362831712,
0.012483467347919941,
-0.014485077001154423,
-0.04830937460064888,
-0.01255115494132042,
-0.04745844751596451,
-0.028312619775533676,
-0.03736337646842003,
-0.04146328940987587,
0.023110369220376015,
-0.056122418493032455,
-0.045137740671634674,
0.08076059073209763,
0.013440758921205997,
0.01099434681236744,
-0.005245763808488846,
-0.0323931947350502,
-0.06915705651044846,
0.009379521943628788,
0.01310232188552618,
-0.008886371739208698,
0.04687827080488205,
0.028003191575407982,
-0.025005612522363663,
0.052099861204624176,
-0.029879096895456314,
0.030420593917369843,
-0.03190971538424492,
-0.00795808993279934,
-0.03260592743754387,
-0.030575308948755264,
0.010443179868161678,
0.026958873495459557,
-0.07120700925588608,
0.006483473815023899,
0.027461694553494453,
0.02554711140692234,
-0.04262364283204079,
-0.003553581889718771,
-0.000915591255761683,
-0.0073779127560555935,
0.002000400796532631,
0.017366619780659676,
-0.03933597728610039,
0.017695387825369835,
-0.02514098770916462,
-0.02792583592236042,
-0.034423813223838806,
0.040457651019096375,
-0.019590631127357483,
0.02235613949596882,
0.049237657338380814,
-0.03968408331274986,
-0.025682484731078148,
0.012676859274506569,
0.03622236102819443,
-0.012638181447982788,
0.04436417296528816,
0.032006412744522095,
-0.04424813762307167,
0.004428681451827288,
-0.011632541194558144,
0.009688950143754482,
0.005376303568482399,
-0.06057044118642807,
0.0012921016896143556,
-0.015597081743180752,
-0.029956454411149025,
0.02312970906496048,
-0.018526973202824593,
-0.01730860210955143,
0.07886534184217453,
-0.07611917704343796,
0.019329551607370377,
0.0117679163813591,
-0.014078953303396702,
-0.03231583908200264,
-0.02628200128674507,
0.0037977395113557577,
0.0031933889258652925,
-0.004068488720804453,
0.025005612522363663,
0.01591617986559868,
-0.041192542761564255,
-0.03800157085061073,
0.07902006059885025,
0.0249282568693161,
-0.034675221890211105,
-0.014417389407753944,
0.0401095449924469,
-0.008886371739208698,
0.10226579755544662,
0.03322478011250496,
0.0415019690990448,
-0.04769051820039749,
0.03469456359744072,
-0.010095073841512203,
-0.05933273211121559,
-0.029453633353114128,
0.029879096895456314,
0.03413372486829758,
-0.043242499232292175,
-0.012812233529984951,
-0.03494597226381302,
-0.041811395436525345,
0.006865423638373613,
0.030439933761954308,
-0.025121647864580154,
-0.011448819190263748,
0.01088798139244318,
0.009838828817009926,
-0.015452037565410137,
0.0021309403236955404,
0.06772594898939133,
0.016457676887512207,
-0.03488795459270477,
-0.04262364283204079,
0.015838822349905968,
0.023149047046899796,
0.004440768621861935,
0.05182911083102226,
-0.020809002220630646,
-0.020151467993855476,
-0.00482997065410018,
-0.005095884669572115,
0.0009464131435379386,
-0.04080575704574585,
-0.010559214279055595,
-0.05163571983575821,
-0.010636571794748306,
0.00044147815788164735,
-0.09499425441026688,
-0.01710554026067257,
-0.09151319414377213,
0.016747765243053436,
0.006111193913966417,
-0.010240118019282818,
-0.01287992112338543,
0.04881219565868378,
-0.007851723581552505,
-0.015974197536706924,
0.06467035412788391,
0.0456792414188385,
-0.058095019310712814,
-0.06134400889277458,
0.019377900287508965,
-0.015036244876682758,
0.01006606500595808,
0.039026547223329544,
-0.0035608340986073017,
-0.031522929668426514,
0.03995482996106148,
-0.029666366055607796,
-0.010211109183728695,
-0.009031415916979313,
-0.016535034403204918,
0.028892796486616135,
0.02013213001191616,
0.001514502801001072,
0.03842703253030777,
-0.016544703394174576,
-0.035158704966306686,
0.0020717140287160873,
0.022936316207051277,
-0.0331474244594574,
0.024057991802692413,
-0.015374680981040001,
0.04161800444126129,
0.052680037915706635,
0.01656404323875904,
0.05766955763101578,
0.030091827735304832,
0.027036231011152267,
0.0025261857081204653,
-0.00010523256059968844,
0.03875580057501793,
-0.012667190283536911,
0.0070926593616604805,
-0.0011857360368594527,
-0.028003191575407982,
0.005298946518450975,
0.02312970906496048,
-0.0026567254681140184,
0.029879096895456314,
0.04575659707188606,
-0.004496369045227766,
0.019300542771816254,
0.028041871264576912,
-0.012541485019028187,
-0.017153888940811157,
0.036396414041519165,
0.09120376408100128,
-0.017501994967460632,
-0.013518115505576134,
-0.03869778290390968,
0.02734565921127796,
-0.055348850786685944,
0.013943578116595745,
-0.0592166967689991,
0.02690085582435131,
-0.016051553189754486,
-0.01494921837002039,
0.04753580689430237,
-0.019126489758491516,
0.03059464693069458
] |
724,995 | tf_keras.src.engine.base_layer | add_update | Add update op(s), potentially dependent on layer inputs.
Weight updates (for instance, the updates of the moving mean and
variance in a BatchNormalization layer) may be dependent on the inputs
passed when calling a layer. Hence, when reusing the same layer on
different inputs `a` and `b`, some entries in `layer.updates` may be
dependent on `a` and some on `b`. This method automatically keeps track
of dependencies.
This call is ignored when eager execution is enabled (in that case,
variable updates are run on the fly and thus do not need to be tracked
for later execution).
Args:
updates: Update op, or list/tuple of update ops, or zero-arg callable
that returns an update op. A zero-arg callable should be passed in
order to disable running the updates by setting `trainable=False`
on this Layer, when executing in Eager mode.
| @doc_controls.do_not_doc_inheritable
def add_update(self, updates):
"""Add update op(s), potentially dependent on layer inputs.
Weight updates (for instance, the updates of the moving mean and
variance in a BatchNormalization layer) may be dependent on the inputs
passed when calling a layer. Hence, when reusing the same layer on
different inputs `a` and `b`, some entries in `layer.updates` may be
dependent on `a` and some on `b`. This method automatically keeps track
of dependencies.
This call is ignored when eager execution is enabled (in that case,
variable updates are run on the fly and thus do not need to be tracked
for later execution).
Args:
updates: Update op, or list/tuple of update ops, or zero-arg callable
that returns an update op. A zero-arg callable should be passed in
order to disable running the updates by setting `trainable=False`
on this Layer, when executing in Eager mode.
"""
call_context = base_layer_utils.call_context()
# No need to run updates during Functional API construction.
if call_context.in_keras_graph:
return
# Callable updates are disabled by setting `trainable=False`.
if not call_context.frozen:
for update in tf.nest.flatten(updates):
if callable(update):
update()
| (self, updates) | [
-0.014526245184242725,
-0.0567692331969738,
-0.02567797154188156,
0.06562734395265579,
-0.0015071089146658778,
-0.0025594488251954317,
-0.08583930134773254,
0.008480234071612358,
0.04056451842188835,
0.011538391001522541,
-0.008304477669298649,
-0.04485296830534935,
0.05051231384277344,
0.014157157391309738,
0.01898166351020336,
0.022321030497550964,
-0.007671755738556385,
-0.006169040687382221,
-0.014842606149613857,
-0.056734081357717514,
0.018120458349585533,
-0.03230397775769234,
0.0018102882895618677,
0.03325306251645088,
-0.008862503804266453,
0.020124077796936035,
0.022461634129285812,
-0.01677592471241951,
-0.020879829302430153,
-0.014763516373932362,
-0.008708717301487923,
-0.054378949105739594,
-0.024588285014033318,
-0.008212205953896046,
0.018858633935451508,
-0.00978961680084467,
-0.003717242507264018,
0.0562419667840004,
-0.052199576050043106,
-0.04594265669584274,
0.05958133190870285,
-0.011169303208589554,
0.02356889843940735,
0.0029724757187068462,
0.047946274280548096,
0.05170745775103569,
-0.048860207200050354,
0.014359276741743088,
-0.005597833078354597,
-0.02557251788675785,
0.014728364534676075,
-0.057261351495981216,
0.06643582135438919,
0.031530652195215225,
0.009315075352787971,
0.0015126012731343508,
0.0281209833920002,
-0.026468874886631966,
0.019930746406316757,
-0.011063849553465843,
0.04393903538584709,
-0.06397523730993271,
-0.01973741501569748,
0.011028697714209557,
-0.01467563770711422,
-0.03785787150263786,
-0.045134179294109344,
0.00018838861433323473,
-0.012522624805569649,
0.0385608971118927,
-0.033938512206077576,
-0.0042906468734145164,
0.011063849553465843,
-0.02905249036848545,
-0.05733165517449379,
0.03181186318397522,
0.0075047872960567474,
-0.007865087129175663,
0.021442249417304993,
-0.042427532374858856,
-0.011019909754395485,
-0.022514361888170242,
0.0166704710572958,
0.027277354151010513,
0.06337766349315643,
-0.02495737187564373,
-0.00978961680084467,
-0.016802286729216576,
-0.017839249223470688,
-0.027488261461257935,
-0.01626623049378395,
0.02961491048336029,
-0.007882663048803806,
-0.0011896493379026651,
0.032760944217443466,
-0.012557776644825935,
-0.014350488781929016,
-0.07262244075536728,
-0.03472941368818283,
0.023129507899284363,
0.010685973800718784,
-0.006138283293694258,
0.06309645622968674,
0.029175519943237305,
0.02005377598106861,
-0.07198971509933472,
-0.025502216070890427,
-0.018841058015823364,
-0.02696099318563938,
-0.020106501877307892,
0.05880800634622574,
-0.052234724164009094,
0.023463444784283638,
-0.0031174744945019484,
-0.020229531452059746,
-0.008427507244050503,
0.003047172212973237,
-0.03606516122817993,
0.02000104822218418,
0.010343248955905437,
0.002849446376785636,
0.05353531986474991,
0.021811338141560555,
-0.06010860204696655,
0.0014730561524629593,
-0.050863828510046005,
0.018682878464460373,
0.05585530400276184,
0.03768211603164673,
-0.06710369884967804,
-0.02174103446304798,
-0.06633036583662033,
-0.04875475540757179,
0.0471377968788147,
0.06408069282770157,
-0.030458539724349976,
0.03267306834459305,
0.02669735811650753,
-0.029931271448731422,
0.01048385351896286,
0.025537367910146713,
0.024166470393538475,
0.008581293746829033,
0.036381520330905914,
-0.04182996228337288,
-0.016802286729216576,
-0.03768211603164673,
-0.013331103138625622,
-0.010475066490471363,
-0.03564334660768509,
-0.04327116161584854,
-0.002671493450179696,
-0.012461110949516296,
0.034957896918058395,
-0.024025864899158478,
0.0036403490230441093,
-0.05845649167895317,
-0.04218147322535515,
0.07810603082180023,
-0.011512027122080326,
-0.013243225403130054,
-0.007825542241334915,
0.008392355404794216,
-0.013647464103996754,
0.006344796624034643,
0.013049894012510777,
-0.0468565858900547,
-0.011758086271584034,
-0.04741900786757469,
0.08119934052228928,
0.05371107906103134,
-0.010817790403962135,
0.0873156487941742,
-0.007803572807461023,
0.03492274507880211,
-0.0048640514723956585,
0.028296738862991333,
-0.031319744884967804,
-0.004789354745298624,
0.010598095133900642,
0.02680281177163124,
0.000896356301382184,
-0.005448440555483103,
0.0017663491889834404,
-0.041759658604860306,
0.037154849618673325,
-0.023814957588911057,
0.026222815737128258,
0.02618766576051712,
-0.004644356202334166,
0.040318459272384644,
0.0006508469814434648,
0.029175519943237305,
0.013278376311063766,
-0.03392093628644943,
0.007548726163804531,
-0.016037747263908386,
0.01283898577094078,
0.0653461366891861,
0.011538391001522541,
-0.017927126958966255,
-0.01301474217325449,
0.06756065785884857,
0.07916056364774704,
-0.0023375567980110645,
0.049844443798065186,
0.02230345457792282,
-0.004442236386239529,
-0.048614148050546646,
-0.0540977418422699,
-0.016538653522729874,
0.04249783605337143,
0.028244012966752052,
0.06063586845993996,
0.007816754281520844,
-0.0050573828630149364,
-0.014412003569304943,
0.010466278530657291,
0.01590593159198761,
0.009851131588220596,
0.004200571682304144,
0.03506334871053696,
0.0002424885460641235,
-0.023305265232920647,
0.04197056591510773,
-0.04393903538584709,
0.028982188552618027,
0.03163610398769379,
0.016398048028349876,
-0.04594265669584274,
0.0066743395291268826,
-0.020124077796936035,
-0.03842029348015785,
-0.004894808400422335,
0.002765962388366461,
-0.005307835526764393,
-0.06327220797538757,
-0.025273732841014862,
0.06974003463983536,
-0.042779043316841125,
-0.013858371414244175,
-0.002616569632664323,
-0.0013665040023624897,
-0.005606621038168669,
-0.045380234718322754,
-0.01000052411109209,
0.029878543689846992,
0.0203525610268116,
-0.039193619042634964,
-0.0032998216338455677,
0.030458539724349976,
0.0050881402567029,
0.00027805170975625515,
0.06193646416068077,
-0.00645464425906539,
0.010773851536214352,
-0.002381495665758848,
0.009886283427476883,
0.005110109690576792,
-0.024254348129034042,
-0.0337451808154583,
0.05473046377301216,
-0.0725521370768547,
0.05016080290079117,
-0.025695547461509705,
-0.04836808890104294,
0.046926889568567276,
0.014412003569304943,
-0.031583379954099655,
0.033569421619176865,
0.05103958398103714,
0.061444345861673355,
0.010422339662909508,
-0.012918076477944851,
0.014921696856617928,
-0.03859604895114899,
0.03743605688214302,
-0.0016707818722352386,
-0.0017696446739137173,
-0.012566564604640007,
0.06467825919389725,
-0.04639962315559387,
-0.06552188843488693,
0.04555599391460419,
0.009218409657478333,
-0.020159229636192322,
0.002407859079539776,
0.03207549452781677,
-0.049176570028066635,
-0.027523411437869072,
0.08035571128129959,
0.0072675165720283985,
0.09743920713663101,
0.034606385976076126,
-0.034237295389175415,
0.009991737082600594,
-0.02297132834792137,
0.026064636185765266,
-0.004784960765391588,
-0.021776186302304268,
0.02501009963452816,
0.0325324609875679,
-0.005470409989356995,
-0.011494452133774757,
0.03813908249139786,
-0.04432569816708565,
0.05360562354326248,
-0.0025001310277730227,
-0.020897405222058296,
0.011345058679580688,
0.013102620840072632,
0.025150703266263008,
-0.04218147322535515,
-0.010334460996091366,
-0.009719314984977245,
-0.07241152971982956,
-0.0058482857421040535,
-0.03189973905682564,
0.013761705718934536,
0.05796437710523605,
-0.028244012966752052,
0.03785787150263786,
0.005329804960638285,
0.024922221899032593,
-0.08337871730327606,
-0.046926889568567276,
0.12485716491937637,
-0.007008276414126158,
0.01850712113082409,
0.011116576381027699,
-0.023445868864655495,
-0.10060281306505203,
0.05645287409424782,
0.025379186496138573,
-0.0929398462176323,
-0.007311455439776182,
-0.006683127488940954,
-0.011617480777204037,
0.04038876295089722,
0.01045749057084322,
0.012663230299949646,
0.04218147322535515,
-0.06450250744819641,
0.02460585907101631,
-0.02806825563311577,
-0.021705884486436844,
0.045345086604356766,
0.04843839257955551,
0.02587130479514599,
0.03982634097337723,
-0.011714146472513676,
0.02404344081878662,
-0.0317239835858345,
0.023410718888044357,
0.06046011298894882,
0.03743605688214302,
-0.0036315612960606813,
-0.04460690915584564,
0.051883213222026825,
-0.06981033831834793,
-0.00008060067193582654,
0.030651871114969254,
0.03968573734164238,
0.030722172930836678,
0.03089793026447296,
-0.014104430563747883,
0.025484640151262283,
-0.017373494803905487,
-0.023744655773043633,
-0.0696345865726471,
-0.005813134368509054,
-0.05044201388955116,
0.07775451987981796,
0.06274494528770447,
-0.01841924339532852,
0.013260801322758198,
-0.05272684246301651,
-0.013717766851186752,
0.05212927237153053,
0.03181186318397522,
0.020036200061440468,
-0.01301474217325449,
-0.03177671134471893,
0.014561396092176437,
0.09012775123119354,
0.022127699106931686,
-0.012513837777078152,
-0.06327220797538757,
0.017478948459029198,
-0.014596547931432724,
0.04646992310881615,
0.03831483796238899,
-0.020124077796936035,
-0.0015389646869152784,
-0.08597990870475769,
-0.016494713723659515,
0.0511450357735157,
0.017733795568346977,
-0.021002858877182007,
-0.08028540760278702,
0.03550273925065994,
-0.025502216070890427,
0.05023110657930374,
0.03177671134471893,
0.004376328084617853,
-0.03073974885046482,
-0.026416148990392685,
0.053218960762023926,
-0.037822723388671875,
0.05532803386449814,
-0.03406153991818428,
-0.008203417994081974,
-0.03339366614818573,
0.05529288202524185,
0.005602227058261633,
0.003954512998461723,
0.012434747070074081,
-0.04313055798411369,
-0.00800569262355566,
0.03001914918422699,
0.04678628593683243,
0.04263843968510628,
0.009455680847167969,
0.10601610690355301,
0.04112693667411804,
-0.07557514309883118,
-0.01084415428340435,
-0.0002699504548218101,
0.0044883727096021175,
0.04327116161584854,
-0.027171900495886803,
-0.061444345861673355,
-0.006819338537752628,
-0.008124327287077904,
0.0031658075749874115,
-0.0246410109102726,
0.059651635587215424,
-0.0048992023803293705,
-0.022321030497550964,
0.024570709094405174,
-0.012847773730754852,
-0.016696833074092865,
0.007482817862182856,
-0.034026388078927994,
-0.08035571128129959,
-0.03898271173238754,
-0.037506360560655594,
0.017373494803905487,
-0.040318459272384644,
-0.03764696419239044,
0.07276304066181183,
-0.009253560565412045,
0.03926392272114754,
0.06063586845993996,
-0.014719576574862003,
-0.035871829837560654,
-0.01319928653538227,
-0.036381520330905914,
0.009376590140163898,
-0.01076506357640028,
-0.022373756393790245,
0.027628865092992783,
-0.015879567712545395,
-0.001261050347238779,
-0.02356889843940735,
-0.01388473529368639,
0.058632250875234604,
-0.02935127541422844,
-0.008524172939360142,
0.0166704710572958,
0.0669630914926529,
-0.06147949770092964,
0.007895844988524914,
-0.012355657294392586,
0.016538653522729874,
-0.0093062873929739,
-0.018348941579461098,
-0.015246845781803131,
-0.035414863377809525,
-0.0377524197101593,
-0.001120445434935391,
-0.009517194703221321,
-0.03478214144706726,
0.012443535029888153,
0.017408646643161774,
-0.0026561147533357143,
-0.009833556599915028,
0.0025726305320858955,
0.047489311546087265,
0.03747120872139931,
-0.00478056725114584,
-0.023656776174902916,
0.07206001877784729,
-0.0279803778976202,
-0.06984549015760422,
-0.031214291229844093,
0.0008106752065941691,
-0.010018100030720234,
0.04225177690386772,
-0.016020173206925392,
0.02147740125656128,
0.03033551014959812,
0.00047042229562066495,
-0.011898690834641457,
0.006243736948817968,
-0.007469635922461748,
-0.03965058550238609,
0.009069017134606838,
-0.005997678264975548,
0.045802049338817596,
-0.0224967859685421,
-0.047032345086336136,
0.06974003463983536,
0.05360562354326248,
0.04829778894782066,
-0.04179481044411659,
-0.003429441712796688,
0.06126859039068222,
0.056382570415735245,
-0.014939271844923496,
0.020844679325819016,
0.024061016738414764,
0.027804622426629066,
-0.04225177690386772,
0.024219196289777756,
0.013445344753563404,
-0.032093070447444916,
-0.033868208527565,
0.0390881672501564,
0.023955563083291054,
-0.009394166059792042,
0.04791112616658211,
-0.015317147597670555,
-0.010729912668466568,
-0.030968232080340385,
-0.02766401693224907,
0.04425539821386337,
-0.004688295070081949,
-0.15016604959964752,
-0.015967445448040962,
0.040740273892879486,
0.042568136006593704,
0.05251593515276909,
-0.032391857355833054,
-0.005694499239325523,
0.019245296716690063,
0.010272946208715439,
-0.055820152163505554,
0.006599643267691135,
-0.04281419515609741,
-0.09364287555217743,
0.038736652582883835,
-0.035625770688056946,
0.07620786130428314,
0.014324125833809376,
-0.008445082232356071,
-0.042673591524362564,
-0.012636866420507431,
-0.04495842009782791,
0.03409669175744057,
-0.032497309148311615,
-0.017681067809462547,
0.05181290954351425,
-0.012346869334578514,
0.012188688851892948,
0.030089451000094414,
-0.004020421765744686,
-0.015317147597670555,
-0.018384093418717384,
0.015607145614922047,
-0.0020365742966532707,
0.016134414821863174,
-0.0008288000826723874,
-0.04081057757139206,
-0.05937042459845543,
-0.005000262055546045,
0.016441987827420235,
-0.014245035126805305,
0.020317409187555313,
-0.05743710696697235,
-0.009657800197601318,
-0.02567797154188156,
0.01478109136223793,
-0.021248918026685715,
0.04959838464856148,
0.013515647500753403,
-0.028085831552743912,
0.07705149054527283,
0.006164646707475185,
0.01759319007396698,
-0.02859552390873432,
-0.02996642142534256,
0.0012632472207769752,
-0.023709503933787346,
0.018858633935451508,
0.004547690041363239,
-0.08977624028921127,
0.008625232614576817,
0.01455260906368494,
0.03369245305657387,
-0.06865034997463226,
0.018085306510329247,
0.005874649155884981,
-0.022180425003170967,
-0.027910076081752777,
-0.06517037749290466,
-0.03740090876817703,
0.026205241680145264,
-0.04218147322535515,
-0.019403478130698204,
0.012434747070074081,
0.0008848223369568586,
-0.009139319881796837,
-0.016802286729216576,
0.02562524564564228,
-0.03789302334189415,
-0.02996642142534256,
0.015879567712545395,
0.08443325012922287,
-0.0385608971118927,
0.002671493450179696,
0.01570381224155426,
-0.036381520330905914,
0.003365730168297887,
-0.053113505244255066,
0.005720862653106451,
0.04172450676560402,
-0.06485401839017868,
0.010703548789024353,
0.025431914255023003,
0.028156133368611336,
0.02806825563311577,
0.03290155157446861,
-0.02573069930076599,
0.09497862309217453,
-0.05508197471499443,
0.018190760165452957,
0.005470409989356995,
0.0266446303576231,
-0.05125049129128456,
0.028964612632989883,
0.019245296716690063,
0.03195246681571007,
-0.006401917431503534,
0.023586474359035492,
0.004560871981084347,
-0.034957896918058395,
-0.04646992310881615,
0.06945882737636566,
0.0005569272907450795,
-0.06485401839017868,
0.006481007672846317,
-0.007263122592121363,
0.01534351147711277,
0.07026730477809906,
0.02260223962366581,
-0.004354358650743961,
-0.0468565858900547,
0.04179481044411659,
-0.04144329950213432,
-0.019772566854953766,
-0.03144277259707451,
-0.00036304627428762615,
0.04105663672089577,
-0.018120458349585533,
0.013454132713377476,
-0.03135489672422409,
-0.03863120079040527,
0.058069828897714615,
-0.013612313196063042,
-0.032339129596948624,
-0.011784449219703674,
-0.04780567064881325,
0.015818051993846893,
-0.01866530254483223,
-0.05100443214178085,
0.01642441190779209,
-0.0203525610268116,
0.024412527680397034,
-0.0007381758186966181,
-0.015563206747174263,
0.004991474561393261,
-0.008141903206706047,
0.013937462121248245,
0.004374131094664335,
0.009271136485040188,
-0.02086225338280201,
0.059546180069446564,
0.044114790856838226,
-0.008849321864545345,
0.009736889973282814,
-0.029070066288113594,
-0.006792975123971701,
-0.024517981335520744,
-0.018278639763593674,
-0.07082972675561905,
-0.02854279801249504,
-0.042568136006593704,
-0.016608955338597298,
-0.009859919548034668,
0.02776947058737278,
0.03789302334189415,
-0.04914141818881035,
-0.027277354151010513,
0.03371002897620201,
0.049985047429800034,
-0.07009155303239822,
-0.04091602936387062,
0.017610765993595123,
0.0063975234515964985,
-0.014482306316494942,
0.03031793422996998,
-0.001722410204820335,
-0.04798142611980438,
0.04573174938559532,
-0.0010029084514826536,
0.029316125437617302,
-0.022901024669408798,
0.0074256970547139645,
0.04081057757139206,
0.006942367646843195,
0.0771217942237854,
0.011178090237081051,
-0.016450775787234306,
-0.013462920673191547,
-0.04668083041906357,
0.00966658815741539,
-0.05184806138277054,
0.0016773727256804705,
-0.03926392272114754,
0.04755961149930954,
0.00733781885355711,
-0.0004989826702512801,
-0.04407963901758194,
0.03073974885046482,
0.02348102070391178,
0.008831745944917202,
-0.010896881110966206,
-0.04102148488163948,
-0.023024054244160652,
0.000135318492539227,
-0.02225072681903839,
-0.028911884874105453,
-0.01163505669683218,
-0.003802923485636711,
-0.023639202117919922,
0.041197240352630615,
-0.023867683485150337,
0.03284882381558418,
0.01514139212667942,
0.05859709903597832,
0.028402192518115044,
-0.006217373535037041,
0.033569421619176865,
0.10707063972949982,
-0.01673198491334915,
0.012258990667760372,
-0.017681067809462547,
-0.015686236321926117,
-0.08886230736970901,
0.018647726625204086,
-0.0492820218205452,
0.08562839031219482,
-0.03068702295422554,
-0.0021958532743155956,
0.02005377598106861,
-0.005993284285068512,
0.03472941368818283
] |
724,996 | tf_keras.src.engine.base_layer | add_variable | Deprecated, do NOT use! Alias for `add_weight`. | @doc_controls.do_not_doc_inheritable
def add_variable(self, *args, **kwargs):
"""Deprecated, do NOT use! Alias for `add_weight`."""
warnings.warn(
"`layer.add_variable` is deprecated and "
"will be removed in a future version. "
"Please use the `layer.add_weight()` method instead.",
stacklevel=2,
)
return self.add_weight(*args, **kwargs)
| (self, *args, **kwargs) | [
-0.012171566486358643,
-0.04262559488415718,
0.049757763743400574,
0.04269256442785263,
-0.0021409064065665007,
0.02777528017759323,
-0.060238372534513474,
0.024091999977827072,
0.0397794246673584,
-0.02928207628428936,
0.007379116490483284,
-0.03683280199766159,
0.040549565106630325,
-0.014255967922508717,
-0.01804807223379612,
0.03405359759926796,
-0.013510940596461296,
0.011058211326599121,
-0.02350602298974991,
-0.01317609753459692,
-0.032178472727537155,
-0.04644281417131424,
0.04309437796473503,
0.01702679879963398,
-0.003509579924866557,
0.05149895325303078,
0.00940073560923338,
0.0011928804451599717,
0.03683280199766159,
-0.04446723684668541,
-0.08940324932336807,
-0.06623207032680511,
-0.013527682982385159,
-0.0014450595481321216,
0.028160350397229195,
0.007379116490483284,
-0.00704845879226923,
0.03458934649825096,
-0.0201575867831707,
-0.006286689545959234,
0.06680130958557129,
-0.01317609753459692,
0.019722290337085724,
0.0009668610291555524,
-0.007207509130239487,
0.0023459983058273792,
0.0030868398025631905,
0.03566084802150726,
-0.014021577313542366,
-0.01178649626672268,
0.04413239285349846,
-0.031960826367139816,
0.046275392174720764,
0.022786108776926994,
-0.02370692975819111,
-0.010781965218484402,
0.03132462128996849,
0.056086309254169464,
0.0034781883005052805,
0.014624295756220818,
0.04024820402264595,
-0.004984984640032053,
-0.019655320793390274,
-0.05950171500444412,
-0.008873356506228447,
-0.0156539399176836,
-0.04875323548913002,
0.0009124489151872694,
0.036263566464185715,
0.03376898169517517,
0.002944531152024865,
0.013377003371715546,
0.021229086443781853,
0.03703370690345764,
0.01474149152636528,
-0.020124102011322975,
-0.032797932624816895,
-0.03232915326952934,
-0.012230164371430874,
-0.02682097628712654,
0.004005567170679569,
-0.046878110617399216,
0.014021577313542366,
0.06706918030977249,
0.05236954614520073,
-0.04547176510095596,
-0.038172174245119095,
0.005914175882935524,
0.03609614446759224,
0.008371091447770596,
-0.059970494359731674,
0.05735871568322182,
-0.018567079678177834,
0.04828445240855217,
0.05059487372636795,
-0.052804842591285706,
0.03763642534613609,
-0.0499921552836895,
0.008032062090933323,
0.030202895402908325,
0.014373162761330605,
0.0009720929665490985,
0.033065810799598694,
0.002419245196506381,
0.014105288311839104,
-0.052403029054403305,
0.004482719115912914,
-0.018466627225279808,
0.005688156466931105,
0.016683584079146385,
0.023238148540258408,
-0.04600751772522926,
0.007014974020421505,
0.027323240414261818,
-0.050795778632164,
-0.00874779000878334,
-0.027473920956254005,
-0.01678403653204441,
0.028629131615161896,
0.041788484901189804,
-0.02280285209417343,
-0.006960561964660883,
-0.058664605021476746,
-0.022082937881350517,
-0.015511631965637207,
0.020375235006213188,
0.011451652273535728,
0.010790335945785046,
0.026887943968176842,
-0.060171402990818024,
-0.03931064158678055,
-0.015243756584823132,
-0.02424267865717411,
0.021898774430155754,
0.03234589472413063,
-0.02695491351187229,
0.0503939688205719,
0.036129627376794815,
0.011962288990616798,
0.03572781756520271,
-0.00014701728650834411,
0.034823738038539886,
0.024125484749674797,
0.03974594175815582,
-0.01187857799232006,
0.006650832016021013,
-0.02186528965830803,
-0.007069386541843414,
-0.05618676170706749,
-0.048117030411958694,
-0.0208272747695446,
0.019688805565238,
-0.026988396421074867,
-0.011853464879095554,
0.02084401622414589,
0.03944458067417145,
-0.0006900918087922037,
-0.040884409099817276,
0.03065493516623974,
-0.053072717040777206,
-0.001924304524436593,
0.020124102011322975,
0.004085092339664698,
-0.009861145168542862,
0.03063819371163845,
0.016750553622841835,
0.019303735345602036,
0.015679053962230682,
-0.015444662421941757,
0.0592673234641552,
0.014498729258775711,
-0.0831751599907875,
0.026603328064084053,
0.07031716406345367,
-0.0007795578567311168,
0.010706624947488308,
0.054512545466423035,
-0.00750886881724,
-0.007709774654358625,
0.06375423073768616,
0.06891082227230072,
0.007102870848029852,
-0.032915130257606506,
-0.006596419494599104,
0.024744944646954536,
-0.03961200267076492,
0.04101834446191788,
0.010087165050208569,
0.022300586104393005,
0.005336570553481579,
0.07935794442892075,
0.03458934649825096,
0.017077025026082993,
-0.02255171909928322,
-0.01851685345172882,
-0.04460117220878601,
0.030470771715044975,
-0.04506995528936386,
0.001094520092010498,
0.019923197105526924,
0.009777434170246124,
-0.005466322414577007,
-0.01136794127523899,
0.032379381358623505,
0.02457752265036106,
0.023891093209385872,
-0.016465935856103897,
-0.007207509130239487,
-0.09750647097826004,
-0.04222378134727478,
0.032848160713911057,
0.03472328558564186,
0.05414421483874321,
0.050829265266656876,
0.03582827001810074,
-0.045940548181533813,
-0.038306113332509995,
0.01341048814356327,
-0.014682893641293049,
-0.004200194962322712,
0.03589523956179619,
0.016290143132209778,
-0.011091695167124271,
-0.0128998514264822,
0.025280695408582687,
-0.04460117220878601,
0.04711249843239784,
-0.017194220796227455,
0.019939938560128212,
-0.03214498981833458,
0.03023638017475605,
0.0204254612326622,
-0.03445541113615036,
0.001884541823528707,
0.010706624947488308,
0.014942397363483906,
-0.018466627225279808,
-0.010907531715929508,
0.03458934649825096,
-0.031843628734350204,
-0.03649795800447464,
-0.007475384045392275,
0.008492471650242805,
0.04664371907711029,
-0.01686774753034115,
0.023656703531742096,
0.01607249490916729,
0.06301756948232651,
-0.025414632633328438,
0.022769367322325706,
-0.00326891103759408,
-0.031625982373952866,
-0.026737265288829803,
0.07473710179328918,
-0.010112278163433075,
0.027256272733211517,
-0.055684495717287064,
-0.030805615708231926,
-0.03833959624171257,
-0.03840656578540802,
-0.060606699436903,
0.05729174613952637,
-0.016491049900650978,
0.04938943684101105,
0.002471564570441842,
0.003783733118325472,
0.015469776466488838,
-0.01953812688589096,
-0.07252713292837143,
0.015812991186976433,
-0.024125484749674797,
0.04835142195224762,
0.05699038878083229,
-0.018148524686694145,
-0.0024736574850976467,
-0.09301955997943878,
0.007667919155210257,
0.04948988929390907,
-0.05421118438243866,
0.019705548882484436,
0.018483368679881096,
-0.03539297357201576,
-0.05330710858106613,
0.06566283851861954,
-0.08752812445163727,
-0.009149602614343166,
0.006897779181599617,
0.07621040940284729,
-0.039913360029459,
-0.07882219552993774,
-0.014448503032326698,
0.00966861005872488,
0.09101050347089767,
0.07473710179328918,
-0.010907531715929508,
-0.0036100330762565136,
-0.054780419915914536,
0.07219228893518448,
0.03396988660097122,
0.021764837205410004,
0.032597027719020844,
0.012138081714510918,
0.019186541438102722,
0.027339983731508255,
0.01955486834049225,
-0.04249165952205658,
0.060238372534513474,
-0.015436291694641113,
-0.03098977915942669,
0.013192838989198208,
0.0057341973297297955,
0.00005951322600594722,
-0.0015444662421941757,
0.00727029237896204,
-0.0054746936075389385,
-0.040013816207647324,
0.012205050326883793,
-0.02084401622414589,
0.0005535383825190365,
0.08792994171380997,
-0.01385415531694889,
-0.07406741380691528,
-0.03110697492957115,
-0.04145364090800285,
-0.024225937202572823,
0.009928113780915737,
0.05632070079445839,
-0.040013816207647324,
0.047212954610586166,
-0.002281122375279665,
-0.06897778809070587,
-0.011058211326599121,
0.009166345000267029,
-0.012924964539706707,
-0.09429197013378143,
-0.04560570418834686,
0.010606172494590282,
0.0027080478612333536,
-0.021630899980664253,
0.002092772861942649,
-0.03669886291027069,
0.053072717040777206,
-0.06613162159919739,
0.03145856037735939,
0.007174024824053049,
-0.019973423331975937,
-0.02348928153514862,
-0.02472820319235325,
0.07031716406345367,
0.03330019861459732,
-0.01960509456694126,
0.014448503032326698,
-0.036799315363168716,
0.03894231468439102,
0.07467012852430344,
0.011426539160311222,
0.005102179944515228,
0.015846475958824158,
0.02384086698293686,
-0.03931064158678055,
-0.06613162159919739,
-0.0036686307284981012,
0.05216863751411438,
0.0495903417468071,
0.04493601620197296,
-0.026603328064084053,
0.048652779310941696,
-0.011041468940675259,
0.014281081035733223,
-0.026988396421074867,
-0.014548956416547298,
-0.05735871568322182,
0.01631525717675686,
0.03182688727974892,
-0.03921018913388252,
0.002308328403159976,
-0.00026133499341085553,
-0.0006273086182773113,
0.02968388795852661,
-0.026988396421074867,
0.030018731951713562,
0.019588353112339973,
-0.0051105511374771595,
-0.004683625418692827,
0.05843021348118782,
-0.00956815667450428,
-0.01716073602437973,
-0.027758536860346794,
-0.005801165942102671,
-0.002161834156140685,
0.04671068862080574,
0.009325395338237286,
0.02770831063389778,
-0.0010903346119448543,
-0.052536968141794205,
-0.038841862231492996,
0.007312147878110409,
-0.03743552044034004,
-0.007073571905493736,
0.006433183327317238,
0.013159355148673058,
-0.04637584462761879,
-0.11023052781820297,
0.026603328064084053,
-0.03780384734272957,
0.0007471198914572597,
-0.007533981930464506,
0.07661222666501999,
-0.004273442085832357,
-0.007521425373852253,
-0.04302740842103958,
0.004378080368041992,
-0.056689027696847916,
0.01783042401075363,
0.05310619994997978,
0.014883799478411674,
0.019303735345602036,
-0.022099679335951805,
0.0018458255799487233,
-0.03770339488983154,
0.03177666291594505,
0.008124143816530704,
0.046744171530008316,
0.09101050347089767,
0.0075046829879283905,
-0.04671068862080574,
-0.04262559488415718,
-0.01572090946137905,
0.003942783921957016,
0.05909990146756172,
-0.038573987782001495,
-0.056086309254169464,
0.01620643213391304,
-0.03479025512933731,
0.03391966223716736,
-0.0676049292087555,
-0.005361683666706085,
-0.04570615664124489,
-0.012673831544816494,
0.016306884586811066,
0.06700221449136734,
-0.00205091736279428,
0.03335042670369148,
-0.005562589969485998,
-0.04664371907711029,
-0.0511975921690464,
-0.02697165496647358,
0.01607249490916729,
-0.011652559041976929,
-0.07754978537559509,
0.08746115863323212,
0.004242050461471081,
0.07661222666501999,
0.02410874143242836,
0.0006409116322174668,
-0.02852867729961872,
-0.08444756269454956,
-0.09516256302595139,
0.036330536007881165,
-0.04440026730298996,
-0.030068958178162575,
0.03336716815829277,
-0.029181623831391335,
0.010221102274954319,
-0.027155818417668343,
-0.0054788789711892605,
0.022233618423342705,
-0.060640182346105576,
-0.010932644829154015,
0.003946969285607338,
0.04577312618494034,
-0.056822966784238815,
-0.05163288861513138,
-0.09188109636306763,
0.030320091173052788,
0.026368936523795128,
-0.05732523277401924,
0.011116809211671352,
-0.0013958794297650456,
-0.0515994057059288,
-0.005537476856261492,
0.014590811915695667,
-0.01764626055955887,
0.016415709629654884,
0.003304488258436322,
0.06291712075471878,
0.0041813598945736885,
0.01582973264157772,
0.03410382568836212,
0.01798110269010067,
-0.03874140977859497,
0.027072107419371605,
-0.008174370042979717,
-0.008350163698196411,
-0.021095149219036102,
0.04065001755952835,
0.007123798597604036,
-0.03110697492957115,
0.005491435527801514,
0.04024820402264595,
-0.062280915677547455,
-0.03746900334954262,
-0.02315443754196167,
0.006525265518575907,
0.04513692110776901,
-0.006219720467925072,
-0.006793140433728695,
0.059066418558359146,
0.022936789318919182,
0.022970274090766907,
-0.01025458611547947,
0.004943129140883684,
0.03475676849484444,
0.07179047912359238,
0.07158956676721573,
-0.0037272281479090452,
-0.07580859959125519,
0.06459134072065353,
0.020726820454001427,
-0.02819383516907692,
0.028227318078279495,
0.038908831775188446,
0.0148168308660388,
-0.07815250754356384,
0.05782749503850937,
0.002266472904011607,
-0.06790629029273987,
-0.04768173396587372,
0.01987297087907791,
0.08337606489658356,
0.0060983397997915745,
0.0020613812375813723,
0.011434909887611866,
0.024125484749674797,
-0.023790640756487846,
-0.020659852772951126,
0.01317609753459692,
-0.024343132972717285,
-0.1027969941496849,
-0.060606699436903,
0.013217953033745289,
-0.005407724995166063,
0.036129627376794815,
-0.03304906561970711,
0.0301024429500103,
0.05327362194657326,
-0.03753597289323807,
-0.017035169526934624,
-0.03269748017191887,
-0.028377998620271683,
-0.06295060366392136,
0.008957067504525185,
-0.06931263208389282,
0.04604100063443184,
0.07775069028139114,
-0.0020959118846803904,
-0.024878881871700287,
0.007157282903790474,
-0.026653554290533066,
0.03974594175815582,
-0.018416400998830795,
-0.07520588487386703,
0.040750470012426376,
-0.006876851432025433,
-0.04363012686371803,
0.013527682982385159,
0.006542007438838482,
-0.03780384734272957,
-0.028244061395525932,
-0.016457565128803253,
-0.0018311761086806655,
-0.01695983111858368,
0.05816233903169632,
-0.0019891804549843073,
-0.05658857524394989,
0.026134546846151352,
0.02663681097328663,
0.016909603029489517,
0.010731738992035389,
-0.024158967658877373,
-0.0612763874232769,
0.041788484901189804,
-0.02184854820370674,
0.016817521303892136,
0.028562162071466446,
0.01505122147500515,
0.030520997941493988,
0.04222378134727478,
-0.002553182654082775,
-0.013770444318652153,
-0.016424080356955528,
-0.04460117220878601,
0.029868053272366524,
-0.043964970856904984,
-0.036933254450559616,
0.003836052492260933,
-0.0628836378455162,
0.021095149219036102,
0.08377788215875626,
0.04868626594543457,
-0.02581644430756569,
-0.02064310945570469,
0.015528373420238495,
0.010815449990332127,
-0.02275262586772442,
0.020124102011322975,
0.011300972662866116,
0.008312493562698364,
-0.05856415256857872,
-0.01184509415179491,
-0.02901420183479786,
-0.012924964539706707,
-0.020592883229255676,
0.01177812460809946,
-0.03221195936203003,
-0.023455796763300896,
-0.006282503716647625,
-0.0010453399736434221,
0.016708698123693466,
-0.007257735822349787,
-0.030755387619137764,
0.024058515205979347,
0.0020666131749749184,
0.0009155880543403327,
0.016901232302188873,
0.011434909887611866,
0.04577312618494034,
-0.07594253867864609,
-0.009325395338237286,
0.035861752927303314,
-0.02384086698293686,
-0.005801165942102671,
0.04989170283079147,
-0.02091098576784134,
-0.004281812813133001,
0.006232277024537325,
0.031140457838773727,
-0.008672450669109821,
0.007240993902087212,
-0.05849718302488327,
0.02670378051698208,
0.02668703719973564,
-0.02266891486942768,
0.008881727233529091,
0.008546884171664715,
0.046744171530008316,
-0.02077704854309559,
-0.041788484901189804,
0.03283141925930977,
-0.010028567165136337,
-0.04664371907711029,
0.0002741532225627452,
-0.04650977998971939,
0.023455796763300896,
0.08203668892383575,
0.02184854820370674,
0.005608630832284689,
0.010129020549356937,
0.038306113332509995,
-0.07252713292837143,
-0.048719748854637146,
-0.007734888233244419,
0.018985634669661522,
0.011753011494874954,
0.012079483829438686,
0.0036665378138422966,
-0.00626576179638505,
-0.050896234810352325,
0.03438844159245491,
-0.023790640756487846,
0.015227014198899269,
-0.01853359490633011,
-0.059970494359731674,
0.0034907448571175337,
-0.01798110269010067,
-0.028629131615161896,
-0.009199828840792179,
-0.006424812134355307,
-0.004170896019786596,
-0.012355729937553406,
-0.0023585548624396324,
0.016792409121990204,
-0.018968891352415085,
-0.008555254898965359,
0.008396204560995102,
0.03324997425079346,
-0.045873578637838364,
0.07051806896924973,
0.018818212673068047,
0.0015559765743091702,
-0.026067577302455902,
-0.03763642534613609,
-0.000032487027056049556,
0.04195590689778328,
-0.0024799357634037733,
-0.062280915677547455,
0.010882418602705002,
-0.016491049900650978,
0.046610236167907715,
-0.04701204597949982,
0.03669886291027069,
0.01620643213391304,
-0.0397794246673584,
0.029868053272366524,
0.005796980578452349,
0.002129396190866828,
-0.0021660197526216507,
-0.07312984764575958,
0.019705548882484436,
-0.008207854814827442,
-0.014900541864335537,
-0.00006278318323893473,
0.018617305904626846,
-0.030755387619137764,
-0.02424267865717411,
0.014666151255369186,
0.015302354469895363,
-0.002636893652379513,
-0.0409848615527153,
0.03723461180925369,
0.01824897900223732,
0.043898001313209534,
0.048920657485723495,
0.0028712842613458633,
0.01873450167477131,
-0.0005378425703383982,
0.016700327396392822,
-0.0831751599907875,
-0.028377998620271683,
-0.009183086454868317,
0.07627738267183304,
0.03365178406238556,
-0.001621898845769465,
0.022183390334248543,
0.01751232147216797,
0.03509161248803139,
-0.02377389930188656,
0.04359664022922516,
-0.02737346664071083,
0.011568848043680191,
0.03127439692616463,
0.0055877030827105045,
-0.02561553753912449,
-0.03596220538020134,
0.01389601081609726,
-0.024828655645251274,
0.06596419960260391,
0.027591116726398468,
-0.010840563103556633,
0.02350602298974991,
0.04882020130753517,
0.04148712754249573,
0.005960216745734215,
0.03485722467303276,
0.07855431735515594,
-0.0397794246673584,
0.07594253867864609,
-0.032982099801301956,
0.015176787972450256,
-0.10005127638578415,
-0.038640957325696945,
-0.01913631334900856,
0.048451874405145645,
0.020676594227552414,
-0.01335189025849104,
0.052336059510707855,
0.0030470772180706263,
0.04188894107937813
] |
724,997 | tf_keras.src.engine.base_layer | add_weight | Adds a new variable to the layer.
Args:
name: Variable name.
shape: Variable shape. Defaults to scalar if unspecified.
dtype: The type of the variable. Defaults to `self.dtype`.
initializer: Initializer instance (callable).
regularizer: Regularizer instance (callable).
trainable: Boolean, whether the variable should be part of the layer's
"trainable_variables" (e.g. variables, biases)
or "non_trainable_variables" (e.g. BatchNorm mean and variance).
Note that `trainable` cannot be `True` if `synchronization`
is set to `ON_READ`.
constraint: Constraint instance (callable).
use_resource: Whether to use a `ResourceVariable` or not.
See [this guide](
https://www.tensorflow.org/guide/migrate/tf1_vs_tf2#resourcevariables_instead_of_referencevariables)
for more information.
synchronization: Indicates when a distributed a variable will be
aggregated. Accepted values are constants defined in the class
`tf.VariableSynchronization`. By default the synchronization is set
to `AUTO` and the current `DistributionStrategy` chooses when to
synchronize. If `synchronization` is set to `ON_READ`, `trainable`
must not be set to `True`.
aggregation: Indicates how a distributed variable will be aggregated.
Accepted values are constants defined in the class
`tf.VariableAggregation`.
**kwargs: Additional keyword arguments. Accepted values are `getter`,
`collections`, `experimental_autocast` and `caching_device`.
Returns:
The variable created.
Raises:
ValueError: When giving unsupported dtype and no initializer or when
trainable has been set to True with synchronization set as
`ON_READ`.
| @doc_controls.for_subclass_implementers
def add_weight(
self,
name=None,
shape=None,
dtype=None,
initializer=None,
regularizer=None,
trainable=None,
constraint=None,
use_resource=None,
synchronization=tf.VariableSynchronization.AUTO,
aggregation=tf.VariableAggregation.NONE,
**kwargs,
):
"""Adds a new variable to the layer.
Args:
name: Variable name.
shape: Variable shape. Defaults to scalar if unspecified.
dtype: The type of the variable. Defaults to `self.dtype`.
initializer: Initializer instance (callable).
regularizer: Regularizer instance (callable).
trainable: Boolean, whether the variable should be part of the layer's
"trainable_variables" (e.g. variables, biases)
or "non_trainable_variables" (e.g. BatchNorm mean and variance).
Note that `trainable` cannot be `True` if `synchronization`
is set to `ON_READ`.
constraint: Constraint instance (callable).
use_resource: Whether to use a `ResourceVariable` or not.
See [this guide](
https://www.tensorflow.org/guide/migrate/tf1_vs_tf2#resourcevariables_instead_of_referencevariables)
for more information.
synchronization: Indicates when a distributed a variable will be
aggregated. Accepted values are constants defined in the class
`tf.VariableSynchronization`. By default the synchronization is set
to `AUTO` and the current `DistributionStrategy` chooses when to
synchronize. If `synchronization` is set to `ON_READ`, `trainable`
must not be set to `True`.
aggregation: Indicates how a distributed variable will be aggregated.
Accepted values are constants defined in the class
`tf.VariableAggregation`.
**kwargs: Additional keyword arguments. Accepted values are `getter`,
`collections`, `experimental_autocast` and `caching_device`.
Returns:
The variable created.
Raises:
ValueError: When giving unsupported dtype and no initializer or when
trainable has been set to True with synchronization set as
`ON_READ`.
"""
if shape is None:
shape = ()
kwargs.pop("partitioner", None) # Ignored.
# Validate optional keyword arguments.
for kwarg in kwargs:
if kwarg not in [
"collections",
"experimental_autocast",
"caching_device",
"getter",
"layout",
"experimental_enable_variable_lifting",
]:
raise TypeError("Unknown keyword argument:", kwarg)
collections_arg = kwargs.pop("collections", None)
# 'experimental_autocast' can be set to False by the caller to indicate
# an AutoCastVariable should never be created.
autocast = kwargs.pop("experimental_autocast", True)
# See the docstring for tf.Variable about the details for
# caching_device.
caching_device = kwargs.pop("caching_device", None)
layout = kwargs.pop("layout", None)
# Specially handling of auto layout fetch, based on the variable name
# and attribute name. For built-in keras layers, usually the variable
# name, eg 'kernel', will match with a 'kernel_layout' attribute name on
# the instance. We will try to do this auto fetch if layout is not
# explicitly specified. This is mainly a quick workaround for not
# applying too many interface change to built-in layers, until DTensor
# is a public API. Also see dtensor.utils.allow_initializer_layout for
# more details.
# TODO(scottzhu): Remove this once dtensor is public to end user.
if not layout and name:
layout = getattr(self, name + "_layout", None)
if dtype is None:
dtype = self.dtype or backend.floatx()
dtype = tf.as_dtype(dtype)
if self._dtype_policy.variable_dtype is None:
# The policy is "_infer", so we infer the policy from the variable
# dtype.
self._set_dtype_policy(policy.Policy(dtype.base_dtype.name))
initializer = initializers.get(initializer)
regularizer = regularizers.get(regularizer)
constraint = constraints.get(constraint)
if synchronization == tf.VariableSynchronization.ON_READ:
if trainable:
raise ValueError(
"Synchronization value can be set to "
"VariableSynchronization.ON_READ only for non-trainable "
"variables. You have specified trainable=True and "
"synchronization=VariableSynchronization.ON_READ."
)
else:
# Set trainable to be false when variable is to be synced on
# read.
trainable = False
elif trainable is None:
trainable = True
# Initialize variable when no initializer provided
if initializer is None:
# If dtype is DT_FLOAT, provide a uniform unit scaling initializer
if dtype.is_floating:
initializer = initializers.get("glorot_uniform")
# If dtype is DT_INT/DT_UINT, provide a default value `zero`
# If dtype is DT_BOOL, provide a default value `FALSE`
elif dtype.is_integer or dtype.is_unsigned or dtype.is_bool:
initializer = initializers.get("zeros")
# NOTES:Do we need to support for handling DT_STRING and DT_COMPLEX
# here?
elif "getter" not in kwargs:
# When `getter` is specified, it's possibly fine for
# `initializer` to be None since it's up to the custom `getter`
# to raise error in case it indeed needs `initializer`.
raise ValueError(
f"An initializer for variable {name} of type "
f"{dtype.base_dtype} is required for layer "
f"{self.name}. Received: {initializer}."
)
getter = kwargs.pop("getter", base_layer_utils.make_variable)
if (
autocast
and self._dtype_policy.compute_dtype
!= self._dtype_policy.variable_dtype
and dtype.is_floating
):
old_getter = getter
# Wrap variable constructor to return an AutoCastVariable.
def getter(*args, **kwargs):
variable = old_getter(*args, **kwargs)
return autocast_variable.create_autocast_variable(variable)
# Also the caching_device does not work with the mixed precision
# API, disable it if it is specified.
# TODO(b/142020079): Re-enable it once the bug is fixed.
if caching_device is not None:
tf_logging.warning(
"`caching_device` does not work with mixed precision API. "
"Ignoring user specified `caching_device`."
)
caching_device = None
if layout:
getter = functools.partial(getter, layout=layout)
variable = self._add_variable_with_custom_getter(
name=name,
shape=shape,
# TODO(allenl): a `make_variable` equivalent should be added as a
# `Trackable` method.
getter=getter,
# Manage errors in Layer rather than Trackable.
overwrite=True,
initializer=initializer,
dtype=dtype,
constraint=constraint,
trainable=trainable,
use_resource=use_resource,
collections=collections_arg,
synchronization=synchronization,
aggregation=aggregation,
caching_device=caching_device,
)
if regularizer is not None:
# TODO(fchollet): in the future, this should be handled at the
# level of variable creation, and weight regularization losses
# should be variable attributes.
name_in_scope = variable.name[: variable.name.find(":")]
self._handle_weight_regularization(
name_in_scope, variable, regularizer
)
if base_layer_utils.is_split_variable(variable):
for v in variable:
backend.track_variable(v)
if trainable:
self._trainable_weights.append(v)
else:
self._non_trainable_weights.append(v)
else:
backend.track_variable(variable)
if trainable:
self._trainable_weights.append(variable)
| (self, name=None, shape=None, dtype=None, initializer=None, regularizer=None, trainable=None, constraint=None, use_resource=None, synchronization=<VariableSynchronization.AUTO: 0>, aggregation=<VariableAggregationV2.NONE: 0>, **kwargs) | [
0.008263405412435532,
-0.048505932092666626,
0.0032925703562796116,
0.03374948725104332,
0.049570195376873016,
0.04891526326537132,
-0.07318869978189468,
-0.025337697938084602,
-0.0032516370993107557,
-0.04408513754606247,
0.01477691251784563,
0.035243548452854156,
0.02562423050403595,
-0.02871469222009182,
0.008386204950511456,
0.07597216218709946,
0.0012893981765955687,
0.029246825724840164,
-0.022758901119232178,
-0.032214488834142685,
0.009430003352463245,
-0.039602942764759064,
-0.0016386101488023996,
-0.004858267959207296,
0.007460089400410652,
-0.017887841910123825,
0.001065544318407774,
-0.01679287664592266,
-0.008519237861037254,
0.007869422435760498,
-0.049570195376873016,
-0.039459679275751114,
0.015523944981396198,
0.020978303626179695,
0.059885382652282715,
-0.06213671341538429,
0.009317437186837196,
0.035284481942653656,
-0.06062218174338341,
-0.036410149186849594,
0.03792468085885048,
-0.06000818312168121,
0.006221857853233814,
-0.01737617515027523,
-0.020323371514678,
0.014101513661444187,
0.01601514406502247,
-0.014705278910696507,
-0.028919359669089317,
-0.024068765342235565,
0.04220220819115639,
-0.04408513754606247,
0.010775684379041195,
0.03823167830705643,
-0.02269750088453293,
-0.020323371514678,
0.03665574640035629,
0.02261563390493393,
-0.03162095695734024,
-0.014449446462094784,
-0.0017703641206026077,
-0.021756036207079887,
-0.06594350934028625,
-0.03681948035955429,
-0.03675808012485504,
-0.012474415823817253,
-0.04891526326537132,
-0.0018394390353932977,
0.017243143171072006,
0.00019043566135223955,
-0.011635283939540386,
-0.013262380845844746,
0.05751125141978264,
-0.0011269442038610578,
0.013927547261118889,
0.003643061500042677,
0.007086573168635368,
-0.09602946788072586,
0.024089232087135315,
-0.05194432660937309,
0.004108677618205547,
0.004272410646080971,
-0.008938804268836975,
0.003041854128241539,
0.054891522973775864,
-0.026217762380838394,
-0.05497338995337486,
0.04183380678296089,
0.017140809446573257,
-0.05313139036297798,
-0.029471958056092262,
0.05738845095038414,
0.020794104784727097,
0.06762176752090454,
0.025849362835288048,
-0.03581661731004715,
0.0027322962414473295,
-0.03786328062415123,
0.009163936600089073,
0.03716741502285004,
-0.008611338213086128,
0.019791238009929657,
-0.0029420792125165462,
0.053581658750772476,
-0.01185018289834261,
-0.025296764448285103,
-0.022124435752630234,
0.032296355813741684,
-0.04637740179896355,
-0.04907899722456932,
-0.016260743141174316,
-0.020671304315328598,
0.013651247136294842,
0.05251739174127579,
-0.0614817813038826,
0.008181538432836533,
-0.025767497718334198,
-0.012494882568717003,
0.020077772438526154,
0.020538270473480225,
-0.013200981542468071,
0.02863282710313797,
-0.025972163304686546,
-0.017427342012524605,
0.008176421746611595,
0.01958657242357731,
0.03166189044713974,
0.0409332737326622,
0.019914038479328156,
-0.0307408906519413,
-0.010581252165138721,
-0.03399508446455002,
-0.028264427557587624,
0.08489561080932617,
0.04207940772175789,
0.009731885977089405,
0.030270157381892204,
0.04375767335295677,
-0.025951696559786797,
0.015462544746696949,
0.049774862825870514,
0.013385181315243244,
0.016117477789521217,
0.00827875453978777,
0.020579203963279724,
-0.025133030489087105,
-0.004203335847705603,
-0.005024559795856476,
-0.05288579314947128,
-0.0613180473446846,
-0.037269748747348785,
0.013385181315243244,
-0.0035663116723299026,
0.017284074798226357,
0.01647564396262169,
0.018143674358725548,
-0.05927138403058052,
-0.0355505496263504,
0.013139581307768822,
-0.002775787841528654,
-0.0614817813038826,
0.010499385185539722,
-0.021121570840477943,
-0.03819074481725693,
0.01898280717432499,
0.03397461771965027,
0.002652987837791443,
-0.03806794434785843,
0.0009510590462014079,
0.07081456482410431,
0.03354481980204582,
-0.07392549514770508,
0.06311911344528198,
0.042570605874061584,
-0.005735775455832481,
0.00395261961966753,
0.04207940772175789,
-0.04997953027486801,
-0.016148177906870842,
0.04719606786966324,
0.04285714030265808,
-0.033319685608148575,
-0.037453945726156235,
-0.0356324166059494,
-0.02259516716003418,
0.0058381082490086555,
0.003054645610973239,
-0.0008346550748683512,
0.05714285373687744,
0.05456405505537987,
0.03366762027144432,
0.0127097824588418,
-0.01373311411589384,
-0.04031927511096001,
-0.0015720935771241784,
-0.021223902702331543,
0.039255011826753616,
-0.01377404760569334,
0.02361850067973137,
0.0022295843809843063,
-0.0004054952587466687,
-0.0043107857927680016,
0.04224314168095589,
0.0408514104783535,
-0.029922224581241608,
-0.00047425038064830005,
0.004277527332305908,
0.019627505913376808,
-0.045435935258865356,
-0.06000818312168121,
-0.06230044364929199,
0.023925499990582466,
0.05329512432217598,
0.10004092752933502,
0.03205075487494469,
-0.10397052019834518,
-0.024150632321834564,
0.016230043023824692,
0.02877609245479107,
0.0015618603210896254,
0.07466229796409607,
0.019453538581728935,
-0.00663630710914731,
0.017826441675424576,
0.011492016725242138,
-0.05616045370697975,
-0.00139812717679888,
-0.005311092361807823,
0.013743347488343716,
-0.020998770371079445,
0.017632007598876953,
-0.016178878024220467,
-0.008621571585536003,
0.0005532387876883149,
0.05538272112607956,
0.00023728508676867932,
-0.021285302937030792,
0.003640503156930208,
0.021837903186678886,
-0.017181742936372757,
-0.041404008865356445,
-0.0005903345881961286,
-0.00661072414368391,
-0.004674068186432123,
-0.054891522973775864,
0.03448628634214401,
0.013477280735969543,
0.08092508465051651,
-0.03205075487494469,
-0.024273432791233063,
-0.024866964668035507,
-0.005418542306870222,
-0.02752762846648693,
0.06422431021928787,
-0.016424477100372314,
0.00038279008003883064,
0.0006389428745023906,
-0.023945966735482216,
0.008995086885988712,
0.0038656361866742373,
-0.04592713341116905,
0.035489149391651154,
-0.022083502262830734,
0.08522307872772217,
-0.018143674358725548,
-0.052640192210674286,
0.027404827997088432,
-0.017110109329223633,
-0.028919359669089317,
-0.006283257622271776,
0.0025724004954099655,
0.10454358905553818,
0.03923454508185387,
-0.04948832839727402,
-0.019576339051127434,
-0.09046253561973572,
0.039480146020650864,
0.03284895420074463,
0.015155545435845852,
0.021817436441779137,
-0.011328283697366714,
-0.037392545491456985,
-0.028018826618790627,
0.0355505496263504,
-0.06962750107049942,
-0.00420845253393054,
-0.005940441507846117,
-0.0036788780707865953,
-0.018532540649175644,
-0.03393368422985077,
0.008902987465262413,
-0.007055873516947031,
0.09668439626693726,
0.06950470060110092,
0.01637331023812294,
-0.026401963084936142,
-0.07331149280071259,
0.04604993388056755,
0.025931229814887047,
-0.005408308934420347,
0.035202618688344955,
0.04297994077205658,
0.028428159654140472,
0.01481784600764513,
-0.01948423869907856,
-0.07028243690729141,
0.032337289303541183,
-0.009941669180989265,
-0.023311499506235123,
0.02654522843658924,
0.03350388631224632,
0.0020709678065031767,
0.006047891452908516,
0.028223494067788124,
0.06401964277029037,
-0.04911993071436882,
0.00249820901080966,
-0.029471958056092262,
0.03688088059425354,
0.07327056676149368,
0.0062986076809465885,
-0.007357756141573191,
-0.006963773630559444,
-0.015319278463721275,
-0.03203028813004494,
-0.03798608109354973,
0.0723700299859047,
-0.03902987763285637,
0.005577158648520708,
0.022922635078430176,
-0.04748259857296944,
-0.02664756216108799,
0.0066004907712340355,
0.018993040546774864,
-0.05951698124408722,
-0.025951696559786797,
0.028346292674541473,
0.00939930323511362,
-0.011481783352792263,
-0.006037658080458641,
-0.0010808942606672645,
0.07036430388689041,
-0.040810476988554,
0.04997953027486801,
-0.007900122553110123,
-0.039602942764759064,
0.04801473394036293,
-0.03366762027144432,
0.05861645191907883,
0.013794513419270515,
-0.026340562850236893,
0.010622184723615646,
-0.022022102028131485,
0.026054030284285545,
0.06868603825569153,
-0.02554236352443695,
-0.00024751838645897806,
-0.020139170810580254,
0.0013853355776518583,
-0.02445763163268566,
-0.046418335288763046,
0.01479737926274538,
0.025440029799938202,
0.027384361252188683,
0.04748259857296944,
-0.040892343968153,
0.022902168333530426,
-0.026831762865185738,
-0.012638148851692677,
-0.022349568083882332,
-0.013661480508744717,
-0.10511665046215057,
0.035325415432453156,
0.04019647836685181,
-0.026197295635938644,
-0.0007879655458964407,
-0.008191771805286407,
-0.023024966940283775,
0.031047889962792397,
0.01677240990102291,
0.04220220819115639,
0.04789193347096443,
0.0038733112160116434,
0.0307408906519413,
0.03462954983115196,
-0.008068972267210484,
-0.03974620997905731,
-0.03898894414305687,
0.02339336648583412,
-0.00920998677611351,
0.02359803393483162,
0.0178980752825737,
0.04494473710656166,
0.005449242424219847,
-0.02052803710103035,
-0.008918337523937225,
-0.0025046048685908318,
0.014081046916544437,
0.0180004071444273,
-0.004906876478344202,
-0.017263608053326607,
-0.04830126464366913,
0.020558737218379974,
0.05538272112607956,
0.00472011836245656,
-0.031252555549144745,
0.07560376077890396,
0.026279162615537643,
-0.05206712707877159,
0.047687266021966934,
-0.03610314801335335,
0.030925089493393898,
-0.032153088599443436,
0.034322552382946014,
0.019392138347029686,
0.0008915779180824757,
0.03170282021164894,
-0.02875562570989132,
0.02455996535718441,
0.00965001992881298,
-0.019013507291674614,
0.06033564731478691,
0.05006139725446701,
0.0718379020690918,
-0.009435120038688183,
0.017140809446573257,
-0.014572246000170708,
0.06794923543930054,
-0.0038144695572555065,
0.03894801065325737,
-0.018696272745728493,
-0.021837903186678886,
0.0028397459536790848,
-0.01938190683722496,
0.007987105287611485,
-0.03383135050535202,
0.024252966046333313,
-0.018092507496476173,
-0.020998770371079445,
0.00012919565779156983,
0.03207122161984444,
-0.0006555719883181155,
0.07024150341749191,
0.0007483114604838192,
-0.11960703134536743,
-0.007245189975947142,
-0.040523942559957504,
0.06045844778418541,
-0.04383953660726547,
-0.0508391298353672,
0.08481374382972717,
0.009061603806912899,
0.06987310200929642,
0.038436345756053925,
-0.013814980164170265,
-0.029103558510541916,
-0.06455177813768387,
-0.0817437544465065,
0.01171714998781681,
-0.07625868916511536,
-0.020159637555480003,
0.0711010992527008,
-0.02670896239578724,
-0.0177752748131752,
-0.016097011044621468,
-0.026401963084936142,
0.050593528896570206,
-0.02464183233678341,
-0.019770771265029907,
0.012515349313616753,
0.04498567059636116,
-0.008217355236411095,
0.015411377884447575,
-0.042652472853660583,
-0.023802699521183968,
0.011635283939540386,
-0.007403806317597628,
0.015339745208621025,
-0.024785097688436508,
-0.05927138403058052,
0.05223086103796959,
-0.0023894798941910267,
-0.0508391298353672,
0.03184608742594719,
0.02345476672053337,
0.044453538954257965,
-0.03137535601854324,
0.054891522973775864,
0.05006139725446701,
0.04576340317726135,
-0.06692590564489365,
0.02146950364112854,
0.048505932092666626,
0.00393215287476778,
-0.05603765323758125,
0.01982193812727928,
0.030925089493393898,
-0.011573883704841137,
0.06467457860708237,
0.02163323573768139,
-0.020558737218379974,
-0.017110109329223633,
-0.042488738894462585,
0.04928366467356682,
0.02464183233678341,
-0.023331966251134872,
-0.04156774282455444,
0.04625460132956505,
0.0063446578569710255,
-0.013323781080543995,
0.007107039913535118,
0.011932049877941608,
0.04195660725235939,
0.013538680970668793,
0.02848955988883972,
0.003369320183992386,
-0.02773229405283928,
0.019954971969127655,
-0.07302496582269669,
-0.027077361941337585,
-0.0204461719840765,
0.04735979810357094,
-0.0002905303263105452,
-0.03784281387925148,
0.015135078690946102,
0.03618501499295235,
-0.039357345551252365,
-0.046459268778562546,
0.0512893944978714,
0.07879655808210373,
0.0017524558352306485,
-0.04600900039076805,
0.013896847143769264,
0.044494468718767166,
0.009256036952137947,
-0.028960293158888817,
0.017621774226427078,
-0.019351206719875336,
-0.11674170196056366,
-0.04011461138725281,
0.013119114562869072,
0.04099467396736145,
0.02341383323073387,
-0.04502660408616066,
0.009424886666238308,
0.03784281387925148,
-0.008729021064937115,
-0.01488947868347168,
-0.016045844182372093,
-0.02092713676393032,
-0.04695046693086624,
0.023945966735482216,
-0.03792468085885048,
0.03190748766064644,
0.017611540853977203,
-0.022881701588630676,
-0.0031237206421792507,
0.042529672384262085,
0.0042928773909807205,
0.046704865992069244,
-0.013630780391395092,
-0.01477691251784563,
0.05525992065668106,
0.030004091560840607,
0.00039430256583727896,
0.006999589968472719,
-0.04017601162195206,
-0.02453949861228466,
-0.027445761486887932,
-0.00612464128062129,
0.011113384738564491,
-0.021244369447231293,
0.04899713024497032,
0.01852230727672577,
-0.052640192210674286,
0.022083502262830734,
-0.012791648507118225,
0.0020812011789530516,
-0.02447809837758541,
-0.04191567376255989,
-0.0014825520338490605,
0.009332787245512009,
-0.027322961017489433,
0.0011282233754172921,
0.029144492000341415,
0.029062625020742416,
0.030454356223344803,
0.06905443221330643,
-0.026258695870637894,
-0.022083502262830734,
-0.035325415432453156,
0.02347523346543312,
0.0032541954424232244,
-0.024805564433336258,
0.007813138887286186,
0.028939826413989067,
-0.054809655994176865,
0.029881291091442108,
0.07646335661411285,
-0.0005378888454288244,
-0.04952926188707352,
-0.014715512283146381,
-0.023823166266083717,
0.00739868963137269,
-0.010008186101913452,
-0.04494473710656166,
-0.009788169525563717,
0.045517802238464355,
0.008708554320037365,
-0.06897257268428802,
0.017140809446573257,
-0.020231271162629128,
-0.012494882568717003,
-0.004732910078018904,
-0.01071428507566452,
-0.04021694138646126,
-0.028162093833088875,
0.020180104300379753,
0.023843633010983467,
-0.05943511426448822,
0.024805564433336258,
0.001483831205405295,
-0.0058227586559951305,
-0.010023536160588264,
-0.015155545435845852,
0.02443716488778591,
0.060908712446689606,
-0.10036838799715042,
-0.019248872995376587,
-0.005208759102970362,
0.008084322325885296,
0.027425294741988182,
-0.013999179936945438,
-0.01335448119789362,
0.025153497233986855,
-0.024396231397986412,
0.02975849062204361,
0.015063445083796978,
0.04371673986315727,
-0.04519033432006836,
0.01879860647022724,
0.036287348717451096,
0.04740073159337044,
0.03254195302724838,
0.0360826812684536,
-0.028898892924189568,
0.016649609431624413,
-0.0307408906519413,
0.04948832839727402,
0.03602128103375435,
-0.08653294295072556,
0.02243143506348133,
0.010371468961238861,
-0.013855913653969765,
0.0821940153837204,
0.009527219459414482,
0.03598034754395485,
-0.048628732562065125,
0.03716741502285004,
-0.006283257622271776,
-0.048628732562065125,
0.00559250870719552,
-0.005091076251119375,
-0.012198115698993206,
-0.02670896239578724,
-0.02539909817278385,
-0.05444125458598137,
-0.06962750107049942,
0.022022102028131485,
0.014950878918170929,
-0.02758902683854103,
-0.02138763666152954,
-0.02451903186738491,
-0.009916085749864578,
0.02658616192638874,
-0.03495701774954796,
0.03507981821894646,
-0.004981067962944508,
0.025378631427884102,
-0.013641013763844967,
0.025337697938084602,
0.026115430518984795,
0.019781004637479782,
-0.005495292134582996,
0.014623412862420082,
-0.04001227766275406,
-0.05448218807578087,
-0.0025314672384411097,
0.042611539363861084,
-0.029124025255441666,
0.013548914343118668,
-0.004285202361643314,
-0.009542569518089294,
-0.007746622432023287,
-0.04936553165316582,
-0.10634464770555496,
-0.037187881767749786,
0.02550143003463745,
-0.003970527555793524,
-0.021264836192131042,
-0.014132213778793812,
-0.017079409211874008,
-0.04062627628445625,
-0.016240276396274567,
0.034220218658447266,
0.06991403549909592,
-0.07687269151210785,
-0.04834219813346863,
0.02550143003463745,
-0.047605399042367935,
0.02863282710313797,
0.02065083757042885,
-0.00790523923933506,
-0.06508390605449677,
-0.033360619097948074,
0.0054850587621331215,
-0.05955791473388672,
0.027404827997088432,
-0.029308225959539413,
0.04371673986315727,
0.02953335829079151,
0.05431845784187317,
0.04576340317726135,
0.005208759102970362,
0.002345988294109702,
-0.013057715259492397,
0.018205074593424797,
-0.06401964277029037,
-0.0009638507035560906,
-0.027896028012037277,
0.07245189696550369,
0.07359802722930908,
0.009619319811463356,
-0.027363894507288933,
0.00433892710134387,
0.01775480806827545,
0.024969298392534256,
-0.011553416959941387,
-0.04604993388056755,
0.042611539363861084,
0.012474415823817253,
-0.005341792479157448,
-0.04519033432006836,
-0.008580638095736504,
-0.003266987157985568,
0.020200571045279503,
0.03569381684064865,
-0.042570605874061584,
0.024887431412935257,
-0.01182971615344286,
0.021960701793432236,
0.030372491106390953,
-0.039602942764759064,
0.01426524668931961,
0.09005320817232132,
-0.041485875844955444,
0.020476870238780975,
-0.021305769681930542,
-0.024866964668035507,
-0.10659024864435196,
-0.027261560782790184,
-0.07408922910690308,
0.026258695870637894,
0.016363076865673065,
-0.042652472853660583,
0.04375767335295677,
0.015943510457873344,
0.015677444636821747
] |
724,999 | tf_keras.src.engine.base_layer | build_from_config | Builds the layer's states with the supplied config dict.
By default, this method calls the `build(config["input_shape"])` method,
which creates weights based on the layer's input shape in the supplied
config. If your config contains other information needed to load the
layer's state, you should override this method.
Args:
config: Dict containing the input shape associated with this layer.
| def build_from_config(self, config):
"""Builds the layer's states with the supplied config dict.
By default, this method calls the `build(config["input_shape"])` method,
which creates weights based on the layer's input shape in the supplied
config. If your config contains other information needed to load the
layer's state, you should override this method.
Args:
config: Dict containing the input shape associated with this layer.
"""
input_shape = config["input_shape"]
if input_shape is not None:
self.build(input_shape)
| (self, config) | [
-0.013505522161722183,
-0.06985437124967575,
-0.001561549142934382,
-0.04900795966386795,
-0.03788071498274803,
0.026169631630182266,
-0.0803634375333786,
0.0467412993311882,
0.05639177933335304,
-0.029346391558647156,
-0.031801942735910416,
0.042173635214567184,
-0.012775725685060024,
0.04972917214035988,
0.027869628742337227,
0.03987262770533562,
0.029483765363693237,
0.00000371857322534197,
-0.04224231839179993,
-0.036644354462623596,
-0.000266831717453897,
-0.04100595787167549,
-0.010946942493319511,
0.08681999146938324,
0.041383735835552216,
0.04275747016072273,
0.001410223776474595,
-0.0004378777230158448,
0.006250489503145218,
-0.07528062164783478,
-0.010139874182641506,
0.015463093295693398,
0.0398382842540741,
0.026770642027258873,
0.005031300708651543,
-0.005589380394667387,
0.04028474912047386,
0.061474595218896866,
-0.03712516278028488,
-0.021481765434145927,
0.04564231261610985,
-0.04996957257390022,
0.0342918336391449,
0.054193805903196335,
0.019094903022050858,
0.017961572855710983,
-0.06676347553730011,
-0.015600467100739479,
-0.06638569384813309,
-0.01405501551926136,
-0.010208561085164547,
-0.002431938424706459,
0.00807068683207035,
0.03460092470049858,
-0.025156503543257713,
-0.07720384746789932,
0.010208561085164547,
0.016210060566663742,
0.06205843389034271,
-0.018631266430020332,
-0.06106247752904892,
-0.010414620861411095,
0.014664609916508198,
-0.038807984441518784,
-0.03798374533653259,
-0.06095944717526436,
-0.05955136939883232,
0.010637852363288403,
0.0003839479177258909,
0.0004105103434994817,
0.034892842173576355,
0.020537322387099266,
0.027423163875937462,
-0.002070260001346469,
-0.044508982449769974,
-0.028247404843568802,
0.011444921605288982,
-0.000017758597095962614,
0.025104988366365433,
-0.024332262575626373,
-0.04004434496164322,
0.006529529578983784,
-0.0346352681517601,
-0.004252136219292879,
0.011934313923120499,
-0.017094401642680168,
-0.012964614666998386,
0.02254640869796276,
-0.013522693887352943,
-0.01124744676053524,
0.006727003492414951,
0.021979743614792824,
-0.015789354220032692,
-0.029260534793138504,
-0.005082815885543823,
0.014140874147415161,
0.02014237456023693,
-0.011805526912212372,
0.007847455330193043,
-0.01162522379308939,
-0.05072512850165367,
-0.04749685153365135,
-0.09403209388256073,
-0.005061351228505373,
-0.04038777947425842,
-0.05364431068301201,
-0.025070644915103912,
-0.016252990812063217,
-0.033192846924066544,
-0.00887775607407093,
-0.00016608228906989098,
-0.059104904532432556,
0.0482524074614048,
-0.012672696262598038,
0.03216254711151123,
-0.028453465551137924,
0.03932313621044159,
0.013007543981075287,
-0.06508065015077591,
-0.0019575709011405706,
-0.0030930479988455772,
0.020348435267806053,
-0.013230775482952595,
0.043032217770814896,
0.028161546215415,
0.053541284054517746,
0.012715625576674938,
-0.02641003578901291,
0.06374125927686691,
-0.07177760452032089,
0.022374693304300308,
0.036403950303792953,
-0.04735947772860527,
-0.002128214342519641,
0.016939857974648476,
0.029449421912431717,
-0.013222189620137215,
-0.01780702732503414,
-0.01918076165020466,
0.04804634675383568,
0.11216538399457932,
0.02168782614171505,
0.011831283569335938,
-0.024400949478149414,
-0.015394406393170357,
0.03612920269370079,
-0.00745679996907711,
-0.042963530868291855,
0.011153003200888634,
0.057456422597169876,
0.004962614271789789,
0.018802983686327934,
-0.0036210769321769476,
-0.0032282748725265265,
-0.03207669034600258,
-0.03860192373394966,
0.0002543554292060435,
-0.04632917791604996,
0.0546402707695961,
0.0074696787633001804,
0.013969157822430134,
0.08008868992328644,
0.006134580820798874,
-0.04392514377832413,
-0.04880189895629883,
-0.019129246473312378,
0.00784316286444664,
-0.03935747966170311,
-0.00231817620806396,
-0.03695344552397728,
0.019816113635897636,
-0.035682741552591324,
0.04258575290441513,
0.04880189895629883,
-0.02558579482138157,
-0.02977568469941616,
-0.01575501263141632,
0.012277747504413128,
-0.046020086854696274,
-0.022718125954270363,
-0.0026616095565259457,
0.04564231261610985,
-0.034927185624837875,
0.04237969219684601,
-0.0034965823870152235,
0.05196148902177811,
-0.02161913923919201,
0.04413120448589325,
0.042173635214567184,
-0.004872462712228298,
0.022099945694208145,
-0.004975492600351572,
-0.017944401130080223,
-0.038911014795303345,
-0.00701462896540761,
0.011041386984288692,
-0.020520150661468506,
0.011187346652150154,
-0.026118118315935135,
0.02809285931289196,
0.03133830800652504,
-0.03554536774754524,
0.013994915410876274,
0.025276705622673035,
-0.003715521190315485,
-0.026255490258336067,
0.01163380965590477,
-0.0029299170710146427,
0.008246696554124355,
-0.012458049692213535,
-0.000021464593373821117,
-0.018785811960697174,
0.06188671663403511,
0.05622006207704544,
0.02400600165128708,
-0.041418079286813736,
-0.03990697115659714,
0.07170891761779785,
0.006868669763207436,
-0.018133288249373436,
0.06597357243299484,
0.04409686103463173,
0.08290484547615051,
-0.030943358317017555,
0.013891885057091713,
-0.03798374533653259,
-0.0005564696039073169,
-0.021996915340423584,
0.012724211439490318,
-0.002025184454396367,
0.002128214342519641,
-0.062161464244127274,
0.024315090849995613,
0.026015087962150574,
0.05113724619150162,
-0.024383777752518654,
-0.000751797400880605,
-0.07637961208820343,
0.013041887432336807,
-0.010440378449857235,
0.022958530113101006,
-0.03231709077954292,
-0.0002017671795329079,
-0.0973290503025055,
-0.03695344552397728,
0.008997957222163677,
0.034051429480314255,
0.04687867313623428,
-0.03798374533653259,
-0.0077057890594005585,
-0.02000500075519085,
0.03266052529215813,
0.007010336499661207,
0.030376693233847618,
-0.01997065730392933,
-0.024744383990764618,
-0.0053403908386826515,
-0.068927101790905,
0.022014087066054344,
-0.02481307089328766,
-0.008624473586678505,
-0.019455507397651672,
0.031836286187171936,
0.08434727042913437,
0.030067602172493935,
-0.04667261242866516,
-0.00921260379254818,
0.0007378454320132732,
-0.012664110399782658,
-0.0072679114528000355,
0.02568882517516613,
0.06308872997760773,
0.021842369809746742,
-0.008963614702224731,
0.033364564180374146,
-0.05604834854602814,
0.02019388973712921,
0.01696561463177204,
0.01598682999610901,
0.044749386608600616,
0.05625440552830696,
-0.040628183633089066,
-0.0435473658144474,
0.0465695820748806,
-0.02397165820002556,
-0.023645395413041115,
-0.02723427675664425,
-0.0026616095565259457,
0.00848280731588602,
-0.01520551834255457,
0.08736947923898697,
0.01652773655951023,
-0.008130787871778011,
0.025328220799565315,
-0.006842912640422583,
-0.07926445454359055,
0.007976243272423744,
0.015454507432878017,
0.016871171072125435,
-0.026890842244029045,
0.011796941049396992,
-0.006091651506721973,
0.0025800440926104784,
0.007289376109838486,
-0.011161589063704014,
0.007628516759723425,
0.05141199380159378,
-0.010775226168334484,
-0.022134289145469666,
0.005237360950559378,
-0.00010423743515275419,
0.003992414567619562,
-0.0071520027704536915,
-0.03757162392139435,
0.04158979654312134,
-0.046947360038757324,
0.05752510949969292,
-0.022323178127408028,
0.011848455294966698,
0.028711039572954178,
-0.05402208864688873,
0.014012087136507034,
-0.0403534360229969,
-0.03274638578295708,
-0.05536147952079773,
-0.033330220729112625,
0.05570491403341293,
0.0009396125678904355,
-0.005194431636482477,
0.04433726519346237,
-0.06947659701108932,
0.00916967447847128,
0.07789071649312973,
0.008633059449493885,
-0.034892842173576355,
-0.07789071649312973,
0.04148676618933678,
0.05515541881322861,
-0.03439486399292946,
-0.07081598788499832,
0.06738165020942688,
0.021447421982884407,
-0.028401950374245644,
0.047050390392541885,
0.012964614666998386,
0.005889884661883116,
0.02553427964448929,
-0.02483024261891842,
0.041280705481767654,
0.06023823469877243,
-0.024607010185718536,
-0.016046930104494095,
-0.010448964312672615,
0.04399383068084717,
0.063878633081913,
0.04097161814570427,
-0.038052432239055634,
-0.038979701697826385,
0.038224149495363235,
-0.016690868884325027,
0.0024534030817449093,
0.009744925424456596,
-0.01637319289147854,
0.028298920020461082,
0.0685836672782898,
0.014956529252231121,
-0.005117159336805344,
-0.012895927764475346,
0.024503979831933975,
0.013917642645537853,
0.0024684283416718245,
-0.06260792911052704,
-0.0578342005610466,
0.0578342005610466,
0.027474679052829742,
0.032609011977910995,
-0.05755945295095444,
-0.02903730235993862,
0.031784769147634506,
0.0815311148762703,
-0.012638352811336517,
0.043787769973278046,
0.05618571862578392,
0.04667261242866516,
0.058246321976184845,
-0.028522152453660965,
-0.05436552315950394,
-0.019541366025805473,
0.010998457670211792,
-0.03296961635351181,
-0.01845955103635788,
0.03609485924243927,
0.003056558081880212,
0.05158371105790138,
-0.02165348269045353,
0.015609052032232285,
0.044680699706077576,
0.050141289830207825,
0.01780702732503414,
0.024418121203780174,
0.00919543206691742,
-0.05883015692234039,
-0.028384778648614883,
0.05862409994006157,
0.004842412192374468,
-0.019730255007743835,
-0.004868169780820608,
0.1040603518486023,
-0.026890842244029045,
0.0034257492516189814,
0.04028474912047386,
0.034274663776159286,
-0.06099379062652588,
0.025208018720149994,
-0.044749386608600616,
-0.003470824798569083,
0.025980744510889053,
0.013685825280845165,
-0.013737339526414871,
0.001279289834201336,
0.07878364622592926,
0.04176151379942894,
0.0788523331284523,
0.018116116523742676,
0.05962005630135536,
0.07109073549509048,
0.016381777822971344,
0.047016046941280365,
-0.019644396379590034,
0.017446421086788177,
-0.06762205809354782,
0.03922010585665703,
0.006555286701768637,
-0.007190638687461615,
0.04567665606737137,
-0.03387971594929695,
0.015188346616923809,
-0.02495044283568859,
-0.04653523862361908,
-0.009332804940640926,
0.03271204233169556,
-0.0000882731401361525,
0.011505021713674068,
0.003773475531488657,
-0.04258575290441513,
-0.02100095897912979,
0.005572208669036627,
0.0026508772280067205,
0.025431251153349876,
-0.045298878103494644,
0.03188779950141907,
-0.023834284394979477,
0.00703180069103837,
0.011565122753381729,
0.04196757450699806,
-0.0191635899245739,
-0.02483024261891842,
0.03616354614496231,
-0.0322827473282814,
0.004417413379997015,
-0.033192846924066544,
-0.034858498722314835,
-0.007628516759723425,
0.00418988848105073,
-0.006812862120568752,
-0.034068603068590164,
0.019833285361528397,
0.021859541535377502,
-0.00040487590013071895,
0.004971199668943882,
0.047634225338697433,
-0.009521693922579288,
0.0032368607353419065,
0.04231100529432297,
0.0019114220049232244,
-0.01919793337583542,
0.0017354123992845416,
0.010732296854257584,
0.010594923049211502,
-0.05999783053994179,
0.02579185552895069,
-0.020520150661468506,
-0.06786245852708817,
0.03843021020293236,
-0.023834284394979477,
-0.0038614803925156593,
0.02088075689971447,
-0.005447713658213615,
0.029930230230093002,
-0.003447213675826788,
-0.07177760452032089,
0.0495917983353138,
0.07411295175552368,
-0.017463592812418938,
-0.01766965351998806,
0.006211853586137295,
-0.015188346616923809,
-0.024658525362610817,
0.04196757450699806,
0.030273662880063057,
0.01761813834309578,
0.017171675339341164,
-0.0610281340777874,
0.02563730999827385,
-0.006198974791914225,
0.046397864818573,
-0.02562013827264309,
0.052545323967933655,
-0.015016629360616207,
-0.0048982203006744385,
-0.07315133512020111,
0.024538323283195496,
0.011316133663058281,
0.008165131323039532,
0.0288312416523695,
-0.0321110337972641,
-0.016081273555755615,
0.06202409043908119,
-0.06813720613718033,
0.010904013179242611,
0.058383695781230927,
0.0527857281267643,
0.019060559570789337,
-0.04323827847838402,
0.015368648804724216,
0.053472597151994705,
0.07624223828315735,
-0.04358170926570892,
0.05031300708651543,
0.05797157436609268,
-0.016501979902386665,
-0.04227666184306145,
-0.0047866045497357845,
0.0867513045668602,
-0.010423206724226475,
-0.049351394176483154,
-0.01924944669008255,
-0.010354519821703434,
-0.07019780576229095,
-0.008289625868201256,
0.012870170176029205,
-0.04042212292551994,
0.05055341124534607,
-0.019455507397651672,
-0.04876755550503731,
0.05601400509476662,
0.018236318603157997,
0.010852498933672905,
-0.04512716084718704,
-0.045367565006017685,
-0.036575667560100555,
-0.017497936263680458,
-0.013702997006475925,
0.034892842173576355,
0.09252098202705383,
-0.07713516056537628,
0.022357521578669548,
-0.0336221382021904,
-0.018631266430020332,
0.01740349270403385,
-0.047737255692481995,
0.031097903847694397,
-0.0065080649219453335,
0.025122160091996193,
-0.004717917647212744,
0.05391905829310417,
-0.04268878325819969,
-0.026856498792767525,
-0.04251706600189209,
-0.011530779302120209,
0.056632183492183685,
-0.038979701697826385,
-0.027835285291075706,
-0.003955924417823553,
-0.018030257895588875,
0.013514108024537563,
-0.022340349853038788,
0.001152648706920445,
-0.010234318673610687,
-0.007126245182007551,
0.008684574626386166,
-0.02330196276307106,
0.024400949478149414,
0.014372691512107849,
-0.002749614417552948,
-0.023851456120610237,
-0.07184629142284393,
-0.0034879965241998434,
-0.01923227496445179,
0.006529529578983784,
0.01208885945379734,
-0.02493327111005783,
0.0149221858009696,
0.02582619898021221,
-0.05041603744029999,
-0.007847455330193043,
-0.04347868263721466,
-0.03190497308969498,
0.016665110364556313,
0.021876713261008263,
-0.08311090618371964,
-0.013548451475799084,
0.01204593013972044,
0.0420362614095211,
-0.03039386495947838,
-0.02077772654592991,
-0.006602508947253227,
0.03520193323493004,
-0.027577709406614304,
-0.022220147773623466,
0.05927662178874016,
-0.015299961902201176,
-0.03137265145778656,
-0.008478514850139618,
-0.004131934139877558,
-0.060616012662649155,
0.0032475930638611317,
0.052682697772979736,
0.06614529341459274,
-0.044646356254816055,
0.03781202808022499,
-0.016433292999863625,
-0.035888802260160446,
0.018717125058174133,
-0.046157460659742355,
-0.0002322200743947178,
0.012835826724767685,
-0.06669478863477707,
-0.005190138705074787,
0.022151460871100426,
0.04079990088939667,
-0.004116909112781286,
0.03291809931397438,
-0.07349476963281631,
-0.007645688019692898,
-0.00418988848105073,
0.04183020070195198,
0.026152461767196655,
-0.000816191197372973,
-0.015360062941908836,
0.023542366921901703,
-0.05075947195291519,
0.005091401748359203,
-0.0630543902516365,
0.025259533897042274,
-0.01168532483279705,
0.027835285291075706,
-0.027509022504091263,
0.016785312443971634,
0.06171499937772751,
-0.03860192373394966,
-0.03839586675167084,
-0.0021604113280773163,
0.052510980516672134,
0.09451290220022202,
0.010268661193549633,
0.026307005435228348,
-0.0019221543334424496,
0.03470395505428314,
-0.03470395505428314,
-0.026942357420921326,
-0.017137331888079643,
-0.018682781606912613,
0.038121119141578674,
-0.05989480018615723,
0.001967230113223195,
-0.03928879275918007,
-0.023714082315564156,
0.006439378019422293,
-0.00923836138099432,
-0.03470395505428314,
-0.016665110364556313,
-0.013514108024537563,
-0.019850457087159157,
0.025517109781503677,
-0.034068603068590164,
0.0023954487405717373,
0.0242120623588562,
0.05676955729722977,
-0.034188803285360336,
-0.028590839356184006,
0.06425640732049942,
0.03324436396360397,
0.019472679123282433,
0.07150285691022873,
-0.04148676618933678,
-0.01926661841571331,
-0.014372691512107849,
0.060616012662649155,
0.04564231261610985,
-0.02416054718196392,
0.009830784052610397,
0.03853323683142662,
-0.019781770184636116,
-0.04340999573469162,
-0.049523111432790756,
-0.044680699706077576,
-0.06985437124967575,
-0.06082207337021828,
-0.015540366061031818,
0.053575627505779266,
-0.02405751682817936,
-0.0331241600215435,
-0.032523151487112045,
0.04189888760447502,
-0.010011086240410805,
-0.01615854538977146,
-0.03777768462896347,
-0.019764598459005356,
-0.003017921932041645,
-0.005962864030152559,
0.02082924172282219,
0.012286333367228508,
-0.008117909543216228,
0.013402491807937622,
0.05941399559378624,
-0.004752261098474264,
0.0003383356670383364,
-0.0637069121003151,
-0.002884841291233897,
-0.019610052928328514,
0.013608552515506744,
0.0010565946577116847,
-0.021808026358485222,
-0.027663568034768105,
-0.05972308665513992,
-0.009032300673425198,
-0.036472637206315994,
-0.0013200724497437477,
-0.0023353477008640766,
-0.013196432031691074,
-0.018768640235066414,
-0.03843021020293236,
0.01847672276198864,
-0.020640352740883827,
0.010071187280118465,
0.04158979654312134,
0.023731254041194916,
-0.02484741434454918,
0.03369082510471344,
-0.019781770184636116,
0.01478481199592352,
-0.05718167871236801,
0.022872671484947205,
0.02730296365916729,
0.007486850023269653,
0.07637961208820343,
-0.023885799571871758,
-0.026804983615875244,
0.01200300082564354,
0.015428749844431877,
0.049317050725221634,
0.04258575290441513,
-0.024383777752518654,
0.05522410571575165,
-0.046947360038757324,
-0.00843129213899374,
-0.054846327751874924,
-0.045504938811063766,
-0.06020389124751091,
-0.007134831044822931,
-0.07528062164783478,
0.06662610173225403,
-0.015600467100739479,
0.055086731910705566,
0.004653523676097393,
-0.001667798962444067,
-0.01639036275446415
] |
725,000 | tf_keras.src.engine.training | call | Calls the model on new inputs and returns the outputs as tensors.
In this case `call()` just reapplies
all ops in the graph to the new inputs
(e.g. build a new computational graph from the provided inputs).
Note: This method should not be called directly. It is only meant to be
overridden when subclassing `tf.keras.Model`.
To call a model on an input, always use the `__call__()` method,
i.e. `model(inputs)`, which relies on the underlying `call()` method.
Args:
inputs: Input tensor, or dict/list/tuple of input tensors.
training: Boolean or boolean scalar tensor, indicating whether to
run the `Network` in training mode or inference mode.
mask: A mask or list of masks. A mask can be either a boolean tensor
or None (no mask). For more details, check the guide
[here](https://www.tensorflow.org/guide/keras/masking_and_padding).
Returns:
A tensor if there is a single output, or
a list of tensors if there are more than one outputs.
| @doc_controls.doc_in_current_and_subclasses
def call(self, inputs, training=None, mask=None):
"""Calls the model on new inputs and returns the outputs as tensors.
In this case `call()` just reapplies
all ops in the graph to the new inputs
(e.g. build a new computational graph from the provided inputs).
Note: This method should not be called directly. It is only meant to be
overridden when subclassing `tf.keras.Model`.
To call a model on an input, always use the `__call__()` method,
i.e. `model(inputs)`, which relies on the underlying `call()` method.
Args:
inputs: Input tensor, or dict/list/tuple of input tensors.
training: Boolean or boolean scalar tensor, indicating whether to
run the `Network` in training mode or inference mode.
mask: A mask or list of masks. A mask can be either a boolean tensor
or None (no mask). For more details, check the guide
[here](https://www.tensorflow.org/guide/keras/masking_and_padding).
Returns:
A tensor if there is a single output, or
a list of tensors if there are more than one outputs.
"""
raise NotImplementedError(
"Unimplemented `tf.keras.Model.call()`: if you "
"intend to create a `Model` with the Functional "
"API, please provide `inputs` and `outputs` "
"arguments. Otherwise, subclass `Model` with an "
"overridden `call()` method."
)
| (self, inputs, training=None, mask=None) | [
-0.0007792821270413697,
-0.09496020525693893,
0.011879093945026398,
0.010781864635646343,
-0.051324937492609024,
0.003661209251731634,
-0.11004937440156937,
-0.005930478684604168,
0.12252695858478546,
-0.009793451055884361,
0.0015925692860037088,
-0.028872545808553696,
0.028147105127573013,
0.03541965037584305,
-0.0006171914865262806,
0.012722418643534184,
0.020330479368567467,
0.0011913098860532045,
-0.02651486173272133,
-0.01401007641106844,
-0.00559949642047286,
-0.033170782029628754,
0.011996977962553501,
0.05970378220081329,
0.0472261980175972,
0.07667909562587738,
0.013991939835250378,
-0.015615114010870457,
0.012232745997607708,
0.004874055739492178,
-0.009163224138319492,
0.013538539409637451,
-0.007748614996671677,
0.010174307972192764,
0.0307586919516325,
-0.02299647405743599,
-0.019060958176851273,
0.09256625175476074,
-0.04864080622792244,
-0.038303274661302567,
-0.00885944627225399,
-0.07450277358293533,
0.030269019305706024,
0.004710831213742495,
-0.012123930267989635,
-0.02256120927631855,
-0.009167758747935295,
0.04856826364994049,
-0.005481612402945757,
-0.0431637279689312,
-0.043925441801548004,
0.010591436177492142,
-0.014672040939331055,
0.0022182620596140623,
-0.06623274832963943,
-0.033787406980991364,
0.005468010436743498,
0.004044332541525364,
0.029561713337898254,
-0.0002513539220672101,
-0.007617128547281027,
-0.0014701512409374118,
-0.00823375303298235,
-0.004688161425292492,
0.013112342916429043,
-0.02442922070622444,
-0.04388916864991188,
-0.028926953673362732,
0.0014769522240385413,
0.05154257267713547,
-0.06398387998342514,
-0.006601511500775814,
0.043054912239313126,
0.023848867043852806,
0.013901259750127792,
-0.05984886735677719,
0.020384887233376503,
-0.006710327696055174,
0.009340050630271435,
-0.0307586919516325,
0.014436272904276848,
-0.017065996304154396,
0.004264231771230698,
-0.03473047912120819,
0.010555163957178593,
-0.01664886623620987,
0.0038720404263585806,
-0.019949622452259064,
0.0024596978910267353,
0.0019892947748303413,
-0.0032780857291072607,
0.032300252467393875,
-0.03199193999171257,
-0.00965743139386177,
0.003543325001373887,
0.007168262265622616,
-0.035492192953825,
-0.030831236392259598,
0.012695214711129665,
0.01785491220653057,
-0.013774307444691658,
0.12085844576358795,
-0.04069723188877106,
0.0027430730406194925,
0.013121411204338074,
-0.045340053737163544,
-0.0449773333966732,
-0.005921410862356424,
-0.012504786252975464,
0.013810579665005207,
-0.0042120907455682755,
0.03968161344528198,
-0.0022704030852764845,
-0.008251889608800411,
0.011380353011190891,
0.007848363369703293,
-0.03393249586224556,
-0.03703375533223152,
-0.04378035292029381,
0.009181360714137554,
-0.029924433678388596,
0.08560201525688171,
-0.020312342792749405,
-0.06655919551849365,
-0.0011550377821549773,
0.06837280094623566,
0.032753653824329376,
0.021473048254847527,
0.05934106186032295,
-0.03656221926212311,
-0.038484636694192886,
-0.012132997624576092,
0.042873553931713104,
0.07878287136554718,
0.03841209039092064,
0.05197783559560776,
0.01755566895008087,
-0.011942570097744465,
-0.08335315436124802,
0.06162619963288307,
0.024701260030269623,
0.037759196013212204,
0.09140554815530777,
0.0822649896144867,
-0.010255919769406319,
0.006959698162972927,
0.0204574316740036,
-0.022796977311372757,
0.01710226759314537,
-0.0042234258726239204,
0.029198992997407913,
0.013937531970441341,
0.011271537281572819,
0.04174911975860596,
-0.0160957183688879,
0.06053803861141205,
-0.020384887233376503,
-0.06514458358287811,
0.028165239840745926,
-0.026569271460175514,
-0.06115466356277466,
0.022071536630392075,
0.03436775878071785,
0.014127960428595543,
0.004529471043497324,
-0.003867506515234709,
-0.030178338289260864,
-0.007231738418340683,
-0.01797279715538025,
0.021799497306346893,
0.022670026868581772,
0.0019292192300781608,
0.055568769574165344,
0.0017342569772154093,
0.0035183881409466267,
0.0034979849588125944,
-0.00014069584722165018,
0.006814609747380018,
0.001682115951552987,
0.041640304028987885,
0.033696725964546204,
-0.0006863350281491876,
-0.019804535433650017,
0.015261461958289146,
-0.03982670232653618,
0.03989924490451813,
-0.04113249480724335,
-0.013166750781238079,
-0.012930982746183872,
-0.01792745664715767,
-0.016322419047355652,
0.04142267256975174,
0.042256928980350494,
0.006714861840009689,
-0.0380493700504303,
-0.06260554492473602,
-0.040769774466753006,
0.058397985994815826,
0.01827204041182995,
0.012930982746183872,
0.01723828725516796,
0.0004168451123405248,
0.08110428601503372,
0.018398992717266083,
-0.047806549817323685,
0.02034861594438553,
0.06681310385465622,
0.04457833990454674,
-0.04936625063419342,
-0.0758085697889328,
-0.0035909321159124374,
-0.005667506717145443,
0.007462972775101662,
0.05763627588748932,
0.024356676265597343,
0.026369774714112282,
0.0029833754524588585,
0.006959698162972927,
0.0008064861758612096,
-0.011307808570563793,
0.038738541305065155,
0.008410579524934292,
-0.01710226759314537,
-0.04976524040102959,
0.004919395782053471,
-0.028147105127573013,
0.024356676265597343,
-0.008383375592529774,
0.019260454922914505,
-0.09278388321399689,
-0.03483929485082626,
-0.05995768681168556,
-0.01947808638215065,
0.011933501809835434,
-0.07863778620958328,
0.0024982369504868984,
0.004919395782053471,
-0.025317884981632233,
0.04519496485590935,
-0.023250378668308258,
-0.0045226700603961945,
0.00533199030905962,
0.0062705292366445065,
-0.025082116946578026,
-0.005182367749512196,
0.0064337532967329025,
0.014336524531245232,
0.04294609650969505,
-0.0307586919516325,
-0.021708816289901733,
-0.012441310100257397,
-0.02600705437362194,
-0.010700251907110214,
0.06485441327095032,
-0.0019700252451002598,
0.03514760732650757,
-0.030559195205569267,
-0.03514760732650757,
0.030287154018878937,
0.027875063940882683,
-0.030704284086823463,
0.023667506873607635,
-0.01886146143078804,
0.012405037879943848,
0.019713854417204857,
-0.051869019865989685,
-0.02968866564333439,
0.038557179272174835,
0.015533502213656902,
0.04439697787165642,
0.018879598006606102,
0.040153149515390396,
-0.017365239560604095,
-0.025082116946578026,
-0.003015113528817892,
-0.049402520060539246,
-0.0010909950360655785,
0.05139748379588127,
-0.0027113351970911026,
-0.027258438989520073,
0.03648967295885086,
-0.03989924490451813,
-0.059268515557050705,
-0.01260453462600708,
0.006397481542080641,
-0.05818035453557968,
0.06409269571304321,
0.062097735702991486,
-0.009222166612744331,
-0.05331990122795105,
0.09292896836996078,
0.02968866564333439,
0.05923224240541458,
-0.009639294818043709,
-0.03921007737517357,
0.008891183882951736,
-0.02774811163544655,
-0.019151637330651283,
0.01299445889890194,
-0.01476272102445364,
0.031339045614004135,
-0.024610580876469612,
-0.008474055677652359,
-0.005762720480561256,
0.0440705306828022,
-0.02774811163544655,
-0.002477833768352866,
0.007390428334474564,
-0.010110831819474697,
0.004139546770602465,
-0.03233652561903,
-0.016376826912164688,
-0.007322418503463268,
-0.038194458931684494,
-0.0430186428129673,
-0.0034821159206330776,
0.054154157638549805,
0.02548110857605934,
0.08371587097644806,
0.05281209200620651,
0.013130479492247105,
0.06909824162721634,
-0.003368765814229846,
0.06608766317367554,
-0.07631637901067734,
-0.03094005212187767,
0.033787406980991364,
0.037432748824357986,
-0.05426297336816788,
0.04222065582871437,
0.016168262809515,
0.003960453439503908,
0.054081615060567856,
0.014463476836681366,
-0.10431839525699615,
-0.022633753716945648,
0.04131385684013367,
0.028673049062490463,
0.010083627887070179,
0.004679093603044748,
0.027693703770637512,
0.0307586919516325,
-0.04388916864991188,
-0.006687657907605171,
0.0024619647301733494,
0.0365440808236599,
0.03144786134362221,
0.057600002735853195,
0.03585491329431534,
0.019151637330651283,
0.006814609747380018,
-0.009467002935707569,
0.010147104039788246,
0.0038833755534142256,
0.02802015282213688,
0.03491184115409851,
-0.028582368046045303,
-0.01854408159852028,
0.02539042942225933,
-0.12281713634729385,
0.002387153683230281,
-0.01556070614606142,
0.011597985401749611,
0.005241310223937035,
0.0503818653523922,
-0.030033251270651817,
-0.008941058069467545,
0.0064201513305306435,
-0.023758187890052795,
-0.015225189737975597,
-0.007979849353432655,
-0.08335315436124802,
-0.011362217366695404,
0.0026523929554969072,
-0.0030763226095587015,
0.04283728078007698,
-0.027077078819274902,
-0.018181361258029938,
-0.0053047859109938145,
0.04178539291024208,
0.015742065384984016,
0.023286649957299232,
0.013547607697546482,
0.021926449611783028,
0.09684634953737259,
0.003028715495020151,
-0.05215919762849808,
0.0020119647961109877,
0.002543576993048191,
-0.01794559322297573,
0.037759196013212204,
-0.02502770908176899,
-0.03500251844525337,
-0.014690176583826542,
-0.059631235897541046,
-0.01922418177127838,
0.05738237127661705,
0.028346600010991096,
-0.04229320213198662,
-0.0627143606543541,
-0.008338036015629768,
-0.00627959705889225,
0.010274055413901806,
0.038303274661302567,
0.011870025657117367,
-0.0026523929554969072,
-0.0026977329980582,
0.009539547376334667,
-0.023993955925107002,
0.021291688084602356,
0.009049874730408192,
-0.00901813618838787,
-0.060066502541303635,
0.045521412044763565,
0.0007112720631994307,
0.07602620124816895,
-0.007494710851460695,
-0.009566751308739185,
0.010537028312683105,
0.023848867043852806,
0.038484636694192886,
0.04312745854258537,
0.09089773893356323,
0.06398387998342514,
0.06975113600492477,
0.03975415602326393,
0.009045340120792389,
0.03347909450531006,
0.020511839538812637,
0.046319399029016495,
-0.0348937027156353,
-0.07022267580032349,
-0.022633753716945648,
0.011026700958609581,
-0.021745089441537857,
-0.041567761451005936,
0.047806549817323685,
-0.036888666450977325,
-0.028618641197681427,
0.03939143568277359,
0.000002537094815124874,
-0.01693904399871826,
0.05172393098473549,
-0.04802418500185013,
-0.08893904834985733,
-0.016286145895719528,
0.0006630982388742268,
0.033787406980991364,
-0.07406751066446304,
-0.028582368046045303,
0.09597582370042801,
0.04290982708334923,
0.08255516737699509,
0.03449471294879913,
0.004978337790817022,
-0.029471034184098244,
-0.03057733178138733,
-0.012930982746183872,
0.010156171396374702,
0.020602520555257797,
0.006352141499519348,
0.03585491329431534,
-0.008251889608800411,
-0.008950126357376575,
-0.05382771044969559,
-0.0034685139544308186,
0.06692191958427429,
-0.006334005389362574,
-0.056910835206508636,
-0.0003681045491248369,
0.06090075895190239,
-0.060574308037757874,
-0.023195970803499222,
-0.00040182622615247965,
-0.0523405559360981,
0.017029723152518272,
-0.014463476836681366,
0.0022318640258163214,
-0.01158891711384058,
-0.027566751465201378,
-0.025499245151877403,
-0.07515566796064377,
-0.03144786134362221,
0.05426297336816788,
-0.005087153986096382,
0.014517884701490402,
0.020656928420066833,
0.025771286338567734,
0.028310328722000122,
0.0012887909542769194,
-0.025680605322122574,
0.02140050381422043,
0.060937028378248215,
-0.022543074563145638,
-0.08117683231830597,
-0.044832244515419006,
0.014753652736544609,
0.006438287440687418,
-0.024737533181905746,
0.004955667536705732,
-0.0025254408828914165,
0.008669017814099789,
-0.025136524811387062,
0.0034299748949706554,
0.04018942266702652,
0.03175617381930351,
0.007404030300676823,
-0.0205299761146307,
-0.032227709889411926,
-0.03632644936442375,
-0.0779123455286026,
-0.0034549119882285595,
0.006968765985220671,
0.024284131824970245,
-0.016376826912164688,
-0.04795163869857788,
0.02089269645512104,
0.01489874068647623,
0.0023486146237701178,
-0.024973301216959953,
0.042438287287950516,
0.022524937987327576,
-0.024737533181905746,
0.006429219618439674,
0.022162217646837234,
0.05172393098473549,
-0.00687355175614357,
-0.0235405545681715,
0.027621159330010414,
0.00482418155297637,
0.0016900504706427455,
0.004139546770602465,
-0.011108312755823135,
0.04671838879585266,
0.013810579665005207,
-0.06293199211359024,
-0.007744080852717161,
-0.03491184115409851,
-0.07029521465301514,
0.05012796074151993,
-0.02609773352742195,
0.025662468746304512,
-0.01929672621190548,
0.02838287316262722,
0.06953350454568863,
-0.010591436177492142,
-0.007521914783865213,
-0.0014576826943084598,
0.016295215114951134,
-0.029289674013853073,
-0.051071036607027054,
-0.023141562938690186,
-0.006814609747380018,
0.062351640313863754,
0.03982670232653618,
0.06884433329105377,
-0.0028269521426409483,
0.034766752272844315,
-0.05473450943827629,
0.0215818639844656,
-0.042619649320840836,
-0.020076574757695198,
0.03511133790016174,
-0.032844334840774536,
-0.008564735762774944,
0.026841310784220695,
-0.021309824660420418,
-0.031592946499586105,
-0.019459949806332588,
-0.05139748379588127,
-0.00021933250536676496,
0.033460959792137146,
0.0362539067864418,
0.0009255037875846028,
0.005150630138814449,
0.04258337616920471,
0.02785692736506462,
0.0018623425858095288,
-0.013456927612423897,
-0.021962720900774002,
-0.02169068157672882,
-0.03913753479719162,
-0.02660554274916649,
-0.009947607293725014,
0.018417129293084145,
-0.023740051314234734,
-0.03453098237514496,
0.008292695507407188,
-0.013021662831306458,
0.015995969995856285,
0.004728967323899269,
0.016821159049868584,
-0.03306196630001068,
0.022234762087464333,
0.0025277079548686743,
-0.008129470981657505,
-0.08719798922538757,
-0.04907607287168503,
0.020312342792749405,
-0.014073552563786507,
-0.1043909341096878,
0.009911335073411465,
0.03157481178641319,
-0.04272846505045891,
-0.03728765994310379,
0.0032259447034448385,
-0.0902448371052742,
0.025063980370759964,
0.022978339344263077,
-0.036435265094041824,
0.009367254562675953,
-0.012296222150325775,
-0.04403425753116608,
0.008351637981832027,
0.046210579574108124,
-0.015606045722961426,
-0.03228211775422096,
0.032572291791439056,
0.06518086045980453,
-0.014608564786612988,
0.05491587147116661,
-0.004883123561739922,
-0.05419043079018593,
-0.03801310062408447,
-0.041640304028987885,
0.02618841454386711,
-0.012314357794821262,
-0.030105793848633766,
0.018072545528411865,
0.042438287287950516,
0.04882216826081276,
0.01295818667858839,
0.009136020205914974,
0.024392947554588318,
0.08698035776615143,
-0.09619345515966415,
-0.009208564646542072,
0.03215516358613968,
-0.025952646508812904,
-0.040951136499643326,
-0.011597985401749611,
0.0068916878663003445,
0.018253905698657036,
-0.06017531827092171,
0.004769773688167334,
-0.03862972557544708,
-0.03251788392663002,
-0.033352144062519073,
0.0839335024356842,
0.003364231903105974,
-0.055568769574165344,
0.05440806224942207,
0.018507808446884155,
0.008075063116848469,
0.07428514212369919,
0.011081108823418617,
0.008016121573746204,
-0.029035769402980804,
0.03672544285655022,
-0.04229320213198662,
-0.0512886680662632,
-0.005631234496831894,
0.024828212335705757,
-0.008800503797829151,
-0.057055920362472534,
0.025952646508812904,
-0.028274057433009148,
-0.02660554274916649,
-0.017392443493008614,
0.01765541546046734,
-0.042003024369478226,
-0.005885138642042875,
-0.06757481396198273,
-0.0051687657833099365,
0.0027408062014728785,
-0.01732896827161312,
0.04439697787165642,
-0.009766247123479843,
-0.008927456103265285,
-0.052848365157842636,
-0.024810075759887695,
-0.026297230273485184,
0.010827204212546349,
0.042438287287950516,
-0.019858943298459053,
-0.010373803786933422,
-0.01564231887459755,
0.005867002531886101,
0.025426700711250305,
-0.04047960042953491,
-0.0026478590443730354,
-0.033533502370119095,
0.015406549908220768,
-0.02292392961680889,
-0.01705692708492279,
-0.02774811163544655,
-0.08538438379764557,
-0.05622166395187378,
-0.0797259509563446,
0.013121411204338074,
0.031175820156931877,
0.02027607150375843,
-0.029924433678388596,
-0.02071133628487587,
0.0047062975354492664,
0.06674055755138397,
-0.05509722977876663,
-0.02987002581357956,
0.0050418139435350895,
-0.011960705742239952,
0.038194458931684494,
0.04345390573143959,
0.012132997624576092,
0.0004831549304071814,
0.0594136044383049,
-0.024392947554588318,
0.01712947152554989,
0.029507305473089218,
-0.008492191322147846,
0.010754660703241825,
0.00463602039963007,
0.015977835282683372,
0.02987002581357956,
-0.024265995249152184,
-0.005254912190139294,
-0.04871335253119469,
-0.05306599661707878,
-0.026895718649029732,
0.03347909450531006,
0.018045341596007347,
0.04635566845536232,
0.03306196630001068,
-0.0008926322916522622,
-0.024175316095352173,
0.022579345852136612,
-0.010564232245087624,
0.010464483872056007,
-0.02774811163544655,
0.004982871934771538,
-0.06079194322228432,
-0.009884131141006947,
-0.00522317411378026,
-0.04660957306623459,
-0.01181561779230833,
0.01048262044787407,
0.004073803778737783,
0.056983377784490585,
-0.013420655392110348,
0.05139748379588127,
-0.027983879670500755,
0.01687556691467762,
0.0380493700504303,
0.023123426362872124,
-0.009485138580203056,
0.11026700586080551,
-0.0034005038905888796,
0.0107909319922328,
-0.009811587631702423,
-0.01591435819864273,
-0.024556173011660576,
0.0047335014678537846,
-0.004488665144890547,
0.032118894159793854,
0.0006132242269814014,
0.009367254562675953,
0.008442318066954613,
0.03765038028359413,
0.030105793848633766
] |
725,001 | tf_keras.src.engine.training | compile | Configures the model for training.
Example:
```python
model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3),
loss=tf.keras.losses.BinaryCrossentropy(),
metrics=[tf.keras.metrics.BinaryAccuracy(),
tf.keras.metrics.FalseNegatives()])
```
Args:
optimizer: String (name of optimizer) or optimizer instance. See
`tf.keras.optimizers`.
loss: Loss function. May be a string (name of loss function), or
a `tf.keras.losses.Loss` instance. See `tf.keras.losses`. A loss
function is any callable with the signature `loss = fn(y_true,
y_pred)`, where `y_true` are the ground truth values, and
`y_pred` are the model's predictions.
`y_true` should have shape
`(batch_size, d0, .. dN)` (except in the case of
sparse loss functions such as
sparse categorical crossentropy which expects integer arrays of
shape `(batch_size, d0, .. dN-1)`).
`y_pred` should have shape `(batch_size, d0, .. dN)`.
The loss function should return a float tensor.
If a custom `Loss` instance is
used and reduction is set to `None`, return value has shape
`(batch_size, d0, .. dN-1)` i.e. per-sample or per-timestep loss
values; otherwise, it is a scalar. If the model has multiple
outputs, you can use a different loss on each output by passing a
dictionary or a list of losses. The loss value that will be
minimized by the model will then be the sum of all individual
losses, unless `loss_weights` is specified.
metrics: List of metrics to be evaluated by the model during
training and testing. Each of this can be a string (name of a
built-in function), function or a `tf.keras.metrics.Metric`
instance. See `tf.keras.metrics`. Typically you will use
`metrics=['accuracy']`.
A function is any callable with the signature `result = fn(y_true,
y_pred)`. To specify different metrics for different outputs of a
multi-output model, you could also pass a dictionary, such as
`metrics={'output_a':'accuracy', 'output_b':['accuracy', 'mse']}`.
You can also pass a list to specify a metric or a list of metrics
for each output, such as
`metrics=[['accuracy'], ['accuracy', 'mse']]`
or `metrics=['accuracy', ['accuracy', 'mse']]`. When you pass the
strings 'accuracy' or 'acc', we convert this to one of
`tf.keras.metrics.BinaryAccuracy`,
`tf.keras.metrics.CategoricalAccuracy`,
`tf.keras.metrics.SparseCategoricalAccuracy` based on the shapes
of the targets and of the model output. We do a similar
conversion for the strings 'crossentropy' and 'ce' as well.
The metrics passed here are evaluated without sample weighting; if
you would like sample weighting to apply, you can specify your
metrics via the `weighted_metrics` argument instead.
loss_weights: Optional list or dictionary specifying scalar
coefficients (Python floats) to weight the loss contributions of
different model outputs. The loss value that will be minimized by
the model will then be the *weighted sum* of all individual
losses, weighted by the `loss_weights` coefficients. If a list,
it is expected to have a 1:1 mapping to the model's outputs. If a
dict, it is expected to map output names (strings) to scalar
coefficients.
weighted_metrics: List of metrics to be evaluated and weighted by
`sample_weight` or `class_weight` during training and testing.
run_eagerly: Bool. If `True`, this `Model`'s logic will not be
wrapped in a `tf.function`. Recommended to leave this as `None`
unless your `Model` cannot be run inside a `tf.function`.
`run_eagerly=True` is not supported when using
`tf.distribute.experimental.ParameterServerStrategy`. Defaults to
`False`.
steps_per_execution: Int or `'auto'`. The number of batches to
run during each `tf.function` call. If set to "auto", keras will
automatically tune `steps_per_execution` during runtime. Running
multiple batches inside a single `tf.function` call can greatly
improve performance on TPUs, when used with distributed strategies
such as `ParameterServerStrategy`, or with small models with a
large Python overhead. At most, one full epoch will be run each
execution. If a number larger than the size of the epoch is
passed, the execution will be truncated to the size of the epoch.
Note that if `steps_per_execution` is set to `N`,
`Callback.on_batch_begin` and `Callback.on_batch_end` methods will
only be called every `N` batches (i.e. before/after each
`tf.function` execution). Defaults to `1`.
jit_compile: If `True`, compile the model training step with XLA.
[XLA](https://www.tensorflow.org/xla) is an optimizing compiler
for machine learning.
`jit_compile` is not enabled for by default.
Note that `jit_compile=True`
may not necessarily work for all models.
For more information on supported operations please refer to the
[XLA documentation](https://www.tensorflow.org/xla).
Also refer to
[known XLA issues](https://www.tensorflow.org/xla/known_issues)
for more details.
pss_evaluation_shards: Integer or 'auto'. Used for
`tf.distribute.ParameterServerStrategy` training only. This arg
sets the number of shards to split the dataset into, to enable an
exact visitation guarantee for evaluation, meaning the model will
be applied to each dataset element exactly once, even if workers
fail. The dataset must be sharded to ensure separate workers do
not process the same data. The number of shards should be at least
the number of workers for good performance. A value of 'auto'
turns on exact evaluation and uses a heuristic for the number of
shards based on the number of workers. 0, meaning no
visitation guarantee is provided. NOTE: Custom implementations of
`Model.test_step` will be ignored when doing exact evaluation.
Defaults to `0`.
**kwargs: Arguments supported for backwards compatibility only.
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Training-related part of the TF-Keras engine."""
import copy
import itertools
import json
import warnings
import weakref
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow.python.distribute import distribute_utils
from tensorflow.python.distribute import input_ops
from tensorflow.python.eager import context
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util.tf_export import keras_export
from tensorflow.tools.docs import doc_controls
from tf_keras.src import backend
from tf_keras.src import callbacks as callbacks_module
from tf_keras.src import optimizers
from tf_keras.src.dtensor import dtensor_api
from tf_keras.src.dtensor import layout_map as layout_map_lib
from tf_keras.src.engine import base_layer
from tf_keras.src.engine import base_layer_utils
from tf_keras.src.engine import compile_utils
from tf_keras.src.engine import data_adapter
from tf_keras.src.engine import input_layer as input_layer_module
from tf_keras.src.engine import training_utils
from tf_keras.src.metrics import base_metric
from tf_keras.src.mixed_precision import loss_scale_optimizer as lso
from tf_keras.src.optimizers import optimizer
from tf_keras.src.optimizers import optimizer_v1
from tf_keras.src.saving import pickle_utils
from tf_keras.src.saving import saving_api
from tf_keras.src.saving import saving_lib
from tf_keras.src.saving import serialization_lib
from tf_keras.src.saving.legacy import serialization
from tf_keras.src.saving.legacy.saved_model import json_utils
from tf_keras.src.saving.legacy.saved_model import model_serialization
from tf_keras.src.utils import generic_utils
from tf_keras.src.utils import io_utils
from tf_keras.src.utils import layer_utils
from tf_keras.src.utils import steps_per_execution_tuning
from tf_keras.src.utils import tf_inspect
from tf_keras.src.utils import tf_utils
from tf_keras.src.utils import traceback_utils
from tf_keras.src.utils import version_utils
from tf_keras.src.utils.mode_keys import ModeKeys
try:
import h5py
except ImportError:
h5py = None
@keras_export("keras.Model", "keras.models.Model")
class Model(base_layer.Layer, version_utils.ModelVersionSelector):
"""A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
"""
_TF_MODULE_IGNORED_PROPERTIES = frozenset(
itertools.chain(
(
"_train_counter",
"_test_counter",
"_predict_counter",
"_steps_per_execution",
"_compiled_trainable_state",
),
base_layer.Layer._TF_MODULE_IGNORED_PROPERTIES,
)
)
_SCALAR_UPRANKING_ON = False
def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, *args, **kwargs):
self._is_model_for_instrumentation = True
# Special case for Subclassed Functional Model, which we couldn't detect
# when __new__ is called. We only realize it is a functional model when
# it calls super.__init__ with input and output tensor.
from tf_keras.src.engine import functional
if is_functional_model_init_params(args, kwargs) and not isinstance(
self, functional.Functional
):
# Filter the kwargs for multiple inheritance.
support | (self, optimizer='rmsprop', loss=None, metrics=None, loss_weights=None, weighted_metrics=None, run_eagerly=None, steps_per_execution=None, jit_compile=None, pss_evaluation_shards=0, **kwargs) | [
0.024919170886278152,
-0.08747690916061401,
-0.03955890238285065,
0.04970278963446617,
-0.0026446967385709286,
-0.0020671843085438013,
-0.08697988092899323,
0.0001960930385394022,
-0.009330568835139275,
-0.024422142654657364,
-0.01929371990263462,
0.009805005043745041,
-0.02756245620548725,
0.05083239823579788,
0.0571582093834877,
0.0399203784763813,
0.0009679335635155439,
-0.0077039324678480625,
0.0006749412859790027,
-0.01570156216621399,
0.02753986418247223,
-0.04251847788691521,
-0.04527472332119942,
0.03549230843782425,
0.01845780946314335,
0.05205237492918968,
-0.007127831690013409,
0.0063371057622134686,
0.02025388740003109,
-0.02591322734951973,
-0.05562194064259529,
0.0008761528879404068,
-0.0361022986471653,
-0.009917966090142727,
0.01958741806447506,
-0.03497269004583359,
0.012979205697774887,
0.06425215303897858,
-0.03809041157364845,
-0.03766115754842758,
0.03578600659966469,
-0.0448002852499485,
0.003428362775593996,
-0.019022613763809204,
-0.004555147606879473,
0.01766708306968212,
-0.0064896028488874435,
0.008274384774267673,
0.019632602110505104,
-0.04857318103313446,
-0.04283476620912552,
-0.010465825907886028,
-0.007958094589412212,
0.033255685120821,
-0.026975059881806374,
-0.048121336847543716,
-0.01697802171111107,
-0.04631396383047104,
0.011019334197044373,
-0.00757402740418911,
-0.00974852405488491,
-0.024648064747452736,
0.001783369923941791,
0.017655786126852036,
-0.03262310475111008,
-0.0018539705779403448,
-0.04387400671839714,
-0.04712728038430214,
0.0025656241923570633,
0.044529180973768234,
-0.04952205345034599,
-0.044145114719867706,
0.056570809334516525,
0.02916650101542473,
0.009545194916427135,
0.0004384294443298131,
0.0006661161896772683,
-0.04068851098418236,
0.03806781768798828,
-0.04579434171319008,
-0.041772935539484024,
-0.002706825267523527,
-0.02936982922255993,
-0.03400122746825218,
0.011623675003647804,
-0.028895394876599312,
-0.007415882311761379,
-0.005998223088681698,
-0.013849004171788692,
-0.005800541490316391,
-0.009963150136172771,
0.04211181774735451,
0.023450680077075958,
0.04735320433974266,
0.06642100214958191,
-0.017949484288692474,
-0.05521528050303459,
-0.03777411952614784,
-0.0069922786206007,
-0.02489657886326313,
0.02153034508228302,
0.03298457711935043,
-0.024331774562597275,
0.010222960263490677,
-0.04226996377110481,
-0.045545827597379684,
-0.07229496538639069,
-0.017508937045931816,
-0.05598341301083565,
-0.02835318259894848,
-0.027630232274532318,
-0.009697691537439823,
-0.008929558098316193,
0.0133745688945055,
-0.02742690220475197,
0.03217126056551933,
0.0001353765546809882,
-0.011702748015522957,
-0.030363885685801506,
-0.0023580584675073624,
0.0004285453469492495,
0.05598341301083565,
-0.04938649758696556,
-0.03899409621953964,
-0.017249127849936485,
0.012967909686267376,
0.05051610618829727,
0.021586824208498,
0.04599767178297043,
-0.040439996868371964,
-0.03897150605916977,
-0.017599305137991905,
-0.0033972985111176968,
0.06077295541763306,
0.01336327288299799,
-0.0038434939924627542,
-0.0021589649841189384,
0.02695246785879135,
-0.059824083000421524,
0.06221885606646538,
0.06705357879400253,
0.005698876455426216,
0.059824083000421524,
0.02663617581129074,
-0.03754819929599762,
-0.021519048139452934,
-0.0048940302804112434,
-0.0636647567152977,
-0.009471770375967026,
-0.04199885576963425,
-0.002828258089721203,
0.008505954407155514,
0.017599305137991905,
0.00913853570818901,
-0.0059586865827441216,
0.03235199674963951,
-0.035966746509075165,
-0.06461362540721893,
0.028692064806818962,
-0.009697691537439823,
-0.06090850755572319,
-0.04649470001459122,
0.02347327210009098,
-0.03797744959592819,
0.013837708160281181,
0.0038943265099078417,
-0.041388869285583496,
-0.023292534053325653,
0.005300689488649368,
0.020626656711101532,
0.041976265609264374,
0.017057092860341072,
0.03467899188399315,
0.019824635237455368,
0.011019334197044373,
0.04466473311185837,
0.05196200683712959,
-0.011781820096075535,
0.02040073648095131,
0.04744357243180275,
0.045252129435539246,
-0.017418568953871727,
-0.09032352268695831,
-0.036870431154966354,
-0.05408567190170288,
0.022354958578944206,
-0.049928709864616394,
0.02539360709488392,
0.041366275399923325,
-0.000633639981970191,
0.030025003477931023,
0.028240220621228218,
0.021146276965737343,
0.03915224224328995,
-0.04353512451052666,
-0.0070205191150307655,
-0.00003920536983059719,
0.047895416617393494,
0.04988352581858635,
0.020073149353265762,
-0.011471177451312542,
0.009805005043745041,
0.03865521401166916,
-0.00046914067934267223,
-0.07297272980213165,
0.0061846086755394936,
0.008302625268697739,
-0.018435215577483177,
-0.04907020926475525,
-0.07694895565509796,
-0.0361022986471653,
0.013950669206678867,
0.04622359573841095,
0.07288236171007156,
0.07188830524682999,
-0.06370993703603745,
-0.029663529247045517,
0.02010703831911087,
-0.0041061281226575375,
-0.030160555616021156,
0.03354938328266144,
0.0277657862752676,
-0.04001074656844139,
0.0010505361715331674,
0.02896317094564438,
-0.03725450113415718,
0.04360290244221687,
0.004916622303426266,
-0.017215238884091377,
-0.0555315725505352,
-0.02338290400803089,
-0.07554823905229568,
0.004043999593704939,
0.02500953897833824,
0.016865059733390808,
0.010166479274630547,
-0.042608845978975296,
-0.035966746509075165,
0.04037221893668175,
-0.069764643907547,
-0.013092166744172573,
-0.06520102173089981,
-0.011166183277964592,
-0.03142571821808815,
-0.02480621077120304,
0.04267662391066551,
0.025732489302754402,
0.06953871995210648,
-0.03781930357217789,
-0.05078721418976784,
0.03350419923663139,
0.027155796065926552,
-0.012775875627994537,
0.08286810666322708,
-0.024444734677672386,
-0.03183237835764885,
0.031583864241838455,
-0.07807856053113937,
0.056751549243927,
0.014707507565617561,
-0.012007742188870907,
0.02835318259894848,
-0.02580026537179947,
0.0883805975317955,
0.022298479452729225,
-0.05078721418976784,
0.020841283723711967,
0.02042332850396633,
0.042902544140815735,
-0.015181942842900753,
0.1337456852197647,
0.05639007315039635,
-0.059824083000421524,
0.005907854065299034,
-0.036576732993125916,
-0.019655194133520126,
0.005391058046370745,
-0.0009594614966772497,
0.024919170886278152,
-0.0007314217509701848,
0.003998815547674894,
-0.09027834236621857,
-0.05223311483860016,
-0.0001251394860446453,
0.0026672889944165945,
-0.026048779487609863,
0.0054334187880158424,
-0.04925094544887543,
-0.002537383930757642,
-0.020299071446061134,
0.020073149353265762,
-0.017915597185492516,
0.08860652148723602,
0.0017381856450811028,
-0.02240014262497425,
-0.02184663526713848,
-0.019971484318375587,
0.010398049838840961,
0.019824635237455368,
-0.03323309123516083,
0.007404585834592581,
0.05986927077174187,
0.0778978243470192,
0.002849438227713108,
0.007641803938895464,
-0.08241625875234604,
0.0025670360773801804,
0.009579082950949669,
-0.02356364019215107,
-0.02162071317434311,
-0.013024389743804932,
-0.0007095355540513992,
0.035266388207674026,
-0.03336864709854126,
-0.009708988480269909,
-0.059236686676740646,
0.0063935862854123116,
-0.01866113767027855,
0.05643525719642639,
0.05774560570716858,
0.017723562195897102,
0.06456844508647919,
0.005721468944102526,
0.003487667301669717,
-0.00178478192538023,
-0.055350832641124725,
0.10021889954805374,
-0.015181942842900753,
-0.00022080322378315032,
0.01857076957821846,
-0.0026701129972934723,
-0.0571582093834877,
0.03580860048532486,
0.05286569520831108,
-0.08580508828163147,
-0.018706321716308594,
0.009245848283171654,
-0.00003483696127659641,
-0.010109999217092991,
0.034317515790462494,
0.05123905837535858,
0.05092276632785797,
-0.05087758228182793,
0.02127053402364254,
-0.009048166684806347,
-0.027810970321297646,
0.02683950588107109,
0.03185496851801872,
0.0074384743347764015,
0.004529731348156929,
-0.005453186575323343,
-0.009624266996979713,
-0.03113202005624771,
0.03725450113415718,
0.016469696536660194,
0.0312223881483078,
-0.03415936976671219,
-0.008827893063426018,
0.02077350579202175,
-0.03752560541033745,
0.03639599680900574,
0.006681636441498995,
-0.03336864709854126,
0.026749137789011,
0.08142220228910446,
-0.009307976812124252,
0.00317420088686049,
-0.01572415605187416,
0.016876356676220894,
0.015520825982093811,
0.0020191757939755917,
-0.07188830524682999,
0.07328902184963226,
0.01494472473859787,
-0.04053036496043205,
0.023315126076340675,
0.012866244651377201,
0.030454253777861595,
0.0073255132883787155,
0.01114359125494957,
0.04470991715788841,
0.05304643139243126,
0.0032476254273205996,
0.04848281294107437,
0.05684191733598709,
-0.024670656770467758,
-0.03217126056551933,
-0.022739026695489883,
0.02367660216987133,
-0.01240310538560152,
0.013453640975058079,
-0.018186703324317932,
-0.01448158547282219,
0.021349607035517693,
-0.011104054749011993,
0.026161741465330124,
0.009223256260156631,
0.04888946935534477,
-0.02559693716466427,
-0.046991728246212006,
-0.03702857717871666,
-0.03784189745783806,
0.06551731377840042,
0.05562194064259529,
0.009025574661791325,
-0.01122831180691719,
0.024263998493552208,
0.01790430024266243,
-0.04572656750679016,
0.034136779606342316,
-0.005405178293585777,
0.017983373254537582,
-0.06940316408872604,
0.05277532711625099,
-0.006150720175355673,
0.06881576776504517,
0.012674211524426937,
-0.023654010146856308,
0.03499528393149376,
0.0042021446861326694,
0.019745562225580215,
0.0409822091460228,
0.03332345932722092,
0.015385272912681103,
-0.020694434642791748,
0.02286328375339508,
-0.040552958846092224,
0.1126897782087326,
-0.00742717832326889,
0.017508937045931816,
-0.003239153418689966,
-0.05652562528848648,
-0.015859708189964294,
-0.036260444670915604,
-0.05173608660697937,
-0.00012002093717455864,
0.07143646478652954,
-0.009725932031869888,
0.0029143907595425844,
0.020095741376280785,
-0.025732489302754402,
-0.019417976960539818,
0.053498275578022,
0.025371015071868896,
-0.028646880760788918,
-0.027223573997616768,
-0.02376697026193142,
0.08625692874193192,
-0.03607970476150513,
-0.004204968921840191,
0.04635914787650108,
-0.017339495941996574,
0.04233773797750473,
0.02672654576599598,
-0.017271719872951508,
-0.021654602140188217,
0.038316331803798676,
-0.010268144309520721,
-0.021609418094158173,
-0.005119951907545328,
-0.0013018741738051176,
0.05643525719642639,
0.020231295377016068,
0.0032363294158130884,
-0.012798468582332134,
0.022298479452729225,
0.09154350310564041,
-0.00793550256639719,
-0.054311592131853104,
0.01779134012758732,
0.08011186122894287,
0.009601674973964691,
0.04193108156323433,
0.005936094559729099,
-0.0677313432097435,
0.01709098182618618,
0.01352141797542572,
-0.020739618688821793,
0.014470289461314678,
-0.034520845860242844,
0.04222477972507477,
-0.055667124688625336,
-0.019892411306500435,
0.02631988562643528,
0.008810948580503464,
0.05941742658615112,
0.027810970321297646,
0.001059714355506003,
0.010064815171062946,
0.008952150121331215,
-0.05467306822538376,
0.009336217306554317,
0.06872539967298508,
0.002801429945975542,
-0.058016709983348846,
-0.030341293662786484,
0.030567215755581856,
-0.002814138075336814,
0.009963150136172771,
0.0010152359027415514,
0.042292553931474686,
-0.0018709147116169333,
-0.03797744959592819,
-0.03273606300354004,
0.010047870688140392,
0.04211181774735451,
-0.04021407663822174,
0.005040879361331463,
-0.02147386409342289,
-0.019666489213705063,
-0.03531157225370407,
-0.02509990893304348,
0.04324142634868622,
-0.011928669176995754,
-0.012945317663252354,
-0.010895077139139175,
0.05182645469903946,
0.03275865688920021,
-0.026500623673200607,
0.008370401337742805,
0.010928965173661709,
0.024715840816497803,
0.01845780946314335,
-0.036870431154966354,
0.008630211465060711,
0.0551249124109745,
-0.01055054645985365,
0.00040242314571514726,
0.09642340987920761,
0.012414401397109032,
0.006896262057125568,
-0.006958390586078167,
-0.013397160917520523,
0.05395011976361275,
-0.01653747446835041,
-0.06090850755572319,
0.03160645440220833,
-0.021044611930847168,
-0.06868021935224533,
-0.031199796125292778,
0.019824635237455368,
-0.005408002529293299,
0.02237755060195923,
-0.000868386821821332,
0.009545194916427135,
0.00008463241101708263,
0.015351383946835995,
-0.0016068685799837112,
-0.017057092860341072,
0.00876576453447342,
-0.048302073031663895,
0.004840373992919922,
-0.015193238854408264,
0.028420958667993546,
0.007037463132292032,
-0.0016647609882056713,
-0.006783301010727882,
0.029324645176529884,
-0.02057017758488655,
0.029640935361385345,
-0.011324328370392323,
0.03391085937619209,
0.04477769508957863,
-0.054130855947732925,
0.019610010087490082,
0.04681099206209183,
-0.038813360035419464,
-0.032510142773389816,
-0.08901317417621613,
0.010409345850348473,
-0.011725340038537979,
0.021485161036252975,
0.02826281264424324,
0.00523008918389678,
-0.07166238874197006,
0.0028437902219593525,
-0.02284069173038006,
0.014165295287966728,
0.0021250767167657614,
-0.0162211824208498,
-0.007387641817331314,
-0.0002146256883861497,
-0.021519048139452934,
0.012606434524059296,
0.06375512480735779,
-0.042586252093315125,
0.0382937416434288,
0.031086836010217667,
-0.04206663370132446,
-0.020039260387420654,
0.008364753797650337,
0.029640935361385345,
-0.023947708308696747,
-0.057067837566137314,
-0.006692932453006506,
0.02663617581129074,
-0.06533657759428024,
-0.01964389719069004,
0.02460288070142269,
0.018175406381487846,
-0.08973612636327744,
-0.007331161294132471,
0.014447697438299656,
-0.005941742565482855,
0.01694413274526596,
-0.0066025638952851295,
-0.045455459505319595,
0.03040906973183155,
0.011200071312487125,
-0.0003759479441214353,
-0.014052334241569042,
-0.00504935160279274,
-0.04129850119352341,
-0.03865521401166916,
0.006026463117450476,
-0.011233960278332233,
-0.021259238943457603,
0.047805044800043106,
0.056751549243927,
-0.049928709864616394,
0.07396678626537323,
0.015791932120919228,
-0.039445940405130386,
0.009042519144713879,
-0.06687284260988235,
0.017452456057071686,
0.017655786126852036,
-0.004029879346489906,
0.04509398341178894,
0.015294903889298439,
0.042405515909194946,
0.024761026725172997,
0.02480621077120304,
0.0037333571817725897,
0.08490139991044998,
-0.01819799840450287,
-0.0019372791284695268,
0.0032815136946737766,
0.0011041926918551326,
-0.00020809512352570891,
-0.017870411276817322,
0.016842467710375786,
0.018728915601968765,
-0.006636451929807663,
0.009296680800616741,
-0.05318198353052139,
0.005518139339983463,
0.005515315104275942,
0.0782141163945198,
-0.011917373165488243,
-0.0563448891043663,
0.020705729722976685,
0.03702857717871666,
-0.05946261063218117,
0.02164330519735813,
-0.018502993509173393,
0.008133184164762497,
-0.04857318103313446,
0.048302073031663895,
-0.011499417945742607,
-0.0037898377049714327,
-0.03553749620914459,
0.061676643788814545,
0.023834746330976486,
-0.020988132804632187,
0.013046981766819954,
-0.02765282429754734,
-0.004453483037650585,
0.002939807018265128,
0.029505383223295212,
-0.0547182522714138,
-0.05833300203084946,
-0.01871761865913868,
0.0016492289723828435,
-0.0074384743347764015,
-0.02561952918767929,
0.025371015071868896,
0.021654602140188217,
-0.01056184247136116,
-0.030363885685801506,
-0.006009519100189209,
0.031244980171322823,
-0.03266828879714012,
0.025574345141649246,
0.044122520834207535,
-0.04538768529891968,
-0.06877058744430542,
0.007353753782808781,
-0.006788949016481638,
-0.03628303483128548,
0.010573138482868671,
-0.008415586315095425,
0.023021427914500237,
-0.03513083606958389,
-0.07062314450740814,
-0.0754578709602356,
-0.021394791081547737,
0.018909651786088943,
-0.045342497527599335,
-0.021022019907832146,
0.00035159074468538165,
0.008771413005888462,
-0.03221644461154938,
-0.009545194916427135,
0.05467306822538376,
0.08648285269737244,
-0.10500843822956085,
-0.03467899188399315,
-0.018446512520313263,
-0.08860652148723602,
0.04129850119352341,
0.02602618746459484,
0.007404585834592581,
-0.027698008343577385,
-0.008556786924600601,
-0.03099646605551243,
-0.00620155269280076,
0.024648064747452736,
-0.01819799840450287,
0.012143295258283615,
0.03761597350239754,
0.04394178465008736,
0.03018314763903618,
-0.0032843376975506544,
-0.03725450113415718,
-0.00026722310576587915,
-0.01659395359456539,
-0.010522305965423584,
0.06316772848367691,
0.006670340429991484,
0.05047092214226723,
0.0016958252526819706,
-0.023495864123106003,
-0.00882224552333355,
-0.012278848327696323,
-0.006500898860394955,
0.023450680077075958,
-0.012290144339203835,
-0.011781820096075535,
-0.031561270356178284,
0.05304643139243126,
-0.01714746281504631,
-0.09271829575300217,
0.002537383930757642,
-0.010087407194077969,
0.08291328698396683,
0.033820487558841705,
-0.04206663370132446,
0.023947708308696747,
-0.008178368210792542,
0.008601970970630646,
-0.021338311955332756,
-0.008347809314727783,
0.026907281950116158,
0.05937224254012108,
-0.002305814065039158,
-0.020683137699961662,
-0.02582285739481449,
-0.051464978605508804,
-0.086347296833992,
0.011623675003647804,
-0.07270162552595139,
0.0279691144824028,
-0.009392697364091873,
0.05313679948449135,
0.03680265694856644,
0.013736044056713581,
0.019542232155799866
] |
725,002 | tf_keras.src.engine.training | compile_from_config | Compiles the model with the information given in config.
This method uses the information in the config (optimizer, loss,
metrics, etc.) to compile the model.
Args:
config: Dict containing information for compiling the model.
| def compile_from_config(self, config):
"""Compiles the model with the information given in config.
This method uses the information in the config (optimizer, loss,
metrics, etc.) to compile the model.
Args:
config: Dict containing information for compiling the model.
"""
has_overridden_compile = self.__class__.compile != Model.compile
if has_overridden_compile:
logging.warning(
"`compile()` was not called as part of model loading "
"because the model's `compile()` method is custom. "
"All subclassed Models that have `compile()` "
"overridden should also override "
"`get_compile_config()` and `compile_from_config(config)`. "
"Alternatively, you can "
"call `compile()` manually after loading."
)
return
config = saving_lib.deserialize_keras_object(config)
self.compile(**config)
if (
hasattr(self, "optimizer")
# Exempt legacy optimizers.
and isinstance(self.optimizer, optimizer.Optimizer)
and self.built
):
# Create optimizer variables.
self.optimizer.build(self.trainable_variables)
| (self, config) | [
0.028345225378870964,
-0.03669678419828415,
-0.054544441401958466,
-0.009612339548766613,
-0.010059425607323647,
-0.009817998856306076,
-0.060624804347753525,
-0.005190663505345583,
0.02033345215022564,
-0.0600525327026844,
-0.01920679584145546,
0.007327732630074024,
0.011409623548388481,
0.05397216975688934,
0.006634749937802553,
-0.01748998835682869,
0.02714703604578972,
-0.015236676670610905,
-0.004028241150081158,
-0.05114658921957016,
0.025018908083438873,
-0.03528399392962456,
-0.04520929232239723,
0.04385015368461609,
0.03624969720840454,
0.06627596169710159,
0.0043233176693320274,
0.003531975904479623,
0.026324398815631866,
-0.03185037523508072,
-0.009120545350015163,
0.06119707226753235,
0.01236638706177473,
0.029579181224107742,
-0.0022041318006813526,
0.019671764224767685,
0.04020193591713905,
0.05894376337528229,
-0.1128801628947258,
-0.04202604293823242,
0.013439392670989037,
-0.0014351446880027652,
0.06130437180399895,
0.005400793626904488,
0.017078669741749763,
-0.04567426070570946,
-0.07682718336582184,
0.041668374091386795,
-0.03512304276227951,
-0.03512304276227951,
-0.032011326402425766,
0.012142844498157501,
0.0013300796272233129,
0.02557329460978508,
-0.004325552843511105,
-0.054794806987047195,
-0.028524059802293777,
0.021299157291650772,
0.08948864787817001,
-0.025948846712708473,
-0.011221847496926785,
-0.008373912423849106,
-0.005977534223347902,
0.02283713035285473,
-0.004680986050516367,
-0.021978726610541344,
-0.04170414060354233,
-0.036517947912216187,
-0.0006935414858162403,
0.028059089556336403,
-0.033245284110307693,
-0.0565473847091198,
0.04109610617160797,
0.0033173749689012766,
0.003713045734912157,
-0.08612656593322754,
-0.04760567098855972,
-0.0715336948633194,
0.029310930520296097,
0.042347945272922516,
0.005829995963722467,
-0.04256254807114601,
-0.00994318351149559,
-0.07861552387475967,
-0.035194575786590576,
-0.05078892037272453,
-0.01734692044556141,
-0.042598314583301544,
-0.007631750777363777,
0.00625919783487916,
0.02317691594362259,
0.022747714072465897,
0.009755407460033894,
0.023534584790468216,
-0.004390380345284939,
0.013662935234606266,
0.027898140251636505,
-0.011034071445465088,
0.02689666859805584,
-0.030902555212378502,
0.011767292395234108,
0.00954974815249443,
-0.03306644782423973,
-0.06395111978054047,
-0.0197969488799572,
-0.03859242796897888,
-0.05629701539874077,
0.011642108671367168,
-0.021299157291650772,
0.025591177865862846,
0.0007879883050918579,
-0.001063504838384688,
-0.006013300735503435,
-0.05179039388895035,
0.014807473868131638,
-0.02822004072368145,
-0.048177942633628845,
-0.046711500734090805,
-0.056654684245586395,
0.013680818490684032,
-0.05050278455018997,
0.03787709027528763,
-0.0013624932616949081,
0.008584043011069298,
0.022801363840699196,
0.03515880927443504,
0.028380991891026497,
-0.02298019826412201,
0.05715541914105415,
-0.07675565034151077,
0.001388200675137341,
-0.009424563497304916,
0.014127903617918491,
0.022229094058275223,
-0.0061697810888290405,
-0.04120340570807457,
-0.04295598343014717,
0.020655352622270584,
-0.026270749047398567,
0.05225536227226257,
0.09378066658973694,
0.06684823334217072,
0.07682718336582184,
-0.016971368342638016,
0.02684301696717739,
-0.01334997545927763,
-0.007323261816054583,
-0.050002049654722214,
-0.010765820741653442,
0.007528921123594046,
0.007305378094315529,
-0.0004836907028220594,
0.010703228414058685,
0.026145564392209053,
-0.036035098135471344,
0.012768764048814774,
0.0019828244112432003,
-0.03816322609782219,
0.0045513310469686985,
-0.009460330940783024,
0.004137776792049408,
0.027898140251636505,
0.005373968742787838,
-0.04438665509223938,
0.005373968742787838,
-0.04345671832561493,
-0.01861664280295372,
-0.008338145911693573,
-0.00945138931274414,
-0.018205324187874794,
0.0005222518229857087,
-0.025930963456630707,
0.04120340570807457,
0.05211229249835014,
0.002014120575040579,
0.017078669741749763,
0.014548164792358875,
0.029811665415763855,
0.006151897367089987,
-0.00481511140242219,
0.019224679097533226,
0.028917495161294937,
-0.04191874340176582,
0.0243393387645483,
-0.014378271996974945,
0.0748242437839508,
-0.02053016982972622,
0.037304818630218506,
0.02151375822722912,
-0.0196896493434906,
0.04968014732003212,
0.009540806524455547,
-0.011078780516982079,
-0.016434865072369576,
-0.05182616040110588,
-0.02498314157128334,
-0.01949293166399002,
0.03709021955728531,
-0.008713698014616966,
0.10479685664176941,
0.02963283099234104,
-0.00019727650214917958,
0.01940351352095604,
-0.001510031521320343,
-0.0031608950812369585,
-0.0000466645578853786,
0.014315679669380188,
-0.0023002552334219217,
-0.025537528097629547,
-0.03208285942673683,
0.022354278713464737,
-0.008485684171319008,
0.05762038752436638,
0.05576051399111748,
0.04556696116924286,
0.02870289422571659,
0.001309960731305182,
0.047891806811094284,
-0.011606341227889061,
-0.0188670102506876,
0.055581677705049515,
0.08169147372245789,
0.004001415800303221,
-0.004005886614322662,
0.03376390412449837,
-0.07961700111627579,
0.005821054335683584,
-0.005807641427963972,
0.004504387266933918,
-0.040631137788295746,
-0.014342505484819412,
-0.07697024941444397,
-0.014020603150129318,
0.005919413175433874,
0.031528472900390625,
0.005123600829392672,
0.0207805372774601,
-0.0022153090685606003,
-0.02669995091855526,
-0.02391013689339161,
0.013439392670989037,
-0.0036996330600231886,
-0.05715541914105415,
-0.044064752757549286,
-0.0004364672931842506,
0.005195134319365025,
-0.0037465770728886127,
0.05264879763126373,
-0.06316424906253815,
-0.03177884221076965,
0.03213651105761528,
0.021764125674962997,
-0.00007251169154187664,
0.05661891773343086,
-0.05236266180872917,
-0.002512620994821191,
-0.005606452934443951,
-0.0901324525475502,
0.035444945096969604,
0.02430357225239277,
-0.04932247847318649,
-0.04410051926970482,
-0.019171029329299927,
0.0620197094976902,
0.045245058834552765,
-0.08233527839183807,
-0.04456549137830734,
0.04846407473087311,
0.006670516915619373,
-0.011034071445465088,
0.07167676091194153,
0.03973696380853653,
-0.02267618104815483,
0.04628229886293411,
-0.0005929472390562296,
0.0038829382974654436,
-0.035248227417469025,
0.019081613048911095,
0.032905496656894684,
0.019027961418032646,
0.06123283877968788,
-0.05815689265727997,
-0.008700285106897354,
-0.03047335334122181,
0.0021124794147908688,
-0.0733935683965683,
-0.034371938556432724,
-0.00987164955586195,
-0.00040936272125691175,
0.0356595441699028,
0.05661891773343086,
0.00485087838023901,
0.061268605291843414,
-0.011051955632865429,
0.04756990447640419,
-0.09099085628986359,
0.02053016982972622,
0.025054674595594406,
-0.003060300834476948,
-0.007278553210198879,
-0.014485572464764118,
0.0020152381621301174,
0.03614239767193794,
-0.010864179581403732,
0.014673348516225815,
-0.01557646133005619,
0.018437808379530907,
-0.03734058514237404,
-0.011579516343772411,
0.025197742506861687,
0.024267805740237236,
0.007439503911882639,
0.07654105126857758,
0.030294518917798996,
0.03474748879671097,
-0.0412391722202301,
0.042204879224300385,
-0.026771483942866325,
0.04188297688961029,
0.004895586986094713,
-0.011078780516982079,
0.05243419483304024,
0.013430450111627579,
-0.014932658523321152,
0.010765820741653442,
-0.05025241896510124,
0.04442242160439491,
0.014083195477724075,
-0.002365082735195756,
-0.0007237197714857757,
-0.006880647037178278,
0.039164695888757706,
0.031421173363924026,
0.04163260757923126,
-0.000042892272176686674,
-0.059945233166217804,
-0.004517799708992243,
0.015710586681962013,
0.00020454164769034833,
-0.03923622891306877,
0.07117602229118347,
0.03335258364677429,
0.0047569903545081615,
0.03433617204427719,
0.014807473868131638,
0.025161975994706154,
-0.0310098547488451,
0.038485124707221985,
-0.001750339986756444,
-0.011588457971811295,
-0.054794806987047195,
0.001846463419497013,
-0.00825767032802105,
0.05976640060544014,
-0.011972951702773571,
0.005959650501608849,
0.007618338335305452,
-0.011552691459655762,
-0.0008354911697097123,
-0.054115235805511475,
0.022944431751966476,
0.04982321709394455,
-0.029418230056762695,
0.017919190227985382,
0.08855871111154556,
0.03780555725097656,
-0.06888694316148758,
-0.014530281536281109,
0.061805110424757004,
-0.018849126994609833,
-0.03217227756977081,
-0.0019023490604013205,
0.03562377765774727,
-0.001211601891554892,
0.0010825059143826365,
0.00963022280484438,
-0.014029544778168201,
0.0348905585706234,
-0.0024679123889654875,
0.051754627376794815,
0.03658948466181755,
0.0024008494801819324,
0.05815689265727997,
-0.016595816239714622,
0.06473799049854279,
-0.04531659185886383,
-0.009791173972189426,
-0.022604646161198616,
-0.00029479703516699374,
-0.02979378215968609,
-0.021621057763695717,
-0.031188689172267914,
-0.039951566606760025,
0.04542389512062073,
-0.021817775443196297,
0.011946126818656921,
0.004770403262227774,
0.089917853474617,
-0.058478791266679764,
0.00003321706026326865,
-0.04492315649986267,
-0.03312009945511818,
0.04184721037745476,
0.06098247319459915,
-0.014360388740897179,
-0.007497624959796667,
0.04925094544887543,
0.07310743629932404,
-0.04807063937187195,
0.06216277927160263,
-0.025090442970395088,
0.02762988768517971,
-0.05883646011352539,
0.02492949180305004,
-0.0698884129524231,
0.0506458543241024,
0.057691920548677444,
-0.047104936093091965,
0.031385406851768494,
-0.0005376203916966915,
0.046711500734090805,
0.028863845393061638,
0.042598314583301544,
-0.02546599507331848,
0.024321455508470535,
0.055975113064050674,
0.024142621085047722,
0.06942344456911087,
-0.051218122243881226,
-0.03614239767193794,
-0.05243419483304024,
0.020154617726802826,
0.0016408039955422282,
-0.024178387597203255,
0.024518173187971115,
-0.028541943058371544,
0.0679212436079979,
-0.00492241233587265,
-0.018795477226376534,
0.022962315008044243,
-0.024804307147860527,
-0.019725415855646133,
0.010801587253808975,
0.010211434215307236,
-0.052934933453798294,
-0.01222331915050745,
-0.03923622891306877,
0.023337867110967636,
-0.06266351044178009,
-0.01009519211947918,
0.03464018926024437,
0.0602671355009079,
-0.00450885808095336,
0.0002720236370805651,
0.043528251349925995,
-0.036768317222595215,
0.03140329197049141,
0.012795588932931423,
0.007998361252248287,
0.034908439964056015,
-0.04917941242456436,
0.024768540635704994,
0.03687561675906181,
-0.03376390412449837,
-0.016971368342638016,
0.033102214336395264,
0.03787709027528763,
0.03819899260997772,
-0.011499040760099888,
-0.013895419426262379,
0.03748365491628647,
-0.022157561033964157,
0.004694398492574692,
0.04545966163277626,
-0.06663363426923752,
0.011427506804466248,
0.003724222769960761,
-0.002941823098808527,
-0.0014250852400436997,
-0.01606825552880764,
0.06159050762653351,
-0.03694714978337288,
-0.025054674595594406,
0.043921686708927155,
0.025895196944475174,
0.0012786646839231253,
0.06241314485669136,
-0.0009081425960175693,
-0.028202157467603683,
-0.005253255367279053,
-0.054115235805511475,
0.0679212436079979,
0.07418043911457062,
-0.00431214040145278,
-0.07604031264781952,
0.020208267495036125,
-0.022944431751966476,
-0.004703340120613575,
0.017284328117966652,
0.010077308863401413,
0.054937876760959625,
-0.030312402173876762,
-0.07911626249551773,
-0.015057842247188091,
0.008677930571138859,
0.05568897724151611,
-0.011436449363827705,
0.04731953516602516,
-0.02625286392867565,
0.010765820741653442,
-0.06262774765491486,
-0.005114658735692501,
-0.0244466383010149,
0.004864290822297335,
0.008360500447452068,
-0.026789367198944092,
0.013197965919971466,
0.0037354000378400087,
-0.07704178243875504,
0.012482629157602787,
0.0009165254305116832,
0.022372161969542503,
0.028130624443292618,
-0.04968014732003212,
-0.011749409139156342,
0.08863024413585663,
0.04370708391070366,
0.003292785258963704,
0.06963805109262466,
0.031760960817337036,
-0.0006449209176935256,
-0.009961066767573357,
-0.030741604045033455,
0.05404370278120041,
0.032208044081926346,
-0.026038262993097305,
-0.016694175079464912,
-0.019957900047302246,
-0.054794806987047195,
-0.007412678562104702,
0.009782232344150543,
-0.04442242160439491,
0.10615599900484085,
0.04277714714407921,
-0.02925727888941765,
0.009594456292688847,
0.004294257145375013,
0.03723328560590744,
-0.0693519115447998,
-0.027701422572135925,
-0.02768353931605816,
0.01367187686264515,
-0.05111082270741463,
-0.0010277379769831896,
0.04968014732003212,
-0.026324398815631866,
0.04388592019677162,
-0.03224381059408188,
0.015388685278594494,
0.06649056822061539,
-0.032404761761426926,
0.024857956916093826,
0.03694714978337288,
-0.03596356511116028,
-0.010578044690191746,
0.061161305755376816,
-0.03580261394381523,
-0.032064978033304214,
-0.07146215438842773,
-0.045245058834552765,
0.04653266444802284,
-0.025948846712708473,
-0.06091093644499779,
-0.02478642389178276,
-0.04256254807114601,
0.0452808253467083,
-0.03362083435058594,
0.03188614174723625,
-0.0300262663513422,
-0.0033799668308347464,
-0.008065423928201199,
0.0014440864324569702,
0.006563215982168913,
0.051754627376794815,
-0.012017659842967987,
-0.09828729182481766,
-0.006844880059361458,
0.004846407566219568,
0.038234759122133255,
-0.015934130176901817,
0.01344833429902792,
0.047248002141714096,
-0.024679124355316162,
-0.022425811737775803,
-0.004721223842352629,
-0.0034559713676571846,
-0.07790019363164902,
-0.0033397292718291283,
-0.044458188116550446,
-0.016694175079464912,
-0.09928876161575317,
-0.027290103957057,
0.04106033965945244,
0.01637227274477482,
-0.03503362461924553,
-0.015147259458899498,
-0.019922133535146713,
0.017230678349733353,
0.009567631408572197,
0.01308172382414341,
-0.030777370557188988,
0.023337867110967636,
-0.0486786775290966,
-0.011713641695678234,
0.030848903581500053,
-0.04120340570807457,
-0.022908665239810944,
0.05475904047489166,
0.052398428320884705,
-0.05926566198468208,
0.06144744157791138,
0.05078892037272453,
-0.0094335051253438,
0.01960023120045662,
-0.07028184831142426,
0.05207652598619461,
0.013734469190239906,
-0.054651740938425064,
0.018688177689909935,
0.026932435110211372,
0.03149270638823509,
0.015943070873618126,
0.02920362912118435,
-0.009961066767573357,
-0.01965388096868992,
-0.04492315649986267,
0.007783759851008654,
0.02571636252105236,
0.007439503911882639,
-0.03408580273389816,
0.036035098135471344,
-0.03599933162331581,
-0.011186080984771252,
-0.02621709741652012,
-0.030831020325422287,
-0.020065199583768845,
0.010327676311135292,
-0.030187217518687248,
0.06903000921010971,
-0.01263463869690895,
-0.020065199583768845,
-0.01315325777977705,
0.02517985925078392,
0.007233844604343176,
0.07403737306594849,
-0.004891116172075272,
-0.006469328422099352,
-0.0037823438178747892,
0.06509565562009811,
-0.04853561148047447,
-0.008038598112761974,
-0.04613923281431198,
0.02791602350771427,
-0.00401706388220191,
0.0011948362225666642,
0.021925076842308044,
-0.04810640588402748,
-0.01949293166399002,
-0.013734469190239906,
-0.001428438350558281,
-0.016819359734654427,
-0.048285242170095444,
-0.022032376378774643,
-0.00928149651736021,
-0.013224790804088116,
-0.01236638706177473,
-0.005517035722732544,
-0.062484677881002426,
0.030062034726142883,
-0.04807063937187195,
-0.01960023120045662,
0.020977254956960678,
0.023784952238202095,
0.03621393069624901,
0.01929621398448944,
-0.012598871253430843,
-0.013260558247566223,
-0.012545221485197544,
0.018777593970298767,
-0.008861236274242401,
-0.03934352844953537,
0.06656210124492645,
0.005816583056002855,
-0.059301428496837616,
-0.026932435110211372,
-0.0320470929145813,
-0.046031929552555084,
-0.04002309963107109,
-0.05365026742219925,
0.00786423496901989,
0.034908439964056015,
-0.030974088236689568,
-0.029328813776373863,
-0.016989251598715782,
-0.0021281272638589144,
0.019045844674110413,
-0.02503679133951664,
-0.016640525311231613,
-0.0655248612165451,
-0.07167676091194153,
0.028541943058371544,
0.04953708127140999,
0.022229094058275223,
-0.012276969850063324,
0.0063128480687737465,
0.027307987213134766,
0.02239004522562027,
-0.00820402055978775,
-0.020172500982880592,
-0.009665990248322487,
0.01798178255558014,
0.012607812881469727,
-0.011668933555483818,
-0.008736051619052887,
0.0000629063360975124,
-0.02748682163655758,
-0.007926827296614647,
-0.039665430784225464,
0.0748242437839508,
0.0027987556532025337,
0.04735530540347099,
0.002501443726941943,
-0.028577709570527077,
0.005226430483162403,
-0.031814608722925186,
0.005530448630452156,
0.0046005104668438435,
-0.020834187045693398,
-0.01768670603632927,
0.016622642055153847,
-0.02410685457289219,
0.01374341081827879,
-0.0619124099612236,
-0.0038382296916097403,
-0.033728133887052536,
0.028595592826604843,
0.03236899524927139,
0.011883534491062164,
0.05100352317094803,
0.024947375059127808,
0.01258992962539196,
0.03521246090531349,
0.026717834174633026,
-0.004037182778120041,
0.0675993412733078,
-0.02081630378961563,
-0.030902555212378502,
-0.028667127713561058,
-0.018491460010409355,
-0.05393640324473381,
0.006178722716867924,
-0.06602559983730316,
0.002552858553826809,
-0.006040126085281372,
0.07028184831142426,
-0.011570574715733528,
0.02396378666162491,
0.00999683327972889
] |
725,003 | tf_keras.src.engine.training | compute_loss | Compute the total loss, validate it, and return it.
Subclasses can optionally override this method to provide custom loss
computation logic.
Example:
```python
class MyModel(tf.keras.Model):
def __init__(self, *args, **kwargs):
super(MyModel, self).__init__(*args, **kwargs)
self.loss_tracker = tf.keras.metrics.Mean(name='loss')
def compute_loss(self, x, y, y_pred, sample_weight):
loss = tf.reduce_mean(tf.math.squared_difference(y_pred, y))
loss += tf.add_n(self.losses)
self.loss_tracker.update_state(loss)
return loss
def reset_metrics(self):
self.loss_tracker.reset_states()
@property
def metrics(self):
return [self.loss_tracker]
tensors = tf.random.uniform((10, 10)), tf.random.uniform((10,))
dataset = tf.data.Dataset.from_tensor_slices(tensors).repeat().batch(1)
inputs = tf.keras.layers.Input(shape=(10,), name='my_input')
outputs = tf.keras.layers.Dense(10)(inputs)
model = MyModel(inputs, outputs)
model.add_loss(tf.reduce_sum(outputs))
optimizer = tf.keras.optimizers.SGD()
model.compile(optimizer, loss='mse', steps_per_execution=10)
model.fit(dataset, epochs=2, steps_per_epoch=10)
print('My custom loss: ', model.loss_tracker.result().numpy())
```
Args:
x: Input data.
y: Target data.
y_pred: Predictions returned by the model (output of `model(x)`)
sample_weight: Sample weights for weighting the loss function.
Returns:
The total loss as a `tf.Tensor`, or `None` if no loss results (which
is the case when called by `Model.test_step`).
| def compute_loss(self, x=None, y=None, y_pred=None, sample_weight=None):
"""Compute the total loss, validate it, and return it.
Subclasses can optionally override this method to provide custom loss
computation logic.
Example:
```python
class MyModel(tf.keras.Model):
def __init__(self, *args, **kwargs):
super(MyModel, self).__init__(*args, **kwargs)
self.loss_tracker = tf.keras.metrics.Mean(name='loss')
def compute_loss(self, x, y, y_pred, sample_weight):
loss = tf.reduce_mean(tf.math.squared_difference(y_pred, y))
loss += tf.add_n(self.losses)
self.loss_tracker.update_state(loss)
return loss
def reset_metrics(self):
self.loss_tracker.reset_states()
@property
def metrics(self):
return [self.loss_tracker]
tensors = tf.random.uniform((10, 10)), tf.random.uniform((10,))
dataset = tf.data.Dataset.from_tensor_slices(tensors).repeat().batch(1)
inputs = tf.keras.layers.Input(shape=(10,), name='my_input')
outputs = tf.keras.layers.Dense(10)(inputs)
model = MyModel(inputs, outputs)
model.add_loss(tf.reduce_sum(outputs))
optimizer = tf.keras.optimizers.SGD()
model.compile(optimizer, loss='mse', steps_per_execution=10)
model.fit(dataset, epochs=2, steps_per_epoch=10)
print('My custom loss: ', model.loss_tracker.result().numpy())
```
Args:
x: Input data.
y: Target data.
y_pred: Predictions returned by the model (output of `model(x)`)
sample_weight: Sample weights for weighting the loss function.
Returns:
The total loss as a `tf.Tensor`, or `None` if no loss results (which
is the case when called by `Model.test_step`).
"""
del x # The default implementation does not use `x`.
return self.compiled_loss(
y, y_pred, sample_weight, regularization_losses=self.losses
)
| (self, x=None, y=None, y_pred=None, sample_weight=None) | [
-0.030189121142029762,
-0.06310474872589111,
0.01095541100949049,
0.0774485319852829,
0.045402225106954575,
-0.04812873154878616,
-0.05547843873500824,
0.012753323651850224,
0.07306241989135742,
0.0029339559841901064,
0.0017855641199275851,
-0.02538810297846794,
0.05144795402884483,
-0.0030969535000622272,
0.011439464055001736,
0.07254872471094131,
0.008549962192773819,
-0.0073447683826088905,
0.002558567561209202,
-0.022523296996951103,
0.00962179433554411,
-0.02198985032737255,
0.020409269258379936,
-0.0037514131981879473,
-0.044453877955675125,
0.04484902322292328,
0.03159188851714134,
-0.03491111099720001,
-0.0031167108099907637,
-0.0197671577334404,
-0.022009609267115593,
-0.025921549648046494,
-0.0012731096940115094,
0.039198439568281174,
-0.008989562280476093,
-0.015400798991322517,
-0.00268452032469213,
0.05192212760448456,
-0.09594134241342545,
-0.055438924580812454,
-0.03979115933179855,
-0.01866075024008751,
0.06954561918973923,
0.02795654907822609,
0.009769974276423454,
0.0009625499369576573,
-0.007241042796522379,
0.007710278034210205,
-0.011824731715023518,
-0.09033028036355972,
-0.016764050349593163,
0.029181500896811485,
-0.006139574572443962,
0.016625750809907913,
0.05852105841040611,
-0.008125181309878826,
0.04050242155790329,
-0.015588493086397648,
0.01203218288719654,
0.01688259467482567,
0.028272666037082672,
-0.024360723793506622,
-0.03562237322330475,
-0.015262497588992119,
0.007799185812473297,
-0.06093144789338112,
-0.027798490598797798,
-0.030268151313066483,
-0.003222906030714512,
0.0504600889980793,
-0.000140539079438895,
-0.05069717764854431,
0.06760940700769424,
-0.011933396570384502,
0.02789727784693241,
-0.0393960140645504,
0.048721447587013245,
-0.06219591200351715,
0.08456115424633026,
-0.025921549648046494,
-0.0067273532040417194,
-0.015904609113931656,
0.02617839351296425,
-0.022147908806800842,
0.04891902208328247,
-0.06697717308998108,
0.015005652792751789,
-0.031769704073667526,
-0.03062378242611885,
0.003820563666522503,
-0.012486600317060947,
0.05555746704339981,
0.008683323860168457,
0.004433039575815201,
0.022246696054935455,
-0.05405591428279877,
-0.06302572041749954,
-0.0033636766020208597,
0.027166258543729782,
0.026395725086331367,
-0.009705763310194016,
0.07250921428203583,
0.0381908193230629,
0.046153001487255096,
0.05164552479982376,
-0.029181500896811485,
-0.0017040652455762029,
-0.01579594425857067,
-0.03502965345978737,
0.05247533321380615,
-0.00889077503234148,
-0.035088926553726196,
-0.031394317746162415,
0.004830654710531235,
-0.01872990094125271,
0.008233846165239811,
-0.03285635635256767,
-0.016635628417134285,
-0.07369464635848999,
0.024874413385987282,
-0.029458101838827133,
0.06346037983894348,
-0.019381890073418617,
-0.032145094126462936,
0.012417449615895748,
-0.031690675765275955,
0.03418009355664253,
-0.008535144850611687,
0.011192498728632927,
0.010935653932392597,
-0.01600339636206627,
0.017593856900930405,
0.03613606467843056,
0.026237666606903076,
0.01984618604183197,
0.013178104534745216,
0.08009600639343262,
0.05480669066309929,
0.06527804583311081,
-0.0018275482580065727,
0.07167940586805344,
0.020626598969101906,
0.047259408980607986,
-0.012377935461699963,
0.032559994608163834,
-0.01118262019008398,
-0.004830654710531235,
0.036037277430295944,
0.007626309525221586,
-0.008767292834818363,
-0.007621370255947113,
-0.017169075086712837,
0.02989276312291622,
0.0005164676113054156,
-0.004321904852986336,
0.020310482010245323,
-0.0001039572453009896,
-0.031117714941501617,
0.009280981495976448,
-0.04682474955916405,
0.003516795579344034,
-0.02841096743941307,
0.055438924580812454,
-0.03961334377527237,
0.003405660856515169,
0.05026251822710037,
0.01276320219039917,
0.026138879358768463,
-0.016141695901751518,
0.0000887533969944343,
-0.010194756090641022,
-0.05132941156625748,
0.04000848904252052,
0.03173018991947174,
-0.002847517840564251,
0.044216789305210114,
0.021574947983026505,
-0.008624052628874779,
-0.03408130630850792,
0.009997183457016945,
0.0755518302321434,
-0.028450481593608856,
-0.051171351224184036,
-0.012121090665459633,
-0.022701112553477287,
-0.010747959837317467,
-0.03534577041864395,
-0.000960697652772069,
-0.041134655475616455,
0.05038106068968773,
-0.021416889503598213,
-0.007680641952902079,
0.014896987937390804,
0.004586158320307732,
0.012861988507211208,
-0.03099917061626911,
0.015845337882637978,
0.03631387650966644,
0.07756707817316055,
0.022661598399281502,
-0.022997472435235977,
-0.0016460282495245337,
0.03680780902504921,
0.057888828217983246,
-0.0342591218650341,
0.009587219916284084,
-0.008945108391344547,
0.048879507929086685,
-0.10913921147584915,
-0.058244459331035614,
-0.03119674324989319,
0.018028516322374344,
-0.0034427058417350054,
0.09183183312416077,
0.044019218534231186,
-0.009167376905679703,
0.030742324888706207,
0.049748826771974564,
-0.016279997304081917,
0.030129849910736084,
0.014689536765217781,
-0.012338420376181602,
-0.013316405937075615,
0.013178104534745216,
0.08242736756801605,
-0.041806403547525406,
0.024143394082784653,
-0.008446237072348595,
0.03761785849928856,
-0.019579462707042694,
-0.01941152662038803,
-0.026099365204572678,
0.006707596126943827,
0.005818518809974194,
-0.008051090873777866,
0.006021030712872744,
-0.017465434968471527,
-0.014304270036518574,
0.03597800433635712,
-0.009567461907863617,
-0.04204348847270012,
-0.025783248245716095,
0.007438615430146456,
0.00558637036010623,
-0.002151073655113578,
0.0035810067784041166,
0.03275756910443306,
0.09048833698034286,
-0.001407706062309444,
0.01118262019008398,
-0.018028516322374344,
0.022305967286229134,
0.016803566366434097,
0.04978834092617035,
-0.01616145484149456,
0.022483782842755318,
0.005556734744459391,
-0.06322329491376877,
0.028055336326360703,
0.010012000799179077,
-0.013553493656218052,
0.027462616562843323,
-0.014136333018541336,
0.03265878185629845,
-0.03564213216304779,
-0.07302290201187134,
0.025249801576137543,
0.02922101505100727,
0.040166549384593964,
0.054846204817295074,
0.05437203124165535,
0.04824727401137352,
-0.02657354064285755,
-0.052119702100753784,
-0.02406436577439308,
-0.02368897758424282,
0.032421693205833435,
0.04824727401137352,
0.02096247300505638,
0.000850180396810174,
0.015134075656533241,
-0.012338420376181602,
-0.031453587114810944,
-0.006154392380267382,
-0.03661023825407028,
0.006421115715056658,
0.006070423871278763,
-0.11079882085323334,
-0.004731868393719196,
-0.024301452562212944,
0.03499013930559158,
-0.031097956001758575,
0.03694611042737961,
0.028351694345474243,
0.04176688566803932,
-0.03823033347725868,
-0.03499013930559158,
-0.029379073530435562,
0.015094560571014881,
0.031256016343832016,
-0.04271523654460907,
0.0658312514424324,
0.02744285948574543,
-0.04662717878818512,
-0.03659047931432724,
-0.044019218534231186,
0.060457274317741394,
-0.025328831747174263,
0.0019065773813053966,
-0.004084817599505186,
0.030208880081772804,
0.03499013930559158,
0.008910533040761948,
0.0014027667930349708,
0.02183179371058941,
-0.04012703150510788,
-0.008569719269871712,
-0.020527811720967293,
0.017445677891373634,
0.03661023825407028,
-0.005823458079248667,
0.017090046778321266,
0.032797083258628845,
0.03708441182971001,
-0.03518771380186081,
-0.05871863290667534,
0.017722278833389282,
0.0008859904482960701,
-0.017178954556584358,
-0.033310770988464355,
0.0010613363701850176,
-0.08234833925962448,
0.027719462290406227,
-0.0036773234605789185,
-0.033449072390794754,
-0.06069435924291611,
0.022543055936694145,
0.03038669563829899,
0.025783248245716095,
0.04690378159284592,
-0.014491964131593704,
0.015302012674510479,
-0.015904609113931656,
0.03558285906910896,
0.0024153273552656174,
-0.03267854079604149,
0.02285917103290558,
0.010985046625137329,
-0.008643809705972672,
0.010491115041077137,
0.002558567561209202,
0.019233711063861847,
-0.06227494403719902,
0.004391055088490248,
0.01051087211817503,
0.014985895715653896,
-0.026099365204572678,
-0.006223542615771294,
0.0050430456176400185,
-0.04034436494112015,
-0.026454996317625046,
-0.007295375224202871,
0.0048257154412567616,
0.03497038409113884,
0.016783807426691055,
0.022325724363327026,
0.002422736259177327,
0.008954986929893494,
-0.06330232322216034,
-0.06191931292414665,
-0.0501834861934185,
-0.043782129883766174,
0.008401783183217049,
0.06741183251142502,
-0.006717474665492773,
0.028648054227232933,
0.021812036633491516,
-0.02773921936750412,
0.034357909113168716,
0.030860869213938713,
0.0410161092877388,
0.015321769751608372,
-0.034713540226221085,
-0.019283104687929153,
0.033686161041259766,
0.0066779600456357,
-0.037894461303949356,
-0.06227494403719902,
-0.03834887966513634,
-0.05247533321380615,
-0.0007322541205212474,
-0.022167665883898735,
-0.014580871909856796,
-0.012555751018226147,
-0.07416882365942001,
-0.03593849018216133,
0.022780142724514008,
0.037894461303949356,
-0.04579737037420273,
-0.03092014044523239,
-0.003573597874492407,
-0.008021455258131027,
0.04907707870006561,
0.004613324534147978,
-0.048642419278621674,
-0.034930869936943054,
-0.019283104687929153,
0.05290999263525009,
-0.029774218797683716,
0.05836300179362297,
-0.0442563034594059,
0.006188967730849981,
-0.021436646580696106,
0.02434096671640873,
-0.008322753943502903,
0.004808427765965462,
0.03364664688706398,
-0.02147616259753704,
0.010688687674701214,
0.028154121711850166,
-0.014640143141150475,
0.008920411579310894,
0.05243581905961037,
0.032125335186719894,
0.039949215948581696,
-0.04524416849017143,
-0.03583970293402672,
0.006080302409827709,
-0.012684172950685024,
-0.007423797622323036,
-0.00356124946847558,
-0.03732150048017502,
-0.06551513820886612,
-0.008411661721765995,
0.012555751018226147,
-0.04484902322292328,
0.044295817613601685,
0.00290431990288198,
-0.011785216629505157,
0.020103031769394875,
-0.0006717474898323417,
-0.009755156002938747,
0.051013294607400894,
0.060970962047576904,
-0.015677399933338165,
-0.06298620253801346,
-0.022187424823641777,
-0.03372567519545555,
-0.04627154767513275,
-0.006875533144921064,
0.022701112553477287,
0.0005871616303920746,
0.0361558198928833,
0.02625742368400097,
-0.024301452562212944,
-0.002200466813519597,
-0.04255717992782593,
-0.07294387370347977,
0.003334040753543377,
-0.027047714218497276,
-0.022305967286229134,
0.09641551971435547,
-0.01161727961152792,
-0.02951737493276596,
-0.06128707900643349,
-0.027502132579684258,
0.01383997406810522,
-0.02463732659816742,
0.03180921822786331,
0.060378242284059525,
0.03688684105873108,
-0.02523004449903965,
-0.014037546701729298,
0.018621236085891724,
-0.02803557924926281,
-0.01887807995080948,
-0.014185725711286068,
-0.0197671577334404,
-0.007226224523037672,
-0.019826428964734077,
0.03550383076071739,
0.015331648290157318,
-0.01453147828578949,
-0.0057740649208426476,
0.06662154197692871,
0.05792834237217903,
-0.017534585669636726,
0.006910108029842377,
0.05852105841040611,
0.014867352321743965,
-0.05022300407290459,
0.01970788463950157,
0.047773100435733795,
-0.04793115705251694,
-0.14525550603866577,
-0.05717756599187851,
0.046587664633989334,
-0.01710980385541916,
0.06614737212657928,
0.0037390650250017643,
0.08163707703351974,
-0.015104440040886402,
-0.009547704830765724,
0.010945532470941544,
0.012121090665459633,
0.010619536973536015,
-0.01172594539821148,
0.003008045721799135,
-0.004351540468633175,
0.0021263770759105682,
-0.07871299982070923,
0.043347470462322235,
0.021871307864785194,
0.028964171186089516,
-0.0014941442059352994,
-0.04457242041826248,
0.0027092169038951397,
0.07385271042585373,
0.02066611312329769,
-0.002926546847447753,
0.0048726387321949005,
0.02878635562956333,
0.008945108391344547,
-0.029319802299141884,
0.004060120787471533,
0.0531470812857151,
-0.06768843531608582,
-0.01845329813659191,
0.07128426432609558,
0.010747959837317467,
-0.003334040753543377,
0.014116575941443443,
-0.01622072607278824,
0.012526114471256733,
-0.036629993468523026,
-0.007902911864221096,
-0.02848999574780464,
-0.06824164092540741,
-0.16050812602043152,
0.015242740511894226,
0.04639009013772011,
0.001881880802102387,
0.03927747160196304,
-0.020172182470560074,
-0.0437031015753746,
0.04702232405543327,
-0.007680641952902079,
-0.0010823283810168505,
-0.027719462290406227,
-0.03570140153169632,
0.03402203321456909,
0.0032303151674568653,
0.00911798421293497,
0.013108954764902592,
0.07329950481653214,
0.014966138638556004,
-0.006544598378241062,
0.043861158192157745,
0.004166316241025925,
0.03890208154916763,
-0.026968685910105705,
-0.02811460755765438,
0.051606010645627975,
-0.011637037619948387,
-0.0044305697083473206,
0.050064943730831146,
-0.04338698461651802,
-0.010728202760219574,
-0.07385271042585373,
-0.024360723793506622,
-0.01704065315425396,
0.054846204817295074,
0.03054475225508213,
-0.037301741540431976,
-0.049748826771974564,
0.042083002626895905,
0.016477569937705994,
-0.05480669066309929,
-0.014778444543480873,
0.01453147828578949,
-0.05852105841040611,
-0.033607132732868195,
0.03218460828065872,
-0.008816685527563095,
-0.02191082201898098,
-0.020547570660710335,
-0.046666692942380905,
0.01902625896036625,
0.016428178176283836,
0.04196446016430855,
0.0156477652490139,
0.0026054910849779844,
-0.016724536195397377,
-0.02898392826318741,
0.029122229665517807,
0.011884002946317196,
-0.0860627070069313,
0.006317389663308859,
0.00514677120372653,
0.017969245091080666,
-0.025862278416752815,
0.03445669263601303,
0.021337861195206642,
0.023669220507144928,
0.044374849647283554,
-0.0098835788667202,
-0.02420266717672348,
0.013217619620263577,
-0.014966138638556004,
-0.055676013231277466,
-0.07432688027620316,
-0.015351405367255211,
0.02752188965678215,
-0.017969245091080666,
0.07345756143331528,
-0.013118833303451538,
-0.003889714367687702,
0.02730455994606018,
0.021160045638680458,
-0.04192494601011276,
0.04670620709657669,
0.02234548144042492,
-0.03133504465222359,
0.03801300376653671,
-0.014887109398841858,
-0.007315132301300764,
0.011943275108933449,
-0.04204348847270012,
0.0053147077560424805,
-0.009923093020915985,
-0.06310474872589111,
-0.0007371934480033815,
0.02123907394707203,
-0.05034154653549194,
0.08369183540344238,
-0.03710417076945305,
0.027186015620827675,
-0.00009446449257666245,
0.0068360185250639915,
-0.05931134894490242,
-0.02552640438079834,
0.039060141891241074,
0.013899245299398899,
0.011637037619948387,
-0.026237666606903076,
0.0129508962854743,
-0.0501834861934185,
0.011795095168054104,
0.08179513365030289,
0.004299677908420563,
-0.03680780902504921,
-0.0054925233125686646,
0.056782420724630356,
-0.024518782272934914,
0.06677959859371185,
0.04757552593946457,
0.06883435696363449,
-0.04484902322292328,
0.029379073530435562,
-0.017613613978028297,
-0.061405621469020844,
-0.02803557924926281,
0.01844342052936554,
0.039356499910354614,
-0.01845329813659191,
0.004778791684657335,
-0.047496497631073,
-0.01961897686123848,
0.004586158320307732,
-0.034041792154312134,
0.014235119335353374,
0.020251210778951645,
-0.0013990623410791159,
0.020349998027086258,
0.010589901357889175,
-0.01560825016349554,
0.023669220507144928,
-0.04781261458992958,
-0.02538810297846794,
-0.06792552769184113,
0.03747955709695816,
0.019530070945620537,
-0.023056743666529655,
0.00028895019204355776,
0.029714947566390038,
0.020043758675456047,
-0.06073387339711189,
0.054174456745386124,
-0.03680780902504921,
-0.05607115849852562,
-0.031749945133924484,
-0.020468540489673615,
0.014491964131593704,
0.008638869971036911,
-0.09673164039850235,
0.018038395792245865,
-0.055517952889204025,
-0.043782129883766174,
0.023511162027716637,
-0.002706747269257903,
-0.06365795433521271,
0.02220718190073967,
-0.034930869936943054,
-0.000633467745501548,
0.05140843987464905,
0.033982519060373306,
-0.0644877552986145,
-0.03378494828939438,
-0.009799609892070293,
-0.038467422127723694,
0.018828686326742172,
-0.003064847784116864,
0.006756989285349846,
-0.04243863373994827,
0.024103879928588867,
-0.04457242041826248,
-0.003259951015934348,
-0.028371451422572136,
-0.019134923815727234,
-0.002438789000734687,
-0.009532886557281017,
-0.008806806989014149,
-0.010975168086588383,
-0.005270254332572222,
-0.049748826771974564,
-0.022523296996951103,
0.03362688794732094,
-0.08835455030202866,
0.05164552479982376,
0.018710143864154816,
0.019806671887636185,
0.020547570660710335,
0.06697717308998108,
0.02647475339472294,
0.03396276384592056,
0.03313295543193817,
0.01800875924527645,
-0.03295513987541199,
0.06994076818227768,
0.0026795808225870132,
0.06918998807668686,
0.0027339134830981493,
-0.000018387388990959153,
-0.011676551774144173,
-0.007023712620139122,
0.01593424566090107,
-0.022681355476379395,
0.07468251138925552,
0.029695190489292145,
-0.020527811720967293,
0.01320774108171463,
-0.01579594425857067,
0.008880896493792534,
0.03489135578274727,
0.054846204817295074,
-0.008619112893939018,
-0.00336614646948874,
-0.07112620025873184,
0.004709641449153423,
-0.015657642856240273,
0.011577765457332134,
-0.04591591656208038,
0.008940168656408787,
-0.004558992106467485,
-0.029556889086961746,
0.03040645271539688,
-0.0003568658430594951,
0.0742083415389061
] |
725,005 | tf_keras.src.engine.training | compute_metrics | Update metric states and collect all metrics to be returned.
Subclasses can optionally override this method to provide custom metric
updating and collection logic.
Example:
```python
class MyModel(tf.keras.Sequential):
def compute_metrics(self, x, y, y_pred, sample_weight):
# This super call updates `self.compiled_metrics` and returns
# results for all metrics listed in `self.metrics`.
metric_results = super(MyModel, self).compute_metrics(
x, y, y_pred, sample_weight)
# Note that `self.custom_metric` is not listed in `self.metrics`.
self.custom_metric.update_state(x, y, y_pred, sample_weight)
metric_results['custom_metric_name'] = self.custom_metric.result()
return metric_results
```
Args:
x: Input data.
y: Target data.
y_pred: Predictions returned by the model (output of `model.call(x)`)
sample_weight: Sample weights for weighting the loss function.
Returns:
A `dict` containing values that will be passed to
`tf.keras.callbacks.CallbackList.on_train_batch_end()`. Typically, the
values of the metrics listed in `self.metrics` are returned. Example:
`{'loss': 0.2, 'accuracy': 0.7}`.
| def compute_metrics(self, x, y, y_pred, sample_weight):
"""Update metric states and collect all metrics to be returned.
Subclasses can optionally override this method to provide custom metric
updating and collection logic.
Example:
```python
class MyModel(tf.keras.Sequential):
def compute_metrics(self, x, y, y_pred, sample_weight):
# This super call updates `self.compiled_metrics` and returns
# results for all metrics listed in `self.metrics`.
metric_results = super(MyModel, self).compute_metrics(
x, y, y_pred, sample_weight)
# Note that `self.custom_metric` is not listed in `self.metrics`.
self.custom_metric.update_state(x, y, y_pred, sample_weight)
metric_results['custom_metric_name'] = self.custom_metric.result()
return metric_results
```
Args:
x: Input data.
y: Target data.
y_pred: Predictions returned by the model (output of `model.call(x)`)
sample_weight: Sample weights for weighting the loss function.
Returns:
A `dict` containing values that will be passed to
`tf.keras.callbacks.CallbackList.on_train_batch_end()`. Typically, the
values of the metrics listed in `self.metrics` are returned. Example:
`{'loss': 0.2, 'accuracy': 0.7}`.
"""
del x # The default implementation does not use `x`.
self.compiled_metrics.update_state(y, y_pred, sample_weight)
return self.get_metrics_result()
| (self, x, y, y_pred, sample_weight) | [
0.0007426313823089004,
-0.06941600143909454,
-0.007334573660045862,
0.05540645867586136,
0.011213211342692375,
-0.01831088587641716,
-0.04960940405726433,
0.014167479239404202,
0.06038597971200943,
0.003502386622130871,
-0.015914028510451317,
-0.0019195773638784885,
0.09907016158103943,
0.020066725090146065,
0.00908112246543169,
0.0402449332177639,
0.020438330247998238,
-0.005908535793423653,
0.004166632425040007,
-0.018793974071741104,
-0.012662474997341633,
-0.05064989998936653,
0.027666067704558372,
0.0392044335603714,
-0.0344664566218853,
0.04648791253566742,
0.0174283217638731,
-0.04752840846776962,
0.0065123955719172955,
-0.0003248649591114372,
-0.04340358451008797,
-0.010423548519611359,
0.010442129336297512,
0.02040117047727108,
0.020568393170833588,
-0.028186315670609474,
0.011770620942115784,
0.03675183653831482,
-0.09966473281383514,
-0.05321398377418518,
-0.015626033768057823,
-0.05470040440559387,
0.04310629889369011,
0.010442129336297512,
0.03294287249445915,
0.03864702582359314,
0.00972678791731596,
0.03875850886106491,
0.046264950186014175,
-0.12010306864976883,
-0.02041975036263466,
-0.013554329983890057,
0.002256345236673951,
0.06529118120670319,
0.05269373208284378,
-0.010544320568442345,
0.026514088734984398,
-0.030768979340791702,
0.033035773783922195,
-0.010767284780740738,
0.018431657925248146,
-0.05187619850039482,
-0.020586973056197166,
-0.03311009705066681,
-0.007970948703587055,
-0.046413592994213104,
0.009387697093188763,
-0.013099112547934055,
-0.047900017350912094,
0.027647487819194794,
-0.012012165039777756,
-0.06317302584648132,
0.08873951435089111,
-0.040876660495996475,
-0.0076086330227553844,
-0.010237745940685272,
-0.008728096261620522,
-0.02162747085094452,
0.05202484130859375,
-0.030620336532592773,
0.012272289022803307,
0.02824205718934536,
-0.0042711468413472176,
-0.06439932435750961,
0.01695452444255352,
-0.052619412541389465,
0.03177231550216675,
-0.01596047915518284,
-0.054663244634866714,
0.012671764940023422,
-0.020624134689569473,
0.030694657936692238,
0.03808961808681488,
0.02173895202577114,
0.03266416862607002,
-0.01783708855509758,
-0.061389315873384476,
-0.005527639761567116,
0.009136863052845001,
-0.0026732408441603184,
-0.010823025368154049,
-0.021999076008796692,
0.018775394186377525,
0.013489298522472382,
0.01809721253812313,
-0.06978761404752731,
-0.03026730939745903,
-0.03725350275635719,
-0.02460031770169735,
0.03931591659784317,
-0.029375456273555756,
-0.021943336352705956,
-0.04176851734519005,
-0.014780629426240921,
0.028966689482331276,
0.005313965957611799,
-0.02270512841641903,
-0.0114733362570405,
-0.044667042791843414,
0.015765385702252388,
-0.0664059966802597,
0.02107006125152111,
0.008142816834151745,
-0.030638916417956352,
-0.036937639117240906,
-0.0339462086558342,
0.02933829464018345,
0.026792794466018677,
0.030025767162442207,
0.0002604145265650004,
-0.0630243793129921,
-0.03409485146403313,
0.024005748331546783,
0.03634306788444519,
0.05321398377418518,
0.003044846933335066,
0.0810101106762886,
0.020048145204782486,
0.061835240572690964,
0.028167735785245895,
0.0784088671207428,
0.04392383247613907,
0.03013724833726883,
-0.006772519554942846,
0.05994005128741264,
-0.019955243915319443,
0.034522198140621185,
0.0727604553103447,
-0.045596059411764145,
-0.04083950072526932,
-0.024618899449706078,
0.005601960700005293,
0.07298342138528824,
-0.044072475284338,
-0.009341246448457241,
0.0402449332177639,
-0.002856721170246601,
-0.03905579447746277,
0.00019727053586393595,
-0.05332546308636665,
0.00928550586104393,
-0.0024502770975232124,
0.006419493816792965,
-0.034522198140621185,
0.018087923526763916,
0.08086147159337997,
-0.017892830073833466,
0.0024525998160243034,
-0.0486803874373436,
0.010943797416985035,
-0.01195642352104187,
-0.053957194089889526,
0.047900017350912094,
0.01755838468670845,
0.004868038929998875,
0.03454077988862991,
0.011826361529529095,
-0.020326849073171616,
0.011176050640642643,
0.026142483577132225,
0.05299101769924164,
-0.018989067524671555,
-0.07751701772212982,
-0.0007577278884127736,
-0.054663244634866714,
0.017911409959197044,
-0.008384360931813717,
0.013833033852279186,
-0.026792794466018677,
0.045856181532144547,
0.04109962657094002,
-0.009471308439970016,
0.03515392914414406,
-0.012513833120465279,
-0.018738234415650368,
-0.03340738266706467,
-0.025640815496444702,
0.015904737636446953,
0.04927495867013931,
0.028019092977046967,
-0.011501206085085869,
-0.04414679482579231,
0.03199527785181999,
0.05771041661500931,
0.008825642988085747,
0.022742288187146187,
-0.013526459224522114,
0.03580423817038536,
-0.08680716902017593,
-0.03041595220565796,
-0.035599857568740845,
0.01837591826915741,
0.014093157835304737,
0.07283478230237961,
0.030713237822055817,
0.017242519184947014,
0.058713752776384354,
0.06361895054578781,
-0.030917620286345482,
-0.037606529891490936,
0.03691905736923218,
0.005564799997955561,
-0.0023283439222723246,
-0.007822306826710701,
0.061686597764492035,
-0.03197669982910156,
0.013136273249983788,
-0.014483344741165638,
0.01790211908519268,
-0.04489000886678696,
0.00912292767316103,
-0.04827162250876427,
0.030490273609757423,
0.004707783926278353,
-0.002582661807537079,
-0.02430303394794464,
-0.013582199811935425,
0.012012165039777756,
0.03890715166926384,
0.02933829464018345,
-0.01630421355366707,
-0.002447954611852765,
0.02244500443339348,
-0.01824585534632206,
-0.032366883009672165,
-0.025770876556634903,
0.06543982028961182,
0.04808581992983818,
-0.009828979149460793,
-0.010349228046834469,
-0.016657240688800812,
0.0070930300280451775,
-0.00016910977137740701,
0.01195642352104187,
-0.03638022765517235,
-0.007185931317508221,
-0.008630549535155296,
-0.023058153688907623,
0.04552173614501953,
-0.017121747136116028,
0.02080993726849556,
0.06384191662073135,
-0.016062669456005096,
0.033463120460510254,
-0.013972386717796326,
-0.03210676088929176,
0.028149155899882317,
0.06038597971200943,
0.006860776338726282,
0.06008869409561157,
0.04715680330991745,
0.038312580436468124,
-0.014947852119803429,
-0.026811374351382256,
-0.018478108569979668,
-0.028539342805743217,
0.020103884860873222,
-0.01426038146018982,
0.005230354610830545,
-0.010386387817561626,
0.011231792159378529,
-0.03535831347107887,
-0.036677513271570206,
-0.0013702971627935767,
0.0023376340977847576,
-0.04656223580241203,
0.008481907658278942,
-0.028818046674132347,
-0.0007530828006565571,
-0.009643176570534706,
0.03678899630904198,
-0.04782569408416748,
0.005764538422226906,
0.01263460423797369,
0.020586973056197166,
-0.04741692915558815,
-0.06633167713880539,
-0.01560745295137167,
-0.002314408775418997,
0.050352614372968674,
-0.031159164384007454,
0.07071662694215775,
0.014464763924479485,
-0.013173433020710945,
0.005978211760520935,
0.0012135258875787258,
0.07145983725786209,
-0.03489380702376366,
-0.006837550550699234,
-0.021664630621671677,
0.0402449332177639,
0.04009629040956497,
-0.011213211342692375,
-0.004645075183361769,
0.003003041259944439,
-0.0697132870554924,
-0.006591361947357655,
0.028613664209842682,
0.0274245236068964,
0.04986952617764473,
-0.022333521395921707,
0.021553149446845055,
-0.002703433856368065,
0.053957194089889526,
-0.030843298882246017,
-0.04184283688664436,
0.03227398172020912,
0.013322075828909874,
-0.010014782659709454,
-0.03320299834012985,
-0.0037648335564881563,
-0.0630243793129921,
0.045744702219963074,
0.01195642352104187,
-0.06551413983106613,
-0.07707108557224274,
-0.01324775442481041,
0.046004824340343475,
0.020326849073171616,
0.05503484979271889,
-0.019379254430532455,
0.008783836849033833,
-0.0394645594060421,
0.02770322933793068,
-0.011677718721330166,
-0.023485500365495682,
0.04436975717544556,
0.02541785128414631,
0.019119130447506905,
-0.03431781753897667,
-0.016620079055428505,
0.011863522231578827,
-0.018125083297491074,
0.06202104315161705,
0.03838689997792244,
0.022054817527532578,
-0.015254426747560501,
-0.0717942863702774,
0.015068624168634415,
-0.0397246852517128,
-0.021646050736308098,
0.027238721027970314,
-0.020884258672595024,
0.034912385046482086,
0.052879538387060165,
0.021831853315234184,
-0.007371734362095594,
0.0055926707573235035,
0.015328748151659966,
-0.07082810997962952,
-0.023132475093007088,
-0.031549349427223206,
-0.029078170657157898,
0.09342174977064133,
0.012179387733340263,
0.04351506382226944,
-0.02539927139878273,
0.0011229469673708081,
-0.003616190981119871,
0.05388287454843521,
0.038832828402519226,
0.006716778967529535,
-0.027796130627393723,
-0.0012053970713168383,
0.020289689302444458,
0.010553610511124134,
-0.012671764940023422,
-0.042474567890167236,
-0.029654160141944885,
-0.04960940405726433,
-0.03660319373011589,
0.018533850088715553,
-0.06369327008724213,
-0.00353025714866817,
-0.07012205570936203,
-0.0194721557199955,
0.02987712435424328,
0.01835733652114868,
-0.033314481377601624,
-0.09260421991348267,
-0.01831088587641716,
-0.00786411203444004,
0.0344664566218853,
-0.0024595672730356455,
-0.056149668991565704,
-0.009276214987039566,
-0.021032901480793953,
0.07450700551271439,
-0.027628907933831215,
0.03660319373011589,
-0.0002424148697173223,
-0.03784807398915291,
-0.01945357583463192,
-0.011724170297384262,
-0.027238721027970314,
-0.01656433753669262,
0.008570163510739803,
-0.03268275037407875,
0.037606529891490936,
0.046971000730991364,
-0.002926397370174527,
0.02474896050989628,
0.054663244634866714,
0.051950521767139435,
0.035599857568740845,
-0.06491956859827042,
-0.00820784829556942,
-0.025900939479470253,
0.022649386897683144,
-0.00959672499448061,
-0.018793974071741104,
-0.02785187028348446,
-0.03578566014766693,
-0.0030866526067256927,
-0.0013528781710192561,
-0.03753220662474632,
0.057078685611486435,
0.003386259777471423,
-0.012030744925141335,
0.029078170657157898,
-0.025919519364833832,
-0.030341630801558495,
0.04489000886678696,
0.017158908769488335,
-0.026829954236745834,
-0.024618899449706078,
-0.02974706143140793,
-0.03288713097572327,
-0.06833834946155548,
-0.005216419696807861,
0.04132258892059326,
-0.012411640956997871,
0.01734471134841442,
0.0038136066868901253,
0.033184416592121124,
0.010302776470780373,
-0.029375456273555756,
-0.04065369814634323,
0.03526541218161583,
-0.02133018523454666,
-0.00403424771502614,
0.04377518966794014,
-0.031029103323817253,
-0.03994764760136604,
-0.07387527823448181,
0.004364048130810261,
-0.005504413973540068,
0.006860776338726282,
0.025157727301120758,
0.03879566863179207,
0.0943136066198349,
0.0016478404868394136,
-0.001068947953172028,
-0.011659138835966587,
-0.030508853495121002,
-0.0068561309017241,
-0.035191088914871216,
0.007037288974970579,
-0.02082851715385914,
-0.055443618446588516,
0.03320299834012985,
0.02257506549358368,
0.025343529880046844,
-0.015570292249321938,
0.04132258892059326,
0.032236821949481964,
0.030713237822055817,
-0.03444787859916687,
0.05239645019173622,
-0.021107221022248268,
-0.060869064182043076,
0.026049582287669182,
0.09973905235528946,
-0.051132988184690475,
-0.10850895941257477,
-0.03197669982910156,
0.05202484130859375,
-0.013377816416323185,
0.06889575719833374,
0.028149155899882317,
0.07149700075387955,
-0.04362654685974121,
-0.006317302118986845,
0.00952240452170372,
-0.000931918213609606,
0.04567037895321846,
-0.005416157655417919,
0.007473926059901714,
-0.030620336532592773,
0.010033362545073032,
-0.03755078837275505,
0.0247303806245327,
0.040876660495996475,
0.006326592527329922,
-0.024916183203458786,
-0.07060514390468597,
-0.03162367269396782,
0.04700816050171852,
-0.005039906594902277,
-0.024265872314572334,
0.011464045383036137,
0.022760868072509766,
0.03327731788158417,
-0.00007642600394319743,
0.005759893450886011,
0.07350367307662964,
-0.035061027854681015,
-0.020995739847421646,
0.023485500365495682,
0.02001098357141018,
-0.032348304986953735,
0.007241672370582819,
-0.02878088690340519,
0.03333305940032005,
-0.044258277863264084,
-0.040765181183815,
-0.002422406803816557,
-0.053436946123838425,
-0.10910353064537048,
0.02983996272087097,
0.0502411350607872,
0.0008843062096275389,
0.005866730120033026,
-0.034373555332422256,
-0.005063131917268038,
0.04254888743162155,
-0.0030494919046759605,
-0.03093620203435421,
-0.007190576288849115,
-0.043960992246866226,
-0.018877586349844933,
-0.010107683949172497,
-0.005230354610830545,
0.014390443451702595,
0.02905959077179432,
0.013284915126860142,
0.014836370013654232,
-0.0037741237320005894,
0.005504413973540068,
0.016099831089377403,
-0.009912590496242046,
-0.003035556757822633,
0.05365990847349167,
-0.024767540395259857,
0.011203921400010586,
0.05719016492366791,
-0.0445927232503891,
0.03147502988576889,
-0.07632787525653839,
-0.012532413005828857,
0.024618899449706078,
0.03916727378964424,
0.025622235611081123,
-0.053176820278167725,
-0.06752081215381622,
0.030731817707419395,
0.03671467304229736,
-0.05009249225258827,
0.0025942744687199593,
-0.026012420654296875,
-0.06395339965820312,
-0.008407586254179478,
0.04819729924201965,
-0.043440744280815125,
0.006791099905967712,
-0.029078170657157898,
-0.07751701772212982,
0.032199662178754807,
0.011603398248553276,
0.04217728227376938,
-0.014975722879171371,
0.03444787859916687,
-0.023188214749097824,
-0.020438330247998238,
0.02987712435424328,
0.0018057730048894882,
-0.08695580810308456,
0.028855208307504654,
-0.032366883009672165,
-0.0001061109360307455,
-0.039650361984968185,
0.031252067536115646,
0.0386841855943203,
-0.010061233304440975,
0.021701792255043983,
-0.02826063707470894,
-0.02025252766907215,
0.019695119932293892,
-0.029208233579993248,
-0.017818508669734,
-0.06425067782402039,
-0.013963095843791962,
0.05555510148406029,
0.03271991014480591,
0.08978001773357391,
-0.021255863830447197,
-0.0003597030008677393,
0.0199924036860466,
0.018515270203351974,
-0.023559821769595146,
0.03106626309454441,
0.008574808947741985,
-0.016109120100736618,
0.023429758846759796,
-0.022463584318757057,
-0.015514551661908627,
0.0023829236160963774,
-0.03755078837275505,
0.0011798491468653083,
0.01216080691665411,
-0.032905712723731995,
0.005323256365954876,
0.04960940405726433,
-0.07112539559602737,
0.08309110254049301,
-0.0335560217499733,
0.025194888934493065,
-0.0021077028941363096,
-0.0063498178496956825,
-0.08606395125389099,
0.029003849253058434,
0.038832828402519226,
0.040319252759218216,
-0.016359955072402954,
-0.018087923526763916,
0.0008773385779932141,
-0.054663244634866714,
0.014882820658385754,
0.0799696147441864,
0.03773659095168114,
-0.04960940405726433,
-0.04581902176141739,
-0.001142688561230898,
-0.001491069095209241,
0.055183492600917816,
0.05440312251448631,
0.02025252766907215,
-0.028595082461833954,
0.035061027854681015,
-0.039130114018917084,
-0.0871787741780281,
0.019620798528194427,
-0.02218487858772278,
0.027368783950805664,
-0.015012883581221104,
0.0018057730048894882,
-0.0656256228685379,
0.03108484297990799,
-0.014492634683847427,
-0.028483601287007332,
0.04069085791707039,
0.007283478043973446,
0.03147502988576889,
0.022482164204120636,
-0.01984376087784767,
0.02240784280002117,
0.01738187111914158,
-0.02997002564370632,
-0.04685951769351959,
-0.05392003431916237,
0.04797433689236641,
0.0021402183920145035,
-0.025715136900544167,
0.05254509299993515,
0.023151054978370667,
-0.005276805255562067,
-0.03435497730970383,
0.024767540395259857,
-0.021961916238069534,
-0.012197967618703842,
-0.013108402490615845,
-0.006647102534770966,
-0.00739960465580225,
-0.028539342805743217,
-0.08138171583414078,
0.013136273249983788,
-0.08175332099199295,
-0.03703054040670395,
0.06633167713880539,
-0.02339259907603264,
-0.024488836526870728,
0.05098434537649155,
-0.03238546475768089,
-0.02944977767765522,
0.06889575719833374,
0.0335560217499733,
-0.07194292545318604,
-0.02389426715672016,
0.023801365867257118,
-0.004194502718746662,
0.04135974869132042,
0.013108402490615845,
-0.03173515573143959,
-0.04819729924201965,
0.0344664566218853,
-0.016815172508358955,
0.0055926707573235035,
-0.040467895567417145,
0.03474516421556473,
0.030285891145467758,
0.024804702028632164,
0.014919981360435486,
-0.012653185054659843,
-0.026123903691768646,
-0.07751701772212982,
0.010098394006490707,
0.03392763063311577,
-0.03853554278612137,
0.0494607612490654,
-0.018812553957104683,
0.015310168266296387,
0.0008123075240291655,
0.003044846933335066,
0.05269373208284378,
0.005704152397811413,
0.0252506285905838,
0.01122250221669674,
-0.03927875682711601,
0.04745408892631531,
0.04596766456961632,
0.011259661987423897,
0.013414977118372917,
0.017456192523241043,
0.03740214556455612,
-0.0017186778131872416,
-0.015700355172157288,
0.006874711252748966,
0.014947852119803429,
0.044072475284338,
-0.02554791420698166,
0.02040117047727108,
0.010544320568442345,
-0.0061733052134513855,
0.0033490993082523346,
0.07796294242143631,
-0.009434147737920284,
-0.021162962540984154,
-0.04474136605858803,
0.025770876556634903,
-0.012272289022803307,
0.011993584223091602,
-0.02539927139878273,
-0.0001027722901199013,
0.014223220758140087,
-0.02582661807537079,
0.03571133688092232,
0.04132258892059326,
0.07989529520273209
] |
725,006 | tf_keras.src.engine.base_layer | compute_output_shape | Computes the output shape of the layer.
This method will cause the layer's state to be built, if that has not
happened before. This requires that the layer will later be used with
inputs that match the input shape provided here.
Args:
input_shape: Shape tuple (tuple of integers) or `tf.TensorShape`,
or structure of shape tuples / `tf.TensorShape` instances
(one per output tensor of the layer).
Shape tuples can include None for free dimensions,
instead of an integer.
Returns:
A `tf.TensorShape` instance
or structure of `tf.TensorShape` instances.
| def compute_output_shape(self, input_shape):
"""Computes the output shape of the layer.
This method will cause the layer's state to be built, if that has not
happened before. This requires that the layer will later be used with
inputs that match the input shape provided here.
Args:
input_shape: Shape tuple (tuple of integers) or `tf.TensorShape`,
or structure of shape tuples / `tf.TensorShape` instances
(one per output tensor of the layer).
Shape tuples can include None for free dimensions,
instead of an integer.
Returns:
A `tf.TensorShape` instance
or structure of `tf.TensorShape` instances.
"""
if tf.executing_eagerly():
# In this case we build the model first in order to do shape
# inference. This is acceptable because the framework only calls
# `compute_output_shape` on shape values that the layer would later
# be built for. It would however cause issues in case a user
# attempts to use `compute_output_shape` manually with shapes that
# are incompatible with the shape the Layer will be called on (these
# users will have to implement `compute_output_shape` themselves).
self._maybe_build(input_shape)
graph_name = str(self.name) + "_scratch_graph"
with tf.__internal__.FuncGraph(graph_name).as_default():
input_shape = tf_utils.convert_shapes(
input_shape, to_tuples=False
)
def _make_placeholder_like(shape):
ph = backend.placeholder(shape=shape, dtype=self.dtype)
ph._keras_mask = None
return ph
inputs = tf.nest.map_structure(
_make_placeholder_like, input_shape
)
try:
outputs = self(inputs, training=False)
except TypeError as e:
raise NotImplementedError(
"We could not automatically infer the static shape of "
"the layer's output. Please implement the "
"`compute_output_shape` method on your layer (%s)."
% self.__class__.__name__
) from e
return tf.nest.map_structure(lambda t: t.shape, outputs)
raise NotImplementedError(
"Please run in eager mode or implement the `compute_output_shape` "
"method on your layer (%s)." % self.__class__.__name__
)
| (self, input_shape) | [
-0.006974353455007076,
-0.09457631409168243,
-0.027247339487075806,
0.018842827528715134,
-0.0074758380651474,
0.018062738701701164,
-0.06006673350930214,
0.02080233208835125,
0.0400073416531086,
-0.042830515652894974,
0.027618810534477234,
0.0034964634105563164,
-0.019687920808792114,
-0.01841563545167446,
0.0738111287355423,
0.10282295942306519,
0.04769677668809891,
-0.020598024129867554,
-0.025445709004998207,
0.002256681676954031,
0.025520004332065582,
-0.043870631605386734,
0.019687920808792114,
-0.02368122711777687,
-0.0003337427624501288,
-0.013317206874489784,
0.026355812326073647,
-0.028640354052186012,
-0.013140758499503136,
-0.03456530347466469,
-0.0364040806889534,
-0.025315694510936737,
0.008850278332829475,
0.04424210265278816,
0.03614405170083046,
0.027377355843782425,
0.015193131752312183,
0.1063147783279419,
-0.01469164714217186,
-0.05408606305718422,
0.007814805023372173,
-0.050259921699762344,
-0.008864208124577999,
0.014515198767185211,
0.020468009635806084,
0.026430105790495872,
-0.015490308403968811,
-0.028120296075940132,
-0.07748869061470032,
-0.05605485662817955,
0.033599480986595154,
-0.0022671292535960674,
-0.03469531983137131,
0.05627773702144623,
-0.032967980951070786,
-0.03566114231944084,
0.01924215629696846,
-0.06597311049699783,
-0.01183132641017437,
-0.029216133058071136,
-0.055089034140110016,
-0.022065330296754837,
0.0038516817148774862,
0.008641325868666172,
-0.012797148898243904,
-0.01144128292798996,
-0.062481291592121124,
-0.02821316383779049,
-0.005688137840479612,
0.051300037652254105,
-0.006282490212470293,
-0.028788940981030464,
0.04242189973592758,
-0.019353598356246948,
0.008478807285428047,
-0.02875179424881935,
0.06374429166316986,
-0.04275622218847275,
0.04108460620045662,
-0.05564623698592186,
-0.06043820455670357,
0.024238431826233864,
-0.020245127379894257,
-0.028194589540362358,
0.04669380560517311,
-0.028566060587763786,
0.03122207149863243,
0.05724355950951576,
-0.08677544444799423,
-0.04996274411678314,
0.024294152855873108,
0.04394492506980896,
-0.004550510086119175,
0.03993304818868637,
0.00392133230343461,
-0.021545272320508957,
-0.05022277310490608,
-0.055051885545253754,
-0.037258461117744446,
-0.006742184516042471,
-0.044910747557878494,
0.012787861749529839,
-0.06638173013925552,
0.029457587748765945,
0.0035150370094925165,
-0.03573543578386307,
0.013224340043962002,
-0.014078721404075623,
-0.0400073416531086,
-0.013242913410067558,
0.001221208367496729,
-0.007550131995230913,
-0.016651151701807976,
0.019019275903701782,
0.030107660219073296,
0.012787861749529839,
-0.0031040979083627462,
-0.0033409101888537407,
-0.0016460773767903447,
-0.0007348145009018481,
-0.01709691621363163,
0.07711721956729889,
-0.009152097627520561,
-0.025780033320188522,
0.017886290326714516,
0.03588402271270752,
0.01418087538331747,
0.01603822596371174,
0.020189406350255013,
-0.03417525812983513,
-0.0017447491409257054,
0.022158198058605194,
-0.006259273272007704,
0.0380014032125473,
0.006528588943183422,
0.07366254180669785,
-0.02080233208835125,
-0.03122207149863243,
-0.04379633814096451,
0.0468052476644516,
0.06021532043814659,
-0.02602148801088333,
0.008929215371608734,
0.0077172936871647835,
0.009583931416273117,
0.01987365633249283,
0.027990281581878662,
-0.019186437129974365,
0.011868473142385483,
-0.0038331083487719297,
0.00685826875269413,
-0.020988067612051964,
0.02067231759428978,
0.012722854502499104,
-0.014264455996453762,
0.019706495106220245,
-0.009658225812017918,
-0.013521515764296055,
0.007132227998226881,
-0.04216187074780464,
-0.07459121942520142,
0.002173100830987096,
0.03707272931933403,
-0.04316483810544014,
-0.019335024058818817,
0.0452079251408577,
0.04071313515305519,
-0.0037495275028049946,
0.004497111309319735,
-0.00015047445776872337,
0.009732519276440144,
-0.016781166195869446,
0.03146352618932724,
-0.019576480612158775,
-0.03501106798648834,
0.04008163511753082,
0.010633334517478943,
0.00022128596901893616,
-0.02676442824304104,
0.028658926486968994,
0.045319367200136185,
-0.03161211684346199,
-0.052340153604745865,
0.01961362734436989,
-0.015193131752312183,
0.063001349568367,
-0.023235462605953217,
-0.004007235169410706,
0.054940443485975266,
0.030609145760536194,
-0.06946492940187454,
0.052080124616622925,
0.026968738064169884,
-0.0037448841612786055,
0.021489551290869713,
-0.0484025701880455,
0.0017493925988674164,
0.05601770803332329,
0.015852492302656174,
-0.02379266731441021,
-0.011970628052949905,
-0.02377409301698208,
0.04134463518857956,
0.06069823354482651,
-0.03213217481970787,
-0.002955509815365076,
0.03450958430767059,
-0.0030808812007308006,
-0.015174558386206627,
-0.003900437382981181,
-0.11062382906675339,
0.0018283299868926406,
0.02106236107647419,
0.06935349106788635,
0.03952443227171898,
-0.05174580216407776,
-0.018731385469436646,
0.04108460620045662,
0.008121267892420292,
-0.00568349426612258,
0.008803844451904297,
0.0038957938086241484,
0.009732519276440144,
-0.02121094986796379,
-0.0016530425054952502,
-0.05553479865193367,
-0.03226218745112419,
-0.00063033850165084,
0.03252221643924713,
-0.043610602617263794,
-0.03125922009348869,
-0.09613649547100067,
0.009918254800140858,
0.015508881770074368,
0.027785971760749817,
0.027525942772626877,
-0.03354376181960106,
-0.07934603840112686,
0.03989589959383011,
-0.023606931790709496,
-0.051448624581098557,
-0.03948728367686272,
-0.017524108290672302,
-0.03623691946268082,
-0.042050428688526154,
0.03558684512972832,
0.01926073059439659,
0.04279337078332901,
-0.006254629697650671,
-0.011822039261460304,
-0.03671983256936073,
0.015388153493404388,
0.0034755682572722435,
-0.011914907023310661,
0.0572064146399498,
-0.012304950505495071,
-0.018099885433912277,
-0.05631488561630249,
0.022139625623822212,
0.02897467650473118,
0.030646292492747307,
0.0328565388917923,
0.030980616807937622,
0.035048216581344604,
-0.010735489428043365,
-0.061032555997371674,
0.004422817379236221,
-0.0029021110385656357,
-0.04695383459329605,
0.02641153149306774,
0.05672350153326988,
0.10824642330408096,
-0.015833918005228043,
-0.0595095269382,
-0.005079855211079121,
-0.04357345774769783,
0.02758166380226612,
0.07689433544874191,
0.015508881770074368,
0.004861616529524326,
0.027655957266688347,
-0.057280708104372025,
-0.04873689264059067,
0.03458387777209282,
-0.013094325549900532,
0.006184978876262903,
0.0268015768378973,
-0.02771167829632759,
0.03911581262946129,
-0.019855083897709846,
0.08142627030611038,
-0.0076012094505131245,
0.004218508489429951,
0.048551157116889954,
-0.016131093725562096,
0.005298093892633915,
-0.039301548153162,
0.011608444154262543,
0.015638895332813263,
-0.01950218714773655,
-0.0013593487674370408,
0.049591273069381714,
0.009365692734718323,
0.007926246151328087,
0.013827978633344173,
-0.009012795984745026,
0.00801911298185587,
-0.008618108928203583,
-0.009170670993626118,
0.041678957641124725,
-0.031184924766421318,
-0.003823821432888508,
-0.009059229865670204,
-0.01987365633249283,
0.02093234658241272,
-0.027488796040415764,
0.03874434530735016,
-0.01281572226434946,
0.06534161418676376,
0.03915296122431755,
-0.021953890100121498,
0.02977333776652813,
0.012202796526253223,
0.00493591045960784,
-0.03904151916503906,
-0.05869229510426521,
0.02966189756989479,
-0.0034848549403250217,
0.013753685168921947,
0.06058679148554802,
-0.026188651099801064,
-0.06225840747356415,
0.002595648169517517,
0.04572798311710358,
-0.02821316383779049,
-0.03997019678354263,
0.08112909644842148,
0.005664920900017023,
0.0007377166184596717,
-0.027247339487075806,
0.034138113260269165,
0.030497705563902855,
-0.022529669106006622,
0.04836542159318924,
0.019669348374009132,
0.03761135786771774,
0.04249619320034981,
-0.013215052895247936,
0.005883159581571817,
0.05245159566402435,
0.007415474392473698,
-0.008237351663410664,
-0.0033803789410740137,
0.020746611058712006,
0.04955412819981575,
0.0575035884976387,
-0.032967980951070786,
0.0089385025203228,
0.021563846617937088,
0.001246746862307191,
0.03096204251050949,
0.0027442362625151873,
0.03196501359343529,
0.0116270175203681,
0.07652286440134048,
-0.01007612980902195,
-0.0093378322198987,
-0.003970087971538305,
-0.00469213305041194,
-0.004657307639718056,
-0.051188595592975616,
-0.07529701292514801,
0.009054586291313171,
-0.006073538213968277,
0.004682846367359161,
0.1063147783279419,
-0.03742562606930733,
-0.01774698868393898,
0.034008096903562546,
0.00444835564121604,
-0.004550510086119175,
0.02758166380226612,
0.025947194546461105,
0.018164893612265587,
0.02652297355234623,
0.0023890177253633738,
-0.04624804109334946,
-0.04754818603396416,
0.0020976457744836807,
-0.020839478820562363,
0.0002353612071601674,
0.04086172208189964,
0.03372949734330177,
0.009333189576864243,
-0.004199935123324394,
0.011952054686844349,
-0.0013976567424833775,
0.06708752363920212,
-0.012462825514376163,
-0.01664186641573906,
-0.007582635618746281,
-0.07667145133018494,
0.007884454913437366,
0.057540737092494965,
-0.010103990323841572,
-0.07741439342498779,
0.00239133951254189,
0.0653044655919075,
-0.037258461117744446,
-0.01880567893385887,
0.01268570777028799,
-0.01800701953470707,
-0.015388153493404388,
0.04071313515305519,
0.005446682218462229,
0.050259921699762344,
-0.007276172749698162,
0.0484025701880455,
0.03671983256936073,
0.02639295905828476,
0.028436044231057167,
0.0994054302573204,
0.10646336525678635,
0.05631488561630249,
0.030869174748659134,
0.01651185192167759,
-0.0216009933501482,
0.07444263249635696,
0.004908050410449505,
0.029587602242827415,
0.005149506032466888,
-0.025817180052399635,
-0.05126288905739784,
0.0071136546321213245,
-0.010271151550114155,
-0.029884779825806618,
0.06597311049699783,
0.019836509600281715,
-0.04004449024796486,
0.022919712588191032,
0.055609092116355896,
0.04543080925941467,
0.03486248105764389,
0.02797170728445053,
0.06515587866306305,
-0.0013419361785054207,
-0.01976221613585949,
0.03671983256936073,
-0.03915296122431755,
-0.01839706301689148,
0.055460505187511444,
-0.012230657041072845,
0.054568976163864136,
-0.0020105824805796146,
-0.022158198058605194,
-0.017394093796610832,
0.008042329922318459,
-0.043610602617263794,
-0.033339451998472214,
-0.03948728367686272,
0.011998487636446953,
0.06671605259180069,
0.009751093573868275,
0.00276513141579926,
-0.006013174075633287,
-0.06567593663930893,
0.053640298545360565,
-0.015611035749316216,
-0.01837848871946335,
0.007698720321059227,
0.08417515456676483,
-0.021173803135752678,
-0.009992549195885658,
-0.013567949645221233,
0.01731051132082939,
-0.02589147351682186,
0.017124777659773827,
0.007856595329940319,
0.0010377948638051748,
-0.029829058796167374,
-0.008627396076917648,
0.023179741576313972,
-0.08699832111597061,
0.014060148037970066,
-0.006946492940187454,
0.07629998028278351,
-0.01651185192167759,
-0.002021030057221651,
0.043090544641017914,
0.02147097885608673,
-0.07514842599630356,
0.02676442824304104,
0.03177927806973457,
-0.029884779825806618,
-0.07087651640176773,
-0.02210247702896595,
0.042459044605493546,
-0.019019275903701782,
0.026485826820135117,
-0.011719885282218456,
0.007276172749698162,
0.022975433617830276,
-0.018573511391878128,
0.003025160636752844,
-0.011116246692836285,
-0.008399870246648788,
-0.025259975343942642,
0.015889639034867287,
-0.03592117130756378,
0.0266529880464077,
-0.0588037371635437,
0.027804546058177948,
0.014598779380321503,
0.01753339357674122,
-0.010754062794148922,
0.010549753904342651,
0.04034166410565376,
0.00007099289359757677,
0.004306732676923275,
-0.0035057500936090946,
-0.00510307215154171,
0.05401176959276199,
-0.019576480612158775,
0.010763349942862988,
-0.02667156234383583,
0.05048280209302902,
0.030014794319868088,
-0.024164138361811638,
0.07202807813882828,
-0.003712380537763238,
-0.025780033320188522,
-0.014078721404075623,
-0.005005561280995607,
0.09613649547100067,
0.004218508489429951,
-0.06192408502101898,
0.011385561898350716,
-0.012602127157151699,
-0.1303117573261261,
-0.004750175401568413,
-0.004889476578682661,
0.009546784684062004,
-0.007875168696045876,
-0.03822428360581398,
-0.008966362103819847,
0.06857340037822723,
0.05245159566402435,
0.0008590248762629926,
-0.002117380267009139,
-0.019427891820669174,
-0.040118783712387085,
0.010939798317849636,
0.05033421516418457,
0.03729560971260071,
0.03137065842747688,
0.009583931416273117,
0.019223583862185478,
0.01729193888604641,
-0.038410019129514694,
0.002642081817612052,
-0.014041573740541935,
0.05653776600956917,
0.023049727082252502,
-0.0351039357483387,
0.023328330367803574,
0.027600236237049103,
-0.05575767904520035,
0.02524140104651451,
-0.026987310498952866,
0.007981966249644756,
-0.004081529099494219,
-0.0117013119161129,
0.052080124616622925,
-0.04171610623598099,
0.02392268180847168,
0.007081151008605957,
0.0054884725250303745,
0.0024633118882775307,
0.022343933582305908,
-0.002326332265511155,
0.004908050410449505,
-0.0390043742954731,
0.010289724916219711,
0.013493655249476433,
0.0019629879388958216,
-0.022808270528912544,
-0.0248513575643301,
0.001873602857813239,
-0.05846941098570824,
0.022845419123768806,
-0.0028579989448189735,
0.04119604825973511,
0.019427891820669174,
0.003385022282600403,
-0.009453916922211647,
-0.012564980424940586,
-0.05315738916397095,
-0.011506290175020695,
0.02407127059996128,
-0.018907833844423294,
-0.07704292237758636,
0.01926073059439659,
0.019093569368124008,
0.026040062308311462,
0.008845634758472443,
-0.05393747612833977,
-0.03967301920056343,
0.043090544641017914,
-0.002948544919490814,
-0.052340153604745865,
-0.006458938587456942,
0.0041581448167562485,
0.007294746581465006,
-0.012267803773283958,
-0.038558609783649445,
-0.04238475114107132,
-0.05382603406906128,
0.030256249010562897,
0.0015009718481451273,
-0.015295285731554031,
0.05765217915177345,
0.009463204070925713,
-0.019149290397763252,
-0.021396685391664505,
-0.04394492506980896,
0.04216187074780464,
0.01579677127301693,
-0.05627773702144623,
0.03421240672469139,
0.021285243332386017,
0.030720587819814682,
0.022715404629707336,
-0.029866205528378487,
-0.05594341456890106,
0.06344711035490036,
-0.05958382412791252,
0.0031458884477615356,
0.03679412603378296,
-0.005808865651488304,
-0.048179686069488525,
-0.027804546058177948,
0.004002591595053673,
0.0002865834685508162,
-0.029216133058071136,
0.031927864998579025,
-0.09086161851882935,
0.012416391633450985,
0.001660007517784834,
0.0403045192360878,
0.021823875606060028,
-0.05126288905739784,
0.02223249338567257,
0.05434609204530716,
-0.0126764215528965,
0.08959861844778061,
0.02784169279038906,
0.011617731302976608,
-0.0712108388543129,
-0.0248513575643301,
-0.005274876952171326,
-0.022808270528912544,
-0.06073538213968277,
-0.07421974837779999,
-0.006036391016095877,
-0.0497027151286602,
0.005585983395576477,
-0.06879628449678421,
-0.006166405510157347,
-0.0046619512140750885,
-0.04153037071228027,
-0.049888450652360916,
0.010456886142492294,
-0.004504076205193996,
-0.04732530564069748,
-0.059769559651613235,
-0.04654521867632866,
0.020969493314623833,
0.018554937094449997,
0.04394492506980896,
-0.039338696748018265,
0.028120296075940132,
0.02210247702896595,
-0.02888180874288082,
0.03807569667696953,
0.003050699131563306,
-0.06979925185441971,
-0.03083202801644802,
-0.02808314748108387,
0.03549397736787796,
-0.0673104003071785,
0.02158241905272007,
-0.02585432678461075,
0.03293083608150482,
-0.009732519276440144,
-0.05776361748576164,
-0.05965811759233475,
-0.02875179424881935,
-0.00491269351914525,
-0.04725101217627525,
0.0069882832467556,
0.004413530696183443,
-0.021953890100121498,
-0.07477695494890213,
-0.018183467909693718,
0.022195344790816307,
0.0907130241394043,
-0.10059413313865662,
-0.03421240672469139,
-0.01750553399324417,
0.011051238514482975,
-0.01638183742761612,
-0.01878710649907589,
0.018183467909693718,
-0.03982160612940788,
-0.017979158088564873,
-0.04788251221179962,
-0.008910642005503178,
0.027637384831905365,
-0.011171966791152954,
0.003259651130065322,
-0.025074239820241928,
0.03506678715348244,
0.038149990141391754,
0.00594352325424552,
-0.034416716545820236,
0.013772258535027504,
0.003338588634505868,
-0.07161945849657059,
0.031389232724905014,
0.034936774522066116,
0.005014847964048386,
0.025835754349827766,
-0.013307920657098293,
-0.01989223062992096,
0.02197246253490448,
0.016019653528928757,
0.031537819653749466,
-0.03592117130756378,
-0.060772527009248734,
-0.03941299021244049,
0.031909290701150894,
-0.027488796040415764,
-0.043387722223997116,
0.01755196787416935,
0.040118783712387085,
-0.0015636574244126678,
0.07466551661491394,
-0.019149290397763252,
0.016456130892038345,
-0.025798605754971504,
0.03120349906384945,
0.007647642865777016,
0.03718416765332222,
-0.0006355623481795192,
0.07254813611507416,
-0.021396685391664505,
0.011264834553003311,
-0.038038551807403564,
-0.04903407022356987,
-0.04004449024796486,
-0.005014847964048386,
-0.042979102581739426,
0.02769310399889946,
-0.0002871638862416148,
0.017644835636019707,
0.025798605754971504,
-0.0053584580309689045,
-0.03848431259393692
] |
725,007 | tf_keras.src.engine.base_layer | compute_output_signature | Compute the output tensor signature of the layer based on the inputs.
Unlike a TensorShape object, a TensorSpec object contains both shape
and dtype information for a tensor. This method allows layers to provide
output dtype information if it is different from the input dtype.
For any layer that doesn't implement this function,
the framework will fall back to use `compute_output_shape`, and will
assume that the output dtype matches the input dtype.
Args:
input_signature: Single TensorSpec or nested structure of TensorSpec
objects, describing a candidate input for the layer.
Returns:
Single TensorSpec or nested structure of TensorSpec objects,
describing how the layer would transform the provided input.
Raises:
TypeError: If input_signature contains a non-TensorSpec object.
| @doc_controls.for_subclass_implementers
def compute_output_signature(self, input_signature):
"""Compute the output tensor signature of the layer based on the inputs.
Unlike a TensorShape object, a TensorSpec object contains both shape
and dtype information for a tensor. This method allows layers to provide
output dtype information if it is different from the input dtype.
For any layer that doesn't implement this function,
the framework will fall back to use `compute_output_shape`, and will
assume that the output dtype matches the input dtype.
Args:
input_signature: Single TensorSpec or nested structure of TensorSpec
objects, describing a candidate input for the layer.
Returns:
Single TensorSpec or nested structure of TensorSpec objects,
describing how the layer would transform the provided input.
Raises:
TypeError: If input_signature contains a non-TensorSpec object.
"""
def check_type_return_shape(s):
if not isinstance(s, tf.TensorSpec):
raise TypeError(
"Only TensorSpec signature types are supported. "
f"Received: {s}."
)
return s.shape
input_shape = tf.nest.map_structure(
check_type_return_shape, input_signature
)
output_shape = self.compute_output_shape(input_shape)
try:
dtype = self.output.dtype
except AttributeError:
dtype = self._compute_dtype
if dtype is None:
input_dtypes = [s.dtype for s in tf.nest.flatten(input_signature)]
# Default behavior when self.dtype is None, is to use the first
# input's dtype.
dtype = input_dtypes[0]
return tf.nest.map_structure(
lambda s: tf.TensorSpec(dtype=dtype, shape=s), output_shape
)
| (self, input_signature) | [
-0.03019217774271965,
-0.08763620257377625,
0.0249748844653368,
0.022769635543227196,
-0.028363436460494995,
-0.016360072419047356,
-0.06328883022069931,
0.05009320005774498,
0.03049696795642376,
0.008184518665075302,
0.04206107556819916,
0.024275658652186394,
-0.017184799537062645,
-0.024437017738819122,
0.02244691550731659,
0.03071211464703083,
0.038511164486408234,
-0.015284341759979725,
-0.002687085885554552,
-0.012998414225876331,
0.02244691550731659,
0.01372453197836876,
0.013903820887207985,
-0.01959623023867607,
-0.03566047549247742,
-0.003256326774135232,
0.0358039066195488,
-0.04277822747826576,
-0.03591148182749748,
-0.052746668457984924,
-0.05880661681294441,
-0.021604260429739952,
0.03926417604088783,
0.06024092435836792,
0.02020581066608429,
0.003312354441732168,
0.009215427562594414,
0.05328453332185745,
0.004421702120453119,
0.011456533335149288,
-0.012953591533005238,
-0.03288150578737259,
-0.02631954662501812,
-0.03228985518217087,
0.04048333689570427,
0.07207396626472473,
-0.036646563559770584,
-0.0008499394170939922,
-0.0685599073767662,
-0.02676776796579361,
0.03259464353322983,
-0.032236065715551376,
0.006803997326642275,
-0.0004224484437145293,
-0.037829868495464325,
-0.02155047468841076,
0.08985938131809235,
-0.04302923381328583,
-0.02221384085714817,
0.04657914489507675,
-0.009860865771770477,
0.04288580268621445,
0.011106920428574085,
-0.008919601328670979,
-0.028955087065696716,
-0.03316836804151535,
-0.014271361753344536,
-0.04159492626786232,
-0.0022915308363735676,
0.07953236252069473,
-0.011859931983053684,
-0.06368326395750046,
0.027789711952209473,
0.003780745668336749,
0.03531982749700546,
-0.03487160801887512,
0.01676347106695175,
0.006880194880068302,
0.05493398755788803,
-0.05719302222132683,
-0.03689756616950035,
0.0024136709980666637,
0.006373704876750708,
-0.04629228264093399,
0.04030404984951019,
-0.008489308878779411,
-0.014656832441687584,
0.03919246047735214,
-0.03635970130562782,
-0.01372453197836876,
-0.0051545435562729836,
0.04568270221352577,
0.004009338561445475,
0.022984782233834267,
0.02146082930266857,
-0.007377720437943935,
-0.06805790215730667,
-0.051168929785490036,
-0.04184592887759209,
0.0051545435562729836,
-0.013330097310245037,
0.08993109315633774,
0.0004552246246021241,
0.05561528354883194,
0.01968587376177311,
-0.055651139467954636,
-0.01676347106695175,
-0.014854049310088158,
-0.0439615324139595,
0.016073212027549744,
0.04959119111299515,
-0.015122982673346996,
0.02355850487947464,
-0.018592214211821556,
0.04109291732311249,
-0.06884676963090897,
0.012828090228140354,
-0.01835017465054989,
-0.031572699546813965,
-0.023684006184339523,
0.03646727651357651,
0.03944346308708191,
0.013222524896264076,
-0.0038793543353676796,
-0.07275526225566864,
0.010040154680609703,
0.022339344024658203,
0.03384966403245926,
-0.003630591556429863,
-0.037973299622535706,
-0.0027632834389805794,
0.01945279911160469,
-0.011725465767085552,
0.10979625582695007,
0.06838062405586243,
0.01438790000975132,
0.06404183804988861,
-0.017991598695516586,
-0.03739957511425018,
0.03598319739103317,
0.05851975828409195,
-0.00728807644918561,
0.04310094937682152,
-0.008704455569386482,
0.0032047813292592764,
0.00842655822634697,
0.021944908425211906,
-0.02251863107085228,
0.020474743098020554,
-0.03270221874117851,
-0.03220020979642868,
-0.013204596005380154,
0.046112995594739914,
0.03540947288274765,
-0.004013820551335812,
0.023594362661242485,
0.003724718000739813,
-0.058699045330286026,
-0.027341492474079132,
0.005374171771109104,
-0.03490746393799782,
-0.037901584059000015,
0.01909422129392624,
-0.0447145439684391,
0.009529181756079197,
0.025405175983905792,
0.05134821683168411,
0.0061988988891243935,
-0.015194698236882687,
-0.011160707101225853,
-0.010748343542218208,
0.01743580400943756,
0.03300700709223747,
-0.0019150249427184463,
0.03442338481545448,
0.04955533146858215,
0.03085554577410221,
0.004054160322993994,
-0.05253152176737785,
0.009753292426466942,
0.08469587564468384,
-0.01773162931203842,
-0.05948791280388832,
0.03519432619214058,
-0.0018332245526835322,
0.026731910184025764,
-0.036718279123306274,
0.028345506638288498,
0.033742088824510574,
-0.010999348014593124,
-0.002781212329864502,
0.03341937065124512,
0.015535346232354641,
0.021371185779571533,
0.05701373517513275,
-0.01952451467514038,
-0.06293025612831116,
0.08476758748292923,
0.0701017901301384,
0.00534727843478322,
0.008749277330935001,
-0.04033990576863289,
0.04593370482325554,
0.052603237330913544,
-0.04227622225880623,
-0.010936596430838108,
0.06809376180171967,
0.002449528779834509,
-0.053105246275663376,
-0.043351951986551285,
-0.06361155211925507,
-0.017346158623695374,
0.006615744438022375,
-0.004370156675577164,
0.035373616963624954,
-0.04033990576863289,
-0.03808087110519409,
0.01487197820097208,
-0.0327918604016304,
-0.04955533146858215,
0.07759605348110199,
0.03661070391535759,
0.0313037671148777,
-0.006615744438022375,
0.028237933292984962,
-0.022249698638916016,
0.021783549338579178,
-0.022088339552283287,
0.028793727979063988,
-0.03442338481545448,
-0.030299751088023186,
-0.04048333689570427,
-0.008063498884439468,
0.029851529747247696,
0.018152957782149315,
0.004092259332537651,
-0.022913066670298576,
-0.044248394668102264,
0.0521729439496994,
-0.025512749329209328,
-0.04055505245923996,
-0.01050630398094654,
-0.006378187332302332,
-0.020456815138459206,
-0.08749277144670486,
-0.03040732443332672,
0.026480907574295998,
0.046184711158275604,
0.011044169776141644,
0.018377067521214485,
-0.027305634692311287,
-0.02565618045628071,
-0.0050245593301951885,
-0.009394715540111065,
0.059380341321229935,
-0.0027767301071435213,
0.000651601527351886,
-0.04668671637773514,
0.062141384929418564,
0.03331179916858673,
0.027305634692311287,
0.03612662851810455,
0.03528397157788277,
0.040519192814826965,
0.00017662715981714427,
-0.08734934031963348,
0.028220005333423615,
-0.007516669109463692,
-0.047224581241607666,
0.021944908425211906,
-0.0003316836664453149,
0.05920105427503586,
-0.03592940792441368,
-0.07289869338274002,
0.028220005333423615,
-0.06102979555726051,
0.05977477505803108,
0.04094948619604111,
0.02504660002887249,
0.02698291465640068,
0.04084191471338272,
-0.06465142220258713,
-0.027825569733977318,
0.05023662745952606,
0.010855916887521744,
0.009112336672842503,
0.012137829326093197,
-0.018430855125188828,
0.010353908874094486,
-0.037686437368392944,
0.033957235515117645,
0.026480907574295998,
0.028973016887903214,
-0.0005843683611601591,
-0.03926417604088783,
-0.005078346002846956,
-0.04442768171429634,
-0.06203380972146988,
0.0279690008610487,
-0.01945279911160469,
-0.017785416916012764,
0.08935737609863281,
0.05346382036805153,
0.0013491457793861628,
0.00021220471535343677,
0.0055131204426288605,
0.016118032857775688,
-0.02325371466577053,
-0.028722012415528297,
0.010730414651334286,
-0.010748343542218208,
0.04776244983077049,
-0.044606972485780716,
-0.024401159957051277,
0.001587823498994112,
0.013948642648756504,
0.04288580268621445,
0.00017354563169647008,
0.042598940432071686,
0.07436885684728622,
-0.011088991537690163,
0.0499497689306736,
-0.030102534219622612,
0.006239238660782576,
0.02787935733795166,
-0.08742105960845947,
0.007225325331091881,
-0.012935662642121315,
-0.009672612883150578,
0.030819687992334366,
-0.020600244402885437,
-0.03639556095004082,
0.05941619724035263,
0.031285837292671204,
-0.06529685854911804,
-0.02235727198421955,
0.05299767106771469,
-0.00389504199847579,
-0.04941190406680107,
0.0012045943876728415,
0.028004858642816544,
0.004253618884831667,
0.027395278215408325,
0.04704529419541359,
-0.02674984000623226,
0.03549911826848984,
0.00790662132203579,
-0.03743543103337288,
0.04830031469464302,
0.021335327997803688,
0.011582035571336746,
0.02355850487947464,
0.01795574091374874,
0.024329446256160736,
0.05583043023943901,
0.021855264902114868,
0.004325334448367357,
-0.03286357596516609,
-0.03904902935028076,
-0.016386965289711952,
0.07544458657503128,
-0.010040154680609703,
0.007292558439075947,
-0.03487160801887512,
0.0424913689494133,
0.014522366225719452,
-0.010093940421938896,
0.002592959441244602,
-0.012397797778248787,
0.03322215378284454,
-0.025960970669984818,
-0.05253152176737785,
0.001003455137833953,
-0.00034793169470503926,
0.0009995332220569253,
0.033437300473451614,
-0.0641494169831276,
0.0061316657811403275,
-0.03496125340461731,
0.00285068666562438,
-0.017785416916012764,
0.05023662745952606,
0.0004916426260024309,
0.044176679104566574,
0.013204596005380154,
0.014181718230247498,
-0.03897731378674507,
-0.0715361014008522,
0.02780764177441597,
0.012021292001008987,
0.016494538635015488,
0.021729761734604836,
-0.019363155588507652,
-0.0018646001117303967,
-0.04030404984951019,
-0.06511757522821426,
-0.03436959907412529,
0.05263909325003624,
-0.016440752893686295,
-0.05396582931280136,
-0.027162203565239906,
-0.058340467512607574,
-0.011133814230561256,
0.005176954437047243,
0.031214121729135513,
-0.042455509305000305,
0.03508675470948219,
-0.006234756670892239,
-0.002814828883856535,
-0.0029403308872133493,
-0.017417874187231064,
-0.03557083383202553,
-0.010344944894313812,
0.03847530484199524,
0.06357569247484207,
0.02825586311519146,
0.015472594648599625,
-0.005992717109620571,
-0.011492391116917133,
0.010264265350997448,
0.009475396014750004,
0.10936596989631653,
0.08103838562965393,
0.0469377227127552,
0.038654595613479614,
0.012424690648913383,
-0.008341396227478981,
0.07996265590190887,
0.01594770886003971,
0.030891403555870056,
-0.00887477956712246,
-0.003041180782020092,
-0.06142422929406166,
0.02183733507990837,
-0.004244654439389706,
-0.029062660411000252,
0.04890989512205124,
-0.007660099770873785,
-0.01968587376177311,
0.05414511635899544,
-0.014746476896107197,
0.04851546138525009,
-0.015920815989375114,
-0.005853768438100815,
0.02415015734732151,
-0.011913718655705452,
-0.021891122683882713,
0.03564254939556122,
-0.022088339552283287,
-0.042742371559143066,
0.0730421245098114,
-0.026373334228992462,
0.08225754648447037,
-0.0649024248123169,
-0.013670746237039566,
-0.014692690223455429,
0.0343158133327961,
-0.05895004794001579,
-0.037901584059000015,
-0.02192698046565056,
0.011626857332885265,
0.04948361590504646,
0.029492953792214394,
-0.023737793788313866,
0.026552623137831688,
-0.08060809969902039,
0.04518069326877594,
-0.03747129067778587,
-0.022930994629859924,
0.04890989512205124,
0.12191615998744965,
-0.04485797509551048,
0.016575219109654427,
0.026642266660928726,
-0.018681857734918594,
-0.02386329509317875,
0.0234688613563776,
0.025512749329209328,
-0.06719731539487839,
-0.003780745668336749,
-0.017641985788941383,
-0.01909422129392624,
-0.0730779767036438,
0.049913909286260605,
0.012460548430681229,
0.0484437458217144,
-0.010201513767242432,
-0.000029624618036905304,
0.04518069326877594,
0.0030658328905701637,
-0.06271510571241379,
0.018897004425525665,
0.04094948619604111,
-0.007929032668471336,
-0.0016617800574749708,
-0.026480907574295998,
0.07261183112859726,
0.010461482219398022,
-0.04406910762190819,
-0.005069381557404995,
-0.022536560893058777,
0.012137829326093197,
-0.0014880943344905972,
-0.006705388892441988,
0.03958689421415329,
0.00842655822634697,
-0.01968587376177311,
0.0023486788850277662,
0.004408255219459534,
0.013518350198864937,
-0.07218153774738312,
0.01803641952574253,
0.026480907574295998,
0.03897731378674507,
-0.04005304351449013,
0.01923765242099762,
0.006548511330038309,
-0.00069194141542539,
-0.000678494805470109,
-0.00434326333925128,
0.0036395560018718243,
0.03592940792441368,
-0.04137977957725525,
-0.039694465696811676,
0.051921941339969635,
0.007960407994687557,
0.025548607110977173,
-0.0372919999063015,
0.03747129067778587,
0.009771221317350864,
-0.03747129067778587,
0.008955459110438824,
-0.0038659076672047377,
0.04496554657816887,
-0.061316657811403275,
-0.008229340426623821,
-0.026642266660928726,
-0.008798581548035145,
-0.07146438211202621,
-0.03508675470948219,
0.005289009772241116,
0.00676813954487443,
-0.000828088610433042,
-0.018224673345685005,
0.03585769236087799,
0.07687889784574509,
0.04568270221352577,
-0.04195350036025047,
0.0021615466102957726,
0.009923616424202919,
-0.05360725149512291,
0.006987768225371838,
0.037758152931928635,
-0.02617611736059189,
-0.003012046217918396,
0.04600542038679123,
0.033885519951581955,
0.01648557558655739,
-0.014047252014279366,
0.016978617757558823,
0.00852964911609888,
0.03750714659690857,
0.05701373517513275,
-0.028273791074752808,
-0.01833224669098854,
0.022715849801898003,
-0.04005304351449013,
-0.005073863547295332,
-0.07931721955537796,
0.008749277330935001,
-0.0003667009586934,
-0.014352042227983475,
0.057802602648735046,
-0.01163582131266594,
-0.01297152042388916,
0.029313664883375168,
0.018520498648285866,
0.023146141320466995,
-0.010084976442158222,
-0.03908488526940346,
0.03019217774271965,
-0.009591933339834213,
0.00013936877076048404,
-0.025817539542913437,
-0.015257448889315128,
-0.029134375974535942,
-0.037543006241321564,
-0.01050630398094654,
-0.07766776531934738,
0.03099897690117359,
-0.05787431821227074,
-0.013778318651020527,
0.0028955088928341866,
-0.010461482219398022,
-0.010560090653598309,
-0.014791298657655716,
-0.028166217729449272,
-0.005172472447156906,
0.044176679104566574,
-0.05941619724035263,
-0.04152321070432663,
0.012998414225876331,
0.020169952884316444,
0.010999348014593124,
0.015759456902742386,
-0.0357680507004261,
-0.031267907470464706,
0.013643852435052395,
0.004493417218327522,
-0.055579423904418945,
0.027305634692311287,
0.038654595613479614,
-0.001133439247496426,
-0.02832757867872715,
-0.037005141377449036,
-0.02445494756102562,
-0.008440004661679268,
0.0160373542457819,
0.014540295116603374,
-0.013455599546432495,
0.032164350152015686,
0.034853678196668625,
-0.025925112888216972,
-0.04005304351449013,
-0.06956392526626587,
0.02377365157008171,
-0.03998132795095444,
-0.02951088175177574,
0.06992250680923462,
0.00010659259714884683,
0.03300700709223747,
-0.03625212982296944,
0.0009379028342664242,
-0.03184163197875023,
0.07938893139362335,
-0.0686316266655922,
-0.03094518929719925,
-0.0028103466611355543,
-0.01914800889790058,
0.003787468886002898,
0.014585116878151894,
-0.025853397324681282,
-0.02943916618824005,
0.0029201610013842583,
0.01203922089189291,
-0.05561528354883194,
0.009089925326406956,
-0.01070352178066969,
0.03840358927845955,
-0.0017066021682694554,
-0.03019217774271965,
0.07444057613611221,
0.05489812791347504,
-0.030245965346693993,
0.058340467512607574,
0.0058672153390944,
0.007870763540267944,
-0.029941175132989883,
-0.011088991537690163,
0.0006174246664159,
0.016225606203079224,
-0.05600971728563309,
-0.05349968001246452,
0.021747691556811333,
-0.03200299292802811,
-0.03571426495909691,
-0.05651172623038292,
-0.009654683992266655,
-0.03940760716795921,
0.0028820622246712446,
0.01826053112745285,
0.008933047764003277,
0.010524232871830463,
-0.015114017762243748,
-0.009161640889942646,
-0.09595518559217453,
0.060778792947530746,
0.021335327997803688,
0.02327164262533188,
-0.005109721329063177,
0.01587599329650402,
0.04284994304180145,
-0.01032701600342989,
0.03897731378674507,
-0.01574152708053589,
-0.03711271286010742,
-0.013007378205657005,
-0.041559066623449326,
-0.008045569993555546,
-0.05898590758442879,
0.04457111284136772,
-0.06217724084854126,
0.04202521592378616,
-0.01449547242373228,
-0.04951947554945946,
0.00842655822634697,
-0.020080309361219406,
-0.0006398357218131423,
-0.022411059588193893,
-0.02519002929329872,
0.017462696880102158,
0.009085442870855331,
-0.05697787553071976,
0.025297602638602257,
0.010479411110281944,
0.04654328525066376,
-0.0611373670399189,
-0.042455509305000305,
0.030210107564926147,
-0.020080309361219406,
-0.012388832867145538,
-0.009591933339834213,
0.02527967467904091,
-0.021514616906642914,
0.03144719824194908,
-0.02474180795252323,
-0.029708098620176315,
0.04191764444112778,
0.05697787553071976,
0.006615744438022375,
-0.05077449604868889,
-0.011761323548853397,
0.039766181260347366,
0.020779533311724663,
-0.07967579364776611,
0.026194045320153236,
-0.027377350255846977,
-0.013070129789412022,
0.01804538443684578,
0.04596956446766853,
0.007068447768688202,
0.05210122838616371,
-0.02370193600654602,
-0.06006163731217384,
-0.00738220289349556,
-0.0034826784394681454,
-0.0012595015577971935,
-0.05127650126814842,
-0.0039398642256855965,
-0.027700068429112434,
-0.0012023532763123512,
0.037686437368392944,
-0.04381810128688812,
0.02423980087041855,
0.08211412280797958,
-0.0021212066058069468,
0.010667663998901844,
-0.007189467549324036,
0.0182784590870142,
-0.035140540450811386,
0.024365302175283432,
0.008547578006982803,
-0.07594659924507141,
-0.08225754648447037,
0.08311813324689865,
-0.017023440450429916,
0.01930936798453331,
-0.023504719138145447,
-0.027825569733977318,
-0.022393129765987396,
0.010147727094590664,
-0.04288580268621445,
0.044320110231637955,
-0.013285275548696518,
-0.02639126218855381,
0.0536789670586586,
-0.03601905331015587,
0.00043449440272524953
] |
725,009 | tf_keras.src.engine.training | evaluate | Returns the loss value & metrics values for the model in test mode.
Computation is done in batches (see the `batch_size` arg.)
Args:
x: Input data. It could be:
- A Numpy array (or array-like), or a list of arrays
(in case the model has multiple inputs).
- A TensorFlow tensor, or a list of tensors
(in case the model has multiple inputs).
- A dict mapping input names to the corresponding array/tensors,
if the model has named inputs.
- A `tf.data` dataset. Should return a tuple
of either `(inputs, targets)` or
`(inputs, targets, sample_weights)`.
- A generator or `keras.utils.Sequence` returning `(inputs,
targets)` or `(inputs, targets, sample_weights)`.
A more detailed description of unpacking behavior for iterator
types (Dataset, generator, Sequence) is given in the `Unpacking
behavior for iterator-like inputs` section of `Model.fit`.
y: Target data. Like the input data `x`, it could be either Numpy
array(s) or TensorFlow tensor(s). It should be consistent with `x`
(you cannot have Numpy inputs and tensor targets, or inversely).
If `x` is a dataset, generator or `keras.utils.Sequence` instance,
`y` should not be specified (since targets will be obtained from
the iterator/dataset).
batch_size: Integer or `None`. Number of samples per batch of
computation. If unspecified, `batch_size` will default to 32. Do
not specify the `batch_size` if your data is in the form of a
dataset, generators, or `keras.utils.Sequence` instances (since
they generate batches).
verbose: `"auto"`, 0, 1, or 2. Verbosity mode.
0 = silent, 1 = progress bar, 2 = single line.
`"auto"` becomes 1 for most cases, and to 2 when used with
`ParameterServerStrategy`. Note that the progress bar is not
particularly useful when logged to a file, so `verbose=2` is
recommended when not running interactively (e.g. in a production
environment). Defaults to 'auto'.
sample_weight: Optional Numpy array of weights for the test samples,
used for weighting the loss function. You can either pass a flat
(1D) Numpy array with the same length as the input samples
(1:1 mapping between weights and samples), or in the case of
temporal data, you can pass a 2D array with shape `(samples,
sequence_length)`, to apply a different weight to every
timestep of every sample. This argument is not supported when
`x` is a dataset, instead pass sample weights as the third
element of `x`.
steps: Integer or `None`. Total number of steps (batches of samples)
before declaring the evaluation round finished. Ignored with the
default value of `None`. If x is a `tf.data` dataset and `steps`
is None, 'evaluate' will run until the dataset is exhausted. This
argument is not supported with array inputs.
callbacks: List of `keras.callbacks.Callback` instances. List of
callbacks to apply during evaluation. See
[callbacks](https://www.tensorflow.org/api_docs/python/tf/tf_keras/callbacks).
max_queue_size: Integer. Used for generator or
`keras.utils.Sequence` input only. Maximum size for the generator
queue. If unspecified, `max_queue_size` will default to 10.
workers: Integer. Used for generator or `keras.utils.Sequence` input
only. Maximum number of processes to spin up when using
process-based threading. If unspecified, `workers` will default to
1.
use_multiprocessing: Boolean. Used for generator or
`keras.utils.Sequence` input only. If `True`, use process-based
threading. If unspecified, `use_multiprocessing` will default to
`False`. Note that because this implementation relies on
multiprocessing, you should not pass non-pickleable arguments to
the generator as they can't be passed easily to children
processes.
return_dict: If `True`, loss and metric results are returned as a
dict, with each key being the name of the metric. If `False`, they
are returned as a list.
**kwargs: Unused at this time.
See the discussion of `Unpacking behavior for iterator-like inputs` for
`Model.fit`.
Returns:
Scalar test loss (if the model has a single output and no metrics)
or list of scalars (if the model has multiple outputs
and/or metrics). The attribute `model.metrics_names` will give you
the display labels for the scalar outputs.
Raises:
RuntimeError: If `model.evaluate` is wrapped in a `tf.function`.
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Training-related part of the TF-Keras engine."""
import copy
import itertools
import json
import warnings
import weakref
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow.python.distribute import distribute_utils
from tensorflow.python.distribute import input_ops
from tensorflow.python.eager import context
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util.tf_export import keras_export
from tensorflow.tools.docs import doc_controls
from tf_keras.src import backend
from tf_keras.src import callbacks as callbacks_module
from tf_keras.src import optimizers
from tf_keras.src.dtensor import dtensor_api
from tf_keras.src.dtensor import layout_map as layout_map_lib
from tf_keras.src.engine import base_layer
from tf_keras.src.engine import base_layer_utils
from tf_keras.src.engine import compile_utils
from tf_keras.src.engine import data_adapter
from tf_keras.src.engine import input_layer as input_layer_module
from tf_keras.src.engine import training_utils
from tf_keras.src.metrics import base_metric
from tf_keras.src.mixed_precision import loss_scale_optimizer as lso
from tf_keras.src.optimizers import optimizer
from tf_keras.src.optimizers import optimizer_v1
from tf_keras.src.saving import pickle_utils
from tf_keras.src.saving import saving_api
from tf_keras.src.saving import saving_lib
from tf_keras.src.saving import serialization_lib
from tf_keras.src.saving.legacy import serialization
from tf_keras.src.saving.legacy.saved_model import json_utils
from tf_keras.src.saving.legacy.saved_model import model_serialization
from tf_keras.src.utils import generic_utils
from tf_keras.src.utils import io_utils
from tf_keras.src.utils import layer_utils
from tf_keras.src.utils import steps_per_execution_tuning
from tf_keras.src.utils import tf_inspect
from tf_keras.src.utils import tf_utils
from tf_keras.src.utils import traceback_utils
from tf_keras.src.utils import version_utils
from tf_keras.src.utils.mode_keys import ModeKeys
try:
import h5py
except ImportError:
h5py = None
@keras_export("keras.Model", "keras.models.Model")
class Model(base_layer.Layer, version_utils.ModelVersionSelector):
"""A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
"""
_TF_MODULE_IGNORED_PROPERTIES = frozenset(
itertools.chain(
(
"_train_counter",
"_test_counter",
"_predict_counter",
"_steps_per_execution",
"_compiled_trainable_state",
),
base_layer.Layer._TF_MODULE_IGNORED_PROPERTIES,
)
)
_SCALAR_UPRANKING_ON = False
def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, *args, **kwargs):
self._is_model_for_instrumentation = True
# Special case for Subclassed Functional Model, which we couldn't detect
# when __new__ is called. We only realize it is a functional model when
# it calls super.__init__ with input and output tensor.
from tf_keras.src.engine import functional
if is_functional_model_init_params(args, kwargs) and not isinstance(
self, functional.Functional
):
# Filter the kwargs for multiple inheritance.
support | (self, x=None, y=None, batch_size=None, verbose='auto', sample_weight=None, steps=None, callbacks=None, max_queue_size=10, workers=1, use_multiprocessing=False, return_dict=False, **kwargs) | [
0.024942101910710335,
-0.08747810125350952,
-0.039559438824653625,
0.04965827986598015,
-0.00267297332175076,
-0.002055916003882885,
-0.08698106557130814,
0.00023880961816757917,
-0.009330695495009422,
-0.024399882182478905,
-0.0193052776157856,
0.00976560078561306,
-0.02758542262017727,
0.0508330874145031,
0.05711380019783974,
0.03992091864347458,
0.0009750069002620876,
-0.007670148275792599,
0.0006516519351862371,
-0.01573566533625126,
0.027517644688487053,
-0.04254164919257164,
-0.045297931879758835,
0.03549279272556305,
0.018458059057593346,
0.05205308273434639,
-0.007122280541807413,
0.006365432403981686,
0.020231569185853004,
-0.025913579389452934,
-0.055577509105205536,
0.0008465121500194073,
-0.036102790385484695,
-0.009940693154931068,
0.0195876844227314,
-0.03497316688299179,
0.012990678660571575,
0.0643433928489685,
-0.03809092938899994,
-0.03759389370679855,
0.03578649461269379,
-0.04482349008321762,
0.0034397055860608816,
-0.01901157572865486,
-0.004577802028506994,
0.017656026408076286,
-0.006467098370194435,
0.00822366401553154,
0.019632868468761444,
-0.04857384040951729,
-0.042812757194042206,
-0.010499857366085052,
-0.00792431365698576,
0.03325613588094711,
-0.027020610868930817,
-0.048121992498636246,
-0.016978250816464424,
-0.04631459340453148,
0.011013835668563843,
-0.007551537826657295,
-0.009714768268167973,
-0.02469358593225479,
0.0017396212788298726,
0.017689915373921394,
-0.03264613822102547,
-0.001828579232096672,
-0.043874602764844894,
-0.047127921134233475,
0.002551538636907935,
0.044529784470796585,
-0.049613095819950104,
-0.04412312060594559,
0.05657158046960831,
0.029166897758841515,
0.009562268853187561,
0.00042643313645385206,
0.0006703613325953484,
-0.0407116562128067,
0.03809092938899994,
-0.04577237367630005,
-0.041728317737579346,
-0.002704037819057703,
-0.029392821714282036,
-0.03397909551858902,
0.011601240374147892,
-0.0288957878947258,
-0.007399038411676884,
-0.006003952585160732,
-0.013837896287441254,
-0.005823212675750256,
-0.009980229660868645,
0.04211239144206047,
0.023428406566381454,
0.04739903286099434,
0.0663767158985138,
-0.017938433215022087,
-0.05521602928638458,
-0.03777463361620903,
-0.006969781126827002,
-0.02489691786468029,
0.02153063751757145,
0.032962433993816376,
-0.024332106113433838,
0.010240043513476849,
-0.042270537465810776,
-0.04554644599556923,
-0.07229594886302948,
-0.017486583441495895,
-0.05598417669534683,
-0.028376160189509392,
-0.02760801464319229,
-0.009646990336477757,
-0.00895227212458849,
0.013386046513915062,
-0.027449868619441986,
0.03210391849279404,
0.00016882586351130158,
-0.01169161032885313,
-0.030364299193024635,
-0.002346794353798032,
0.0004087827692274004,
0.05598417669534683,
-0.04943235591053963,
-0.03897203505039215,
-0.017181584611535072,
0.012968085706233978,
0.05051679536700249,
0.02158711850643158,
0.04599829763174057,
-0.040440548211336136,
-0.039017219096422195,
-0.01762213744223118,
-0.003445353824645281,
0.060773782432079315,
0.013352158479392529,
-0.0038689628709107637,
-0.0021166333463042974,
0.02693024091422558,
-0.05982489883899689,
0.062174517661333084,
0.06700930744409561,
0.0056820097379386425,
0.05982489883899689,
0.02663653902709484,
-0.037616487592458725,
-0.021564526483416557,
-0.004877152387052774,
-0.06366562098264694,
-0.009488843381404877,
-0.04197683557868004,
-0.002817000262439251,
0.008528662845492363,
0.017576953396201134,
0.00912171509116888,
-0.005975712090730667,
0.03232984617352486,
-0.03594464063644409,
-0.06465969234704971,
0.028715047985315323,
-0.009675230830907822,
-0.06090933829545975,
-0.04645014554262161,
0.0234735906124115,
-0.03797796741127968,
0.013815304264426231,
0.003911323845386505,
-0.04132165387272835,
-0.023315442726016045,
0.005354418884962797,
0.02063823491334915,
0.04195424169301987,
0.01710250973701477,
0.03463427722454071,
0.01981360837817192,
0.010996891185641289,
0.04468793421983719,
0.052007898688316345,
-0.01174809131771326,
0.02041230909526348,
0.047444216907024384,
0.045297931879758835,
-0.01741880550980568,
-0.0903247520327568,
-0.03689352795481682,
-0.05404122173786163,
0.02235526219010353,
-0.049929387867450714,
0.025393951684236526,
0.041389431804418564,
-0.0006410617497749627,
0.03007059544324875,
0.02824060432612896,
0.021146565675735474,
0.03910759091377258,
-0.04351312294602394,
-0.00703755859285593,
-0.000034352047805441543,
0.047896064817905426,
0.04988420382142067,
0.020084718242287636,
-0.011454389430582523,
0.0097938422113657,
0.0386105552315712,
-0.0004306692280806601,
-0.07297372072935104,
0.006173396483063698,
0.008319682441651821,
-0.018401578068733215,
-0.049070876091718674,
-0.07694999873638153,
-0.036102790385484695,
0.013939562253654003,
0.04622422158718109,
0.07288335263729095,
0.07193446904420853,
-0.06371080130338669,
-0.029731709510087967,
0.02009601518511772,
-0.00408923951908946,
-0.030160965397953987,
0.033504653722047806,
0.027766162529587746,
-0.040011290460824966,
0.0010392542462795973,
0.028940971940755844,
-0.037277597934007645,
0.04358090087771416,
0.004942106083035469,
-0.017226768657565117,
-0.055577509105205536,
-0.02336062863469124,
-0.07550407946109772,
0.004027110058814287,
0.02500987984240055,
0.016910474747419357,
0.010166618041694164,
-0.04263201728463173,
-0.03596723452210426,
0.04035017639398575,
-0.0697655901312828,
-0.013081048615276814,
-0.06520190834999084,
-0.011155039072036743,
-0.031448736786842346,
-0.024851731956005096,
0.04272238910198212,
0.02575543150305748,
0.06953966617584229,
-0.037842411547899246,
-0.0508330874145031,
0.03343687579035759,
0.027110980823636055,
-0.01276475377380848,
0.08291441947221756,
-0.0244450680911541,
-0.031855400651693344,
0.03160688653588295,
-0.07803443819284439,
0.056752320379018784,
0.01471900288015604,
-0.012041794136166573,
0.02835356816649437,
-0.02575543150305748,
0.0883817970752716,
0.022287486121058464,
-0.05078790336847305,
0.02084156684577465,
0.020457495003938675,
0.04297090321779251,
-0.015216037631034851,
0.13374750316143036,
0.05639084056019783,
-0.05987008288502693,
0.005868397653102875,
-0.03655463829636574,
-0.019655460491776466,
0.0053939553909003735,
-0.0009594745351932943,
0.024919509887695312,
-0.0006982489721849561,
0.004004517570137978,
-0.0903247520327568,
-0.052233822643756866,
-0.00010237219248665497,
0.0026037837378680706,
-0.026049133390188217,
0.005441964603960514,
-0.04925161600112915,
-0.0025374183896929026,
-0.02033323608338833,
0.02007342129945755,
-0.017893247306346893,
0.08860772103071213,
0.001763625768944621,
-0.02238915115594864,
-0.02184693142771721,
-0.019971756264567375,
0.010364302434027195,
0.019836200401186943,
-0.03323354572057724,
0.007421630900353193,
0.05987008288502693,
0.07789888232946396,
0.002852301113307476,
0.007596722804009914,
-0.08241738379001617,
0.002584015252068639,
0.00960745383054018,
-0.023563960567116737,
-0.021621007472276688,
-0.013013270683586597,
-0.0007141343085095286,
0.0352894589304924,
-0.0333465076982975,
-0.009754304774105549,
-0.059237491339445114,
0.006410617381334305,
-0.018661390990018845,
0.056436024606227875,
0.057746388018131256,
0.01767861843109131,
0.06456931680440903,
0.005693305749446154,
0.003482066560536623,
-0.0017975145019590855,
-0.05539676919579506,
0.10022025555372238,
-0.015182149596512318,
-0.00020509739988483489,
0.018582317978143692,
-0.0026602649595588446,
-0.05715898424386978,
0.03580908849835396,
0.052866414189338684,
-0.08580625057220459,
-0.018751760944724083,
0.009234678000211716,
-0.00001763934596965555,
-0.010104488581418991,
0.0343179814517498,
0.051239755004644394,
0.05096864327788353,
-0.050923459231853485,
0.021282119676470757,
-0.009053938090801239,
-0.02783394046127796,
0.02683987095952034,
0.03183281049132347,
0.007415982894599438,
0.00456085754558444,
-0.005450436845421791,
-0.009624398313462734,
-0.031109850853681564,
0.0372324138879776,
0.016469920054078102,
0.031222812831401825,
-0.034159835427999496,
-0.008799772709608078,
0.020773788914084435,
-0.03754870966076851,
0.036419082432985306,
0.006687375251203775,
-0.033369097858667374,
0.026772093027830124,
0.0814233124256134,
-0.009341992437839508,
0.0031488274689763784,
-0.01567918434739113,
0.01687658578157425,
0.015498444437980652,
0.001998022897168994,
-0.07184410095214844,
0.07329002022743225,
0.014956224709749222,
-0.040530916303396225,
0.023338036611676216,
0.012843826785683632,
0.030477261170744896,
0.007365149911493063,
0.01113809458911419,
0.04468793421983719,
0.05304715409874916,
0.0032137809321284294,
0.048438284546136856,
0.05684268847107887,
-0.024648400023579597,
-0.032194290310144424,
-0.02272803895175457,
0.02369951643049717,
-0.012425865978002548,
0.013442528434097767,
-0.018175654113292694,
-0.014481781981885433,
0.021293416619300842,
-0.011098558083176613,
0.026139503344893456,
0.009234678000211716,
0.0488901361823082,
-0.025597283616662025,
-0.04699236527085304,
-0.03700648993253708,
-0.037819817662239075,
0.06551820039749146,
0.05566788092255592,
0.00900875311344862,
-0.011268001049757004,
0.024286920204758644,
0.01790454424917698,
-0.045727185904979706,
0.03409205749630928,
-0.005399603862315416,
0.01796102523803711,
-0.06949447840452194,
0.05273085832595825,
-0.00613950751721859,
0.06881670653820038,
0.012730864807963371,
-0.023631738498806953,
0.03492797911167145,
0.004202201962471008,
0.019745830446481705,
0.04098276421427727,
0.03330131992697716,
0.015385481528937817,
-0.02070601098239422,
0.022886186838150024,
-0.04059869423508644,
0.11278168112039566,
-0.007421630900353193,
0.017509175464510918,
-0.003312622895464301,
-0.05652639642357826,
-0.015871219336986542,
-0.03628353029489517,
-0.05173678696155548,
-0.00011155039101140574,
0.07148262113332748,
-0.009726064279675484,
0.002937022829428315,
0.020118607208132744,
-0.025710247457027435,
-0.019395647570490837,
0.0534990020096302,
0.025371359661221504,
-0.028647270053625107,
-0.027223942801356316,
-0.02369951643049717,
0.08621291816234589,
-0.03605760633945465,
-0.0042389146983623505,
0.04635977745056152,
-0.017317138612270355,
0.04236090928316116,
0.026681723073124886,
-0.017260657623410225,
-0.021688785403966904,
0.03833944350481033,
-0.010256987996399403,
-0.021598415449261665,
-0.00512566976249218,
-0.001314600114710629,
0.056436024606227875,
0.020231569185853004,
0.0032589659094810486,
-0.012798641808331013,
0.022253597155213356,
0.09158992767333984,
-0.007969498634338379,
-0.0543123297393322,
0.017802877351641655,
0.08006776124238968,
0.009567917324602604,
0.041931651532649994,
0.0059192306362092495,
-0.06773226708173752,
0.01710250973701477,
0.013555490411818027,
-0.020751196891069412,
0.014459189958870411,
-0.03452131524682045,
0.04220275953412056,
-0.05566788092255592,
-0.019937867298722267,
0.026320243254303932,
0.00881106872111559,
0.05941823124885559,
0.02781134843826294,
0.0010526685509830713,
0.010053655132651329,
0.008912734687328339,
-0.05467380955815315,
0.009336343966424465,
0.06872633844614029,
0.0027802875265479088,
-0.057972315698862076,
-0.030341705307364464,
0.03061281517148018,
-0.0028240603860467672,
0.009991525672376156,
0.0010378422448411584,
0.042270537465810776,
-0.0018794122152030468,
-0.03797796741127968,
-0.03275910019874573,
0.010036710649728775,
0.0420897975564003,
-0.04019203037023544,
0.0050352998077869415,
-0.021462859585881233,
-0.019632868468761444,
-0.03531205281615257,
-0.02510024979710579,
0.043242014944553375,
-0.011940128169953823,
-0.01293419674038887,
-0.010889577679336071,
0.05182715877890587,
0.03275910019874573,
-0.02650098316371441,
0.008398756384849548,
0.010929114185273647,
0.02469358593225479,
0.018458059057593346,
-0.03691611811518669,
0.00862468034029007,
0.05517084524035454,
-0.010595874860882759,
0.00037489403621293604,
0.09642472118139267,
0.012403273954987526,
0.006879411172121763,
-0.00700367009267211,
-0.013397343456745148,
0.053950853645801544,
-0.016537697985768318,
-0.06090933829545975,
0.03160688653588295,
-0.021067490801215172,
-0.06872633844614029,
-0.03117762878537178,
0.019824905321002007,
-0.005408075638115406,
0.022321375086903572,
-0.0008705166401341558,
0.009567917324602604,
0.00010952059528790414,
0.015351592563092709,
-0.001613950589671731,
-0.017079917713999748,
0.008788476698100567,
-0.04834791645407677,
0.0048263194039464,
-0.015193445608019829,
0.028421344235539436,
0.007043207064270973,
-0.0016153625911101699,
-0.006822930183261633,
0.029302451759576797,
-0.020593049004673958,
0.02966393157839775,
-0.011307538487017155,
0.03386613354086876,
0.04477830231189728,
-0.05408640578389168,
0.01955379545688629,
0.046811625361442566,
-0.0387687012553215,
-0.03251058608293533,
-0.08901438862085342,
0.010420783422887325,
-0.011714203283190727,
0.021462859585881233,
0.028285790234804153,
0.005241456441581249,
-0.07161817699670792,
0.002863597357645631,
-0.022795816883444786,
0.014165487140417099,
0.0021265174727886915,
-0.01618751510977745,
-0.007399038411676884,
-0.00021374608331825584,
-0.021519340574741364,
0.012572716921567917,
0.06375598907470703,
-0.042586833238601685,
0.03831685334444046,
0.031109850853681564,
-0.04202201962471008,
-0.02009601518511772,
0.00832532998174429,
0.029686523601412773,
-0.02392544038593769,
-0.05706861615180969,
-0.00673820823431015,
0.02663653902709484,
-0.06533746421337128,
-0.01964416541159153,
0.024603215977549553,
0.018153060227632523,
-0.08969216048717499,
-0.007342557422816753,
0.014470485970377922,
-0.0059361751191318035,
0.016978250816464424,
-0.006630894262343645,
-0.04543348401784897,
0.030386891216039658,
0.011205872520804405,
-0.00041125380084849894,
-0.014041229151189327,
-0.005077660549432039,
-0.0412764698266983,
-0.03865573927760124,
0.006015249062329531,
-0.011205872520804405,
-0.02124823071062565,
0.04785088077187538,
0.056752320379018784,
-0.049839019775390625,
0.07396779209375381,
0.015826035290956497,
-0.039446476846933365,
0.009025697596371174,
-0.06687375158071518,
0.017452694475650787,
0.0176447294652462,
-0.004077943507581949,
0.04511719197034836,
0.015317704528570175,
0.04240609332919121,
0.024761362001299858,
0.02478395588696003,
0.0037192876916378736,
0.08485736697912216,
-0.01818694919347763,
-0.001933069434016943,
0.0032985026482492685,
0.0011183279566466808,
-0.0001623834832571447,
-0.017893247306346893,
0.016865288838744164,
0.018717873841524124,
-0.006625245790928602,
0.009313751943409443,
-0.05313752219080925,
0.005554927047342062,
0.005501269828528166,
0.07821518182754517,
-0.011928831227123737,
-0.05639084056019783,
0.020739899948239326,
0.03698389604687691,
-0.05941823124885559,
0.021621007472276688,
-0.01855972595512867,
0.00811070203781128,
-0.04857384040951729,
0.04830273240804672,
-0.011510870419442654,
-0.0037672966718673706,
-0.03551538661122322,
0.061632297933101654,
0.023835070431232452,
-0.02101100981235504,
0.013035863637924194,
-0.027630608528852463,
-0.004467663820832968,
0.002903134096413851,
0.029505783692002296,
-0.054718997329473495,
-0.05833379551768303,
-0.01872916892170906,
0.0016492513241246343,
-0.007404686417430639,
-0.02564246952533722,
0.025348767638206482,
0.021654896438121796,
-0.010522449389100075,
-0.030386891216039658,
-0.005975712090730667,
0.031222812831401825,
-0.03264613822102547,
0.02552950754761696,
0.04412312060594559,
-0.045388299971818924,
-0.06881670653820038,
0.007331260945647955,
-0.006789041217416525,
-0.036306120455265045,
0.01055068988353014,
-0.008404403924942017,
0.023021740838885307,
-0.035108719021081924,
-0.0705789178609848,
-0.07541371136903763,
-0.021406378597021103,
0.018921205773949623,
-0.04534311592578888,
-0.020999714732170105,
0.0003337686648592353,
0.008748939260840416,
-0.0322168804705143,
-0.009517083875834942,
0.05462862551212311,
0.08648402988910675,
-0.10500986874103546,
-0.034679461270570755,
-0.018424170091748238,
-0.08860772103071213,
0.0412764698266983,
0.026049133390188217,
0.007421630900353193,
-0.0277209784835577,
-0.008551254868507385,
-0.030974294990301132,
-0.006241173483431339,
0.02467099204659462,
-0.01822083815932274,
0.012188645079731941,
0.037616487592458725,
0.04391979053616524,
0.030251335352659225,
-0.0032533176708966494,
-0.037277597934007645,
-0.00027269835118204355,
-0.016628067940473557,
-0.010522449389100075,
0.06316858530044556,
0.00665913475677371,
0.0504264235496521,
0.001736797159537673,
-0.023541368544101715,
-0.008799772709608078,
-0.012301607988774776,
-0.006495339330285788,
0.0234735906124115,
-0.01229031104594469,
-0.011804573237895966,
-0.03158429265022278,
0.05304715409874916,
-0.017147695645689964,
-0.09271955490112305,
0.0025458906311541796,
-0.010070599615573883,
0.08291441947221756,
0.033820949494838715,
-0.0420897975564003,
0.023948032408952713,
-0.008201071992516518,
0.008619032800197601,
-0.021316008642315865,
-0.008314033970236778,
0.026862462982535362,
0.059373047202825546,
-0.0023044333793222904,
-0.02063823491334915,
-0.025800617411732674,
-0.051465678960084915,
-0.08634847402572632,
0.01157864835113287,
-0.07265742868185043,
0.027969494462013245,
-0.009392824955284595,
0.05313752219080925,
0.0368257500231266,
0.013736230321228504,
0.019519906491041183
] |
725,010 | tf_keras.src.engine.training | evaluate_generator | Evaluates the model on a data generator.
DEPRECATED:
`Model.evaluate` now supports generators, so there is no longer any
need to use this endpoint.
| @doc_controls.do_not_generate_docs
def evaluate_generator(
self,
generator,
steps=None,
callbacks=None,
max_queue_size=10,
workers=1,
use_multiprocessing=False,
verbose=0,
):
"""Evaluates the model on a data generator.
DEPRECATED:
`Model.evaluate` now supports generators, so there is no longer any
need to use this endpoint.
"""
warnings.warn(
"`Model.evaluate_generator` is deprecated and "
"will be removed in a future version. "
"Please use `Model.evaluate`, which supports generators.",
stacklevel=2,
)
self._check_call_args("evaluate_generator")
return self.evaluate(
generator,
steps=steps,
max_queue_size=max_queue_size,
workers=workers,
use_multiprocessing=use_multiprocessing,
verbose=verbose,
callbacks=callbacks,
)
| (self, generator, steps=None, callbacks=None, max_queue_size=10, workers=1, use_multiprocessing=False, verbose=0) | [
0.0750487744808197,
-0.0401727631688118,
-0.04251158609986305,
0.041238993406295776,
0.016844701021909714,
0.0402415506541729,
-0.03711165115237236,
0.011332984082400799,
0.013087103143334389,
0.029699640348553658,
0.06359540671110153,
0.03406774252653122,
0.04901214689016342,
0.028392650187015533,
0.03009517677128315,
0.036286186426877975,
0.040447916835546494,
-0.02101503312587738,
0.0702335461974144,
0.03172891587018967,
-0.05417132005095482,
-0.01325047668069601,
-0.013542830012738705,
-0.01205526851117611,
-0.011719921603798866,
0.04822107404470444,
0.033844176679849625,
0.0029751232359558344,
-0.00538273761048913,
0.030421925708651543,
-0.03374099358916283,
-0.04209885373711586,
0.013981359079480171,
0.012932327575981617,
0.05107581615447998,
-0.05358661338686943,
-0.05544391646981239,
0.07174690067768097,
-0.050903841853141785,
-0.05258917436003685,
-0.0200347900390625,
-0.03718044236302376,
-0.011401772499084473,
0.011375976726412773,
-0.024815622717142105,
-0.00929511059075594,
-0.05960564687848091,
0.010447326116263866,
-0.0351683646440506,
-0.0749799832701683,
0.02646655961871147,
-0.0018723499961197376,
0.02863341197371483,
0.030335938557982445,
0.007433508988469839,
0.02199527621269226,
-0.009372497908771038,
0.03604542464017868,
0.04048231244087219,
0.002652674913406372,
-0.0034716937225311995,
0.012768954038619995,
0.00950147770345211,
-0.0025408929213881493,
0.07092143595218658,
0.04244279861450195,
-0.005795471370220184,
0.019381294026970863,
0.014170529320836067,
0.05424010753631592,
-0.05630377680063248,
0.0069218906573951244,
0.026380572468042374,
0.0029901708476245403,
0.0002955776290036738,
-0.0015456023393198848,
-0.08399134129285812,
-0.04804909974336624,
0.059949591755867004,
-0.02213285304605961,
0.049837615340948105,
0.012622777372598648,
0.0008491139160469174,
-0.07738760113716125,
-0.00903715193271637,
-0.030817462131381035,
0.024918807670474052,
-0.016767313703894615,
-0.0027537087444216013,
0.06689728051424026,
0.004049951210618019,
0.015658091753721237,
-0.019811226055026054,
-0.030387530103325844,
-0.03004358522593975,
-0.003826386760920286,
-0.03559829667210579,
0.019794028252363205,
0.04110141471028328,
-0.009424089454114437,
0.060327932238578796,
0.05754197761416435,
0.04746439307928085,
0.042408403009176254,
0.04443768039345741,
-0.07456725090742111,
-0.024798426777124405,
-0.02908053994178772,
0.05368979647755623,
-0.050353530794382095,
-0.01960485801100731,
0.045366331934928894,
-0.021634133532643318,
-0.02161693572998047,
-0.04423131048679352,
0.012330424040555954,
-0.008839383721351624,
-0.009406892582774162,
-0.024368494749069214,
0.0029622253496199846,
-0.05055989697575569,
-0.026208600029349327,
-0.06765396147966385,
0.017661569640040398,
-0.041858091950416565,
-0.002689219079911709,
0.03848743066191673,
0.014385494403541088,
0.04048231244087219,
-0.038831375539302826,
0.03157414123415947,
-0.021358978003263474,
0.04371539503335953,
0.05080065876245499,
0.0018787989392876625,
0.05668211728334427,
0.01807430386543274,
0.018366657197475433,
-0.0023732197005301714,
0.019742436707019806,
-0.025778669863939285,
-0.008203085511922836,
0.03255438432097435,
0.027807943522930145,
0.04316508397459984,
-0.036320578306913376,
-0.032279226928949356,
0.06720682978630066,
0.048393044620752335,
0.001318813650868833,
0.013267673552036285,
0.07270994782447815,
0.13723400235176086,
-0.009690647013485432,
-0.03196967765688896,
0.07711244374513626,
0.00979383010417223,
0.02361181564629078,
-0.00275800796225667,
-0.03307029977440834,
-0.0017584181623533368,
0.030817462131381035,
-0.018899770453572273,
0.012940926477313042,
0.03191808611154556,
0.03790272772312164,
0.004097243305295706,
0.010455924086272717,
-0.017395012080669403,
0.01653514988720417,
0.0015574254794046283,
-0.029820021241903305,
-0.005421431269496679,
-0.01224443782120943,
-0.031298983842134476,
0.06063748151063919,
0.026896489784121513,
0.046432558447122574,
0.02916652522981167,
0.027945522218942642,
-0.0452287532389164,
0.004370249807834625,
-0.0753927156329155,
-0.0601215660572052,
-0.031195800751447678,
-0.0019228669116273522,
-0.008392254821956158,
-0.012158451601862907,
-0.0041810800321400166,
-0.022855138406157494,
-0.0501127690076828,
-0.014987397938966751,
0.04756757616996765,
0.039312899112701416,
-0.021874895319342613,
-0.009355301037430763,
-0.02153095044195652,
0.04677650332450867,
0.019725238904356956,
0.04168612137436867,
-0.011066426523029804,
-0.028702201321721077,
0.015709683299064636,
-0.014574664644896984,
-0.07553029805421829,
0.04629497975111008,
-0.017223039641976357,
0.0064188712276518345,
0.01051611453294754,
-0.03718044236302376,
0.016294388100504875,
0.018727798014879227,
0.0026999672409147024,
0.08708684146404266,
0.04646695405244827,
0.06724122166633606,
0.024368494749069214,
-0.02147935889661312,
-0.029407287016510963,
0.00014993846707511693,
0.04409373551607132,
-0.028702201321721077,
0.02048191800713539,
-0.05778273940086365,
0.09458484500646591,
-0.024746835231781006,
-0.009914210997521877,
-0.06847942620515823,
-0.05805789679288864,
-0.0552719421684742,
-0.01205526851117611,
-0.023216279223561287,
0.04055110365152359,
0.02206406369805336,
0.031230196356773376,
-0.06404253840446472,
0.03066268563270569,
0.05358661338686943,
0.003185789566487074,
0.07780033349990845,
-0.04646695405244827,
0.022150050848722458,
-0.012975321151316166,
-0.05915851891040802,
0.014265114441514015,
0.02053350955247879,
0.00827617384493351,
-0.005417131818830967,
-0.017334822565317154,
-0.02658693864941597,
0.03014676831662655,
-0.045331936329603195,
-0.017369216307997704,
-0.002422661753371358,
0.01076547522097826,
0.05871139094233513,
0.023646211251616478,
-0.02560669742524624,
0.05197007209062576,
0.03461805358529091,
0.005559009034186602,
0.054308898746967316,
-0.08873777836561203,
0.07559908181428909,
-0.008925369940698147,
-0.048840172588825226,
-0.010860059410333633,
-0.00047131197061389685,
0.02454046718776226,
0.04450646787881851,
0.05795471370220184,
0.0699927806854248,
-0.040860652923583984,
-0.0031599935609847307,
0.004396045580506325,
-0.0024656548630446196,
-0.00551601592451334,
0.026397770270705223,
-0.05121339485049248,
-0.027704760432243347,
0.04220203682780266,
-0.024781228974461555,
-0.011118018068373203,
0.010077585466206074,
-0.016836101189255714,
-0.003527584718540311,
-0.03920971602201462,
0.028478635475039482,
0.018848178908228874,
-0.042270828038454056,
0.05248598754405975,
0.004965704400092363,
0.03607981652021408,
-0.05362100899219513,
0.007136856205761433,
-0.03296711668372154,
-0.024230917915701866,
-0.005288152489811182,
0.0025172466412186623,
0.03272635489702225,
0.0451943576335907,
-0.02146216109395027,
0.015296949073672295,
0.050009585916996,
-0.01100623607635498,
0.0010248483158648014,
0.02202966995537281,
-0.017257435247302055,
-0.02502199076116085,
0.014729439280927181,
-0.0400351844727993,
-0.019742436707019806,
0.058298658579587936,
0.0034931902773678303,
-0.027292026206851006,
-0.055306337773799896,
0.01948447711765766,
0.008873778395354748,
0.04347463324666023,
0.0016434116987511516,
-0.015950443223118782,
0.05375858396291733,
0.047292422503232956,
0.024746835231781006,
-0.060327932238578796,
0.03393016383051872,
-0.033293865621089935,
0.002392566530033946,
-0.08454165607690811,
-0.0010243108263239264,
-0.0029987695161253214,
-0.07621818780899048,
0.06868579238653183,
0.07731880992650986,
0.001425221562385559,
0.026363374665379524,
0.02399015612900257,
-0.0026118315290659666,
0.01853862963616848,
-0.005352642387151718,
0.0225627850741148,
0.028702201321721077,
-0.0022377914283424616,
0.006629537791013718,
-0.024746835231781006,
0.020137973129749298,
0.023285068571567535,
-0.040860652923583984,
0.04151414707303047,
-0.007007876876741648,
-0.027326421812176704,
-0.0037081558257341385,
-0.004914112389087677,
0.011926288716495037,
0.0024592059198766947,
-0.02662133425474167,
0.028719397261738777,
-0.027223236858844757,
-0.0028826880734413862,
-0.03614860773086548,
-0.04158293828368187,
0.01859022118151188,
-0.0026569741312414408,
0.016371777281165123,
-0.004295011516660452,
-0.04811789095401764,
-0.01759278029203415,
0.018641812726855278,
0.020413128659129143,
0.0032137350644916296,
-0.022339221090078354,
0.014127535745501518,
0.003611421212553978,
0.027704760432243347,
0.010954644531011581,
-0.028306663036346436,
-0.0653151348233223,
0.017231639474630356,
-0.005434329155832529,
0.03659573569893837,
-0.008405152708292007,
0.0351339690387249,
0.00825037807226181,
-0.007080965209752321,
0.06658773124217987,
-0.034876011312007904,
-0.06411132961511612,
0.04622619226574898,
-0.0499751903116703,
-0.07697486132383347,
0.021307386457920074,
-0.04127338528633118,
-0.0651775524020195,
0.003963964991271496,
-0.01798831671476364,
-0.05207325518131256,
0.034342896193265915,
0.035288743674755096,
-0.06287312507629395,
-0.0850919634103775,
-0.02913213148713112,
0.03552950546145439,
-0.0752551406621933,
0.025331540033221245,
-0.015640893951058388,
-0.039416082203388214,
0.054343290627002716,
0.033861372619867325,
0.0013833033153787255,
0.04323387145996094,
0.010713882744312286,
-0.03625179082155228,
-0.04629497975111008,
0.018710602074861526,
-0.03945047780871391,
-0.0027451100759208202,
-0.03207286074757576,
-0.0199831984937191,
0.03845303878188133,
0.036389369517564774,
0.06810108572244644,
0.0502159520983696,
0.06362980604171753,
0.01027535367757082,
0.03294992074370384,
0.014316705986857414,
0.013035510666668415,
-0.04261477291584015,
-0.03669891878962517,
0.009983000345528126,
-0.020430326461791992,
-0.10572865605354309,
-0.03422251716256142,
-0.006281293462961912,
-0.012072465382516384,
-0.01051611453294754,
-0.03399895131587982,
0.004540072288364172,
-0.01552051305770874,
-0.017764752730727196,
0.028375452384352684,
-0.03212445229291916,
0.04770515486598015,
-0.0060448311269283295,
-0.025675484910607338,
-0.020653890445828438,
0.013233279809355736,
-0.027893930673599243,
-0.01074827741831541,
-0.022803544998168945,
-0.0013220381224527955,
0.028255071491003036,
0.05176370590925217,
-0.02058510109782219,
0.03869380056858063,
0.013284871354699135,
0.004789432510733604,
-0.02197807841002941,
-0.026397770270705223,
0.03896895423531532,
0.03401614725589752,
-0.03143656253814697,
-0.03718044236302376,
-0.0550655759871006,
-0.042855530977249146,
0.04622619226574898,
0.020275551825761795,
0.06961444765329361,
-0.03270915895700455,
-0.011530752293765545,
0.04460965096950531,
-0.027928324416279793,
0.012596981599926949,
-0.01597623899579048,
-0.032795146107673645,
0.01477243285626173,
-0.06576225906610489,
0.010111979208886623,
0.01482402440160513,
-0.040447916835546494,
0.0005016758805140853,
-0.034308500587940216,
0.03556390106678009,
0.006805809214711189,
-0.01853862963616848,
-0.01712845452129841,
-0.002766606630757451,
-0.03656134009361267,
0.0004809854144696146,
0.011651133187115192,
0.004198277369141579,
0.0018454792443662882,
0.05915851891040802,
-0.057885922491550446,
-0.0300607830286026,
-0.005344043485820293,
0.09197086095809937,
0.02452326938509941,
0.029699640348553658,
-0.015864457935094833,
-0.003054660512134433,
0.010068986564874649,
0.04712044820189476,
0.009699245914816856,
0.05475602671504021,
-0.011969282291829586,
0.04959685355424881,
-0.0030847557354718447,
-0.06122218817472458,
0.0005261281621642411,
-0.030232755467295647,
-0.01103203184902668,
0.022786349058151245,
0.010645094327628613,
0.013663210906088352,
-0.0751863494515419,
0.06569347530603409,
-0.010240959003567696,
-0.016810305416584015,
0.019931606948375702,
0.03766196593642235,
-0.01857302337884903,
-0.032743554562330246,
-0.02213285304605961,
-0.005167772062122822,
0.017257435247302055,
-0.030783066526055336,
0.01797112077474594,
0.02498759515583515,
-0.017429407685995102,
0.04244279861450195,
0.016870496794581413,
0.046810898929834366,
0.05964004248380661,
-0.028289467096328735,
-0.02452326938509941,
0.03676770627498627,
0.0016014933353289962,
0.006633836776018143,
0.05124778673052788,
0.027257632464170456,
0.030817462131381035,
-0.004927010275423527,
0.035907845944166183,
0.00300306873396039,
-0.016388973221182823,
0.029768429696559906,
0.038315460085868835,
0.040069580078125,
-0.03405054286122322,
-0.05055989697575569,
-0.0024957500863820314,
0.0174723993986845,
-0.005855661816895008,
0.043921761214733124,
0.04319947585463524,
-0.017764752730727196,
0.056441355496644974,
0.01746380142867565,
-0.00801821518689394,
-0.014729439280927181,
-0.018401050940155983,
-0.024437284097075462,
-0.05197007209062576,
0.08282192796468735,
0.054893601685762405,
-0.003157844068482518,
-0.06902974098920822,
-0.02646655961871147,
-0.04770515486598015,
0.009983000345528126,
0.04144535958766937,
0.04079186171293259,
0.0005339207127690315,
-0.01702527143061161,
0.02859901636838913,
-0.017799148336052895,
-0.0058169676922261715,
-0.01151355542242527,
-0.04395615682005882,
-0.01800551451742649,
-0.018401050940155983,
-0.009449885226786137,
-0.040310341864824295,
-0.016225600615143776,
-0.07807549089193344,
-0.04663892462849617,
0.0450567789375782,
-0.03814348578453064,
0.037868332117795944,
0.04357781633734703,
0.007700066082179546,
-0.11157572269439697,
-0.005055989604443312,
0.009862619452178478,
0.011075025424361229,
-0.0402415506541729,
-0.022408008575439453,
-0.031350575387477875,
-0.019948802888393402,
-0.06645014882087708,
0.048805780708789825,
0.05967443808913231,
-0.02564109116792679,
0.03614860773086548,
-0.018366657197475433,
-0.05210765078663826,
0.004415392410010099,
0.004400345031172037,
-0.004819527734071016,
-0.04619179666042328,
0.030765870586037636,
-0.0030761570669710636,
0.03441168740391731,
-0.01857302337884903,
0.01653514988720417,
-0.056888483464717865,
-0.012089662253856659,
-0.023800985887646675,
-0.012906531803309917,
0.01428231131285429,
-0.035770267248153687,
-0.02111821621656418,
-0.03246839717030525,
-0.045882247388362885,
-0.03656134009361267,
0.007837643846869469,
-0.04701726511120796,
0.008542731404304504,
-0.0112555967643857,
-0.02010357938706875,
-0.029476076364517212,
0.057438794523477554,
-0.029149329289793968,
0.0799327939748764,
-0.060362327843904495,
0.004578766413033009,
0.05307069420814514,
-0.03002638928592205,
-0.0899071916937828,
-0.014101739972829819,
0.04319947585463524,
-0.07587423920631409,
-0.01957046426832676,
-0.03748999163508415,
-0.0070207747630774975,
-0.024764031171798706,
0.06744759529829025,
0.0905262902379036,
0.03748999163508415,
-0.044884808361530304,
0.08350981771945953,
-0.0002797239285428077,
0.003452346660196781,
-0.018676206469535828,
0.010421530343592167,
-0.018383853137493134,
-0.052417200058698654,
0.021771710366010666,
-0.03196967765688896,
-0.030869053676724434,
-0.0066123404540121555,
-0.0015982688637450337,
-0.020172366872429848,
-0.022855138406157494,
0.05754197761416435,
-0.006823006551712751,
0.033293865621089935,
-0.047361209988594055,
0.0035576799418777227,
-0.032795146107673645,
0.015675287693738937,
0.052314016968011856,
-0.07855701446533203,
-0.013147293590009212,
-0.0029600756242871284,
-0.025830261409282684,
-0.05210765078663826,
-0.024351296946406364,
0.01227023359388113,
-0.03217604383826256,
0.03721483796834946,
-0.04921851307153702,
0.04608861356973648,
-0.02815188840031624,
0.011831703595817089,
-0.010464522987604141,
-0.01709406077861786,
0.006388776004314423,
-0.00728303287178278,
-0.020653890445828438,
0.041307780891656876,
0.02356022410094738,
-0.05709484964609146,
-0.04605422168970108,
-0.04268356040120125,
-0.012605579569935799,
-0.03969123959541321,
0.01859022118151188,
-0.003740400541573763,
0.011393174529075623,
0.018280670046806335,
-0.018366657197475433,
0.0006567197851836681,
0.0019948803819715977,
0.028444241732358932,
-0.04254598170518875,
-0.007790351752191782,
-0.038796983659267426,
-0.02916652522981167,
0.04863380640745163,
0.03152254968881607,
-0.007424910087138414,
-0.017713161185383797,
-0.02650095336139202,
-0.04223643243312836,
-0.01798831671476364,
0.042855530977249146,
0.007837643846869469,
0.04546951502561569,
-0.010326945222914219,
-0.00925211701542139,
-0.00825037807226181,
-0.06390495598316193,
-0.08694926649332047,
0.03470403701066971,
-0.03762757033109665,
-0.03196967765688896,
0.06662212312221527,
0.0061867088079452515,
0.06380177289247513,
0.0009764810092747211,
0.01203807070851326,
-0.015933247283101082,
-0.022786349058151245,
-0.02304430678486824,
0.00975943636149168,
-0.022941123694181442,
-0.00128119473811239,
-0.05162612721323967,
-0.0015864457236602902,
0.031333379447460175,
-0.019673647359013557,
-0.013439645990729332,
-0.0003146558301523328,
-0.0034308501053601503,
-0.006685428787022829,
-0.0035383328795433044,
0.01610521972179413,
-0.009346702136099339,
0.03114420920610428,
-0.017833542078733444,
0.017291828989982605,
0.018160289153456688,
0.02799711376428604,
0.021376173943281174,
-0.0022270430345088243,
-0.018693404272198677,
-0.06438647955656052,
-0.02096344158053398,
-0.019278110936284065,
0.055891044437885284,
0.003033163957297802,
-0.017833542078733444,
0.001669207471422851,
0.010894454084336758,
0.05217643827199936,
0.03157414123415947
] |
725,011 | tf_keras.src.engine.training | export | Create a SavedModel artifact for inference (e.g. via TF-Serving).
This method lets you export a model to a lightweight SavedModel artifact
that contains the model's forward pass only (its `call()` method)
and can be served via e.g. TF-Serving. The forward pass is registered
under the name `serve()` (see example below).
The original code of the model (including any custom layers you may
have used) is *no longer* necessary to reload the artifact -- it is
entirely standalone.
Args:
filepath: `str` or `pathlib.Path` object. Path where to save
the artifact.
Example:
```python
# Create the artifact
model.export("path/to/location")
# Later, in a different process / environment...
reloaded_artifact = tf.saved_model.load("path/to/location")
predictions = reloaded_artifact.serve(input_data)
```
If you would like to customize your serving endpoints, you can
use the lower-level `keras.export.ExportArchive` class. The `export()`
method relies on `ExportArchive` internally.
| def export(self, filepath):
"""Create a SavedModel artifact for inference (e.g. via TF-Serving).
This method lets you export a model to a lightweight SavedModel artifact
that contains the model's forward pass only (its `call()` method)
and can be served via e.g. TF-Serving. The forward pass is registered
under the name `serve()` (see example below).
The original code of the model (including any custom layers you may
have used) is *no longer* necessary to reload the artifact -- it is
entirely standalone.
Args:
filepath: `str` or `pathlib.Path` object. Path where to save
the artifact.
Example:
```python
# Create the artifact
model.export("path/to/location")
# Later, in a different process / environment...
reloaded_artifact = tf.saved_model.load("path/to/location")
predictions = reloaded_artifact.serve(input_data)
```
If you would like to customize your serving endpoints, you can
use the lower-level `keras.export.ExportArchive` class. The `export()`
method relies on `ExportArchive` internally.
"""
from tf_keras.src.export import export_lib
export_lib.export_model(self, filepath)
| (self, filepath) | [
0.05151742696762085,
-0.05061424896121025,
-0.10007242113351822,
0.03226161375641823,
0.04664025083184242,
-0.03919804468750954,
-0.056647494435310364,
0.04689314216375351,
-0.005238448269665241,
-0.02581290528178215,
0.020411884412169456,
0.009781447239220142,
-0.019364194944500923,
0.004197532311081886,
0.03984833508729935,
0.027492821216583252,
0.03923416882753372,
0.019093239679932594,
0.0047371829859912395,
0.038909025490283966,
0.054515987634658813,
-0.04609834402799606,
-0.01169619057327509,
0.013574806042015553,
0.028088919818401337,
0.0347905196249485,
-0.0037978750187903643,
-0.03450150415301323,
-0.001149297459051013,
0.01351158320903778,
0.0003875209658872336,
-0.06864173710346222,
-0.011280727572739124,
0.05491338670253754,
0.03619948402047157,
0.04783245176076889,
-0.01272581610828638,
0.09205217659473419,
-0.08056371659040451,
-0.06506513804197311,
0.011578776873648167,
0.03041912615299225,
0.07142353057861328,
-0.016221126541495323,
0.01563405804336071,
-0.003558532102033496,
-0.00970919243991375,
-0.030672017484903336,
0.030401062220335007,
-0.06831658631563187,
-0.027980538085103035,
0.03320092335343361,
-0.011091059073805809,
0.030635889619588852,
0.009546619839966297,
-0.018659714609384537,
0.017169466242194176,
0.014767005108296871,
-0.027492821216583252,
0.022904662415385246,
-0.003077588276937604,
-0.036109164357185364,
0.05820096656680107,
0.026806402951478958,
0.016772065311670303,
0.08583829551935196,
-0.05549142509698868,
-0.0222182460129261,
-0.05180644616484642,
0.030292680487036705,
-0.02709542214870453,
-0.11221117526292801,
0.04165469482541084,
0.022904662415385246,
0.02276015467941761,
-0.020881537348031998,
-0.0004950559232383966,
-0.07413307577371597,
0.00407108711078763,
0.0032153234351426363,
-0.007920894771814346,
-0.05596107617020607,
-0.055997204035520554,
-0.03265901654958725,
-0.04212434962391853,
-0.0514090470969677,
0.024277497082948685,
-0.06260848790407181,
-0.07156804203987122,
0.03804197162389755,
0.025560013949871063,
0.06423421204090118,
-0.02127893827855587,
0.021152492612600327,
0.045917708426713943,
-0.09891635179519653,
-0.009700160473585129,
0.020881537348031998,
-0.01601339504122734,
-0.013502552174031734,
-0.042052093893289566,
-0.010395609773695469,
-0.025830969214439392,
-0.004940398503094912,
-0.007266088854521513,
-0.04927754029631615,
-0.01905711367726326,
-0.0010533345630392432,
-0.04411134496331215,
0.017539769411087036,
-0.009176315739750862,
0.06036859750747681,
-0.04617059975862503,
-0.012915484607219696,
0.0024634255096316338,
0.006489353254437447,
0.011479427106678486,
-0.02487359754741192,
-0.007690583821386099,
-0.03654269129037857,
-0.05780356749892235,
0.039920587092638016,
-0.05126453936100006,
0.01766621507704258,
-0.005988087970763445,
0.011723285540938377,
0.06473999470472336,
0.01410768274217844,
-0.00828216690570116,
-0.04440036416053772,
-0.05317927896976471,
-0.01600436307489872,
-0.02949788235127926,
0.0362536758184433,
-0.008083467371761799,
0.011569744907319546,
0.03578402101993561,
0.0025311638601124287,
-0.029082419350743294,
0.10245682299137115,
0.013096120208501816,
-0.000400504213757813,
0.04461712762713432,
0.045556437224149704,
0.027131548151373863,
-0.03876451775431633,
-0.0558888241648674,
-0.044255856424570084,
0.011732317507266998,
0.0017555574886500835,
0.01331288367509842,
0.016997860744595528,
-0.05635847523808479,
-0.018208123743534088,
0.01693463884294033,
0.025108424946665764,
0.008955037221312523,
0.02700510434806347,
0.005337798036634922,
-0.011958112940192223,
-0.035458873957395554,
0.024747151881456375,
0.07359116524457932,
-0.003644334152340889,
0.028088919818401337,
0.02006867527961731,
-0.02617417648434639,
0.06965329498052597,
0.004800405353307724,
0.003386927768588066,
-0.041763074696063995,
-0.0059158336371183395,
-0.04541192576289177,
-0.008580217137932777,
-0.01785588264465332,
0.02960626408457756,
0.0588151291012764,
0.03683171048760414,
0.01031432393938303,
0.04598996043205261,
-0.005726165603846312,
-0.0464596152305603,
-0.08403193205595016,
0.01916549541056156,
0.0010753495153039694,
0.0007185931317508221,
-0.045845452696084976,
0.04812146723270416,
0.01346642430871725,
-0.0023098846431821585,
0.06997844576835632,
0.061091143637895584,
0.06199432536959648,
0.007916378788650036,
-0.05809258297085762,
-0.11394528299570084,
-0.023988479748368263,
-0.06051310896873474,
0.047326669096946716,
0.03598272055387497,
-0.022597581148147583,
-0.07355503737926483,
0.02691478468477726,
0.012689689174294472,
-0.014279287308454514,
0.0131322480738163,
-0.010350450873374939,
-0.051011648029088974,
-0.06296975910663605,
-0.00298275426030159,
-0.04468938335776329,
0.0009647099068388343,
0.052492864429950714,
0.033255115151405334,
0.07257959991693497,
0.004249465186148882,
-0.05932090803980827,
0.05014459416270256,
0.017783628776669502,
-0.009356952272355556,
0.0022681124974042177,
0.08872847259044647,
-0.06434259563684464,
0.0579119473695755,
0.04169082269072533,
-0.045556437224149704,
0.03607303649187088,
-0.03847549855709076,
-0.027167676016688347,
-0.05328766256570816,
-0.017955232411623,
-0.0072706048376858234,
-0.013737378641963005,
-0.003486277535557747,
0.01336707454174757,
0.0502891018986702,
-0.06539028137922287,
0.0006920622545294464,
0.0253613144159317,
0.0031295211520045996,
0.02265177294611931,
-0.01119040884077549,
-0.022633709013462067,
-0.03144875168800354,
0.036127228289842606,
0.024494260549545288,
-0.0013671898050233722,
0.0026959944516420364,
-0.006489353254437447,
-0.05256511643528938,
0.07998568564653397,
0.013159343041479588,
0.014830227009952068,
0.06983393430709839,
0.03182808682322502,
0.007975085638463497,
-0.01564309000968933,
-0.07073711603879929,
0.028883719816803932,
0.043713945895433426,
-0.020195120945572853,
0.019960293546319008,
0.003840775927528739,
-0.004003348760306835,
0.027510885149240494,
-0.06080212444067001,
-0.0507226288318634,
-0.002725347876548767,
0.07106225937604904,
-0.0014010590966790915,
0.09255795925855637,
0.06452322751283646,
-0.04609834402799606,
0.0067106327041983604,
0.0027976022101938725,
-0.041221167892217636,
-0.03312866762280464,
-0.0003432086668908596,
-0.020122867077589035,
0.03948706015944481,
0.0102691650390625,
-0.07283249497413635,
0.010332387872040272,
-0.02304917201399803,
0.002171020722016692,
-0.03735555335879326,
0.009438238106667995,
0.007257056888192892,
0.04147405922412872,
-0.05437147989869118,
0.03323705121874809,
0.032604824751615524,
0.0345737561583519,
-0.06549866497516632,
-0.03139456361532211,
-0.008250555954873562,
-0.037319429218769073,
-0.01601339504122734,
0.05505789816379547,
0.0545521154999733,
0.026968976482748985,
0.017160434275865555,
0.0861995667219162,
-0.004583642352372408,
0.04143793135881424,
0.01619403064250946,
-0.022507263347506523,
0.026661895215511322,
-0.019743530079722404,
0.003292093751952052,
-0.002944369101896882,
-0.017458483576774597,
0.022868536412715912,
0.009944019839167595,
0.0007310119108296931,
-0.004669444169849157,
0.013782537542283535,
-0.025650331750512123,
0.01776556484401226,
0.011723285540938377,
0.0020445752888917923,
0.040570877492427826,
-0.0023256903514266014,
0.0094833979383111,
0.03448344022035599,
-0.0377168282866478,
0.053504426032304764,
0.023283999413251877,
0.033797021955251694,
0.0005760599742643535,
0.02904629148542881,
0.0019079692428931594,
0.0482659786939621,
0.06455935537815094,
-0.028088919818401337,
-0.040932148694992065,
0.0089776162058115,
-0.011253631673753262,
0.022507263347506523,
0.08583829551935196,
0.02100798301398754,
-0.015525676310062408,
-0.004109472502022982,
0.02332012541592121,
-0.0016347571508958936,
0.04819372296333313,
-0.015137309208512306,
0.02274209074676037,
0.0028924362268298864,
-0.029642391949892044,
-0.03553112968802452,
0.04118504002690315,
-0.03919804468750954,
0.05534691363573074,
-0.004441391211003065,
0.044183600693941116,
0.0010623662965372205,
-0.00901825912296772,
-0.028233429417014122,
-0.08995679765939713,
0.005635847803205252,
0.018289409577846527,
-0.061560798436403275,
-0.00439397431910038,
0.0601518377661705,
-0.01609468087553978,
0.015787599608302116,
-0.008218945004045963,
0.025505824014544487,
0.016419826075434685,
-0.009871765039861202,
-0.024945851415395737,
0.03520598262548447,
0.020520266145467758,
0.004687508102506399,
0.020845411345362663,
-0.04349718242883682,
-0.00027702245279215276,
0.05086713656783104,
0.014875386841595173,
-0.008381516672670841,
0.000034098600735887885,
0.010738818906247616,
0.009230506606400013,
0.07200156897306442,
0.00971822440624237,
0.021983418613672256,
0.0008901975234039128,
-0.025415506213903427,
0.000003505999302433338,
0.030401062220335007,
-0.03486277535557747,
-0.019924167543649673,
0.010901391506195068,
0.06380068510770798,
0.005026200786232948,
-0.03984833508729935,
0.07149578630924225,
-0.007257056888192892,
0.003226613160222769,
-0.02257951721549034,
-0.007424145471304655,
0.016076616942882538,
0.0507226288318634,
-0.03419442102313042,
0.0024634255096316338,
-0.016627557575702667,
-0.014306382276117802,
0.029263054952025414,
-0.042702384293079376,
0.04237724095582962,
-0.04674863442778587,
-0.06990619003772736,
-0.0031769382767379284,
0.02756507508456707,
0.10224005579948425,
0.0162753164768219,
-0.037608444690704346,
0.014929577708244324,
-0.03320092335343361,
0.02821536548435688,
0.07478336244821548,
0.05541916936635971,
0.013078057207167149,
-0.005951961036771536,
-0.015661153942346573,
-0.041221167892217636,
0.07673423737287521,
-0.0029940439853817225,
0.019725466147065163,
-0.0076318769715726376,
-0.08273135125637054,
-0.02108023874461651,
-0.026607703417539597,
0.050469737499952316,
0.03941480815410614,
0.06004345417022705,
-0.023103361949324608,
0.012798070907592773,
0.035657573491334915,
-0.01833456940948963,
-0.04855499416589737,
0.022037610411643982,
-0.0545521154999733,
0.020393820479512215,
-0.0018910346552729607,
-0.0430997833609581,
0.056647494435310364,
0.03775295242667198,
-0.0025221321266144514,
0.05354055389761925,
-0.019039049744606018,
0.03941480815410614,
-0.029913345351815224,
0.010377546772360802,
-0.06333103030920029,
0.0608382523059845,
-0.0331106036901474,
0.011506522074341774,
0.010178846307098866,
0.0331106036901474,
0.0023640755098313093,
0.009835638105869293,
-0.0462428517639637,
0.021333128213882446,
-0.0013084830716252327,
0.0008489898755215108,
0.005811967886984348,
-0.015245690941810608,
-0.008205397054553032,
0.029443690553307533,
-0.01203036680817604,
0.0031543585937470198,
-0.03495309501886368,
-0.0043104300275444984,
0.07099000364542007,
0.02359108068048954,
0.0009285826818086207,
-0.04035411402583122,
-0.002700510434806347,
0.006340328603982925,
-0.04772406816482544,
-0.059971198439598083,
0.07413307577371597,
0.02572258748114109,
0.07073711603879929,
0.0189667958766222,
0.029859155416488647,
0.06791918724775314,
-0.007947990670800209,
-0.022543391212821007,
0.030021727085113525,
0.01758492924273014,
-0.03988445922732353,
-0.021405383944511414,
0.00778993358835578,
-0.0076183294877409935,
0.051481302827596664,
-0.022453073412179947,
-0.003391443518921733,
0.04544805362820625,
-0.06242785230278969,
0.013285788707435131,
0.020773157477378845,
-0.03412216901779175,
0.01637466624379158,
-0.02033963054418564,
-0.024945851415395737,
-0.034284740686416626,
0.01988803967833519,
-0.022525327280163765,
-0.02118862047791481,
-0.045375797897577286,
0.0005475532962009311,
-0.018244249746203423,
0.029823027551174164,
0.018181027844548225,
-0.0056900386698544025,
-0.0070357779040932655,
0.006949975620955229,
0.004673960153013468,
-0.024819405749440193,
0.05513015016913414,
-0.007297700271010399,
-0.057948075234889984,
0.038620006293058395,
-0.02767345681786537,
0.0310874804854393,
0.04891626909375191,
0.06907526403665543,
0.03432086855173111,
0.020682837814092636,
-0.0006694826879538596,
0.011091059073805809,
0.008498930372297764,
-0.037247173488140106,
-0.004138825461268425,
-0.02192922867834568,
-0.0278360303491354,
-0.07304925471544266,
-0.02422330714762211,
-0.05805645510554314,
-0.034086041152477264,
-0.03665107488632202,
-0.009907892905175686,
-0.0027276058681309223,
0.0012068751966580749,
-0.0210983008146286,
0.00957371573895216,
-0.03041912615299225,
-0.0263728778809309,
0.027492821216583252,
0.026571577414870262,
-0.04320816695690155,
0.0030595245771110058,
0.07333827763795853,
-0.014956672675907612,
-0.007767354138195515,
-0.004206564277410507,
-0.02127893827855587,
0.004276560619473457,
0.02462070621550083,
0.04819372296333313,
-0.024295561015605927,
0.013430297374725342,
0.030942970886826515,
-0.005699070170521736,
-0.05447985976934433,
-0.044255856424570084,
-0.0662212073802948,
0.03190034255385399,
0.006164208520203829,
0.07174867391586304,
-0.019761594012379646,
-0.016618525609374046,
0.015001831576228142,
0.047037653625011444,
-0.00404624966904521,
0.02756507508456707,
0.03919804468750954,
-0.0236813984811306,
0.024584578350186348,
-0.004696539603173733,
-0.0009827734902501106,
-0.04920528456568718,
-0.04411134496331215,
0.06542640924453735,
0.00518425740301609,
-0.04664025083184242,
-0.015471485443413258,
0.026806402951478958,
0.03692202642560005,
0.0031204894185066223,
-0.02819730155169964,
0.004043991677463055,
-0.06300588697195053,
-0.022073736414313316,
0.020881537348031998,
0.008955037221312523,
-0.03666913881897926,
-0.04067926108837128,
0.0018887766636908054,
0.021531827747821808,
-0.01916549541056156,
0.0031295211520045996,
0.005450695753097534,
-0.06058536097407341,
0.03437505662441254,
0.0005966637399978936,
0.007893799804151058,
-0.07106225937604904,
-0.02100798301398754,
-0.018054582178592682,
-0.04447261989116669,
0.03153907135128975,
-0.01720559224486351,
0.012752912007272243,
0.01582372561097145,
-0.05382956936955452,
-0.0017995876260101795,
0.04642348736524582,
0.005848095286637545,
-0.009456302039325237,
0.020520266145467758,
-0.002542453818023205,
0.011524586006999016,
0.008611828088760376,
-0.01832553744316101,
0.0660044476389885,
-0.0013942852383479476,
-0.036109164357185364,
0.0147037822753191,
0.01253614854067564,
-0.0013717056717723608,
0.05867062136530876,
-0.05270962789654732,
-0.022976918146014214,
0.01271678414195776,
0.005974540486931801,
-0.06983393430709839,
-0.016058553010225296,
0.03274933248758316,
-0.05809258297085762,
-0.0110549321398139,
-0.011723285540938377,
-0.030924906954169273,
-0.00878794863820076,
-0.013150311075150967,
0.03619948402047157,
-0.05198708176612854,
-0.027167676016688347,
0.02117055654525757,
0.013087088242173195,
-0.015254721976816654,
0.019544830545783043,
0.03524211049079895,
0.03999284282326698,
-0.05715327709913254,
0.033453814685344696,
0.011398140341043472,
0.010829136706888676,
-0.04378620162606239,
0.027330247685313225,
-0.015056022442877293,
0.011253631673753262,
0.01712430641055107,
-0.04284689202904701,
0.0015184725634753704,
-0.04313591122627258,
-0.008548605255782604,
-0.045664817094802856,
-0.0206467118114233,
-0.0036307864356786013,
-0.03674139082431793,
-0.029534010216593742,
-0.030961034819483757,
-0.0037888430524617434,
-0.019111303612589836,
0.002032156568020582,
-0.01878615841269493,
-0.04931366816163063,
-0.02617417648434639,
-0.008196365088224411,
0.013087088242173195,
-0.027149612084031105,
-0.005834547337144613,
-0.012825165875256062,
0.01124459970742464,
-0.023753652349114418,
-0.05635847523808479,
0.0072841523215174675,
-0.023374317213892937,
0.005306186620146036,
-0.0686778649687767,
-0.017512673512101173,
-0.0110549321398139,
0.007135127671062946,
0.013005802407860756,
-0.0078079975210130215,
-0.02619224041700363,
-0.023175617679953575,
-0.002323432359844446,
0.011822635307908058,
0.041943714022636414,
0.02413298934698105,
0.0377168282866478,
-0.09400305151939392,
-0.006046794820576906,
-0.036777518689632416,
-0.09559264779090881,
0.0030346871353685856,
0.0035517581272870302,
0.021856972947716713,
0.015850821509957314,
0.01248195767402649,
-0.03690396249294281,
-0.02451232448220253,
0.0074512409046292305,
-0.01100977323949337,
-0.0014744425425305963,
-0.015606963075697422,
0.008426676504313946,
0.006335812620818615,
-0.015895981341600418,
-0.020375756546854973,
-0.03750006482005119,
-0.07015907764434814,
0.008029276505112648,
0.08569378405809402,
0.02664383128285408,
0.0493859201669693,
-0.020935729146003723,
0.0268244668841362,
0.026987040415406227,
-0.015525676310062408,
0.004588157869875431,
0.006940943654626608,
-0.009266634471714497,
0.010883327573537827,
-0.04067926108837128,
0.04783245176076889,
-0.02653544954955578,
-0.025830969214439392,
-0.021622145548462868,
-0.01720559224486351,
0.03200872614979744,
0.06401745229959488,
-0.013647060841321945,
-0.017350101843476295,
-0.011614903807640076,
0.025018105283379555,
0.01268065720796585,
0.02073702961206436,
0.0653180330991745,
0.05270962789654732,
0.003402733476832509,
0.025000043213367462,
-0.01050399150699377,
-0.023536888882517815,
-0.05704489350318909,
-0.03699428215622902,
-0.07366342097520828,
-0.015317944809794426,
-0.06430646777153015,
0.07380792498588562,
0.047507304698228836,
0.02073702961206436,
-0.017440419644117355
] |
725,013 | tf_keras.src.engine.training | fit | Trains the model for a fixed number of epochs (dataset iterations).
Args:
x: Input data. It could be:
- A Numpy array (or array-like), or a list of arrays
(in case the model has multiple inputs).
- A TensorFlow tensor, or a list of tensors
(in case the model has multiple inputs).
- A dict mapping input names to the corresponding array/tensors,
if the model has named inputs.
- A `tf.data` dataset. Should return a tuple
of either `(inputs, targets)` or
`(inputs, targets, sample_weights)`.
- A generator or `keras.utils.Sequence` returning `(inputs,
targets)` or `(inputs, targets, sample_weights)`.
- A `tf.keras.utils.experimental.DatasetCreator`, which wraps a
callable that takes a single argument of type
`tf.distribute.InputContext`, and returns a `tf.data.Dataset`.
`DatasetCreator` should be used when users prefer to specify the
per-replica batching and sharding logic for the `Dataset`.
See `tf.keras.utils.experimental.DatasetCreator` doc for more
information.
A more detailed description of unpacking behavior for iterator
types (Dataset, generator, Sequence) is given below. If these
include `sample_weights` as a third component, note that sample
weighting applies to the `weighted_metrics` argument but not the
`metrics` argument in `compile()`. If using
`tf.distribute.experimental.ParameterServerStrategy`, only
`DatasetCreator` type is supported for `x`.
y: Target data. Like the input data `x`,
it could be either Numpy array(s) or TensorFlow tensor(s).
It should be consistent with `x` (you cannot have Numpy inputs and
tensor targets, or inversely). If `x` is a dataset, generator,
or `keras.utils.Sequence` instance, `y` should
not be specified (since targets will be obtained from `x`).
batch_size: Integer or `None`.
Number of samples per gradient update.
If unspecified, `batch_size` will default to 32.
Do not specify the `batch_size` if your data is in the
form of datasets, generators, or `keras.utils.Sequence`
instances (since they generate batches).
epochs: Integer. Number of epochs to train the model.
An epoch is an iteration over the entire `x` and `y`
data provided
(unless the `steps_per_epoch` flag is set to
something other than None).
Note that in conjunction with `initial_epoch`,
`epochs` is to be understood as "final epoch".
The model is not trained for a number of iterations
given by `epochs`, but merely until the epoch
of index `epochs` is reached.
verbose: 'auto', 0, 1, or 2. Verbosity mode.
0 = silent, 1 = progress bar, 2 = one line per epoch.
'auto' becomes 1 for most cases, but 2 when used with
`ParameterServerStrategy`. Note that the progress bar is not
particularly useful when logged to a file, so verbose=2 is
recommended when not running interactively (eg, in a production
environment). Defaults to 'auto'.
callbacks: List of `keras.callbacks.Callback` instances.
List of callbacks to apply during training.
See `tf.keras.callbacks`. Note
`tf.keras.callbacks.ProgbarLogger` and
`tf.keras.callbacks.History` callbacks are created automatically
and need not be passed into `model.fit`.
`tf.keras.callbacks.ProgbarLogger` is created or not based on
`verbose` argument to `model.fit`.
Callbacks with batch-level calls are currently unsupported with
`tf.distribute.experimental.ParameterServerStrategy`, and users
are advised to implement epoch-level calls instead with an
appropriate `steps_per_epoch` value.
validation_split: Float between 0 and 1.
Fraction of the training data to be used as validation data.
The model will set apart this fraction of the training data,
will not train on it, and will evaluate
the loss and any model metrics
on this data at the end of each epoch.
The validation data is selected from the last samples
in the `x` and `y` data provided, before shuffling. This
argument is not supported when `x` is a dataset, generator or
`keras.utils.Sequence` instance.
If both `validation_data` and `validation_split` are provided,
`validation_data` will override `validation_split`.
`validation_split` is not yet supported with
`tf.distribute.experimental.ParameterServerStrategy`.
validation_data: Data on which to evaluate
the loss and any model metrics at the end of each epoch.
The model will not be trained on this data. Thus, note the fact
that the validation loss of data provided using
`validation_split` or `validation_data` is not affected by
regularization layers like noise and dropout.
`validation_data` will override `validation_split`.
`validation_data` could be:
- A tuple `(x_val, y_val)` of Numpy arrays or tensors.
- A tuple `(x_val, y_val, val_sample_weights)` of NumPy
arrays.
- A `tf.data.Dataset`.
- A Python generator or `keras.utils.Sequence` returning
`(inputs, targets)` or `(inputs, targets, sample_weights)`.
`validation_data` is not yet supported with
`tf.distribute.experimental.ParameterServerStrategy`.
shuffle: Boolean (whether to shuffle the training data
before each epoch) or str (for 'batch'). This argument is
ignored when `x` is a generator or an object of tf.data.Dataset.
'batch' is a special option for dealing
with the limitations of HDF5 data; it shuffles in batch-sized
chunks. Has no effect when `steps_per_epoch` is not `None`.
class_weight: Optional dictionary mapping class indices (integers)
to a weight (float) value, used for weighting the loss function
(during training only).
This can be useful to tell the model to
"pay more attention" to samples from
an under-represented class. When `class_weight` is specified
and targets have a rank of 2 or greater, either `y` must be
one-hot encoded, or an explicit final dimension of `1` must
be included for sparse class labels.
sample_weight: Optional Numpy array of weights for
the training samples, used for weighting the loss function
(during training only). You can either pass a flat (1D)
Numpy array with the same length as the input samples
(1:1 mapping between weights and samples),
or in the case of temporal data,
you can pass a 2D array with shape
`(samples, sequence_length)`,
to apply a different weight to every timestep of every sample.
This argument is not supported when `x` is a dataset, generator,
or `keras.utils.Sequence` instance, instead provide the
sample_weights as the third element of `x`.
Note that sample weighting does not apply to metrics specified
via the `metrics` argument in `compile()`. To apply sample
weighting to your metrics, you can specify them via the
`weighted_metrics` in `compile()` instead.
initial_epoch: Integer.
Epoch at which to start training
(useful for resuming a previous training run).
steps_per_epoch: Integer or `None`.
Total number of steps (batches of samples)
before declaring one epoch finished and starting the
next epoch. When training with input tensors such as
TensorFlow data tensors, the default `None` is equal to
the number of samples in your dataset divided by
the batch size, or 1 if that cannot be determined. If x is a
`tf.data` dataset, and 'steps_per_epoch'
is None, the epoch will run until the input dataset is
exhausted. When passing an infinitely repeating dataset, you
must specify the `steps_per_epoch` argument. If
`steps_per_epoch=-1` the training will run indefinitely with an
infinitely repeating dataset. This argument is not supported
with array inputs.
When using `tf.distribute.experimental.ParameterServerStrategy`:
* `steps_per_epoch=None` is not supported.
validation_steps: Only relevant if `validation_data` is provided and
is a `tf.data` dataset. Total number of steps (batches of
samples) to draw before stopping when performing validation
at the end of every epoch. If 'validation_steps' is None,
validation will run until the `validation_data` dataset is
exhausted. In the case of an infinitely repeated dataset, it
will run into an infinite loop. If 'validation_steps' is
specified and only part of the dataset will be consumed, the
evaluation will start from the beginning of the dataset at each
epoch. This ensures that the same validation samples are used
every time.
validation_batch_size: Integer or `None`.
Number of samples per validation batch.
If unspecified, will default to `batch_size`.
Do not specify the `validation_batch_size` if your data is in
the form of datasets, generators, or `keras.utils.Sequence`
instances (since they generate batches).
validation_freq: Only relevant if validation data is provided.
Integer or `collections.abc.Container` instance (e.g. list, tuple,
etc.). If an integer, specifies how many training epochs to run
before a new validation run is performed, e.g. `validation_freq=2`
runs validation every 2 epochs. If a Container, specifies the
epochs on which to run validation, e.g.
`validation_freq=[1, 2, 10]` runs validation at the end of the
1st, 2nd, and 10th epochs.
max_queue_size: Integer. Used for generator or
`keras.utils.Sequence` input only. Maximum size for the generator
queue. If unspecified, `max_queue_size` will default to 10.
workers: Integer. Used for generator or `keras.utils.Sequence` input
only. Maximum number of processes to spin up
when using process-based threading. If unspecified, `workers`
will default to 1.
use_multiprocessing: Boolean. Used for generator or
`keras.utils.Sequence` input only. If `True`, use process-based
threading. If unspecified, `use_multiprocessing` will default to
`False`. Note that because this implementation relies on
multiprocessing, you should not pass non-pickleable arguments to
the generator as they can't be passed easily to children
processes.
Unpacking behavior for iterator-like inputs:
A common pattern is to pass a tf.data.Dataset, generator, or
tf.keras.utils.Sequence to the `x` argument of fit, which will in fact
yield not only features (x) but optionally targets (y) and sample
weights. TF-Keras requires that the output of such iterator-likes be
unambiguous. The iterator should return a tuple of length 1, 2, or 3,
where the optional second and third elements will be used for y and
sample_weight respectively. Any other type provided will be wrapped in
a length one tuple, effectively treating everything as 'x'. When
yielding dicts, they should still adhere to the top-level tuple
structure.
e.g. `({"x0": x0, "x1": x1}, y)`. TF-Keras will not attempt to
separate features, targets, and weights from the keys of a single
dict.
A notable unsupported data type is the namedtuple. The reason is
that it behaves like both an ordered datatype (tuple) and a mapping
datatype (dict). So given a namedtuple of the form:
`namedtuple("example_tuple", ["y", "x"])`
it is ambiguous whether to reverse the order of the elements when
interpreting the value. Even worse is a tuple of the form:
`namedtuple("other_tuple", ["x", "y", "z"])`
where it is unclear if the tuple was intended to be unpacked into x,
y, and sample_weight or passed through as a single element to `x`. As
a result the data processing code will simply raise a ValueError if it
encounters a namedtuple. (Along with instructions to remedy the
issue.)
Returns:
A `History` object. Its `History.history` attribute is
a record of training loss values and metrics values
at successive epochs, as well as validation loss values
and validation metrics values (if applicable).
Raises:
RuntimeError: 1. If the model was never compiled or,
2. If `model.fit` is wrapped in `tf.function`.
ValueError: In case of mismatch between the provided input data
and what the model expects or when the input data is empty.
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Training-related part of the TF-Keras engine."""
import copy
import itertools
import json
import warnings
import weakref
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow.python.distribute import distribute_utils
from tensorflow.python.distribute import input_ops
from tensorflow.python.eager import context
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util.tf_export import keras_export
from tensorflow.tools.docs import doc_controls
from tf_keras.src import backend
from tf_keras.src import callbacks as callbacks_module
from tf_keras.src import optimizers
from tf_keras.src.dtensor import dtensor_api
from tf_keras.src.dtensor import layout_map as layout_map_lib
from tf_keras.src.engine import base_layer
from tf_keras.src.engine import base_layer_utils
from tf_keras.src.engine import compile_utils
from tf_keras.src.engine import data_adapter
from tf_keras.src.engine import input_layer as input_layer_module
from tf_keras.src.engine import training_utils
from tf_keras.src.metrics import base_metric
from tf_keras.src.mixed_precision import loss_scale_optimizer as lso
from tf_keras.src.optimizers import optimizer
from tf_keras.src.optimizers import optimizer_v1
from tf_keras.src.saving import pickle_utils
from tf_keras.src.saving import saving_api
from tf_keras.src.saving import saving_lib
from tf_keras.src.saving import serialization_lib
from tf_keras.src.saving.legacy import serialization
from tf_keras.src.saving.legacy.saved_model import json_utils
from tf_keras.src.saving.legacy.saved_model import model_serialization
from tf_keras.src.utils import generic_utils
from tf_keras.src.utils import io_utils
from tf_keras.src.utils import layer_utils
from tf_keras.src.utils import steps_per_execution_tuning
from tf_keras.src.utils import tf_inspect
from tf_keras.src.utils import tf_utils
from tf_keras.src.utils import traceback_utils
from tf_keras.src.utils import version_utils
from tf_keras.src.utils.mode_keys import ModeKeys
try:
import h5py
except ImportError:
h5py = None
@keras_export("keras.Model", "keras.models.Model")
class Model(base_layer.Layer, version_utils.ModelVersionSelector):
"""A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
"""
_TF_MODULE_IGNORED_PROPERTIES = frozenset(
itertools.chain(
(
"_train_counter",
"_test_counter",
"_predict_counter",
"_steps_per_execution",
"_compiled_trainable_state",
),
base_layer.Layer._TF_MODULE_IGNORED_PROPERTIES,
)
)
_SCALAR_UPRANKING_ON = False
def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, *args, **kwargs):
self._is_model_for_instrumentation = True
# Special case for Subclassed Functional Model, which we couldn't detect
# when __new__ is called. We only realize it is a functional model when
# it calls super.__init__ with input and output tensor.
from tf_keras.src.engine import functional
if is_functional_model_init_params(args, kwargs) and not isinstance(
self, functional.Functional
):
# Filter the kwargs for multiple inheritance.
support | (self, x=None, y=None, batch_size=None, epochs=1, verbose='auto', callbacks=None, validation_split=0.0, validation_data=None, shuffle=True, class_weight=None, sample_weight=None, initial_epoch=0, steps_per_epoch=None, validation_steps=None, validation_batch_size=None, validation_freq=1, max_queue_size=10, workers=1, use_multiprocessing=False) | [
0.024919170886278152,
-0.08747690916061401,
-0.03955890238285065,
0.04970278963446617,
-0.0026446967385709286,
-0.0020671843085438013,
-0.08697988092899323,
0.0001960930385394022,
-0.009330568835139275,
-0.024422142654657364,
-0.01929371990263462,
0.009805005043745041,
-0.02756245620548725,
0.05083239823579788,
0.0571582093834877,
0.0399203784763813,
0.0009679335635155439,
-0.0077039324678480625,
0.0006749412859790027,
-0.01570156216621399,
0.02753986418247223,
-0.04251847788691521,
-0.04527472332119942,
0.03549230843782425,
0.01845780946314335,
0.05205237492918968,
-0.007127831690013409,
0.0063371057622134686,
0.02025388740003109,
-0.02591322734951973,
-0.05562194064259529,
0.0008761528879404068,
-0.0361022986471653,
-0.009917966090142727,
0.01958741806447506,
-0.03497269004583359,
0.012979205697774887,
0.06425215303897858,
-0.03809041157364845,
-0.03766115754842758,
0.03578600659966469,
-0.0448002852499485,
0.003428362775593996,
-0.019022613763809204,
-0.004555147606879473,
0.01766708306968212,
-0.0064896028488874435,
0.008274384774267673,
0.019632602110505104,
-0.04857318103313446,
-0.04283476620912552,
-0.010465825907886028,
-0.007958094589412212,
0.033255685120821,
-0.026975059881806374,
-0.048121336847543716,
-0.01697802171111107,
-0.04631396383047104,
0.011019334197044373,
-0.00757402740418911,
-0.00974852405488491,
-0.024648064747452736,
0.001783369923941791,
0.017655786126852036,
-0.03262310475111008,
-0.0018539705779403448,
-0.04387400671839714,
-0.04712728038430214,
0.0025656241923570633,
0.044529180973768234,
-0.04952205345034599,
-0.044145114719867706,
0.056570809334516525,
0.02916650101542473,
0.009545194916427135,
0.0004384294443298131,
0.0006661161896772683,
-0.04068851098418236,
0.03806781768798828,
-0.04579434171319008,
-0.041772935539484024,
-0.002706825267523527,
-0.02936982922255993,
-0.03400122746825218,
0.011623675003647804,
-0.028895394876599312,
-0.007415882311761379,
-0.005998223088681698,
-0.013849004171788692,
-0.005800541490316391,
-0.009963150136172771,
0.04211181774735451,
0.023450680077075958,
0.04735320433974266,
0.06642100214958191,
-0.017949484288692474,
-0.05521528050303459,
-0.03777411952614784,
-0.0069922786206007,
-0.02489657886326313,
0.02153034508228302,
0.03298457711935043,
-0.024331774562597275,
0.010222960263490677,
-0.04226996377110481,
-0.045545827597379684,
-0.07229496538639069,
-0.017508937045931816,
-0.05598341301083565,
-0.02835318259894848,
-0.027630232274532318,
-0.009697691537439823,
-0.008929558098316193,
0.0133745688945055,
-0.02742690220475197,
0.03217126056551933,
0.0001353765546809882,
-0.011702748015522957,
-0.030363885685801506,
-0.0023580584675073624,
0.0004285453469492495,
0.05598341301083565,
-0.04938649758696556,
-0.03899409621953964,
-0.017249127849936485,
0.012967909686267376,
0.05051610618829727,
0.021586824208498,
0.04599767178297043,
-0.040439996868371964,
-0.03897150605916977,
-0.017599305137991905,
-0.0033972985111176968,
0.06077295541763306,
0.01336327288299799,
-0.0038434939924627542,
-0.0021589649841189384,
0.02695246785879135,
-0.059824083000421524,
0.06221885606646538,
0.06705357879400253,
0.005698876455426216,
0.059824083000421524,
0.02663617581129074,
-0.03754819929599762,
-0.021519048139452934,
-0.0048940302804112434,
-0.0636647567152977,
-0.009471770375967026,
-0.04199885576963425,
-0.002828258089721203,
0.008505954407155514,
0.017599305137991905,
0.00913853570818901,
-0.0059586865827441216,
0.03235199674963951,
-0.035966746509075165,
-0.06461362540721893,
0.028692064806818962,
-0.009697691537439823,
-0.06090850755572319,
-0.04649470001459122,
0.02347327210009098,
-0.03797744959592819,
0.013837708160281181,
0.0038943265099078417,
-0.041388869285583496,
-0.023292534053325653,
0.005300689488649368,
0.020626656711101532,
0.041976265609264374,
0.017057092860341072,
0.03467899188399315,
0.019824635237455368,
0.011019334197044373,
0.04466473311185837,
0.05196200683712959,
-0.011781820096075535,
0.02040073648095131,
0.04744357243180275,
0.045252129435539246,
-0.017418568953871727,
-0.09032352268695831,
-0.036870431154966354,
-0.05408567190170288,
0.022354958578944206,
-0.049928709864616394,
0.02539360709488392,
0.041366275399923325,
-0.000633639981970191,
0.030025003477931023,
0.028240220621228218,
0.021146276965737343,
0.03915224224328995,
-0.04353512451052666,
-0.0070205191150307655,
-0.00003920536983059719,
0.047895416617393494,
0.04988352581858635,
0.020073149353265762,
-0.011471177451312542,
0.009805005043745041,
0.03865521401166916,
-0.00046914067934267223,
-0.07297272980213165,
0.0061846086755394936,
0.008302625268697739,
-0.018435215577483177,
-0.04907020926475525,
-0.07694895565509796,
-0.0361022986471653,
0.013950669206678867,
0.04622359573841095,
0.07288236171007156,
0.07188830524682999,
-0.06370993703603745,
-0.029663529247045517,
0.02010703831911087,
-0.0041061281226575375,
-0.030160555616021156,
0.03354938328266144,
0.0277657862752676,
-0.04001074656844139,
0.0010505361715331674,
0.02896317094564438,
-0.03725450113415718,
0.04360290244221687,
0.004916622303426266,
-0.017215238884091377,
-0.0555315725505352,
-0.02338290400803089,
-0.07554823905229568,
0.004043999593704939,
0.02500953897833824,
0.016865059733390808,
0.010166479274630547,
-0.042608845978975296,
-0.035966746509075165,
0.04037221893668175,
-0.069764643907547,
-0.013092166744172573,
-0.06520102173089981,
-0.011166183277964592,
-0.03142571821808815,
-0.02480621077120304,
0.04267662391066551,
0.025732489302754402,
0.06953871995210648,
-0.03781930357217789,
-0.05078721418976784,
0.03350419923663139,
0.027155796065926552,
-0.012775875627994537,
0.08286810666322708,
-0.024444734677672386,
-0.03183237835764885,
0.031583864241838455,
-0.07807856053113937,
0.056751549243927,
0.014707507565617561,
-0.012007742188870907,
0.02835318259894848,
-0.02580026537179947,
0.0883805975317955,
0.022298479452729225,
-0.05078721418976784,
0.020841283723711967,
0.02042332850396633,
0.042902544140815735,
-0.015181942842900753,
0.1337456852197647,
0.05639007315039635,
-0.059824083000421524,
0.005907854065299034,
-0.036576732993125916,
-0.019655194133520126,
0.005391058046370745,
-0.0009594614966772497,
0.024919170886278152,
-0.0007314217509701848,
0.003998815547674894,
-0.09027834236621857,
-0.05223311483860016,
-0.0001251394860446453,
0.0026672889944165945,
-0.026048779487609863,
0.0054334187880158424,
-0.04925094544887543,
-0.002537383930757642,
-0.020299071446061134,
0.020073149353265762,
-0.017915597185492516,
0.08860652148723602,
0.0017381856450811028,
-0.02240014262497425,
-0.02184663526713848,
-0.019971484318375587,
0.010398049838840961,
0.019824635237455368,
-0.03323309123516083,
0.007404585834592581,
0.05986927077174187,
0.0778978243470192,
0.002849438227713108,
0.007641803938895464,
-0.08241625875234604,
0.0025670360773801804,
0.009579082950949669,
-0.02356364019215107,
-0.02162071317434311,
-0.013024389743804932,
-0.0007095355540513992,
0.035266388207674026,
-0.03336864709854126,
-0.009708988480269909,
-0.059236686676740646,
0.0063935862854123116,
-0.01866113767027855,
0.05643525719642639,
0.05774560570716858,
0.017723562195897102,
0.06456844508647919,
0.005721468944102526,
0.003487667301669717,
-0.00178478192538023,
-0.055350832641124725,
0.10021889954805374,
-0.015181942842900753,
-0.00022080322378315032,
0.01857076957821846,
-0.0026701129972934723,
-0.0571582093834877,
0.03580860048532486,
0.05286569520831108,
-0.08580508828163147,
-0.018706321716308594,
0.009245848283171654,
-0.00003483696127659641,
-0.010109999217092991,
0.034317515790462494,
0.05123905837535858,
0.05092276632785797,
-0.05087758228182793,
0.02127053402364254,
-0.009048166684806347,
-0.027810970321297646,
0.02683950588107109,
0.03185496851801872,
0.0074384743347764015,
0.004529731348156929,
-0.005453186575323343,
-0.009624266996979713,
-0.03113202005624771,
0.03725450113415718,
0.016469696536660194,
0.0312223881483078,
-0.03415936976671219,
-0.008827893063426018,
0.02077350579202175,
-0.03752560541033745,
0.03639599680900574,
0.006681636441498995,
-0.03336864709854126,
0.026749137789011,
0.08142220228910446,
-0.009307976812124252,
0.00317420088686049,
-0.01572415605187416,
0.016876356676220894,
0.015520825982093811,
0.0020191757939755917,
-0.07188830524682999,
0.07328902184963226,
0.01494472473859787,
-0.04053036496043205,
0.023315126076340675,
0.012866244651377201,
0.030454253777861595,
0.0073255132883787155,
0.01114359125494957,
0.04470991715788841,
0.05304643139243126,
0.0032476254273205996,
0.04848281294107437,
0.05684191733598709,
-0.024670656770467758,
-0.03217126056551933,
-0.022739026695489883,
0.02367660216987133,
-0.01240310538560152,
0.013453640975058079,
-0.018186703324317932,
-0.01448158547282219,
0.021349607035517693,
-0.011104054749011993,
0.026161741465330124,
0.009223256260156631,
0.04888946935534477,
-0.02559693716466427,
-0.046991728246212006,
-0.03702857717871666,
-0.03784189745783806,
0.06551731377840042,
0.05562194064259529,
0.009025574661791325,
-0.01122831180691719,
0.024263998493552208,
0.01790430024266243,
-0.04572656750679016,
0.034136779606342316,
-0.005405178293585777,
0.017983373254537582,
-0.06940316408872604,
0.05277532711625099,
-0.006150720175355673,
0.06881576776504517,
0.012674211524426937,
-0.023654010146856308,
0.03499528393149376,
0.0042021446861326694,
0.019745562225580215,
0.0409822091460228,
0.03332345932722092,
0.015385272912681103,
-0.020694434642791748,
0.02286328375339508,
-0.040552958846092224,
0.1126897782087326,
-0.00742717832326889,
0.017508937045931816,
-0.003239153418689966,
-0.05652562528848648,
-0.015859708189964294,
-0.036260444670915604,
-0.05173608660697937,
-0.00012002093717455864,
0.07143646478652954,
-0.009725932031869888,
0.0029143907595425844,
0.020095741376280785,
-0.025732489302754402,
-0.019417976960539818,
0.053498275578022,
0.025371015071868896,
-0.028646880760788918,
-0.027223573997616768,
-0.02376697026193142,
0.08625692874193192,
-0.03607970476150513,
-0.004204968921840191,
0.04635914787650108,
-0.017339495941996574,
0.04233773797750473,
0.02672654576599598,
-0.017271719872951508,
-0.021654602140188217,
0.038316331803798676,
-0.010268144309520721,
-0.021609418094158173,
-0.005119951907545328,
-0.0013018741738051176,
0.05643525719642639,
0.020231295377016068,
0.0032363294158130884,
-0.012798468582332134,
0.022298479452729225,
0.09154350310564041,
-0.00793550256639719,
-0.054311592131853104,
0.01779134012758732,
0.08011186122894287,
0.009601674973964691,
0.04193108156323433,
0.005936094559729099,
-0.0677313432097435,
0.01709098182618618,
0.01352141797542572,
-0.020739618688821793,
0.014470289461314678,
-0.034520845860242844,
0.04222477972507477,
-0.055667124688625336,
-0.019892411306500435,
0.02631988562643528,
0.008810948580503464,
0.05941742658615112,
0.027810970321297646,
0.001059714355506003,
0.010064815171062946,
0.008952150121331215,
-0.05467306822538376,
0.009336217306554317,
0.06872539967298508,
0.002801429945975542,
-0.058016709983348846,
-0.030341293662786484,
0.030567215755581856,
-0.002814138075336814,
0.009963150136172771,
0.0010152359027415514,
0.042292553931474686,
-0.0018709147116169333,
-0.03797744959592819,
-0.03273606300354004,
0.010047870688140392,
0.04211181774735451,
-0.04021407663822174,
0.005040879361331463,
-0.02147386409342289,
-0.019666489213705063,
-0.03531157225370407,
-0.02509990893304348,
0.04324142634868622,
-0.011928669176995754,
-0.012945317663252354,
-0.010895077139139175,
0.05182645469903946,
0.03275865688920021,
-0.026500623673200607,
0.008370401337742805,
0.010928965173661709,
0.024715840816497803,
0.01845780946314335,
-0.036870431154966354,
0.008630211465060711,
0.0551249124109745,
-0.01055054645985365,
0.00040242314571514726,
0.09642340987920761,
0.012414401397109032,
0.006896262057125568,
-0.006958390586078167,
-0.013397160917520523,
0.05395011976361275,
-0.01653747446835041,
-0.06090850755572319,
0.03160645440220833,
-0.021044611930847168,
-0.06868021935224533,
-0.031199796125292778,
0.019824635237455368,
-0.005408002529293299,
0.02237755060195923,
-0.000868386821821332,
0.009545194916427135,
0.00008463241101708263,
0.015351383946835995,
-0.0016068685799837112,
-0.017057092860341072,
0.00876576453447342,
-0.048302073031663895,
0.004840373992919922,
-0.015193238854408264,
0.028420958667993546,
0.007037463132292032,
-0.0016647609882056713,
-0.006783301010727882,
0.029324645176529884,
-0.02057017758488655,
0.029640935361385345,
-0.011324328370392323,
0.03391085937619209,
0.04477769508957863,
-0.054130855947732925,
0.019610010087490082,
0.04681099206209183,
-0.038813360035419464,
-0.032510142773389816,
-0.08901317417621613,
0.010409345850348473,
-0.011725340038537979,
0.021485161036252975,
0.02826281264424324,
0.00523008918389678,
-0.07166238874197006,
0.0028437902219593525,
-0.02284069173038006,
0.014165295287966728,
0.0021250767167657614,
-0.0162211824208498,
-0.007387641817331314,
-0.0002146256883861497,
-0.021519048139452934,
0.012606434524059296,
0.06375512480735779,
-0.042586252093315125,
0.0382937416434288,
0.031086836010217667,
-0.04206663370132446,
-0.020039260387420654,
0.008364753797650337,
0.029640935361385345,
-0.023947708308696747,
-0.057067837566137314,
-0.006692932453006506,
0.02663617581129074,
-0.06533657759428024,
-0.01964389719069004,
0.02460288070142269,
0.018175406381487846,
-0.08973612636327744,
-0.007331161294132471,
0.014447697438299656,
-0.005941742565482855,
0.01694413274526596,
-0.0066025638952851295,
-0.045455459505319595,
0.03040906973183155,
0.011200071312487125,
-0.0003759479441214353,
-0.014052334241569042,
-0.00504935160279274,
-0.04129850119352341,
-0.03865521401166916,
0.006026463117450476,
-0.011233960278332233,
-0.021259238943457603,
0.047805044800043106,
0.056751549243927,
-0.049928709864616394,
0.07396678626537323,
0.015791932120919228,
-0.039445940405130386,
0.009042519144713879,
-0.06687284260988235,
0.017452456057071686,
0.017655786126852036,
-0.004029879346489906,
0.04509398341178894,
0.015294903889298439,
0.042405515909194946,
0.024761026725172997,
0.02480621077120304,
0.0037333571817725897,
0.08490139991044998,
-0.01819799840450287,
-0.0019372791284695268,
0.0032815136946737766,
0.0011041926918551326,
-0.00020809512352570891,
-0.017870411276817322,
0.016842467710375786,
0.018728915601968765,
-0.006636451929807663,
0.009296680800616741,
-0.05318198353052139,
0.005518139339983463,
0.005515315104275942,
0.0782141163945198,
-0.011917373165488243,
-0.0563448891043663,
0.020705729722976685,
0.03702857717871666,
-0.05946261063218117,
0.02164330519735813,
-0.018502993509173393,
0.008133184164762497,
-0.04857318103313446,
0.048302073031663895,
-0.011499417945742607,
-0.0037898377049714327,
-0.03553749620914459,
0.061676643788814545,
0.023834746330976486,
-0.020988132804632187,
0.013046981766819954,
-0.02765282429754734,
-0.004453483037650585,
0.002939807018265128,
0.029505383223295212,
-0.0547182522714138,
-0.05833300203084946,
-0.01871761865913868,
0.0016492289723828435,
-0.0074384743347764015,
-0.02561952918767929,
0.025371015071868896,
0.021654602140188217,
-0.01056184247136116,
-0.030363885685801506,
-0.006009519100189209,
0.031244980171322823,
-0.03266828879714012,
0.025574345141649246,
0.044122520834207535,
-0.04538768529891968,
-0.06877058744430542,
0.007353753782808781,
-0.006788949016481638,
-0.03628303483128548,
0.010573138482868671,
-0.008415586315095425,
0.023021427914500237,
-0.03513083606958389,
-0.07062314450740814,
-0.0754578709602356,
-0.021394791081547737,
0.018909651786088943,
-0.045342497527599335,
-0.021022019907832146,
0.00035159074468538165,
0.008771413005888462,
-0.03221644461154938,
-0.009545194916427135,
0.05467306822538376,
0.08648285269737244,
-0.10500843822956085,
-0.03467899188399315,
-0.018446512520313263,
-0.08860652148723602,
0.04129850119352341,
0.02602618746459484,
0.007404585834592581,
-0.027698008343577385,
-0.008556786924600601,
-0.03099646605551243,
-0.00620155269280076,
0.024648064747452736,
-0.01819799840450287,
0.012143295258283615,
0.03761597350239754,
0.04394178465008736,
0.03018314763903618,
-0.0032843376975506544,
-0.03725450113415718,
-0.00026722310576587915,
-0.01659395359456539,
-0.010522305965423584,
0.06316772848367691,
0.006670340429991484,
0.05047092214226723,
0.0016958252526819706,
-0.023495864123106003,
-0.00882224552333355,
-0.012278848327696323,
-0.006500898860394955,
0.023450680077075958,
-0.012290144339203835,
-0.011781820096075535,
-0.031561270356178284,
0.05304643139243126,
-0.01714746281504631,
-0.09271829575300217,
0.002537383930757642,
-0.010087407194077969,
0.08291328698396683,
0.033820487558841705,
-0.04206663370132446,
0.023947708308696747,
-0.008178368210792542,
0.008601970970630646,
-0.021338311955332756,
-0.008347809314727783,
0.026907281950116158,
0.05937224254012108,
-0.002305814065039158,
-0.020683137699961662,
-0.02582285739481449,
-0.051464978605508804,
-0.086347296833992,
0.011623675003647804,
-0.07270162552595139,
0.0279691144824028,
-0.009392697364091873,
0.05313679948449135,
0.03680265694856644,
0.013736044056713581,
0.019542232155799866
] |
725,014 | tf_keras.src.engine.training | fit_generator | Fits the model on data yielded batch-by-batch by a Python generator.
DEPRECATED:
`Model.fit` now supports generators, so there is no longer any need to
use this endpoint.
| @doc_controls.do_not_generate_docs
def fit_generator(
self,
generator,
steps_per_epoch=None,
epochs=1,
verbose=1,
callbacks=None,
validation_data=None,
validation_steps=None,
validation_freq=1,
class_weight=None,
max_queue_size=10,
workers=1,
use_multiprocessing=False,
shuffle=True,
initial_epoch=0,
):
"""Fits the model on data yielded batch-by-batch by a Python generator.
DEPRECATED:
`Model.fit` now supports generators, so there is no longer any need to
use this endpoint.
"""
warnings.warn(
"`Model.fit_generator` is deprecated and "
"will be removed in a future version. "
"Please use `Model.fit`, which supports generators.",
stacklevel=2,
)
return self.fit(
generator,
steps_per_epoch=steps_per_epoch,
epochs=epochs,
verbose=verbose,
callbacks=callbacks,
validation_data=validation_data,
validation_steps=validation_steps,
validation_freq=validation_freq,
class_weight=class_weight,
max_queue_size=max_queue_size,
workers=workers,
use_multiprocessing=use_multiprocessing,
shuffle=shuffle,
initial_epoch=initial_epoch,
)
| (self, generator, steps_per_epoch=None, epochs=1, verbose=1, callbacks=None, validation_data=None, validation_steps=None, validation_freq=1, class_weight=None, max_queue_size=10, workers=1, use_multiprocessing=False, shuffle=True, initial_epoch=0) | [
0.06601640582084656,
-0.00630524754524231,
-0.04845375940203667,
-0.004004062619060278,
-0.011920140124857426,
0.03713192790746689,
-0.035511892288923264,
-0.0008514385554008186,
0.0368741936981678,
0.038512635976076126,
0.03186681494116783,
-0.01261049509048462,
0.03405754268169403,
0.030780654400587082,
0.0238586887717247,
0.0564802922308445,
0.013926773332059383,
-0.03422322869300842,
0.03151703253388405,
0.05150973051786423,
0.01650410145521164,
-0.00423878338187933,
-0.02737490087747574,
-0.0002713960420805961,
0.0037831487134099007,
0.06818872690200806,
-0.004685213323682547,
-0.002627953654155135,
0.003688800148665905,
0.04079541191458702,
-0.024852801114320755,
-0.02952880971133709,
0.0499265156686306,
0.011763659305870533,
0.0141016636043787,
-0.04668644815683365,
-0.021778417751193047,
0.08195901662111282,
-0.01912745274603367,
-0.02041611634194851,
0.0037693416234105825,
-0.022754119709134102,
-0.03888082876801491,
0.0011045689461752772,
0.04444048926234245,
0.004153639543801546,
-0.03129611909389496,
0.03928583487868309,
-0.06277633458375931,
-0.052835214883089066,
-0.007690561469644308,
-0.02170477993786335,
0.016347620636224747,
-0.0032400689087808132,
-0.0010171239264309406,
0.04016949236392975,
-0.006820713169872761,
0.032014090567827225,
0.01932995580136776,
0.009784639813005924,
-0.017654694616794586,
0.018179364502429962,
0.023527318611741066,
-0.028056051582098007,
0.0456555150449276,
0.028369013220071793,
-0.023159129545092583,
0.006747075356543064,
0.0029731313697993755,
0.06667914241552353,
-0.012177872471511364,
-0.02455824986100197,
0.00765374256297946,
0.03206931799650192,
-0.01236196793615818,
0.027503766119480133,
-0.0846836194396019,
-0.05725349113345146,
0.04363047331571579,
-0.037665802985429764,
0.054123878479003906,
0.04075859487056732,
-0.008983827196061611,
-0.07540524005889893,
-0.0022356014233082533,
-0.010889208875596523,
0.02781672775745392,
0.0014750597765669227,
0.029363125562667847,
0.027393309399485588,
0.0072809504345059395,
0.025920551270246506,
0.025552362203598022,
-0.040243130177259445,
-0.02255161665380001,
0.0036197644658386707,
-0.026343969628214836,
0.013613812625408173,
0.023711413145065308,
-0.009490088559687138,
0.011828092858195305,
0.04576597362756729,
0.06476455926895142,
0.07198107987642288,
0.012674928642809391,
-0.06542730331420898,
-0.037886716425418854,
-0.04429321363568306,
0.01931154727935791,
-0.04079541191458702,
-0.016743425279855728,
0.051141541451215744,
-0.02932630479335785,
0.021870465949177742,
-0.04466140642762184,
0.014248939231038094,
0.0022356014233082533,
-0.014497467316687107,
-0.02102362923324108,
-0.004600069485604763,
-0.038291722536087036,
0.02303026244044304,
-0.06642141193151474,
-0.04145815595984459,
-0.008380916900932789,
-0.0032492736354470253,
0.03553030267357826,
0.03383662924170494,
0.03295297548174858,
-0.03514370322227478,
0.004050086252391338,
-0.006949579808861017,
0.02647283673286438,
0.048711489886045456,
0.023969145491719246,
0.019827011972665787,
-0.005541254300624132,
0.009591340087354183,
-0.056112103164196014,
0.04267318174242973,
-0.02776150032877922,
0.0238770991563797,
0.049595147371292114,
0.018400277942419052,
0.05736394599080086,
-0.013429717160761356,
-0.010530224069952965,
-0.009471679106354713,
0.048306483775377274,
0.014248939231038094,
0.0018282916862517595,
0.03935947269201279,
0.10765865445137024,
0.033321164548397064,
-0.04204725846648216,
0.05563345551490784,
-0.002747615333646536,
0.008772118017077446,
0.009876687079668045,
-0.0021251447033137083,
-0.02146545611321926,
-0.0037831487134099007,
0.0019583087414503098,
-0.010042373090982437,
0.0011241290485486388,
0.033542077988386154,
-0.034793920814991,
0.03494119644165039,
0.0006604401860386133,
-0.016163526102900505,
0.006171779241412878,
-0.028369013220071793,
0.000647208362352103,
-0.02516576275229454,
-0.012076620943844318,
0.052172474563121796,
0.043925024569034576,
0.02407960407435894,
0.04149497300386429,
0.04212089627981186,
-0.01782958395779133,
-0.007326974067837,
-0.04642871394753456,
-0.04466140642762184,
-0.04801192879676819,
0.009821458719670773,
-0.0455450601875782,
0.02192569337785244,
-0.018832901492714882,
-0.020673848688602448,
-0.023269586265087128,
0.011275808326900005,
0.007014012895524502,
0.030762245878577232,
-0.048269663006067276,
0.006618209183216095,
-0.032437507063150406,
0.023969145491719246,
0.017498213797807693,
0.019900649785995483,
0.003541524289175868,
-0.006659630220383406,
0.028755612671375275,
-0.010769546963274479,
-0.06756280362606049,
0.05894716456532478,
-0.011579564772546291,
-0.02868197299540043,
0.016577739268541336,
-0.049374233931303024,
0.004010966047644615,
-0.0047082253731787205,
0.0056194947101175785,
0.06741552799940109,
0.04267318174242973,
0.015979431569576263,
-0.027743089944124222,
-0.02759581431746483,
-0.017755946144461632,
-0.008528192527592182,
0.06818872690200806,
-0.008449952118098736,
-0.017654694616794586,
-0.031553853303194046,
0.07507386803627014,
0.01551919337362051,
0.020692259073257446,
-0.07194425910711288,
-0.03317388892173767,
-0.04105314612388611,
-0.03389185667037964,
-0.012371172197163105,
0.018492326140403748,
0.018722442910075188,
0.016982747241854668,
-0.04410912096500397,
0.04267318174242973,
-0.004892319906502962,
-0.009292186237871647,
0.01606227271258831,
-0.007267143111675978,
0.02689625322818756,
0.00009147211676463485,
-0.05563345551490784,
0.017645489424467087,
0.031185664236545563,
-0.03661645948886871,
0.02516576275229454,
-0.01506816130131483,
-0.050883810967206955,
-0.027246033772826195,
-0.009941120631992817,
-0.024797573685646057,
0.018492326140403748,
0.0249632578343153,
-0.01668819598853588,
-0.01073272805660963,
-0.05497071519494057,
0.03151703253388405,
0.07043468207120895,
-0.031811587512493134,
0.06377045065164566,
-0.0891018956899643,
0.09197377413511276,
0.007345383521169424,
-0.045729152858257294,
-0.011901730671525002,
0.006696449127048254,
0.0003578343312256038,
0.06844645738601685,
0.15552331507205963,
0.07268063724040985,
-0.0282033272087574,
0.01051181461662054,
0.009259969927370548,
0.006802303716540337,
-0.010033167898654938,
0.006323657464236021,
-0.02910539135336876,
-0.028921296820044518,
0.06314452737569809,
-0.030246779322624207,
0.021097267046570778,
-0.0034678862430155277,
0.019440414384007454,
0.007515671197324991,
-0.04856421425938606,
0.060014914721250534,
-0.0035852466244250536,
-0.019016996026039124,
0.04757010191679001,
0.004892319906502962,
0.04499277472496033,
-0.0500001534819603,
-0.015694083645939827,
-0.015491579659283161,
-0.009977939538657665,
0.00824284553527832,
-0.001322031021118164,
-0.006806906312704086,
0.050662897527217865,
0.015031342394649982,
0.008661661297082901,
0.07352747023105621,
0.00856501143425703,
-0.01105489395558834,
-0.009416450746357441,
-0.009655773639678955,
-0.01929313689470291,
0.03433368355035782,
-0.016007045283913612,
-0.0000867978305905126,
0.06564821302890778,
-0.01692751981317997,
-0.027724681422114372,
-0.03753693401813507,
0.052393388003110886,
0.012049006298184395,
0.023490499705076218,
0.01780197024345398,
-0.012334353290498257,
0.05581755191087723,
0.04466140642762184,
-0.040243130177259445,
-0.06840963661670685,
0.03219818323850632,
0.012546062469482422,
0.041089966893196106,
-0.11546427756547928,
0.0007766500348225236,
0.02715398743748665,
-0.08298994600772858,
0.035511892288923264,
0.08623001724481583,
-0.05379250645637512,
0.04952150955796242,
0.020949991419911385,
-0.02731967158615589,
0.0434095598757267,
-0.0304124653339386,
0.04856421425938606,
0.024429382756352425,
-0.05062607675790787,
0.0006627413677051663,
-0.027871957048773766,
0.016605352982878685,
0.03884400799870491,
-0.04204725846648216,
0.027927184477448463,
0.015049751847982407,
-0.0035737408325076103,
0.012269919738173485,
0.01827141083776951,
0.00812318455427885,
0.027743089944124222,
-0.046575989574193954,
0.0017086301231756806,
-0.03924901783466339,
0.026730569079518318,
-0.015758516266942024,
-0.04790147393941879,
0.0023679197765886784,
-0.00879052747040987,
-0.015178618021309376,
0.008647854439914227,
-0.008680070750415325,
-0.03497801721096039,
0.006567582953721285,
0.03818126767873764,
-0.008620239794254303,
0.00802193209528923,
-0.03378140181303024,
-0.0032860925421118736,
0.035033244639635086,
0.013052322901785374,
-0.02755899541079998,
-0.07533160597085953,
0.036966241896152496,
-0.026546474546194077,
0.01645807735621929,
0.014635538682341576,
0.013632222078740597,
0.03306343033909798,
0.008813539519906044,
0.0715392455458641,
-0.06395453959703445,
-0.04215771332383156,
0.029989046975970268,
-0.0028557709883898497,
-0.07643616944551468,
0.044808682054281235,
-0.051951561123132706,
-0.03534620627760887,
0.025975780561566353,
-0.0058818296529352665,
-0.033744581043720245,
0.02144704759120941,
0.054565705358982086,
-0.04355683550238609,
-0.07577343285083771,
-0.009416450746357441,
-0.03240069001913071,
-0.07702527195215225,
0.05342431738972664,
0.018565963953733444,
-0.006701051723212004,
0.04705463722348213,
0.009968734346330166,
0.00047375651774927974,
0.044182758778333664,
0.009793845005333424,
-0.0411636047065258,
0.0005660915630869567,
0.024374155327677727,
-0.012849818915128708,
0.018621191382408142,
-0.05924171581864357,
-0.01802288368344307,
0.06465410441160202,
0.02472393587231636,
0.08652456849813461,
0.04668644815683365,
0.059131257236003876,
0.009793845005333424,
0.02492643892765045,
0.04278363659977913,
-0.008772118017077446,
-0.023748232051730156,
-0.029363125562667847,
-0.006199393421411514,
-0.030099503695964813,
-0.1062595322728157,
-0.03619304299354553,
-0.01845550537109375,
-0.055007532238960266,
-0.007768801413476467,
-0.024153241887688637,
-0.010916823521256447,
-0.04966878518462181,
-0.015160208567976952,
0.05688530206680298,
-0.0628131553530693,
0.04455094784498215,
-0.0036220657639205456,
-0.002098680939525366,
0.0013254827354103327,
0.0184278916567564,
0.014304167591035366,
0.003246972570195794,
-0.020931581035256386,
0.027890365570783615,
0.014184506610035896,
0.05949944630265236,
0.006121153011918068,
0.011073303408920765,
-0.008523590862751007,
0.03383662924170494,
-0.0411636047065258,
-0.05511799082159996,
0.008583420887589455,
0.020139973610639572,
-0.02194410376250744,
-0.015445555560290813,
-0.026988301426172256,
-0.03560394048690796,
0.040022216737270355,
0.04882194846868515,
0.053461138159036636,
-0.03140657767653465,
0.007810222916305065,
0.025128943845629692,
-0.025570770725607872,
0.0455450601875782,
-0.022054560482501984,
-0.05272475630044937,
0.015786131843924522,
-0.028553107753396034,
0.013843931257724762,
0.009977939538657665,
-0.036984652280807495,
0.026638520881533623,
-0.043961845338344574,
0.051325637847185135,
0.022017741575837135,
-0.019882241263985634,
-0.004577057436108589,
-0.05058925971388817,
-0.01585056446492672,
-0.03703987970948219,
0.06447000801563263,
-0.01291425246745348,
-0.008113979361951351,
0.020949991419911385,
-0.058026690036058426,
-0.014709176495671272,
0.0282033272087574,
0.07488977164030075,
0.04532414674758911,
-0.00575756561011076,
-0.03315547853708267,
-0.007860848680138588,
-0.008422338403761387,
0.0005125890020281076,
-0.01760867051780224,
0.03991175815463066,
-0.007142879068851471,
-0.004924536682665348,
-0.02516576275229454,
-0.07790893316268921,
0.01497611403465271,
-0.03297138214111328,
-0.02864515408873558,
-0.002301185391843319,
0.024410974234342575,
0.017047181725502014,
-0.054786618798971176,
0.039396293461322784,
-0.038549456745386124,
0.010806365869939327,
0.015031342394649982,
0.031204072758555412,
0.017654694616794586,
0.02061862125992775,
-0.031572263687849045,
-0.009246163070201874,
0.03641395643353462,
0.024190060794353485,
-0.007534080650657415,
0.05732712894678116,
-0.01647648774087429,
0.0456555150449276,
0.02321435697376728,
0.04142133519053459,
0.0977175310254097,
0.007561694830656052,
-0.026362378150224686,
0.03453619033098221,
-0.014405420050024986,
0.0003388495242688805,
0.006461728364229202,
-0.007534080650657415,
0.027430128306150436,
0.02453983947634697,
0.030099503695964813,
0.01975337415933609,
-0.0010838583111763,
0.006889748852699995,
0.023343224078416824,
0.04079541191458702,
-0.021391818299889565,
-0.07072923332452774,
-0.013963592238724232,
0.02516576275229454,
-0.0025220990646630526,
-0.00630524754524231,
0.013089141808450222,
-0.02932630479335785,
0.04941105097532272,
0.04745964705944061,
-0.01138626504689455,
-0.028056051582098007,
0.04009585455060005,
-0.0368557833135128,
-0.08431542664766312,
0.057584863156080246,
0.04709145799279213,
-0.02562600001692772,
-0.06251860409975052,
-0.028792431578040123,
-0.0010786806233227253,
0.005651711020618677,
0.057216670364141464,
-0.004910729359835386,
-0.00934741459786892,
-0.03146180510520935,
0.030946340411901474,
-0.03057815134525299,
-0.014037230052053928,
-0.041568610817193985,
-0.036966241896152496,
0.010116010904312134,
-0.028313783928751945,
-0.02384028024971485,
-0.024355744943022728,
-0.009259969927370548,
-0.07268063724040985,
-0.02974972315132618,
0.0086708664894104,
-0.09388836473226547,
0.037223972380161285,
0.04602370783686638,
0.040905870497226715,
-0.08541999757289886,
-0.03240069001913071,
0.022625254467129707,
0.01929313689470291,
-0.031093616038560867,
-0.07448476552963257,
-0.01932995580136776,
-0.02126295305788517,
-0.051951561123132706,
0.05795305222272873,
-0.01021726243197918,
-0.0011534690856933594,
0.035511892288923264,
-0.011782068759202957,
-0.07072923332452774,
0.020452935248613358,
0.028056051582098007,
-0.005288124084472656,
-0.06447000801563263,
0.0068253157660365105,
-0.015887383371591568,
-0.028700383380055428,
-0.04160543158650398,
0.011690021492540836,
-0.0434095598757267,
-0.03521734103560448,
0.029142210260033607,
-0.057805776596069336,
0.04013267159461975,
-0.04933741316199303,
-0.009968734346330166,
-0.016642171889543533,
-0.08505181223154068,
-0.04388820752501488,
-0.012500038370490074,
-0.030099503695964813,
0.005960070062428713,
-0.04399866238236427,
0.02019520290195942,
0.00031670063617639244,
0.033744581043720245,
-0.031774766743183136,
0.0867454782128334,
-0.011570359580218792,
-0.054786618798971176,
0.04863785207271576,
-0.020011108368635178,
-0.06601640582084656,
-0.009416450746357441,
0.03661645948886871,
-0.053461138159036636,
-0.018096521496772766,
-0.053902965039014816,
-0.06030946597456932,
-0.024024374783039093,
0.058247603476047516,
0.06741552799940109,
-0.010953642427921295,
-0.04580279439687729,
0.08379996567964554,
-0.011091712862253189,
-0.018519939854741096,
0.014690767042338848,
-0.014368601143360138,
-0.010134420357644558,
-0.055228449404239655,
0.02170477993786335,
-0.027724681422114372,
0.0047082253731787205,
-0.005900239106267691,
0.06435955315828323,
-0.017700716853141785,
-0.02973131462931633,
0.03619304299354553,
-0.028755612671375275,
-0.03212454542517662,
-0.06417545676231384,
0.027006711810827255,
-0.05596482753753662,
0.01653171516954899,
-0.012628905475139618,
-0.07938168942928314,
-0.0024300517980009317,
-0.006972591392695904,
-0.0391385592520237,
-0.05449206754565239,
0.001205821055918932,
0.02280934900045395,
-0.02754058502614498,
0.031609080731868744,
-0.05084699019789696,
0.03622986003756523,
-0.01271174754947424,
0.025073714554309845,
-0.0031848405487835407,
-0.021962512284517288,
-0.005955467466264963,
0.020471343770623207,
0.016200345009565353,
0.038733553141355515,
0.03326593339443207,
-0.04668644815683365,
-0.04105314612388611,
-0.02628874033689499,
-0.009167922660708427,
-0.05618574097752571,
-0.000517479027621448,
-0.029639266431331635,
0.01977178454399109,
0.0019778688438236713,
-0.029565628618001938,
-0.003918918780982494,
-0.032658420503139496,
0.04237863048911095,
-0.07628889381885529,
0.005329545121639967,
-0.04812238737940788,
-0.015500783920288086,
0.0780562087893486,
0.02522099018096924,
-0.00760311633348465,
-0.012325149029493332,
-0.020452935248613358,
-0.05360841378569603,
0.007534080650657415,
0.05007379129528999,
0.0412004217505455,
0.04745964705944061,
-0.0021182410418987274,
0.008164605125784874,
-0.02888447791337967,
-0.032437507063150406,
-0.06966148316860199,
-0.009356619790196419,
-0.03391026705503464,
0.00834870059043169,
0.04944787174463272,
-0.015417941845953465,
0.09742297977209091,
-0.005412387661635876,
-0.03773944079875946,
-0.011321831494569778,
0.01148751750588417,
-0.004160542972385883,
0.01697354204952717,
-0.0003808461769949645,
0.0065215593203902245,
-0.045066412538290024,
-0.012766975909471512,
0.025736456736922264,
-0.032455917447805405,
0.021575912833213806,
-0.012398786842823029,
0.0007536382181569934,
0.021999331191182137,
-0.002095229225233197,
0.0007450087578035891,
0.00640189740806818,
0.004878513049334288,
-0.045029595494270325,
0.006889748852699995,
0.03862309455871582,
0.013144370168447495,
-0.008505180478096008,
-0.013484945520758629,
-0.004791067913174629,
-0.05835805833339691,
-0.019219499081373215,
-0.019458822906017303,
-0.0018478517886251211,
0.047827836126089096,
-0.03597212955355644,
0.038549456745386124,
0.023398451507091522,
0.0499633364379406,
0.0227725300937891
] |
725,015 | tf_keras.src.engine.base_layer | get_build_config | Returns a dictionary with the layer's input shape.
This method returns a config dict that can be used by
`build_from_config(config)` to create all states (e.g. Variables and
Lookup tables) needed by the layer.
By default, the config only contains the input shape that the layer
was built with. If you're writing a custom layer that creates state in
an unusual way, you should override this method to make sure this state
is already created when TF-Keras attempts to load its value upon model
loading.
Returns:
A dict containing the input shape associated with the layer.
| def get_build_config(self):
"""Returns a dictionary with the layer's input shape.
This method returns a config dict that can be used by
`build_from_config(config)` to create all states (e.g. Variables and
Lookup tables) needed by the layer.
By default, the config only contains the input shape that the layer
was built with. If you're writing a custom layer that creates state in
an unusual way, you should override this method to make sure this state
is already created when TF-Keras attempts to load its value upon model
loading.
Returns:
A dict containing the input shape associated with the layer.
"""
if self._build_input_shape is not None:
def convert_tensorshapes(x):
if isinstance(x, tf.TensorShape) and x._dims:
return tuple(x.as_list())
return x
return {
"input_shape": tf.nest.map_structure(
convert_tensorshapes, self._build_input_shape
)
}
| (self) | [
0.01563890650868416,
-0.059172336012125015,
-0.028229327872395515,
-0.0018469328060746193,
-0.027295397594571114,
0.05124275013804436,
-0.047718487679958344,
0.026185255497694016,
0.044828593730926514,
-0.035665515810251236,
-0.026696274057030678,
-0.022185221314430237,
-0.04909295216202736,
0.00957717839628458,
0.07281122356653214,
0.025638995692133904,
0.05681107938289642,
-0.021163184195756912,
-0.014220391400158405,
-0.03467872366309166,
0.033621445298194885,
-0.05522516369819641,
-0.01899576559662819,
-0.007044116035103798,
0.02327774092555046,
0.034890178591012955,
0.031929802149534225,
-0.011700545437633991,
0.01660807803273201,
-0.06421203166246414,
-0.040282297879457474,
0.00855514220893383,
0.024299776181578636,
0.049233920872211456,
-0.006000053603202105,
-0.010334894061088562,
0.016123492270708084,
0.06294329464435577,
-0.021251291036605835,
-0.0537097305059433,
0.013321705162525177,
-0.02419404871761799,
-0.018167562782764435,
0.018326155841350555,
0.03353333845734596,
0.02701345831155777,
-0.043031223118305206,
-0.01876668818295002,
-0.014687356539070606,
-0.025180842727422714,
0.03321615606546402,
-0.025445161387324333,
-0.009603610262274742,
0.03911929205060005,
-0.03594745695590973,
-0.10248550027608871,
-0.007030900102108717,
-0.06794774532318115,
0.026379089802503586,
0.004129992797970772,
-0.05448506772518158,
-0.007400947157293558,
0.015674149617552757,
-0.02200900763273239,
-0.04070521146059036,
-0.05691681057214737,
-0.03668755292892456,
-0.012114645913243294,
0.011083799414336681,
-0.0012279845541343093,
-0.009277615696191788,
-0.043524619191884995,
0.04447617009282112,
-0.023242497816681862,
-0.04792994260787964,
-0.0433131642639637,
0.026185255497694016,
-0.01802659220993519,
0.04958634823560715,
-0.05603574216365814,
-0.06541027873754501,
0.016211599111557007,
-0.018467126414179802,
0.004158627707511187,
0.03746289014816284,
-0.024881279096007347,
0.02736588381230831,
0.07245879620313644,
-0.03189455717802048,
-0.04824712872505188,
0.0014019949594512582,
0.050996050238609314,
-0.007017684169113636,
0.010634456761181355,
-0.0009625636739656329,
-0.005634411703795195,
-0.009735769592225552,
-0.014282066375017166,
0.01053753960877657,
-0.03302232176065445,
-0.024211671203374863,
-0.03237033262848854,
-0.07929586619138718,
0.02045833319425583,
-0.04253782704472542,
-0.04056423902511597,
-0.020334983244538307,
-0.022713860496878624,
-0.02701345831155777,
-0.009048539213836193,
0.01279306598007679,
-0.05416788533329964,
0.013973693363368511,
0.05067886784672737,
0.050467412918806076,
-0.00992079358547926,
0.06400056928396225,
0.0065815565176308155,
-0.008947216905653477,
-0.01281068753451109,
-0.001886580721475184,
0.0823972150683403,
-0.015771066769957542,
-0.009550746530294418,
0.05145420506596565,
0.05289915204048157,
0.001284152502194047,
0.013427432626485825,
0.05889039486646652,
-0.05085508152842522,
0.03140116110444069,
0.002266540192067623,
-0.02944519743323326,
0.014863569289445877,
0.016854776069521904,
0.023788759484887123,
0.007176275830715895,
0.0036013538483530283,
-0.012563989497721195,
0.06900501996278763,
0.08521661907434464,
0.009603610262274742,
-0.019471539184451103,
-0.05473176762461662,
-0.001196045894175768,
-0.008982459083199501,
0.019295327365398407,
-0.05268769711256027,
0.004063913132995367,
0.007348083425313234,
0.0226257536560297,
0.013550781644880772,
-0.005202689673751593,
0.006000053603202105,
-0.01319835614413023,
-0.003288575680926442,
-0.009718148969113827,
-0.07066142559051514,
0.028916558250784874,
-0.018097078427672386,
-0.028299812227487564,
0.05194760113954544,
0.020934108644723892,
-0.08000071346759796,
-0.031242569908499718,
0.020863622426986694,
-0.000436677917605266,
-0.03247606009244919,
0.011260013096034527,
-0.03163024038076401,
-0.020405469462275505,
-0.011066177859902382,
0.04789470136165619,
0.006044107023626566,
0.0016244638245552778,
0.025304190814495087,
-0.006643231026828289,
0.012052970938384533,
-0.025216083973646164,
-0.0051057725213468075,
0.022872451692819595,
0.028881315141916275,
-0.05307536572217941,
0.03763910382986069,
-0.007590376306325197,
0.07711081951856613,
-0.03351571783423424,
0.026995835825800896,
0.03615891560912132,
0.0055374945513904095,
0.012881172820925713,
0.04320743680000305,
0.016810722649097443,
0.01814994215965271,
-0.027295397594571114,
0.00780183169990778,
-0.0006960414466448128,
0.04377131536602974,
-0.015850361436605453,
0.02077551558613777,
-0.0025969394482672215,
-0.03321615606546402,
0.010193923488259315,
0.07094336301088333,
-0.04905770719051361,
-0.005837056785821915,
0.03325139731168747,
-0.012220373377203941,
0.0065375035628676414,
0.003094741376116872,
-0.0742914155125618,
-0.018396640196442604,
0.05642341077327728,
0.03390338644385338,
0.03629988431930542,
-0.05970097333192825,
-0.057163506746292114,
0.038943078368902206,
-0.002466982463374734,
-0.010678509250283241,
0.0785910114645958,
0.0578683577477932,
0.07203588634729385,
-0.05000925809144974,
0.0046872664242982864,
-0.044722866266965866,
-0.02185041643679142,
-0.00534806540235877,
-0.012872361578047276,
-0.02431739866733551,
-0.023524438962340355,
-0.09607134759426117,
0.002590331481769681,
0.047683246433734894,
0.0475422739982605,
0.013691752217710018,
-0.0118503263220191,
-0.08021216839551926,
0.042714037001132965,
-0.025110356509685516,
0.01086353324353695,
-0.0411633625626564,
0.005387713201344013,
-0.07570111751556396,
-0.04387704282999039,
-0.016053007915616035,
0.045956358313560486,
0.045568689703941345,
-0.031735967844724655,
-0.024176428094506264,
-0.013339326716959476,
0.017850380390882492,
0.03171834722161293,
0.0618155300617218,
0.021216049790382385,
-0.014652113430202007,
-0.0049559916369616985,
-0.06276708096265793,
0.027718309313058853,
-0.013903208076953888,
-0.008889947086572647,
0.032423198223114014,
0.02357730269432068,
0.07464384287595749,
0.03032626211643219,
-0.045216262340545654,
0.008308444172143936,
0.01259923167526722,
-0.04215015843510628,
-0.022026628255844116,
0.05406215786933899,
0.09381581842899323,
-0.009647663682699203,
-0.018696201965212822,
0.029004665091633797,
-0.06949841976165771,
0.01281068753451109,
0.05420312657952309,
0.012669716961681843,
0.04567441716790199,
0.014793084003031254,
-0.04785946011543274,
-0.05515467748045921,
0.042643554508686066,
-0.035436440259218216,
-0.004158627707511187,
-0.02139226160943508,
-0.017356984317302704,
0.009101402945816517,
-0.019277704879641533,
0.057093020528554916,
-0.001602437230758369,
-0.0026476008351892233,
0.01788562349975109,
-0.02103983610868454,
-0.049304407089948654,
-0.0331280492246151,
0.0021982574835419655,
-0.0001996163191506639,
-0.016749048605561256,
0.021533232182264328,
0.0432426780462265,
-0.008581575006246567,
0.027806416153907776,
0.018484747037291527,
0.009374532848596573,
0.041022393852472305,
-0.022167598828673363,
-0.027718309313058853,
0.018238049000501633,
-0.023612545803189278,
0.022590510547161102,
0.013594835065305233,
-0.034625861793756485,
0.02415880560874939,
-0.04570965841412544,
0.02389448694884777,
-0.03006194345653057,
0.04814140126109123,
0.07087288051843643,
-0.03113684244453907,
0.03578886762261391,
-0.04176248982548714,
-0.02223808504641056,
-0.0370752215385437,
-0.04944537580013275,
0.07894343882799149,
0.000261841545579955,
0.00390972662717104,
0.03876686841249466,
-0.03767434507608414,
-0.06308426707983017,
0.041515789926052094,
0.02808835729956627,
-0.05497846379876137,
-0.04440568387508392,
0.06445872783660889,
0.055013708770275116,
-0.04507529363036156,
-0.03140116110444069,
0.03444964811205864,
0.013286462053656578,
-0.02724253386259079,
0.012185131199657917,
-0.024053078144788742,
-0.0020594897214323282,
0.04398277401924133,
0.003618975169956684,
0.020898865535855293,
0.04655548185110092,
0.0020077272783964872,
-0.01514551043510437,
0.0061850775964558125,
0.03552454710006714,
0.0536392480134964,
0.057586416602134705,
-0.03795628622174263,
-0.014898811466991901,
0.022872451692819595,
0.02562137506902218,
0.05635292828083038,
0.0026211687363684177,
0.010748994536697865,
0.012167509645223618,
0.1072784960269928,
0.04944537580013275,
-0.018431883305311203,
-0.008515494875609875,
0.03168310225009918,
0.007326056715101004,
-0.017321741208434105,
-0.05800933018326759,
0.006277589127421379,
0.008119015023112297,
0.022555267438292503,
0.06579794734716415,
-0.07640597224235535,
-0.02123367041349411,
-0.004147614352405071,
0.0370047353208065,
0.003773161442950368,
0.06107543781399727,
0.018819551914930344,
0.04715460538864136,
0.0037269056774675846,
-0.028035493567585945,
-0.05452031269669533,
-0.04701363667845726,
0.012052970938384533,
-0.03605318441987038,
-0.0514894463121891,
0.029075149446725845,
0.0024185238871723413,
0.039401233196258545,
0.012563989497721195,
-0.00863443873822689,
0.01711028441786766,
0.04500480741262436,
0.024053078144788742,
-0.026837244629859924,
0.018519990146160126,
-0.08747214823961258,
0.03629988431930542,
0.052229542285203934,
0.0159913320094347,
-0.04877576604485512,
-0.015356965363025665,
0.08324303478002548,
-0.027542097494006157,
-0.017013367265462875,
0.0072952196933329105,
0.020282119512557983,
-0.007392136845737696,
0.04363034665584564,
-0.025233706459403038,
0.006933982949703932,
-0.011920811608433723,
-0.009480261243879795,
0.02512797899544239,
-0.004136600997298956,
0.03448488935828209,
0.04993877187371254,
0.03448488935828209,
0.03422056883573532,
0.060863979160785675,
0.07104909420013428,
-0.008722544647753239,
0.0865558385848999,
0.0033083995804190636,
0.03422056883573532,
-0.05081983655691147,
0.012299669906497002,
0.02185041643679142,
0.0012852537911385298,
-0.015938468277454376,
-0.03349809721112251,
0.053815457969903946,
-0.01259923167526722,
-0.02993859350681305,
0.03140116110444069,
0.03152451291680336,
0.029956215992569923,
0.04200918599963188,
0.019630132243037224,
0.010969260707497597,
0.00211015110835433,
-0.025850452482700348,
0.07175394892692566,
-0.0021718256175518036,
-0.04447617009282112,
0.02801787108182907,
-0.07386850565671921,
0.034202948212623596,
-0.03074917383491993,
0.025868073105812073,
0.005691681057214737,
-0.01454638596624136,
0.002709275344386697,
-0.06519882380962372,
-0.03127781301736832,
0.009251183830201626,
0.02470506727695465,
0.010352515615522861,
0.016511160880327225,
0.002279756125062704,
-0.05469652637839317,
0.044370442628860474,
0.0063216425478458405,
-0.019489161670207977,
0.033163294196128845,
0.06304902583360672,
0.0160265751183033,
-0.024669824168086052,
-0.002321606734767556,
-0.016819532960653305,
-0.018361397087574005,
0.03785055875778198,
0.03483731672167778,
-0.01073137391358614,
-0.028387919068336487,
0.007652050815522671,
-0.045921117067337036,
-0.07231783121824265,
0.02840553969144821,
0.012898793444037437,
0.061639316380023956,
-0.034819696098566055,
-0.004700482357293367,
-0.010000089183449745,
0.008973648771643639,
-0.0825381800532341,
0.03325139731168747,
0.05860845372080803,
0.0029295417480170727,
-0.015506746247410774,
-0.013145492412149906,
0.036934252828359604,
-0.010898776352405548,
0.038520168513059616,
0.024299776181578636,
-0.005612384993582964,
0.012704959139227867,
-0.00896043237298727,
0.03968317434191704,
-0.000096160001703538,
-0.005110177677124739,
-0.036899007856845856,
0.007793021388351917,
-0.027313020080327988,
-0.0027951791416853666,
-0.052194301038980484,
0.028458405286073685,
0.03933074697852135,
0.011912001296877861,
0.0071366275660693645,
-0.03370955213904381,
0.014608060009777546,
0.0392955057322979,
-0.011991296894848347,
0.01653759367763996,
0.03325139731168747,
0.036969494074583054,
0.004381096456199884,
-0.028264570981264114,
-0.0011409793514758348,
0.07224734127521515,
0.06748959422111511,
-0.03386814519762993,
0.04542772099375725,
0.028123600408434868,
0.011383362114429474,
-0.030661066994071007,
-0.0025528862606734037,
0.09170126169919968,
-0.027559718117117882,
-0.05518992245197296,
0.03143640607595444,
-0.012070592492818832,
-0.11214197427034378,
0.006815039087086916,
-0.0016938477056100965,
-0.008180689997971058,
0.03742764890193939,
0.012608041986823082,
0.02123367041349411,
0.08888185024261475,
0.048035673797130585,
-0.02851126901805401,
-0.02555088885128498,
-0.05081983655691147,
-0.04049375280737877,
0.028951801359653473,
0.004731319844722748,
-0.022343812510371208,
0.021832793951034546,
-0.04211491346359253,
0.007392136845737696,
-0.02905752882361412,
-0.028493646532297134,
0.0011685126228258014,
0.008004477247595787,
0.05328682065010071,
-0.0016123491805046797,
-0.01246707234531641,
-0.011242391541600227,
0.03760385885834694,
-0.08176284283399582,
0.019401054829359055,
-0.05244099721312523,
0.03302232176065445,
0.024299776181578636,
-0.03106635808944702,
0.043947529047727585,
-0.014564006589353085,
0.01142741460353136,
0.013312894850969315,
-0.01354197133332491,
0.051736146211624146,
-0.008127826265990734,
-0.02925136312842369,
0.02763020247220993,
-0.010044142603874207,
0.018713824450969696,
0.028070736676454544,
-0.015004539862275124,
-0.01980634406208992,
-0.02285482920706272,
0.014775462448596954,
-0.04074045270681381,
-0.017057420685887337,
-0.006000053603202105,
0.009127834811806679,
-0.006815039087086916,
0.02551564760506153,
-0.03767434507608414,
-0.021163184195756912,
-0.053040120750665665,
-0.013533161021769047,
0.0045242696069180965,
-0.0016773277893662453,
-0.07993023097515106,
-0.01575344428420067,
-0.0007913066656328738,
0.059172336012125015,
-0.020564060658216476,
-0.0598067007958889,
0.014149906113743782,
0.04070521146059036,
-0.00648463936522603,
-0.041480548679828644,
0.02338346838951111,
-0.0349959060549736,
-0.03890783712267876,
-0.06523406505584717,
-0.01652878150343895,
-0.04278452321887016,
0.0024868063628673553,
0.03390338644385338,
0.03252892568707466,
-0.07059094309806824,
0.048035673797130585,
0.001343624317087233,
-0.023806380107998848,
-0.02392973005771637,
-0.04077569395303726,
0.010775426402688026,
0.005647627636790276,
-0.03474920988082886,
-0.0010925207752734423,
-0.00418065395206213,
0.05635292828083038,
0.015330533497035503,
0.005929568316787481,
-0.07760421931743622,
0.04687266796827316,
-0.02717204950749874,
0.019083870574831963,
-0.015973711386322975,
-0.022255705669522285,
0.030414368957281113,
0.004528674762696028,
-0.043559860438108444,
-0.01584155112504959,
-0.019682995975017548,
0.0391545370221138,
-0.06294329464435577,
0.026308605447411537,
-0.026114771142601967,
0.04574490338563919,
0.02331298403441906,
-0.038978323340415955,
0.0062291305512189865,
0.034238193184137344,
-0.005220311228185892,
0.07281122356653214,
-0.01799135096371174,
0.032423198223114014,
-0.02311914972960949,
0.021991387009620667,
-0.05282866582274437,
-0.029163256287574768,
-0.017022179439663887,
-0.03309280797839165,
0.013110249303281307,
-0.052652452141046524,
0.0033392368350178003,
-0.049762558192014694,
0.0034427621867507696,
0.012211563065648079,
-0.00555071048438549,
-0.044722866266965866,
-0.04715460538864136,
-0.012757823802530766,
-0.04874052479863167,
-0.01837901957333088,
-0.009374532848596573,
0.0205816812813282,
0.04905770719051361,
0.06287281215190887,
-0.043066464364528656,
-0.007246760651469231,
0.04655548185110092,
0.01576225645840168,
0.060405828058719635,
0.04359510540962219,
-0.05568331852555275,
-0.020070664584636688,
-0.026766758412122726,
0.06237941235303879,
0.03725143522024155,
0.010898776352405548,
-0.01560366339981556,
0.022713860496878624,
0.004224707372486591,
-0.07591257244348526,
-0.06470542401075363,
-0.047577518969774246,
-0.024017836898565292,
-0.06830017268657684,
-0.007356894202530384,
0.01984158717095852,
-0.036899007856845856,
-0.04496956616640091,
-0.032546546310186386,
0.03806201368570328,
0.03333950415253639,
-0.047577518969774246,
-0.0349959060549736,
-0.03665231168270111,
0.02870510332286358,
-0.0015947279753163457,
-0.012423018924891949,
0.010590403340756893,
-0.04380656033754349,
0.0010859128087759018,
0.01103974599391222,
-0.010704942047595978,
0.012722580693662167,
-0.02717204950749874,
0.017700599506497383,
-0.0022599322255700827,
0.045216262340545654,
0.012008918449282646,
0.017216013744473457,
-0.020528817549347878,
0.005837056785821915,
-0.009603610262274742,
-0.04715460538864136,
-0.0025066302623599768,
-0.011277633719146252,
0.023841623216867447,
0.010563971474766731,
-0.04465238377451897,
-0.0012566192308440804,
-0.013630078174173832,
0.02902228571474552,
0.06273183971643448,
0.00059967499691993,
-0.034467268735170364,
-0.029163256287574768,
0.028141221031546593,
0.0011139967245981097,
-0.07591257244348526,
0.07048521190881729,
0.04200918599963188,
0.013260030187666416,
0.06685522198677063,
-0.0474013052880764,
0.005207094829529524,
-0.03474920988082886,
-0.0015275466721504927,
0.04581538960337639,
0.02100459299981594,
-0.04697839543223381,
0.009092592634260654,
-0.05180663242936134,
-0.024335019290447235,
-0.03578886762261391,
-0.049692075699567795,
-0.021762309595942497,
-0.010775426402688026,
-0.10826528817415237,
0.04091666638851166,
-0.0019857005681842566,
0.058396998792886734,
0.001996713923290372,
-0.008942811749875546,
-0.03467872366309166
] |
725,016 | tf_keras.src.engine.training | get_compile_config | Returns a serialized config with information for compiling the model.
This method returns a config dictionary containing all the information
(optimizer, loss, metrics, etc.) with which the model was compiled.
Returns:
A dict containing information for compiling the model.
| def get_compile_config(self):
"""Returns a serialized config with information for compiling the model.
This method returns a config dictionary containing all the information
(optimizer, loss, metrics, etc.) with which the model was compiled.
Returns:
A dict containing information for compiling the model.
"""
if self._is_compiled and hasattr(self, "_compile_config"):
return self._compile_config.serialize()
| (self) | [
0.031432684510946274,
-0.034097976982593536,
0.005392775405198336,
-0.03416905179619789,
0.009541747160255909,
0.0026031024754047394,
-0.033795908093452454,
-0.02103804238140583,
0.0033182892948389053,
-0.053803373128175735,
-0.022050853818655014,
-0.03507525101304054,
-0.019403329119086266,
0.036176905035972595,
0.009435135871171951,
-0.0408322811126709,
0.023276887834072113,
-0.03955294191837311,
-0.009506209753453732,
-0.0522041954100132,
0.010678938589990139,
-0.051386840641498566,
-0.03809591382741928,
-0.0004922462394461036,
0.01243803184479475,
0.030633095651865005,
0.04676700010895729,
-0.02837648056447506,
0.04619840532541275,
0.008195774629712105,
-0.06631247699260712,
0.020593827590346336,
0.0066232518292963505,
-0.018461592495441437,
-0.000896759913302958,
0.054549653083086014,
0.03104177489876747,
0.058636438101530075,
-0.07160753011703491,
-0.07569430768489838,
-0.008751044049859047,
-0.011451873928308487,
-0.015218820422887802,
0.005916949361562729,
0.006827590987086296,
-0.031237229704856873,
-0.052666179835796356,
0.04847278818488121,
0.010883278213441372,
-0.05160006508231163,
0.015058903023600578,
-0.009204143658280373,
0.008626663126051426,
0.04417278245091438,
-0.007787096314132214,
-0.08209101110696793,
0.0010089243296533823,
0.016897954046726227,
0.06634801626205444,
0.013255388475954533,
-0.01601840741932392,
0.0282343327999115,
0.031183922663331032,
0.020718207582831383,
0.007507240865379572,
-0.02956697903573513,
-0.047264520078897476,
-0.02715044654905796,
0.006769842933863401,
0.04204054921865463,
-0.0136018767952919,
-0.08472076803445816,
0.01913680136203766,
0.011878320947289467,
-0.013939480297267437,
-0.1292133778333664,
-0.043568648397922516,
-0.06311412900686264,
-0.0022699409164488316,
0.019261181354522705,
-0.01648927666246891,
-0.03884219750761986,
-0.029300449416041374,
-0.07910588383674622,
0.02677730657160282,
-0.059915777295827866,
0.01600952446460724,
-0.01910126395523548,
-0.04424385726451874,
-0.0021977557335048914,
0.001899020979180932,
0.0394107922911644,
0.008031414821743965,
0.07349099963903427,
-0.013877290301024914,
-0.003753620432689786,
0.006223458331078291,
0.012411379255354404,
0.04378187283873558,
-0.03272979333996773,
0.01390394289046526,
0.03823806345462799,
-0.07334885001182556,
-0.030490946024656296,
-0.020878124982118607,
-0.02396986447274685,
-0.02947813645005226,
-0.00024931589723564684,
0.008142468519508839,
-0.038735583424568176,
0.017164483666419983,
0.015263241715729237,
0.01876365952193737,
-0.046980224549770355,
0.058778584003448486,
-0.033049628138542175,
-0.057499244809150696,
-0.01600952446460724,
0.00538833299651742,
0.019030189141631126,
-0.036372359842061996,
0.064997598528862,
-0.00033121812157332897,
-0.013006627559661865,
0.008902077563107014,
0.04353311285376549,
0.007898150011897087,
-0.0002856860519386828,
0.06311412900686264,
-0.07484141737222672,
0.012873362749814987,
-0.03365376219153404,
0.006805380340665579,
0.008897635154426098,
-0.0037402939051389694,
-0.06382486969232559,
-0.01049236860126257,
0.0066499048843979836,
-0.012464684434235096,
0.0578901544213295,
0.07206951081752777,
0.06492652744054794,
0.01658700406551361,
-0.047122374176979065,
0.007680484559386969,
-0.022193003445863724,
0.002189981983974576,
-0.026368627324700356,
-0.018319444730877876,
-0.03237441927194595,
0.08401001989841461,
-0.03770500421524048,
-0.03969509154558182,
-0.03351161256432533,
-0.033333927392959595,
0.008178005926311016,
0.0034182376693934202,
-0.02677730657160282,
-0.015156630426645279,
-0.017368823289871216,
-0.02587110735476017,
0.021908704191446304,
-0.012944437563419342,
-0.04481245204806328,
0.003555944422259927,
-0.01378844678401947,
-0.0008051404729485512,
-0.003946854267269373,
-0.02217523381114006,
-0.01161179132759571,
-0.053696759045124054,
-0.01871035434305668,
-0.026031024754047394,
0.05415874347090721,
0.018888039514422417,
0.0501430369913578,
0.017884112894535065,
0.0341157466173172,
0.013042164966464043,
-0.011380799114704132,
0.021304572001099586,
0.018870271742343903,
-0.040583521127700806,
0.04207608476281166,
0.029104994609951973,
0.03594591096043587,
0.02382771484553814,
0.014437001198530197,
0.04012153670191765,
-0.01431262120604515,
0.046269480139017105,
0.014046091586351395,
-0.019723165780305862,
0.007778211962431669,
-0.07114554196596146,
-0.04431493207812309,
0.024609534069895744,
0.02311697043478489,
0.0027097139973193407,
0.06741413474082947,
0.019492173567414284,
-0.036319054663181305,
0.011283071711659431,
0.017217790707945824,
-0.01871035434305668,
-0.01681799627840519,
-0.009683895856142044,
0.0022288509644567966,
-0.009888235479593277,
0.03770500421524048,
0.005597114562988281,
-0.026617389172315598,
0.04786865413188934,
0.04637609049677849,
0.0308818556368351,
0.0009600605699233711,
0.01464134082198143,
0.04435046762228012,
-0.04136534035205841,
0.009381829760968685,
0.054229818284511566,
0.03280086815357208,
0.059915777295827866,
-0.021357877179980278,
-0.014143818989396095,
-0.07199843972921371,
-0.0005713721038773656,
-0.006023561116307974,
-0.03784715384244919,
-0.09694557636976242,
0.011096501722931862,
-0.06673892587423325,
-0.038309138268232346,
0.04136534035205841,
0.04150748997926712,
0.002400984289124608,
0.01743101328611374,
0.028483092784881592,
-0.03345830738544464,
-0.04324881359934807,
0.014978944323956966,
-0.008826560340821743,
-0.015209936536848545,
-0.016231631860136986,
-0.0020822598598897457,
-0.02453845925629139,
0.07441496849060059,
0.037349633872509,
-0.04189839959144592,
-0.017653120681643486,
0.04349757358431816,
-0.026226479560136795,
-0.0134064219892025,
0.02160663902759552,
-0.034808721393346786,
-0.02368556708097458,
-0.024325236678123474,
-0.017901882529258728,
0.0454876609146595,
0.01583183743059635,
-0.042715754359960556,
-0.017217790707945824,
-0.012242577038705349,
0.027612430974841118,
0.06890669465065002,
-0.0357326902449131,
-0.033795908093452454,
0.04431493207812309,
-0.03749178349971771,
-0.006943087093532085,
0.11961832642555237,
0.03358268737792969,
-0.06418024748563766,
0.016045061871409416,
-0.032712023705244064,
-0.07448603957891464,
-0.018888039514422417,
0.01715559884905815,
0.01833721250295639,
0.037349633872509,
0.05334138870239258,
-0.04893477261066437,
-0.004331100266426802,
-0.008098047226667404,
-0.0282343327999115,
-0.031912434846162796,
-0.045843031257390976,
0.025800032541155815,
0.004206720273941755,
0.017262211069464684,
0.010101458989083767,
0.020025230944156647,
0.010296913795173168,
-0.034186817705631256,
0.10909930616617203,
-0.05739263445138931,
0.022477300837635994,
-0.004499902483075857,
0.031166154891252518,
0.030153343454003334,
0.004504344426095486,
-0.0005996908294036984,
-0.011949394829571247,
0.003229446243494749,
-0.009479557164013386,
0.05661081522703171,
0.014339273795485497,
-0.023188045248389244,
-0.000863999011926353,
0.025764495134353638,
0.008089163340628147,
-0.015174399130046368,
0.09246788173913956,
0.07498356699943542,
-0.010581211186945438,
-0.053803373128175735,
0.00015797410742379725,
-0.04104550555348396,
0.04339096322655678,
0.06179925054311752,
-0.05590007081627846,
0.061372801661491394,
0.033333927392959595,
-0.03464880213141441,
0.01056344248354435,
-0.044705841690301895,
0.035697150975465775,
-0.019776470959186554,
0.008306828327476978,
0.0024809432215988636,
-0.0016802448080852628,
-0.005783685017377138,
0.04363972321152687,
0.03976616635918617,
0.01544981263577938,
-0.00902645755559206,
0.01998969353735447,
-0.010394641198217869,
-0.03209012374281883,
-0.056966185569763184,
0.06595710664987564,
0.018799196928739548,
0.013006627559661865,
0.02482275851070881,
-0.026688462123274803,
0.0010916594183072448,
-0.023436805233359337,
0.02595994994044304,
-0.02416531927883625,
-0.0017813039012253284,
-0.05757031962275505,
0.02336573228240013,
-0.00921302754431963,
0.08251745998859406,
-0.008346808142960072,
-0.0031605928670614958,
-0.005739263258874416,
-0.011762824840843678,
0.005228415597230196,
0.003429342992603779,
0.0544075071811676,
0.061052966862916946,
-0.004180067218840122,
0.027754580602049828,
0.04033476114273071,
0.049112457782030106,
-0.055935606360435486,
-0.007844844833016396,
0.112937331199646,
-0.05106700584292412,
-0.034044671803712845,
0.036070290952920914,
0.02439631149172783,
-0.02231738343834877,
0.005730378907173872,
0.008244638331234455,
-0.052808329463005066,
0.035324010998010635,
-0.03491533175110817,
0.015316547825932503,
-0.018976882100105286,
0.0025875549763441086,
0.018639279529452324,
-0.028305407613515854,
0.03530624136328697,
-0.004462143871933222,
0.025835569947957993,
-0.050391796976327896,
-0.0015802964335307479,
0.0076049682684242725,
-0.06531743705272675,
-0.029033919796347618,
-0.10810426622629166,
0.03937525674700737,
-0.019776470959186554,
0.00336937396787107,
0.031965743750333786,
0.07846621423959732,
-0.05817445367574692,
-0.007693811319768429,
-0.009506209753453732,
-0.051528990268707275,
0.05675296112895012,
0.026706231757998466,
-0.03041987307369709,
-0.052808329463005066,
0.057641394436359406,
0.06794719398021698,
-0.017368823289871216,
0.025800032541155815,
-0.04477691650390625,
0.0170578733086586,
-0.020451677963137627,
0.012109312228858471,
-0.053376924246549606,
0.024698378518223763,
0.0597025528550148,
-0.03976616635918617,
0.033422768115997314,
0.013539685867726803,
0.04136534035205841,
0.016889071092009544,
0.054940562695264816,
-0.015663035213947296,
0.021571101620793343,
0.06371825933456421,
0.008728832937777042,
0.04708683490753174,
-0.006574388127774,
0.00035342888440936804,
-0.0607331320643425,
0.007103004492819309,
0.01657811924815178,
-0.01544981263577938,
-0.003835800103843212,
-0.043995097279548645,
0.09680342674255371,
-0.022992590442299843,
-0.03491533175110817,
0.06890669465065002,
-0.016800226643681526,
-0.0013615202624350786,
0.008591126650571823,
-0.0014692425029352307,
-0.02905168943107128,
0.02956697903573513,
-0.06531743705272675,
0.032427724450826645,
-0.027967803180217743,
-0.019261181354522705,
0.02780788578093052,
0.03523516654968262,
0.04680253565311432,
-0.04850832372903824,
0.06599264591932297,
-0.011673981323838234,
0.020256223157048225,
-0.03559054061770439,
-0.01418824028223753,
0.013983901590108871,
-0.0014636898413300514,
0.029744664207100868,
0.007849286310374737,
-0.005859201308339834,
-0.010039268992841244,
-0.029104994609951973,
0.02709714137017727,
0.061905860900878906,
-0.03681657463312149,
0.024840526282787323,
0.043568648397922516,
-0.002361004939302802,
-0.047584354877471924,
-0.024769451469182968,
-0.034186817705631256,
0.010403525084257126,
-0.010190301574766636,
0.03720748424530029,
-0.015209936536848545,
-0.03479095175862312,
-0.021197959780693054,
-0.04175624996423721,
-0.0444570817053318,
0.04978766664862633,
0.03089962527155876,
-0.01767089031636715,
0.01947440393269062,
-0.030295491218566895,
-0.021446721628308296,
-0.020096305757761,
-0.048401713371276855,
0.06155049055814743,
0.06368272006511688,
-0.01307770237326622,
-0.017786385491490364,
0.03587483614683151,
0.01111427042633295,
0.023152507841587067,
0.02624424733221531,
0.0568595752120018,
0.01981200836598873,
-0.04104550555348396,
-0.022495068609714508,
-0.018941346555948257,
-0.007529451511800289,
-0.021819861605763435,
-0.03056202083826065,
0.0028629684820771217,
-0.029655821621418,
0.022868210449814796,
-0.0053394692949950695,
-0.024183087050914764,
-0.02237068861722946,
0.04331988841295242,
-0.0023698892910033464,
-0.02208639122545719,
0.02066490240395069,
-0.0009783845162019134,
-0.02430746890604496,
0.012286998331546783,
0.011665097437798977,
0.02269052341580391,
0.017972955480217934,
-0.06194140017032623,
-0.018408287316560745,
0.08663977682590485,
0.03198350965976715,
-0.033191777765750885,
0.004570976831018925,
0.0558289960026741,
0.024129781872034073,
-0.02890953980386257,
-0.032534338533878326,
0.061905860900878906,
0.0004356087592896074,
-0.010625633411109447,
0.03104177489876747,
0.011194229125976562,
-0.0633273497223854,
-0.01535208523273468,
0.017048988491296768,
-0.05856536328792572,
0.08344142884016037,
-0.00673874793574214,
-0.007631620857864618,
0.03781161829829216,
0.0051573412492871284,
0.03363599255681038,
-0.05575792118906975,
-0.07054141163825989,
-0.02615540474653244,
0.038451287895441055,
-0.07299347966909409,
-0.0540165975689888,
0.08002985268831253,
0.023294657468795776,
0.06030668690800667,
-0.004404395818710327,
0.008657759055495262,
0.06691661477088928,
-0.005321700591593981,
-0.025835569947957993,
-0.0002697220479603857,
-0.025711188092827797,
-0.03150375932455063,
0.06311412900686264,
-0.014108281582593918,
0.03443558141589165,
-0.06403809785842896,
-0.02160663902759552,
0.046020716428756714,
-0.01619609445333481,
0.0005852538160979748,
-0.024289699271321297,
0.017892997711896896,
0.01839051954448223,
-0.009888235479593277,
0.07377529889345169,
-0.017128946259617805,
-0.015396506525576115,
0.04847278818488121,
0.019829776138067245,
0.02748805098235607,
0.06848025321960449,
-0.023241350427269936,
-0.044421542435884476,
-0.027630198746919632,
0.012811172753572464,
0.05160006508231163,
-0.017688658088445663,
-0.01701345108449459,
0.05362568795681,
-0.010057037696242332,
-0.008257964625954628,
0.03576822578907013,
-0.0008845439879223704,
-0.0633273497223854,
0.02956697903573513,
-0.011132038198411465,
0.010439062491059303,
-0.06545958667993546,
-0.02791449800133705,
0.05629098042845726,
0.031166154891252518,
-0.031823594123125076,
-0.04673146456480026,
-0.00869773793965578,
0.03130830451846123,
-0.002552017569541931,
0.012686792761087418,
-0.03624797984957695,
-0.010430178605020046,
-0.03724301978945732,
-0.06634801626205444,
-0.02677730657160282,
-0.045132286846637726,
0.011709518730640411,
0.030437640845775604,
0.033049628138542175,
-0.03994385153055191,
0.047264520078897476,
0.05781907960772514,
-0.010545673780143261,
0.003644787473604083,
-0.027683505788445473,
0.047975264489650726,
-0.006303417030721903,
-0.039304181933403015,
-0.010909930802881718,
0.010136996395885944,
0.03749178349971771,
0.01179836131632328,
0.04204054921865463,
-0.05362568795681,
-0.030295491218566895,
-0.029620284214615822,
0.03235665336251259,
0.0054460810497403145,
-0.0013426410732790828,
0.021819861605763435,
0.05334138870239258,
0.013202082365751266,
-0.015982871875166893,
-0.052808329463005066,
-0.028412017971277237,
0.019740933552384377,
-0.004240036476403475,
-0.05710833519697189,
0.08201994001865387,
-0.03678103908896446,
-0.0337248370051384,
-0.026599619537591934,
0.03619467467069626,
0.00800920370966196,
0.03326285257935524,
-0.01657811924815178,
-0.04719344526529312,
0.04022815078496933,
0.011762824840843678,
-0.09694557636976242,
-0.045274436473846436,
-0.036176905035972595,
0.012286998331546783,
-0.06727198511362076,
0.020096305757761,
0.03036656603217125,
-0.07370422035455704,
0.0018490466754883528,
0.0029540325049310923,
-0.030011193826794624,
0.006023561116307974,
0.000982271390967071,
-0.0038069263100624084,
-0.016089482232928276,
-0.025195898488163948,
0.00434886896982789,
-0.021251266822218895,
-0.026297552511096,
0.008373460732400417,
-0.05390998348593712,
0.03852236270904541,
0.030259955674409866,
0.027985570952296257,
0.06211908534169197,
0.0029873487073928118,
-0.017750848084688187,
-0.002191092586144805,
-0.006672115530818701,
0.052808329463005066,
0.012286998331546783,
-0.07405959814786911,
0.039908312261104584,
0.009817160665988922,
0.0054061016999185085,
0.03724301978945732,
-0.02340126782655716,
-0.019723165780305862,
-0.009301871061325073,
-0.03363599255681038,
0.009506209753453732,
0.012677907943725586,
-0.016764691099524498,
-0.038024839013814926,
0.007373976055532694,
0.01696902886033058,
0.02226407639682293,
0.011318609118461609,
-0.04268021881580353,
-0.07061248272657394,
-0.056468665599823,
0.03386698290705681,
0.055651307106018066,
0.0019234528299421072,
-0.03493310138583183,
-0.0169601459056139,
-0.011132038198411465,
-0.021962011232972145,
0.026883916929364204,
-0.011745056137442589,
0.00024556784774176776,
-0.002720819553360343,
0.03358268737792969,
0.005055171437561512,
0.02715044654905796,
-0.0014248209772631526,
0.01824836991727352,
-0.031716980040073395,
-0.059489328414201736,
0.04666038975119591,
0.0004994647460989654,
0.0387711226940155,
0.00820021703839302,
-0.03699425980448723,
0.007445050403475761,
-0.004855274688452482,
0.018061799928545952,
0.02723928913474083,
-0.027221521362662315,
-0.023756641894578934,
0.013770678080618382,
0.028554167598485947,
0.044847991317510605,
-0.02828763797879219,
0.0412231907248497,
-0.021997548639774323,
0.009932656772434711,
0.00796034000813961,
0.0028585263062268496,
0.04140087962150574,
-0.046909149736166,
0.016267169266939163,
0.05913395807147026,
0.015814069658517838,
-0.03621244058012962,
0.01984754577279091,
-0.040157075971364975,
-0.01961655355989933,
0.013610760681331158,
-0.010696707293391228,
-0.034559961408376694,
0.021073579788208008,
-0.06083974614739418,
-0.024200856685638428,
0.009603937156498432,
0.05515378713607788,
-0.0019156790804117918,
0.012900016270577908,
-0.002378773642703891
] |
725,017 | tf_keras.src.engine.training | get_config | Returns the config of the `Model`.
Config is a Python dictionary (serializable) containing the
configuration of an object, which in this case is a `Model`. This allows
the `Model` to be be reinstantiated later (without its trained weights)
from this configuration.
Note that `get_config()` does not guarantee to return a fresh copy of
dict every time it is called. The callers should make a copy of the
returned dict if they want to modify it.
Developers of subclassed `Model` are advised to override this method,
and continue to update the dict from `super(MyModel, self).get_config()`
to provide the proper configuration of this `Model`. The default config
will return config dict for init parameters if they are basic types.
Raises `NotImplementedError` when in cases where a custom
`get_config()` implementation is required for the subclassed model.
Returns:
Python dictionary containing the configuration of this `Model`.
| @generic_utils.default
def get_config(self):
"""Returns the config of the `Model`.
Config is a Python dictionary (serializable) containing the
configuration of an object, which in this case is a `Model`. This allows
the `Model` to be be reinstantiated later (without its trained weights)
from this configuration.
Note that `get_config()` does not guarantee to return a fresh copy of
dict every time it is called. The callers should make a copy of the
returned dict if they want to modify it.
Developers of subclassed `Model` are advised to override this method,
and continue to update the dict from `super(MyModel, self).get_config()`
to provide the proper configuration of this `Model`. The default config
will return config dict for init parameters if they are basic types.
Raises `NotImplementedError` when in cases where a custom
`get_config()` implementation is required for the subclassed model.
Returns:
Python dictionary containing the configuration of this `Model`.
"""
# If sublcass doesn't implement `get_config()` parse from init args
# otherwise default to empty dict
if generic_utils.is_default(self.get_config):
try:
config = base_layer.Layer.get_config(self)
except NotImplementedError:
config = {}
logging.warning(
"Model's `__init__()` arguments contain non-serializable "
"objects. Please implement a `get_config()` method in the "
"subclassed Model for proper saving and loading. "
"Defaulting to empty config."
)
else:
config = {}
return config
| (self) | [
0.021138088777661324,
-0.03032102808356285,
-0.023679278790950775,
0.031379856169223785,
-0.010761559009552002,
-0.01610383577644825,
-0.05040028691291809,
0.009423582814633846,
0.04393180087208748,
-0.0454719178378582,
-0.016931647434830666,
-0.005756182596087456,
-0.029897496104240417,
0.0328044667840004,
-0.012859966605901718,
0.040736060589551926,
0.006439608987420797,
-0.02625897340476513,
0.017008652910590172,
-0.04978423938155174,
0.045510418713092804,
-0.07273196429014206,
-0.018596896901726723,
0.06352977454662323,
0.01186851691454649,
0.018048230558633804,
-0.020406533032655716,
-0.003506169654428959,
0.0706913098692894,
-0.022023655474185944,
-0.052363935858011246,
-0.0035230147186666727,
0.019732732325792313,
0.06799610704183578,
0.01732630282640457,
-0.003915262874215841,
0.003354564541950822,
0.08555343002080917,
-0.11889693140983582,
-0.015516665764153004,
0.02803010679781437,
-0.03374778479337692,
0.06476186960935593,
-0.03524939715862274,
0.03940771147608757,
0.02931995317339897,
-0.008432134054601192,
0.06707204133272171,
-0.038079362362623215,
-0.03145686537027359,
0.0022163228131830692,
0.03465260565280914,
-0.014688854105770588,
0.04866765812039375,
-0.0322076715528965,
-0.09117484837770462,
0.00697864918038249,
0.02233167737722397,
0.026355231180787086,
0.0246226005256176,
-0.03247718885540962,
0.0043893298134207726,
0.04470185935497284,
-0.0164214838296175,
-0.02814561501145363,
-0.08000901341438293,
-0.07985500246286392,
-0.023159490898251534,
0.021388357505202293,
0.030359530821442604,
0.005135323386639357,
-0.06680251657962799,
0.021503865718841553,
0.06137361004948616,
0.0014029492158442736,
-0.028761660680174828,
0.02144611068069935,
-0.04570293426513672,
0.02764507755637169,
0.006516614463180304,
-0.014746608212590218,
-0.008302186615765095,
-0.043893299996852875,
-0.03488362208008766,
-0.014024678617715836,
-0.05267195776104927,
0.006901643704622984,
-0.023929547518491745,
0.06048804521560669,
0.01825999654829502,
-0.04231467843055725,
0.07723680138587952,
0.02612421289086342,
0.005587732419371605,
0.01394767314195633,
-0.029088936746120453,
-0.022909222170710564,
-0.017913471907377243,
0.03653924539685249,
-0.04608796164393425,
-0.05863990634679794,
0.005433721002191305,
-0.039850495755672455,
-0.027375556528568268,
-0.03675101324915886,
-0.0708068236708641,
-0.028838666155934334,
-0.0025460037868469954,
-0.04381629079580307,
-0.017364805564284325,
0.012484563514590263,
0.011656750924885273,
-0.042738210409879684,
0.02473810873925686,
0.010116634890437126,
-0.0164214838296175,
-0.004711791407316923,
0.01363965030759573,
0.01294659823179245,
0.0030633865389972925,
-0.04512539133429527,
0.05317249521613121,
-0.034055810421705246,
0.009933746419847012,
0.02666325308382511,
0.03324724733829498,
0.01320649217814207,
-0.0073636784218251705,
0.051863398402929306,
-0.049553222954273224,
0.0322076715528965,
-0.010164763778448105,
-0.043623778969049454,
0.009375454857945442,
0.03936920687556267,
-0.03651999309659004,
0.015218268148601055,
0.03559592366218567,
-0.02614346519112587,
0.07292447984218597,
0.05925595387816429,
0.02169637940824032,
0.06580144166946411,
0.01621934399008751,
-0.018750909715890884,
-0.0019323639571666718,
-0.014852491207420826,
-0.044778864830732346,
-0.0001955225015990436,
-0.02991674840450287,
0.02716379053890705,
0.04012001305818558,
-0.040851570665836334,
-0.004006707109510899,
-0.05509763956069946,
-0.01617121510207653,
-0.029955251142382622,
-0.01206103153526783,
0.020291024819016457,
-0.033536020666360855,
-0.05367303267121315,
0.02903118170797825,
0.06198965758085251,
-0.0997994989156723,
-0.032265424728393555,
-0.0014534841757267714,
-0.037963852286338806,
-0.031225847080349922,
0.031533870846033096,
0.007695765700191259,
-0.043623778969049454,
-0.02171563170850277,
0.003282371675595641,
0.03291997313499451,
0.01787496730685234,
0.03854139521718025,
0.032265424728393555,
0.0019744765013456345,
-0.013601146638393402,
0.010646049864590168,
0.07015226781368256,
-0.02955097146332264,
-0.028376631438732147,
0.023679278790950775,
0.01325462106615305,
0.06037253513932228,
0.005602171178907156,
0.018664278090000153,
-0.0029719420708715916,
0.012850340455770493,
0.06048804521560669,
0.008384005166590214,
-0.013129486702382565,
-0.025084635242819786,
-0.03917669504880905,
0.018750909715890884,
0.01655624434351921,
0.007238544058054686,
-0.03257344663143158,
0.08362828195095062,
0.022774461656808853,
-0.08116409927606583,
-0.007493625394999981,
-0.018269622698426247,
-0.033516768366098404,
-0.03419056907296181,
0.023698531091213226,
-0.018481388688087463,
-0.061181098222732544,
0.005650299601256847,
-0.013524141162633896,
-0.008229993283748627,
0.06025702878832817,
0.030494291335344315,
0.05794685333967209,
-0.06637898832559586,
-0.013764784671366215,
0.04574143886566162,
-0.018981926143169403,
0.01775945909321308,
0.08131811022758484,
0.044393837451934814,
0.043623778969049454,
0.023698531091213226,
0.016960524022579193,
-0.03361302614212036,
0.010588295757770538,
-0.04119809716939926,
0.008148174732923508,
-0.043623778969049454,
-0.006627310533076525,
-0.051824893802404404,
-0.004158312454819679,
0.015131637454032898,
0.035807691514492035,
0.02818411774933338,
-0.009105933830142021,
-0.05579069256782532,
-0.003780502825975418,
0.010896318592131138,
0.020772309973835945,
-0.014573344960808754,
-0.041852645576000214,
-0.017778711393475533,
-0.016065333038568497,
-0.0334397628903389,
0.014159439131617546,
0.04189114645123482,
-0.018914546817541122,
-0.028010854497551918,
0.04497138038277626,
0.0643383339047432,
-0.021176591515541077,
0.07723680138587952,
-0.005010189022868872,
-0.025026880204677582,
-0.05378854274749756,
-0.049052685499191284,
-0.0014895807253196836,
0.008181864395737648,
-0.017663203179836273,
-0.04354677349328995,
0.006160462740808725,
0.06776509433984756,
0.013803287409245968,
-0.036674004048109055,
-0.018568020313978195,
0.001482361345551908,
0.026701755821704865,
0.03118734434247017,
0.13360503315925598,
0.015959449112415314,
-0.008966361172497272,
0.00659843347966671,
-0.000704482605215162,
-0.055752187967300415,
0.0027505503967404366,
-0.007811274379491806,
-0.0012898469576612115,
0.02198515273630619,
0.010511290282011032,
-0.01994449831545353,
0.03829112648963928,
-0.015661051496863365,
-0.009004863910377026,
-0.05086232349276543,
-0.03197665140032768,
-0.01887604407966137,
-0.006819825153797865,
0.013533767312765121,
0.037463314831256866,
-0.013986175879836082,
-0.0006250704172998667,
0.0012357021914795041,
0.03940771147608757,
-0.11720280349254608,
-0.02031027525663376,
0.024795863777399063,
0.03397880494594574,
-0.0201947670429945,
-0.0033690030686557293,
0.0017530848272144794,
-0.009649788029491901,
0.030917823314666748,
0.03573068603873253,
-0.023043980821967125,
0.03118734434247017,
-0.011358353309333324,
0.0025484103243798018,
0.019684603437781334,
-0.0057465569116175175,
0.012397931888699532,
0.07766033709049225,
0.03374778479337692,
0.014659976586699486,
-0.014005427248775959,
0.017499564215540886,
-0.03230392560362816,
0.0067813219502568245,
0.056021708995103836,
-0.0555596761405468,
0.07862290740013123,
-0.02982049062848091,
-0.006324100308120251,
0.02108033373951912,
-0.03736705705523491,
0.02096482552587986,
0.019925247877836227,
-0.01832737773656845,
0.04870615899562836,
-0.06514689326286316,
0.04019702225923538,
0.03218841925263405,
0.021369105204939842,
-0.08601546287536621,
-0.04408581182360649,
0.024199068546295166,
0.038964927196502686,
-0.011406482197344303,
-0.06969023495912552,
0.06360677629709244,
0.0064781117253005505,
-0.007777584251016378,
0.002335441065952182,
-0.0201947670429945,
0.019155189394950867,
0.019569095224142075,
0.021369105204939842,
0.024045057594776154,
0.014515590853989124,
-0.0265092421323061,
-0.013841790147125721,
-0.026875019073486328,
0.0505157969892025,
-0.018702780827879906,
-0.002969535533338785,
-0.020868567749857903,
-0.044278327375650406,
0.02235092967748642,
-0.03596170246601105,
0.01015513762831688,
0.022658953443169594,
-0.029242947697639465,
0.04697353020310402,
0.0707683190703392,
0.03211141377687454,
-0.026971276849508286,
0.011570119298994541,
0.06661000847816467,
-0.02473810873925686,
-0.03574993461370468,
-0.006685064639896154,
0.023660028353333473,
-0.00211525266058743,
0.043739285320043564,
0.0035230147186666727,
-0.06661000847816467,
0.025026880204677582,
-0.011666377075016499,
0.016796886920928955,
0.02714454010128975,
0.00478639081120491,
0.010030003264546394,
0.03813711553812027,
0.03180338814854622,
-0.06379929184913635,
0.030090011656284332,
-0.013331626541912556,
0.010713430121541023,
-0.013764784671366215,
-0.03815636783838272,
-0.017595821991562843,
-0.08193415403366089,
0.030994828790426254,
-0.019520966336131096,
-0.016498489305377007,
0.005375966429710388,
0.06799610704183578,
-0.043123241513967514,
0.006550304591655731,
-0.011772259138524532,
-0.055367160588502884,
0.04354677349328995,
0.02258194610476494,
-0.01775945909321308,
0.003342532319948077,
0.013485638424754143,
0.06892018020153046,
0.006540678907185793,
-0.00928882323205471,
-0.011858890764415264,
0.03836813196539879,
-0.04397030547261238,
0.010703803971409798,
-0.00336419022642076,
0.013331626541912556,
0.039850495755672455,
0.007878654636442661,
-0.01578618586063385,
0.0034002866595983505,
0.022947724908590317,
0.06999825686216354,
0.0454719178378582,
-0.031514618545770645,
0.049822743982076645,
0.06772658973932266,
-0.023274999111890793,
0.07400256395339966,
-0.010713430121541023,
0.00038833776488900185,
-0.0265092421323061,
-0.011656750924885273,
0.02816486731171608,
-0.02943546138703823,
0.02123434469103813,
-0.014419333077967167,
0.08555343002080917,
-0.06252869963645935,
-0.04612646624445915,
0.044162817299366,
-0.038964927196502686,
-0.019453587010502815,
-0.0164022333920002,
0.011156213469803333,
0.00823480635881424,
-0.007816087454557419,
-0.04624197632074356,
0.035807691514492035,
0.007252982351928949,
-0.012542317621409893,
0.02144611068069935,
-0.015064257197082043,
0.031129589304327965,
-0.009486149996519089,
-0.011300599202513695,
-0.059178948402404785,
0.01860652305185795,
-0.012734832242131233,
0.0011544851586222649,
0.030263274908065796,
0.018885668367147446,
0.01250381488353014,
0.009649788029491901,
-0.04993825405836105,
-0.0037780962884426117,
-0.014380830340087414,
0.0858614519238472,
-0.0019191285828128457,
-0.06360677629709244,
-0.018067482858896255,
0.08385930210351944,
0.013283498585224152,
-0.012888843193650246,
-0.011454611085355282,
-0.0580623634159565,
0.025662178173661232,
0.04158312454819679,
0.006280784495174885,
-0.03109108656644821,
-0.0758121982216835,
0.03324724733829498,
-0.02525789849460125,
-0.052479442209005356,
0.016999026760458946,
0.016026828438043594,
-0.011830014176666737,
0.01660437323153019,
0.01617121510207653,
0.014717730693519115,
0.015064257197082043,
-0.06607096642255783,
0.05844739079475403,
0.026297476142644882,
0.038348883390426636,
-0.02577768638730049,
-0.022273924201726913,
0.01937658153474331,
0.013331626541912556,
0.061450619250535965,
-0.000791114114690572,
0.05028477683663368,
-0.05875541642308235,
-0.00396339176222682,
0.007161538116633892,
-0.03513389080762863,
-0.015487789176404476,
-0.07846889644861221,
0.05028477683663368,
-0.006357790436595678,
0.005308586172759533,
-0.031264349818229675,
0.019049307331442833,
0.004449490457773209,
0.03257344663143158,
0.010318775661289692,
-0.06772658973932266,
-0.0023173929657787085,
0.027683580294251442,
0.000003196041006958694,
-0.024564845487475395,
0.021908145397901535,
0.057638831436634064,
0.025970201939344406,
0.00862946081906557,
-0.015949822962284088,
0.07246244698762894,
0.04285372048616409,
-0.021811889484524727,
0.03519164398312569,
0.05143986642360687,
0.021638626232743263,
-0.005298960488289595,
-0.05567518249154091,
0.053480517119169235,
-0.002132097724825144,
-0.012715580873191357,
-0.016768010333180428,
-0.014303824864327908,
-0.05898643285036087,
-0.01092519611120224,
0.03763657808303833,
-0.030378783121705055,
0.07719830423593521,
0.007103784009814262,
-0.03018626756966114,
0.018635399639606476,
-0.00045541703002527356,
0.050592802464962006,
-0.06637898832559586,
-0.05040028691291809,
-0.019299576058983803,
-0.0066995033994317055,
-0.010578669607639313,
-0.012975474819540977,
0.041467614471912384,
-0.02943546138703823,
-0.002952690701931715,
-0.036558497697114944,
0.008061543107032776,
0.06333725899457932,
-0.002584506757557392,
0.02512313798069954,
0.026489989832043648,
0.02803010679781437,
0.008923045359551907,
0.04847514256834984,
-0.030224770307540894,
0.01578618586063385,
-0.07854590564966202,
-0.010357278399169445,
0.0037131228018552065,
-0.013418258167803288,
-0.027106037363409996,
-0.005563667975366116,
-0.038695406168699265,
0.038964927196502686,
-0.01142573356628418,
0.031495366245508194,
-0.04497138038277626,
-0.026355231180787086,
0.02096482552587986,
0.0008963954751379788,
0.04254569858312607,
0.019434334710240364,
0.013514515943825245,
-0.061065588146448135,
0.01717229001224041,
0.03913819044828415,
-0.03623122349381447,
0.012580820359289646,
-0.013620398007333279,
0.06356827914714813,
-0.003645742777734995,
-0.025103885680437088,
0.016864268109202385,
-0.015680303797125816,
-0.03299697861075401,
-0.07038328796625137,
0.0030778250657022,
0.012580820359289646,
-0.08039404451847076,
-0.029724232852458954,
0.03511463850736618,
0.007609134074300528,
-0.05502063408493996,
-0.03740556165575981,
-0.018731657415628433,
0.001016115420497954,
-0.009048179723322392,
-0.02903118170797825,
-0.01687389239668846,
-0.012378680519759655,
-0.0040716808289289474,
-0.05875541642308235,
0.002526752417907119,
-0.06356827914714813,
-0.04393180087208748,
0.02764507755637169,
0.05632973462343216,
-0.04562592878937721,
0.0517478883266449,
0.027953101322054863,
-0.03186114504933357,
0.0160845834761858,
-0.0845523551106453,
0.01725892163813114,
-0.0012110363459214568,
-0.04936070740222931,
0.006738006137311459,
0.001790384529158473,
0.07123035192489624,
0.005862065590918064,
0.03394030034542084,
-0.0047358558513224125,
-0.005568481050431728,
-0.03740556165575981,
0.005804311018437147,
-0.003780502825975418,
-0.006078644189983606,
0.022042905911803246,
0.04177564010024071,
-0.04662700369954109,
0.01730705052614212,
-0.007426245603710413,
-0.02094557322561741,
-0.0028371820226311684,
0.016527367755770683,
-0.008311811834573746,
0.059563975781202316,
0.0004545146366581321,
-0.041467614471912384,
-0.003284777980297804,
0.019655726850032806,
-0.01621934399008751,
0.0074310582131147385,
-0.019020428881049156,
0.03070605732500553,
0.02032952755689621,
0.020156264305114746,
-0.038695406168699265,
-0.07792985439300537,
-0.01173375640064478,
-0.031630128622055054,
-0.0016399825690314174,
0.02425682358443737,
-0.003871947294101119,
-0.09379304945468903,
-0.01192627102136612,
0.029724232852458954,
-0.0416601300239563,
-0.007070093881338835,
-0.0077920230105519295,
-0.03291997313499451,
0.015420408919453621,
-0.04335425794124603,
-0.01762469857931137,
0.010944447480142117,
-0.033670779317617416,
0.0029454713221639395,
-0.037963852286338806,
0.0246226005256176,
0.038079362362623215,
-0.036192718893289566,
0.07900793850421906,
0.031649377197027206,
0.031514618545770645,
-0.00037931365659460425,
-0.005722492467612028,
0.03600020334124565,
-0.008744969964027405,
-0.009962623938918114,
-0.007594695780426264,
0.008956735953688622,
0.019366955384612083,
0.008432134054601192,
-0.08563043177127838,
-0.03740556165575981,
-0.03507613390684128,
-0.03211141377687454,
-0.01646961271762848,
0.015555168502032757,
-0.009235881268978119,
-0.0454719178378582,
0.02123434469103813,
0.0505157969892025,
0.01439045649021864,
-0.07561968266963959,
-0.017961598932743073,
0.002596538746729493,
-0.05128585547208786,
0.00380697357468307,
0.07916194945573807,
0.05240243673324585,
-0.08362828195095062,
-0.02729855105280876,
0.06734155863523483,
0.030244022607803345,
-0.0031452050898224115,
-0.0731939971446991,
0.010010751895606518,
-0.05040028691291809,
-0.000564608839340508,
0.02169637940824032,
-0.008817162364721298,
0.013668526895344257,
-0.006776509340852499,
-0.017162663862109184,
-0.06853514909744263,
0.014996876940131187,
0.02109958603978157,
0.05263345316052437,
-0.015584046021103859,
-0.029647227376699448,
0.03440233692526817,
0.029724232852458954,
0.01276370882987976,
0.004933183081448078,
-0.009721980430185795,
-0.017846090719103813,
-0.000741180672775954,
0.03238093480467796,
0.001937176799401641,
-0.04231467843055725,
0.09756632894277573,
-0.025431161746382713,
0.0018240745412185788,
0.041506119072437286,
0.05629123002290726,
0.025315651670098305,
-0.008836413733661175,
0.011964773759245872,
0.029512466862797737,
0.006247094366699457,
0.0041895960457623005,
0.04608796164393425,
-0.010184015147387981,
-0.03272745758295059,
-0.05910194292664528,
-0.0008945906884036958,
-0.03723229840397835,
-0.00430991780012846,
-0.07946997135877609,
0.03291997313499451,
0.019251447170972824,
0.05632973462343216,
0.033921048045158386,
0.009827863425016403,
0.005486662499606609
] |
725,018 | tf_keras.src.engine.base_layer | get_input_at | Retrieves the input tensor(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first input node of the layer.
Returns:
A tensor (or list of tensors if the layer has multiple inputs).
Raises:
RuntimeError: If called in Eager mode.
| @doc_controls.do_not_doc_inheritable
def get_input_at(self, node_index):
"""Retrieves the input tensor(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first input node of the layer.
Returns:
A tensor (or list of tensors if the layer has multiple inputs).
Raises:
RuntimeError: If called in Eager mode.
"""
return self._get_node_attribute_at_index(
node_index, "input_tensors", "input"
)
| (self, node_index) | [
-0.03915867954492569,
-0.05068410933017731,
-0.009338373318314552,
0.006023077294230461,
-0.00872217956930399,
0.052385151386260986,
-0.015404844656586647,
0.004638811107724905,
0.11358794569969177,
0.01544823870062828,
0.017270782962441444,
-0.03002859838306904,
-0.030462538823485374,
0.00723376777023077,
0.05051053315401077,
-0.0065438044257462025,
0.002547223586589098,
0.0064570168033242226,
-0.010839803144335747,
0.006908313371241093,
-0.014545644633471966,
-0.03895039111375809,
-0.0038230051286518574,
0.0009595482260920107,
-0.008253525011241436,
0.008062591776251793,
0.030063314363360405,
0.005454616621136665,
0.019596697762608528,
-0.055683087557554245,
-0.03846437856554985,
-0.01735757105052471,
0.022877279669046402,
-0.02858792059123516,
-0.021627534180879593,
-0.0030701204668730497,
-0.03023688867688179,
0.030549325048923492,
0.038533806800842285,
-0.022946709766983986,
0.04849705472588539,
-0.04853177070617676,
0.01747039519250393,
0.006660968065261841,
-0.04266491159796715,
0.02928222343325615,
-0.009312337264418602,
-0.04096386954188347,
-0.04263019561767578,
-0.03093119151890278,
0.03219829499721527,
0.009078009985387325,
0.057141125202178955,
0.01905861310660839,
-0.024856042116880417,
-0.06776396185159683,
-0.022842563688755035,
-0.06838883459568024,
-0.0023693086113780737,
0.02652237005531788,
-0.016229329630732536,
0.016359511762857437,
0.011725039221346378,
0.025081690400838852,
0.0023627993650734425,
-0.0676945298910141,
0.009815706871449947,
-0.020030638203024864,
-0.011299778707325459,
-0.003595187095925212,
-0.058946311473846436,
-0.022096188738942146,
0.017010420560836792,
-0.0113084577023983,
-0.004877477418631315,
-0.056585684418678284,
0.1048397347331047,
0.08539925515651703,
0.023155000060796738,
0.013833984732627869,
-0.035027578473091125,
0.03223301097750664,
-0.06946500390768051,
0.018728818744421005,
0.0004908938426524401,
-0.0359996035695076,
-0.013955487869679928,
0.0011466845171526074,
-0.04853177070617676,
-0.03759650141000748,
-0.02065551094710827,
0.035235870629549026,
-0.04919135570526123,
0.05287116393446922,
-0.01696702651679516,
0.003920641262084246,
0.006565501447767019,
-0.06404943764209747,
-0.027043096721172333,
0.022807849571108818,
0.0017921692924574018,
0.08380235731601715,
-0.019440479576587677,
0.03353482857346535,
-0.022096188738942146,
-0.013851341791450977,
-0.04835819453001022,
-0.009069330990314484,
0.026105787605047226,
0.007524507120251656,
0.03549623489379883,
-0.005307077430188656,
-0.004230908118188381,
0.0019689996261149645,
0.01688023842871189,
-0.01677609235048294,
0.000996433082036674,
0.04825405031442642,
0.0010197573574259877,
0.0016522238729521632,
0.07852565497159958,
0.0403042808175087,
-0.043602220714092255,
0.011377887800335884,
0.017322856932878494,
0.051517270505428314,
0.039436403661966324,
0.01255820319056511,
0.002933429554104805,
-0.06394529342651367,
-0.016819486394524574,
-0.03679805248975754,
-0.051274266093969345,
0.10129878669977188,
-0.0037080112379044294,
0.050614677369594574,
0.0589810274541378,
-0.002490811515599489,
-0.049017783254384995,
0.028848282992839813,
0.017583219334483147,
0.006422301288694143,
0.024803970009088516,
0.02131509780883789,
-0.11539313197135925,
-0.04742088541388512,
-0.021592818200588226,
-0.017036456614732742,
0.018989183008670807,
-0.06693079322576523,
-0.022998781874775887,
0.030011240392923355,
-0.013860020786523819,
-0.007120943628251553,
0.005897235125303268,
0.05450277402997017,
-0.04391465708613396,
-0.05863387510180473,
0.04391465708613396,
-0.03393405303359032,
-0.06186238303780556,
0.014103027060627937,
0.059848904609680176,
-0.008496531285345554,
-0.007437719497829676,
0.021992042660713196,
-0.004907853435724974,
-0.0023128963075578213,
-0.01911068707704544,
0.016290081664919853,
0.005649889353662729,
0.007094907108694315,
0.010015319101512432,
0.0033435022924095392,
0.008678785525262356,
0.0015751996543258429,
-0.0036407506559044123,
0.01690627448260784,
0.030879119411110878,
0.03028896264731884,
0.0045607020147144794,
0.010874518193304539,
-0.035027578473091125,
-0.009997961111366749,
-0.007884676568210125,
0.02431795746088028,
-0.03992241621017456,
0.020672867074608803,
0.037075772881507874,
-0.004816725850105286,
0.045407406985759735,
0.019978564232587814,
-0.014918833039700985,
-0.004556362517178059,
-0.027997761964797974,
-0.011716361157596111,
-0.034767214208841324,
0.051621418446302414,
0.02065551094710827,
0.004465235397219658,
0.030375750735402107,
-0.004144120030105114,
0.020447218790650368,
0.08581583201885223,
-0.08866247534751892,
-0.0014385087415575981,
0.013469475321471691,
-0.0018051874358206987,
-0.10803352296352386,
0.02362365461885929,
-0.011942009441554546,
0.002343272091820836,
0.08421893417835236,
-0.0016565632540732622,
0.017322856932878494,
0.03586074337363243,
-0.07505413889884949,
-0.005641210824251175,
0.011915972456336021,
0.008101646788418293,
0.05967533215880394,
-0.02306821197271347,
0.048115186393260956,
-0.01616857759654522,
0.06856241077184677,
-0.044956110417842865,
-0.014563002623617649,
0.00849219225347042,
-0.03867267072200775,
-0.03731877729296684,
0.0004732650413643569,
0.018242808058857918,
0.0226169154047966,
-0.000473807449452579,
0.027806829661130905,
0.026956308633089066,
0.025585060939192772,
-0.07915052771568298,
0.05526650696992874,
-0.023936090990900993,
-0.05134369805455208,
-0.015942929312586784,
-0.01839902624487877,
-0.030618755146861076,
-0.0676945298910141,
0.08109457045793533,
0.02251276932656765,
0.016047075390815735,
-0.04717788100242615,
-0.031417205929756165,
0.0073335738852620125,
0.04658772051334381,
-0.012271802872419357,
0.04679601266980171,
0.026643872261047363,
-0.01097866427153349,
-0.028223412111401558,
-0.023328576236963272,
0.011256384663283825,
-0.004647489637136459,
-0.02903921715915203,
0.0013484663795679808,
0.009772312827408314,
0.016211971640586853,
0.021141521632671356,
-0.033621616661548615,
0.0016739207785576582,
0.027650611475110054,
0.012966105714440346,
0.006726059131324291,
0.03901981934905052,
0.09532777965068817,
0.020985303446650505,
-0.023450078442692757,
0.07029816508293152,
-0.06988158077001572,
-0.010674906894564629,
0.09234227985143661,
-0.032719023525714874,
0.02843170240521431,
0.004220059607177973,
-0.0059796832501888275,
-0.07727590948343277,
0.045199114829301834,
-0.05450277402997017,
-0.07255464792251587,
0.04905249550938606,
-0.028171338140964508,
-0.00044533019536174834,
-0.05248929560184479,
0.07908109575510025,
0.0681111067533493,
0.02662651427090168,
-0.07498470693826675,
-0.07102718204259872,
0.00048546958714723587,
-0.05526650696992874,
0.00787165854126215,
-0.008244846016168594,
0.021992042660713196,
0.06047377735376358,
0.022096188738942146,
-0.07415154576301575,
0.004052992910146713,
0.0037752718199044466,
0.021037377417087555,
-0.00012184201477793977,
0.05783542990684509,
-0.03665919229388237,
-0.027112526819109917,
-0.023033497855067253,
-0.002677405485883355,
-0.04950379207730293,
-0.028605278581380844,
-0.053669609129428864,
-0.06186238303780556,
0.030410464853048325,
0.05356546491384506,
0.024057593196630478,
0.05380847305059433,
-0.007971464656293392,
0.027390247210860252,
0.0157433170825243,
0.008496531285345554,
-0.04391465708613396,
0.008800288662314415,
0.050163380801677704,
-0.010353791527450085,
-0.04707373306155205,
0.03669390454888344,
-0.012679706327617168,
-0.020846443250775337,
-0.023536866530776024,
0.012566882185637951,
-0.05176027864217758,
0.021037377417087555,
0.025012260302901268,
0.034229129552841187,
0.004072520416229963,
0.010917912237346172,
0.020481934770941734,
-0.012020118534564972,
-0.001638120855204761,
0.014944869093596935,
-0.03613846376538277,
-0.002853150712326169,
0.04929550364613533,
-0.007515828590840101,
0.04759446159005165,
0.029959168285131454,
-0.00823182798922062,
-0.005662907846271992,
-0.011898615397512913,
-0.031573422253131866,
0.0001979848020710051,
0.05943232402205467,
-0.011464675888419151,
-0.007220749743282795,
-0.04002656042575836,
0.01185522135347128,
0.02341536432504654,
-0.019214831292629242,
0.04832347854971886,
-0.0038490414153784513,
0.003937999252229929,
-0.0363120399415493,
0.034229129552841187,
0.00902593694627285,
0.03520115464925766,
0.06335513293743134,
-0.011959366500377655,
0.019180117174983025,
-0.03985298424959183,
-0.002147999359294772,
-0.054537490010261536,
-0.03415970131754875,
-0.019492553547024727,
-0.023554224520921707,
0.0002640249440446496,
0.031573422253131866,
-0.0157953891903162,
0.028674708679318428,
-0.00023663252068217844,
0.043150924146175385,
-0.014875438995659351,
-0.008331634104251862,
-0.014458857476711273,
-0.060751501470804214,
0.0009058482828550041,
0.005038035102188587,
0.011360530741512775,
-0.038742098957300186,
-0.007324895355850458,
-0.008965185843408108,
-0.006218350026756525,
-0.07574844360351562,
0.04075557738542557,
0.0035431142896413803,
-0.010197573341429234,
-0.05790485814213753,
-0.037839505821466446,
0.026956308633089066,
-0.0361037477850914,
0.022877279669046402,
0.002258653985336423,
-0.014311317354440689,
-0.04353278875350952,
0.02962937392294407,
0.010214930400252342,
-0.041935890913009644,
-0.022842563688755035,
0.044053517282009125,
0.03867267072200775,
0.014936190098524094,
0.04745560139417648,
-0.020238928496837616,
0.011273742653429508,
0.025897497311234474,
-0.05019809678196907,
0.051517270505428314,
-0.003278411226347089,
0.016073111444711685,
0.0017639632569625974,
0.002299878280609846,
0.021644892171025276,
-0.017539825290441513,
-0.010388506576418877,
0.04672658070921898,
-0.016185935586690903,
0.10775580257177353,
-0.07068002969026566,
-0.06450073421001434,
0.007915052585303783,
-0.02381458878517151,
-0.0314866341650486,
-0.028101908043026924,
0.008049573749303818,
-0.004384956322610378,
-0.019180117174983025,
0.06568104773759842,
0.055683087557554245,
0.010622833855450153,
0.056134387850761414,
-0.01784358359873295,
-0.03856852278113365,
0.009338373318314552,
-0.002579769119620323,
0.09553607553243637,
-0.010232288390398026,
-0.017183994874358177,
0.01489279605448246,
-0.027251387014985085,
0.07012458890676498,
-0.034732501953840256,
0.028813568875193596,
0.0011249876115471125,
-0.05255872756242752,
-0.003204641630873084,
0.0005486619775183499,
0.048115186393260956,
-0.010865840129554272,
0.014181136153638363,
0.036069031804800034,
-0.09380031377077103,
0.031712282449007034,
-0.049260787665843964,
0.029872380197048187,
0.020134782418608665,
-0.0295425858348608,
0.023293860256671906,
0.040338996797800064,
0.0006118543678894639,
-0.05630796030163765,
-0.10004904121160507,
0.04408823326230049,
-0.008409743197262287,
-0.014276602305471897,
0.008895755745470524,
-0.000849978590849787,
-0.014146421104669571,
-0.04162345454096794,
-0.07810907065868378,
-4.7462108909712697e-7,
0.009642130695283413,
-0.030462538823485374,
0.03690219670534134,
-0.007194713223725557,
-0.013495511375367641,
0.006700022611767054,
-0.028049835935235023,
-0.0202562864869833,
0.025359412655234337,
0.07498470693826675,
0.0034020841121673584,
0.012627633288502693,
-0.046066995710134506,
0.04256076365709305,
0.006903973873704672,
0.034472137689590454,
0.06238311156630516,
-0.006647950038313866,
0.03150399401783943,
0.02773739956319332,
-0.011091488413512707,
-0.0022629934828728437,
0.040200136601924896,
-0.047802750021219254,
0.018642032518982887,
0.036277323961257935,
-0.04026956483721733,
0.02226976491510868,
0.04381050914525986,
0.03679805248975754,
-0.0076677072793245316,
0.03355218470096588,
-0.011091488413512707,
0.018138661980628967,
0.05672454461455345,
-0.0039423382841050625,
0.03676333650946617,
0.06012662872672081,
0.008127682842314243,
-0.033673688769340515,
-0.04297734797000885,
0.041692886501550674,
0.04617113992571831,
-0.027667969465255737,
-0.04367164894938469,
-0.027216672897338867,
0.030497252941131592,
0.0145890386775136,
0.00211328431032598,
0.017296820878982544,
0.038742098957300186,
-0.062209535390138626,
-0.023484794422984123,
0.06894427537918091,
0.011386566795408726,
-0.028674708679318428,
0.043498072773218155,
-0.02317235805094242,
-0.0024647752288728952,
0.00522896833717823,
0.009503270499408245,
0.04905249550938606,
0.024092309176921844,
-0.06203595921397209,
-0.006166277453303337,
-0.060994505882263184,
0.010631512850522995,
-0.046205855906009674,
-0.020898515358567238,
0.035930171608924866,
-0.006821525748819113,
0.04436595365405083,
0.007806567940860987,
-0.01627272367477417,
0.029716162011027336,
-0.06450073421001434,
0.02251276932656765,
0.024734539911150932,
-0.04849705472588539,
0.021627534180879593,
0.008440119214355946,
-0.02166224829852581,
-0.004495610948652029,
-0.020343074575066566,
-0.04762917757034302,
-0.01760057732462883,
-0.030115386471152306,
0.010874518193304539,
-0.003378217341378331,
0.04245661944150925,
0.0028140961658209562,
-0.010310397483408451,
0.007862979546189308,
-0.019735557958483696,
-0.04381050914525986,
-0.007403004448860884,
-0.008626713417470455,
0.04058200120925903,
-0.0051725562661886215,
0.02367572672665119,
-0.0013484663795679808,
0.03704105690121651,
0.03836023434996605,
0.025949569419026375,
0.04332449659705162,
-0.06071678549051285,
0.005411223042756319,
-0.003916302230209112,
-0.034072913229465485,
0.007611295208334923,
0.04221361503005028,
0.0315387062728405,
-0.00116295728366822,
-0.02893507108092308,
-0.003638580907136202,
0.04453952983021736,
-0.04582398757338524,
-0.05818257853388786,
-0.011204312555491924,
0.02190525457262993,
-0.003723199013620615,
-0.008930470794439316,
-0.05123955011367798,
-0.04245661944150925,
-0.02187054045498371,
0.018728818744421005,
-0.014458857476711273,
0.031156841665506363,
-0.03676333650946617,
-0.04898306727409363,
-0.020395146682858467,
-0.04658772051334381,
0.0038273443933576345,
-0.022148260846734047,
0.07234635949134827,
0.03992241621017456,
0.024352673441171646,
0.05012866482138634,
0.00522896833717823,
-0.027893617749214172,
-0.03551359102129936,
-0.00007634619396412745,
-0.009095367044210434,
0.04075557738542557,
-0.0449213944375515,
-0.0007149149896577001,
0.06141108646988869,
0.0626608356833458,
-0.014250566251575947,
0.018190734088420868,
-0.03002859838306904,
0.0012182845966890454,
-0.022425983101129532,
0.00975495483726263,
-0.025741279125213623,
-0.0908842459321022,
0.02357158251106739,
-0.036936912685632706,
0.03424648940563202,
-0.03139984607696533,
-0.0722074955701828,
0.08394121378660202,
-0.06168881058692932,
-0.0068605802953243256,
-0.0406167171895504,
0.05439862981438637,
0.013000820763409138,
-0.056446824222803116,
-0.0019169268198311329,
-0.00998060405254364,
0.031573422253131866,
0.04131102189421654,
-0.022096188738942146,
-0.02426588535308838,
-0.007016798481345177,
0.01057943981140852,
-0.0134347602725029,
0.0006585028604604304,
0.010692263953387737,
0.02320707216858864,
0.044956110417842865,
-0.05773128196597099,
-0.01489279605448246,
-0.04467839002609253,
-0.03780478984117508,
-0.006214010529220104,
0.03089647740125656,
-0.03516643866896629,
0.0024300599470734596,
0.028622634708881378,
-0.007550543639808893,
0.061758238822221756,
-0.028223412111401558,
0.08116400241851807,
-0.0016945329261943698,
-0.003235017415136099,
-0.026314077898859978,
-0.0047689927741885185,
-0.002423550933599472,
0.05335717648267746,
0.08907905966043472,
-0.017539825290441513,
-0.06804168224334717,
0.004985962528735399,
0.0043307142332196236,
0.06116808205842972,
0.012549524195492268,
-0.023432722315192223,
-0.0314866341650486,
0.03018481656908989,
0.002542884321883321,
-0.02336329035460949,
-0.050371672958135605,
0.01820809207856655,
0.018433740362524986,
-0.02858792059123516,
0.04075557738542557,
0.023745158687233925,
0.002236956963315606,
-0.03292731195688248,
-0.008318616077303886,
0.0033174657728523016,
0.0019473026040941477,
-0.049850944429636,
-0.02662651427090168,
-0.03947111591696739,
0.003128702286630869,
-0.0157953891903162,
-0.06543804705142975,
0.01661987416446209,
0.002134981332346797,
0.05290587618947029,
0.04707373306155205,
-0.04377579689025879,
0.04242190346121788,
-0.03490607440471649,
0.0452338308095932,
-0.019926492124795914,
-0.06158466264605522,
0.014849402010440826,
0.0634939968585968,
-0.03488871827721596,
0.031313057988882065,
-0.0589810274541378,
-0.034333277493715286,
-0.016446299850940704,
0.03320503234863281,
0.038533806800842285,
-0.014311317354440689,
0.0015480783767998219,
-0.04141516610980034,
0.023745158687233925,
0.0064743743278086185,
0.0410332977771759,
-0.0024018539115786552,
-0.0272340290248394,
-0.0822748914361,
0.0320594348013401,
0.006665307562798262,
-0.03940168768167496,
0.03245865926146507,
0.0822748914361,
0.022634273394942284,
0.022703703492879868,
-0.046518292278051376,
-0.03018481656908989,
-0.02200940065085888,
0.06335513293743134,
0.02903921715915203,
0.01116091851145029,
-0.02678273245692253,
0.05158670246601105,
-0.015205232426524162,
0.032319799065589905,
-0.021228309720754623,
-0.04804575815796852,
-0.014988263137638569,
-0.015838783234357834,
-0.025966927409172058,
0.022200334817171097,
-0.0035452840384095907,
-0.00848351325839758,
-0.004252605140209198,
0.011091488413512707,
-0.017427001148462296
] |
725,019 | tf_keras.src.engine.base_layer | get_input_mask_at | Retrieves the input mask tensor(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first time the layer was called.
Returns:
A mask tensor
(or list of tensors if the layer has multiple inputs).
| @doc_controls.do_not_doc_inheritable
def get_input_mask_at(self, node_index):
"""Retrieves the input mask tensor(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first time the layer was called.
Returns:
A mask tensor
(or list of tensors if the layer has multiple inputs).
"""
inputs = self.get_input_at(node_index)
if isinstance(inputs, list):
return [getattr(x, "_keras_mask", None) for x in inputs]
else:
return getattr(inputs, "_keras_mask", None)
| (self, node_index) | [
0.000929960748180747,
-0.06847971677780151,
0.01590881682932377,
-0.0038885336834937334,
-0.03508763760328293,
0.02782096527516842,
-0.04366922751069069,
0.013555800542235374,
0.1202806904911995,
0.025675568729639053,
0.01932588219642639,
-0.012526355683803558,
-0.021938422694802284,
-0.0020361815113574266,
0.046160656958818436,
-0.015277309343218803,
0.003970716148614883,
0.027544140815734863,
0.017301596701145172,
-0.022128740325570107,
-0.0014198122080415487,
-0.03271731734275818,
0.01352984830737114,
0.030675729736685753,
0.012846434488892555,
0.06114383786916733,
0.004026946611702442,
-0.007452662568539381,
0.022993821650743484,
-0.046610500663518906,
-0.045053355395793915,
-0.024723980575799942,
0.006565955467522144,
0.001986439572647214,
-0.03373811021447182,
-0.0009294201154261827,
-0.017526516690850258,
0.07356638461351395,
-0.004150220192968845,
-0.02231905795633793,
0.04754478484392166,
-0.0423889085650444,
0.005013137590140104,
-0.019256675615906715,
-0.013798022642731667,
0.022526677697896957,
0.005718177184462547,
-0.0008650798117741942,
-0.028478426858782768,
-0.02311493270099163,
0.00043659494258463383,
-0.002277322579175234,
0.027388425543904305,
-0.009585084393620491,
-0.05668002739548683,
-0.045157164335250854,
-0.02442985400557518,
-0.025173822417855263,
0.009827306494116783,
0.003302442142739892,
-0.04463811591267586,
0.02795937843620777,
0.01953350193798542,
0.004100478254258633,
-0.01181698963046074,
-0.03368620574474335,
-0.06197431683540344,
-0.01574445143342018,
-0.007604051381349564,
0.018408898264169693,
-0.06287399679422379,
-0.012128418311476707,
0.02231905795633793,
0.00590849481523037,
0.006271828431636095,
-0.08284004032611847,
0.08173273503780365,
0.02913588657975197,
-0.006518376059830189,
0.01590881682932377,
-0.009048734791576862,
0.04003589227795601,
-0.02048509009182453,
0.025727473199367523,
0.027942076325416565,
-0.07508892565965652,
0.0022113602608442307,
0.03029509447515011,
0.01580500788986683,
-0.09848068654537201,
0.00034035483258776367,
-0.001185159315355122,
-0.030225887894630432,
0.020536994561553,
-0.030571918934583664,
0.03972446545958519,
0.015839610248804092,
-0.0476485937833786,
-0.024360647425055504,
-0.005873891990631819,
-0.024153027683496475,
0.07020987570285797,
-0.029308903962373734,
0.02735382318496704,
-0.017033420503139496,
0.012881037779152393,
-0.057164471596479416,
-0.022336360067129135,
-0.03368620574474335,
0.02282080426812172,
0.02545064687728882,
0.00735750375315547,
-0.006142066325992346,
0.0016804174520075321,
0.03145430237054825,
-0.018997151404619217,
0.00474496278911829,
0.03368620574474335,
-0.031731124967336655,
-0.021644296124577522,
0.08394734561443329,
0.04377303645014763,
-0.032630808651447296,
0.013322228565812111,
0.01686040498316288,
0.07453527301549911,
0.032440491020679474,
0.047371771186590195,
0.025554457679390907,
-0.04837526008486748,
-0.06484638154506683,
-0.010536671616137028,
-0.038132715970277786,
0.1100381463766098,
0.018703024834394455,
0.04114319384098053,
0.03688700124621391,
-0.0011494747595861554,
-0.04775240272283554,
0.040762558579444885,
-0.0003941519826184958,
-0.012024609372019768,
0.04678351432085037,
0.024153027683496475,
-0.07190543413162231,
-0.02937811054289341,
0.020934930071234703,
-0.025502551347017288,
0.06225114315748215,
-0.05861780792474747,
-0.024620171636343002,
0.028651442378759384,
-0.014377625659108162,
0.04723335802555084,
-0.009420718997716904,
0.06944860517978668,
0.00613341573625803,
-0.07889527827501297,
0.038686368614435196,
-0.01792445406317711,
-0.06038257107138634,
0.03924001753330231,
0.021229058504104614,
-0.0333055704832077,
0.008014963939785957,
0.0062848045490682125,
-0.01903175562620163,
-0.017284294590353966,
0.014048895798623562,
0.014628498815000057,
-0.011315243318676949,
-0.012664767913520336,
-0.015467626973986626,
-0.008867068216204643,
0.027076996862888336,
0.018789533525705338,
-0.031679220497608185,
0.013149213045835495,
0.010666433721780777,
0.051662564277648926,
-0.0006623266963288188,
0.06605749577283859,
-0.04688732326030731,
0.018737629055976868,
0.001959405839443207,
0.04965557903051376,
-0.022284455597400665,
0.020312072709202766,
0.0018739791121333838,
-0.0018664096714928746,
0.03358239680528641,
0.050001610070466995,
0.004407581407576799,
0.017682230100035667,
-0.018045565113425255,
-0.050659071654081345,
-0.0022232551127672195,
0.011453656479716301,
0.003897184506058693,
-0.016012627631425858,
0.051558755338191986,
-0.014905325137078762,
0.015017785131931305,
0.11730481684207916,
-0.06190510839223862,
-0.02680017240345478,
0.05411939322948456,
0.05180097743868828,
-0.10263306647539139,
0.014602546580135822,
-0.02898017317056656,
0.005354844033718109,
0.05851399526000023,
0.022422868758440018,
0.0523892305791378,
0.028340013697743416,
-0.06083241105079651,
0.030831443145871162,
-0.006258852314203978,
0.02287270873785019,
0.0031726800370961428,
-0.009567782282829285,
0.006743296980857849,
0.006920638494193554,
0.03391112759709358,
0.013815323822200298,
-0.009957068599760532,
0.0071325828321278095,
0.0053937723860144615,
-0.02377239242196083,
0.011220084503293037,
-0.009662941098213196,
0.002337878104299307,
-0.009342861361801624,
-0.01821858063340187,
0.030346998944878578,
0.04820224642753601,
-0.0966121107339859,
0.09758099913597107,
-0.02332255057990551,
-0.017889849841594696,
-0.015225403942167759,
0.0376482717692852,
-0.0238242968916893,
0.01209381502121687,
0.03913620859384537,
0.030675729736685753,
0.016670087352395058,
-0.026921283453702927,
-0.042181290686130524,
-0.03472430258989334,
0.0120419105514884,
-0.008014963939785957,
0.04917113482952118,
0.030122078955173492,
0.003641985822468996,
-0.06488098204135895,
-0.012855085544288158,
0.01158341858536005,
0.013919133692979813,
-0.03982827439904213,
0.007997662760317326,
0.008365321904420853,
-0.018893342465162277,
-0.010034925304353237,
-0.04962097853422165,
0.004128593485802412,
0.05740669369697571,
-0.017249690368771553,
-0.0049569071270525455,
-0.0076300036162137985,
0.07834162563085556,
0.017440007999539375,
-0.03951684385538101,
0.04716414958238602,
-0.050001610070466995,
0.01942969299852848,
0.0897606760263443,
-0.04100478067994118,
0.01421326119452715,
0.015277309343218803,
0.01512159500271082,
-0.049344152212142944,
0.04366922751069069,
-0.010848100297152996,
-0.06616130471229553,
0.05664542317390442,
0.01782064326107502,
-0.013460641726851463,
-0.0589638389647007,
0.05643780529499054,
0.0342225581407547,
0.023253343999385834,
-0.07114416360855103,
-0.07723432034254074,
0.0008488595485687256,
-0.022647788748145103,
-0.02711160108447075,
-0.022197946906089783,
-0.009048734791576862,
0.04360002279281616,
0.013702863827347755,
-0.04259653016924858,
0.013010799884796143,
0.010528021492064,
0.0062242490239441395,
0.0015387607272714376,
0.07543496042490005,
0.02230175770819187,
0.04287335276603699,
0.0013214093632996082,
-0.05391177162528038,
-0.013668260537087917,
-0.05443082004785538,
-0.0031748428009450436,
-0.040347322821617126,
0.06823749095201492,
0.06301241368055344,
0.030623825266957283,
0.07328955829143524,
0.006038256920874119,
0.007063376717269421,
-0.003518712008371949,
0.02292461507022381,
-0.027872871607542038,
-0.05799495056271553,
0.04180065542459488,
-0.010424211621284485,
-0.05719907581806183,
0.0776495635509491,
-0.04200827330350876,
-0.0240838211029768,
-0.014680404216051102,
-0.009109290316700935,
-0.023564772680401802,
-0.008771909400820732,
0.04411906749010086,
0.022042233496904373,
-0.030502714216709137,
0.007863575592637062,
0.012855085544288158,
0.008546988479793072,
-0.007755440194159746,
0.02114254981279373,
-0.011375798843801022,
0.020571596920490265,
0.01932588219642639,
0.04007049649953842,
-0.003404089016839862,
0.05197399482131004,
0.040312718600034714,
-0.0132270697504282,
0.0038539303932338953,
-0.021973026916384697,
0.022024931386113167,
0.04820224642753601,
-0.014567943289875984,
0.008218257687985897,
0.0017031258903443813,
0.024723980575799942,
0.03477620705962181,
-0.019256675615906715,
0.0568530447781086,
-0.042423512786626816,
0.002156211296096444,
-0.007625678554177284,
-0.0036506366450339556,
0.024550965055823326,
0.07363559305667877,
-0.0034105770755559206,
0.0066957175731658936,
0.0000186194902198622,
-0.084224171936512,
-0.03795970231294632,
-0.02013905718922615,
-0.03924001753330231,
-0.06823749095201492,
-0.014412228949368,
-0.0038323034532368183,
0.021973026916384697,
-0.007495916448533535,
0.010069528594613075,
0.009438020177185535,
0.029308903962373734,
-0.005558137781918049,
-0.014896674081683159,
-0.01262151449918747,
-0.03423985838890076,
-0.01391048263758421,
0.01150556094944477,
0.029620332643389702,
-0.04906732589006424,
0.014663102105259895,
-0.044845737516880035,
-0.028045887127518654,
-0.03183493763208389,
0.01299349870532751,
0.0555381216108799,
0.02861684001982212,
-0.05640320107340813,
-0.02614271081984043,
0.023858901113271713,
-0.0264541395008564,
0.01400564145296812,
0.05405018478631973,
0.033028747886419296,
-0.022232551127672195,
0.01958540640771389,
0.018287787213921547,
-0.03809811547398567,
-0.04543399065732956,
0.04529557749629021,
0.0739816203713417,
0.02680017240345478,
0.03128128498792648,
-0.012664767913520336,
-0.003109961748123169,
0.014429531060159206,
-0.04453430697321892,
0.01695556379854679,
0.0034905970096588135,
-0.009368814527988434,
0.013607705011963844,
0.01090000569820404,
0.025277631357312202,
-0.02166159823536873,
0.007794369012117386,
0.050555262714624405,
-0.053288914263248444,
0.10470926016569138,
-0.07391241937875748,
-0.05138573795557022,
0.004176172893494368,
-0.030070172622799873,
-0.014957229606807232,
-0.034845415502786636,
0.004210775718092918,
-0.02292461507022381,
-0.03309795260429382,
0.014464134350419044,
0.07737273722887039,
0.023339852690696716,
0.0631854310631752,
-0.045260973274707794,
-0.018391596153378487,
0.013832625932991505,
-0.002056727185845375,
0.1076851338148117,
-0.014195959083735943,
-0.05380796268582344,
0.013348180800676346,
-0.027284616604447365,
0.05225082114338875,
0.009974369779229164,
0.06322003155946732,
0.010380957275629044,
-0.0760578140616417,
0.008283139206469059,
-0.020779216662049294,
-0.006142066325992346,
-0.005800359882414341,
-0.017396755516529083,
-0.021886518225073814,
-0.07197463512420654,
0.04273494333028793,
-0.02603890188038349,
0.06048638001084328,
-0.012967546470463276,
0.0018534334376454353,
0.017440007999539375,
0.017189135774970055,
-0.03882478177547455,
-0.05941367894411087,
-0.08526226133108139,
0.027838267385959625,
0.02453366294503212,
0.010874052532017231,
0.03161001577973366,
-0.0231668371707201,
-0.002495755208656192,
-0.020467787981033325,
-0.058929234743118286,
-0.03295953944325447,
-0.01590881682932377,
-0.03577969968318939,
-0.03095255419611931,
-0.007439685985445976,
0.012171672657132149,
-0.025416044518351555,
-0.04557240381836891,
-0.013867229223251343,
0.0290839821100235,
0.021644296124577522,
0.0042778197675943375,
0.03678319230675697,
-0.08263242244720459,
-0.0015506555791944265,
0.006700043100863695,
0.05508828163146973,
0.041108593344688416,
-0.0315927155315876,
0.015675246715545654,
-0.030502714216709137,
0.02231905795633793,
0.028807157650589943,
0.006864408031105995,
-0.05678383633494377,
-0.01009548082947731,
0.05003621429204941,
-0.04048573598265648,
0.0007839785539545119,
0.04837526008486748,
0.006401590537279844,
0.02221524901688099,
0.004219426773488522,
-0.0034776206593960524,
0.0001059722708305344,
0.04353081434965134,
0.025935092940926552,
0.03706001862883568,
0.023599376901984215,
0.02806318923830986,
-0.01218897383660078,
-0.01903175562620163,
0.05069367587566376,
0.04380764067173004,
-0.001729078241623938,
-0.04806383326649666,
-0.027544140815734863,
0.03629874810576439,
-0.006955241318792105,
-0.016782548278570175,
0.04169684648513794,
0.06148987263441086,
-0.04754478484392166,
-0.008110122755169868,
0.0542232021689415,
-0.03161001577973366,
-0.07045210152864456,
0.04225049540400505,
-0.014126753434538841,
-0.021038740873336792,
0.02564096450805664,
-0.022647788748145103,
0.041523829102516174,
0.062424156814813614,
-0.06270098686218262,
-0.020519692450761795,
-0.02392810769379139,
-0.0036311724688857794,
-0.006565955467522144,
-0.024066518992185593,
0.025554457679390907,
-0.023236043751239777,
0.0542232021689415,
0.009161194786429405,
-0.02711160108447075,
0.014853419736027718,
-0.06647273153066635,
0.026782870292663574,
-0.0012965383939445019,
-0.0752965435385704,
0.0476485937833786,
-0.007889527827501297,
-0.07612702250480652,
-0.0140834990888834,
-0.056507013738155365,
-0.03968986123800278,
-0.019170168787240982,
-0.00490932771936059,
-0.030468109995126724,
0.0003133210993837565,
0.04090097174048424,
-0.010216591879725456,
-0.03150620684027672,
0.0489635169506073,
0.0008829220896586776,
-0.06377368420362473,
-0.01150556094944477,
0.008438853546977043,
0.006505399942398071,
-0.040208909660577774,
0.05906764790415764,
-0.027232712134718895,
0.03517414256930351,
0.020329374819993973,
0.0033911126665771008,
0.015657944604754448,
-0.07758035510778427,
0.025312235578894615,
0.024256836622953415,
0.004662780091166496,
0.032526999711990356,
0.030225887894630432,
0.005635994952172041,
0.03538176417350769,
-0.043738435953855515,
-0.022146042436361313,
0.0476485937833786,
-0.020329374819993973,
-0.03432636708021164,
-0.009273655712604523,
0.010683735832571983,
0.013996991328895092,
-0.022976519539952278,
-0.02629842609167099,
-0.013477942906320095,
-0.03155811131000519,
0.015251357108354568,
-0.05522669479250908,
-0.021229058504104614,
-0.014663102105259895,
-0.023910805583000183,
0.0015982348704710603,
0.0038279781583696604,
-0.025018107146024704,
-0.019758421927690506,
0.08789210766553879,
-0.006085836328566074,
0.005488931201398373,
0.014593896456062794,
0.014273816719651222,
-0.011211434379220009,
-0.05038224533200264,
0.0033305571414530277,
-0.029516521841287613,
0.015389769338071346,
-0.009740798734128475,
-0.028478426858782768,
0.045607008039951324,
0.07287432253360748,
0.014628498815000057,
-0.0016231059562414885,
-0.03411874547600746,
-0.006328058894723654,
-0.009611036628484726,
-0.004619526211172342,
-0.004688732326030731,
-0.09384385496377945,
0.06335844099521637,
-0.04584923014044762,
0.00045011183829046786,
-0.01080484688282013,
-0.05609177425503731,
0.05072828009724617,
-0.04827145114541054,
-0.012855085544288158,
-0.05446542426943779,
-0.004995835945010185,
0.010752941481769085,
-0.10920767486095428,
0.010977862402796745,
-0.024948900565505028,
0.02811509370803833,
0.04785621538758278,
0.005069367587566376,
0.01209381502121687,
0.015389769338071346,
-0.0021086318884044886,
-0.042527321726083755,
-0.05612637847661972,
0.008296115323901176,
-0.015510880388319492,
0.031973350793123245,
-0.04906732589006424,
-0.027336521074175835,
-0.023149535059928894,
-0.03609113022685051,
0.033184461295604706,
0.05304669216275215,
-0.007240717764943838,
-0.005497582256793976,
-0.045607008039951324,
-0.010242545045912266,
0.04882510378956795,
-0.0030602198094129562,
0.04470732435584068,
-0.01948159746825695,
0.022976519539952278,
-0.03906700387597084,
0.03924001753330231,
-0.018495405092835426,
0.013348180800676346,
0.11259878426790237,
0.01549357920885086,
-0.058825425803661346,
0.033340174704790115,
-0.0005682492628693581,
0.034655097872018814,
0.03795970231294632,
-0.011116275563836098,
-0.04360002279281616,
0.04650668799877167,
0.03892859071493149,
-0.014983181841671467,
0.008006313815712929,
-0.005601391661912203,
0.03372080996632576,
-0.005259685218334198,
0.021869217976927757,
0.023184139281511307,
-0.017033420503139496,
-0.053288914263248444,
0.0016879868926480412,
-0.03204255551099777,
-0.008097146637737751,
-0.06332384049892426,
-0.014429531060159206,
-0.042181290686130524,
0.011220084503293037,
-0.01676524616777897,
0.01317516528069973,
0.05204319953918457,
-0.00465412950143218,
0.00018274810281582177,
0.0004247001197654754,
-0.00641024112701416,
-0.00038252747617661953,
-0.00454166904091835,
-0.00006869949720567092,
0.001702044508419931,
-0.006064209155738354,
-0.009550481103360653,
0.06882575154304504,
-0.029966363683342934,
0.011938100680708885,
-0.08131749927997589,
-0.026921283453702927,
-0.028547633439302444,
0.015476277098059654,
0.07418924570083618,
-0.015969373285770416,
-0.004680081736296415,
-0.041316211223602295,
0.01580500788986683,
-0.0044594863429665565,
0.057718124240636826,
-0.004150220192968845,
-0.06823749095201492,
-0.036713987588882446,
0.03962065279483795,
-0.020433183759450912,
-0.019758421927690506,
0.049793992191553116,
0.06346224993467331,
0.01792445406317711,
0.03771748021245003,
-0.020363979041576385,
-0.000825610535684973,
-0.04546859487891197,
0.05578034371137619,
0.019100962206721306,
0.0036636129952967167,
-0.027180807664990425,
0.06920638680458069,
-0.03024319000542164,
0.030450807884335518,
-0.02448175847530365,
-0.012889688834547997,
0.025519853457808495,
-0.0033716484904289246,
-0.05917145684361458,
0.02811509370803833,
0.0005117487744428217,
-0.008689726702868938,
0.0013971038861200213,
-0.008841115050017834,
-0.033893827348947525
] |
725,020 | tf_keras.src.engine.base_layer | get_input_shape_at | Retrieves the input shape(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first time the layer was called.
Returns:
A shape tuple
(or list of shape tuples if the layer has multiple inputs).
Raises:
RuntimeError: If called in Eager mode.
| @doc_controls.do_not_doc_inheritable
def get_input_shape_at(self, node_index):
"""Retrieves the input shape(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first time the layer was called.
Returns:
A shape tuple
(or list of shape tuples if the layer has multiple inputs).
Raises:
RuntimeError: If called in Eager mode.
"""
return self._get_node_attribute_at_index(
node_index, "input_shapes", "input shape"
)
| (self, node_index) | [
-0.03455488011240959,
-0.07388310879468918,
0.0041291178204119205,
-0.003988598007708788,
-0.02533678710460663,
0.04237210005521774,
-0.009391040541231632,
0.027844522148370743,
0.11082465946674347,
0.025976691395044327,
0.022483155131340027,
-0.027118144556879997,
-0.030404143035411835,
0.0018224326195195317,
0.04794100299477577,
0.0023672168608754873,
0.024350985884666443,
0.00026658212300390005,
-0.025146543979644775,
0.0007906936225481331,
-0.010852445848286152,
-0.014544871635735035,
-0.009001909755170345,
-0.037667933851480484,
0.017951933667063713,
0.03656106814742088,
0.04240668937563896,
0.013870377093553543,
0.02587292343378067,
-0.08592024445533752,
-0.04517384618520737,
-0.0100222984328866,
0.005906152073293924,
-0.011890130117535591,
0.015617145225405693,
0.006286635994911194,
-0.020234839990735054,
0.05911340191960335,
0.07222281396389008,
-0.02386673353612423,
0.028743848204612732,
-0.04098851978778839,
-0.00704760430380702,
0.0256480909883976,
-0.035039130598306656,
0.06464771926403046,
-0.02293281815946102,
-0.006122336257249117,
-0.0742981806397438,
-0.04382485896348953,
0.00029563187854364514,
-0.010584377683699131,
0.026962490752339363,
0.019871650263667107,
-0.03690696507692337,
-0.09145455807447433,
-0.033309657126665115,
-0.06316036731004715,
-0.005612141452729702,
0.004345302004367113,
-0.031874194741249084,
0.01568632386624813,
0.01662023924291134,
-0.00013308838242664933,
0.0023023616522550583,
-0.08619695901870728,
-0.004846849478781223,
-0.028588196262717247,
0.0011025393614545465,
0.013680134899914265,
-0.034727826714515686,
-0.0005507292225956917,
0.02557891234755516,
-0.010662203654646873,
0.0025401641614735126,
-0.046073172241449356,
0.12362276017665863,
0.06907516717910767,
0.04908245801925659,
-0.011829598806798458,
-0.06132712960243225,
0.06198433041572571,
-0.060669928789138794,
0.015591203235089779,
-0.0015846301103010774,
0.0016613753978163004,
0.019058797508478165,
0.04150736331939697,
-0.06298742443323135,
-0.06136171892285347,
-0.009996356442570686,
0.03773711249232292,
-0.02708355523645878,
0.052230097353458405,
-0.039086099714040756,
-0.0059537123888731,
-0.0033335601910948753,
-0.06817584484815598,
0.005694291554391384,
-0.005158154759556055,
-0.04337519407272339,
0.05444382503628731,
-0.058871276676654816,
0.04334060475230217,
-0.03607681766152382,
0.0006123416824266315,
0.003303294302895665,
-0.011094572022557259,
-0.010082830674946308,
0.025354081764817238,
0.041472773998975754,
-0.023503543809056282,
0.025665385648608208,
0.011094572022557259,
0.0325486920773983,
-0.01892044022679329,
-0.00626069400459528,
0.050120141357183456,
-0.0035454207099974155,
-0.020304018631577492,
0.026668481528759003,
0.0448625423014164,
-0.028328774496912956,
0.03725285828113556,
0.03721826896071434,
0.059424709528684616,
0.04244127869606018,
0.02236209250986576,
0.007761012297123671,
-0.017813576385378838,
-0.008072317577898502,
-0.00033157248981297016,
-0.028951385989785194,
0.05738392844796181,
-0.02767157554626465,
0.08038592338562012,
0.03728744760155678,
-0.024800648912787437,
-0.07595847547054291,
0.015772797167301178,
0.06143089756369591,
-0.013066171668469906,
0.007103812415152788,
0.0069351885467767715,
-0.10397594422101974,
0.005936417728662491,
-0.015236660838127136,
-0.03905151039361954,
0.020234839990735054,
-0.01423356682062149,
-0.02154923975467682,
0.01602357253432274,
0.012495446018874645,
-0.026063164696097374,
0.00618286756798625,
0.01063626166433096,
-0.04503548890352249,
-0.06603129953145981,
0.03168395534157753,
-0.04628070816397667,
-0.0604969821870327,
0.033257775008678436,
0.06136171892285347,
-0.03054250217974186,
-0.019404692575335503,
0.05565445497632027,
0.004924675915390253,
-0.03168395534157753,
-0.0012560300529003143,
-0.007380527909845114,
0.018090292811393738,
0.00046263413969427347,
0.025215722620487213,
-0.005646730773150921,
0.0021077957935631275,
0.02063261903822422,
0.004174516536295414,
0.027550512924790382,
0.04742216318845749,
0.021099576726555824,
0.029228102415800095,
0.036526478826999664,
-0.06298742443323135,
0.03490077331662178,
-0.026374470442533493,
0.056242477148771286,
-0.036803197115659714,
0.004574457183480263,
0.05389039218425751,
0.008673309348523617,
0.010290367528796196,
0.05409792810678482,
-0.01368878223001957,
-0.00560781778767705,
-0.016378113999962807,
-0.007449707016348839,
-0.01947387121617794,
0.04991260543465614,
-0.008150143548846245,
-0.00043236836791038513,
0.020840154960751534,
-0.0025488114915788174,
-0.011708535254001617,
0.08349897712469101,
-0.05430546775460243,
-0.019992712885141373,
0.007025985978543758,
-0.006143954582512379,
-0.10252318531274796,
0.02474876493215561,
-0.024921713396906853,
0.0032643810845911503,
0.05146912857890129,
0.023330597206950188,
0.03963953256607056,
0.011587472632527351,
-0.04531220346689224,
0.019594933837652206,
-0.009676404297351837,
0.013325593434274197,
0.026651186868548393,
-0.013783903792500496,
0.05651919171214104,
-0.02007918618619442,
0.05229927599430084,
-0.04821772128343582,
-0.014735113829374313,
-0.0007923150551505387,
-0.02704896405339241,
-0.03683778643608093,
-0.027204617857933044,
-0.0483560785651207,
0.02998906932771206,
0.007920988835394382,
0.01807299815118313,
0.04624611884355545,
0.03569633141160011,
-0.10501363128423691,
0.06772617995738983,
-0.02410886064171791,
-0.044066984206438065,
-0.03237574175000191,
-0.011302108876407146,
-0.0581103079020977,
-0.07775712758302689,
0.07983249425888062,
0.05465136095881462,
-0.00038210555794648826,
-0.03275622799992561,
-0.03434734418988228,
-0.01833241805434227,
0.04503548890352249,
-0.0023153326474130154,
0.02184324897825718,
0.041196059435606,
-0.015547966584563255,
-0.05254140496253967,
-0.040608037263154984,
-0.0061180125921964645,
-0.0038113270420581102,
-0.025440555065870285,
0.04655742645263672,
0.03343072161078453,
0.035661742091178894,
0.034762416034936905,
-0.02445475570857525,
0.03260057419538498,
0.0200445968657732,
-0.002661227248609066,
0.011353992857038975,
0.019560344517230988,
0.09422171115875244,
-0.0015176129527390003,
-0.03541961684823036,
0.05876750871539116,
-0.061534665524959564,
-0.0505698025226593,
0.09422171115875244,
-0.0032687047496438026,
0.020598029717803,
0.03522937372326851,
-0.004319360014051199,
-0.06744946539402008,
0.06540868431329727,
-0.06447476893663406,
-0.03541961684823036,
0.051953382790088654,
-0.011449114419519901,
-0.009356451220810413,
-0.04420534148812294,
0.0709775909781456,
0.05119241401553154,
-0.006355815101414919,
-0.04918622598052025,
-0.07803384214639664,
0.014224919490516186,
-0.010610319674015045,
-0.0031173760071396828,
-0.02182595431804657,
-0.012261967174708843,
0.04704167693853378,
0.036768604069948196,
-0.049324583262205124,
0.008967319503426552,
-0.02009648084640503,
-0.00888949353247881,
0.0066325305961072445,
0.024247217923402786,
-0.02701437473297119,
-0.0024082919117063284,
-0.045450564473867416,
-0.012849987484514713,
-0.053959570825099945,
-0.029504816979169846,
-0.04856361448764801,
-0.043790269643068314,
0.03500454127788544,
0.037944648414850235,
0.03694155439734459,
0.06862550973892212,
-0.03145912289619446,
-0.01365419290959835,
0.0002007810544455424,
-0.027187323197722435,
-0.046937908977270126,
0.007756688632071018,
0.008496038615703583,
-0.015608497895300388,
-0.03874020650982857,
0.06430182605981827,
-0.041403595358133316,
-0.0314418263733387,
-0.02563079632818699,
0.026270702481269836,
-0.038843974471092224,
-0.026668481528759003,
0.0478026457130909,
0.017061255872249603,
-0.021583829075098038,
-0.0030460350681096315,
0.01662023924291134,
0.0035583917051553726,
-0.016974782571196556,
0.024523934349417686,
-0.047837235033512115,
0.004656607285141945,
0.04046967998147011,
-0.02556161768734455,
0.0365956574678421,
0.05430546775460243,
-0.00530083617195487,
-0.0029963126871734858,
-0.01885126158595085,
-0.031597480177879333,
0.01921444945037365,
0.053924981504678726,
-0.05721098184585571,
-0.003549744375050068,
-0.006277988664805889,
0.02035590261220932,
0.03234115242958069,
-0.02355542778968811,
0.055689044296741486,
-0.010748677887022495,
0.014570813626050949,
-0.016784539446234703,
0.02587292343378067,
-0.008106906898319721,
0.02213726006448269,
0.02206808142364025,
-0.020892038941383362,
0.008707898668944836,
-0.055066436529159546,
-0.02154923975467682,
-0.04538138210773468,
0.02495630271732807,
0.005949388723820448,
-0.024039682000875473,
-0.010662203654646873,
-0.001801895210519433,
-0.031234290450811386,
0.022569628432393074,
0.03204714506864548,
0.0588366873562336,
-0.02357272244989872,
-0.019698703661561012,
-0.05966683477163315,
-0.06364462524652481,
-0.029193511232733727,
0.00871654599905014,
-0.003171422053128481,
-0.011492351070046425,
-0.0023542458657175303,
-0.0074583543464541435,
0.0011263196356594563,
-0.06087746471166611,
0.025181133300065994,
0.012037135660648346,
-0.00287092593498528,
-0.029798828065395355,
-0.029158921912312508,
-0.004198296926915646,
-0.04704167693853378,
0.02037319727241993,
0.011743124574422836,
-0.02300199680030346,
-0.045243024826049805,
0.05966683477163315,
-0.004051291383802891,
-0.04953211918473244,
0.01599762961268425,
0.04309847950935364,
0.038255952298641205,
0.013896319083869457,
0.028640080243349075,
-0.011137808673083782,
0.005387309938669205,
0.0832914412021637,
-0.029885301366448402,
0.04918622598052025,
0.0074021462351083755,
0.0342089869081974,
0.027567807585000992,
0.03054250217974186,
0.031044049188494682,
-0.0012862959410995245,
-0.0039042863063514233,
0.03773711249232292,
0.0024753089528530836,
0.09097030758857727,
-0.048701971769332886,
-0.02118605002760887,
-0.0048727914690971375,
-0.01630028709769249,
-0.03887856379151344,
-0.05475512892007828,
0.007497267331928015,
-0.0038459165953099728,
-0.029833417385816574,
0.031822312623262405,
0.10660474747419357,
0.03984706848859787,
0.029020564630627632,
0.007004367653280497,
0.015591203235089779,
0.005248952191323042,
0.009287272579967976,
0.06852173805236816,
0.0051062703132629395,
-0.02966047078371048,
0.028363365679979324,
-0.04019296169281006,
0.08176950365304947,
-0.02616693265736103,
0.03132076561450958,
0.01971599832177162,
-0.03151100501418114,
-0.03469323739409447,
-0.008880846202373505,
-0.003396253567188978,
0.007367556914687157,
0.016507824882864952,
0.01745038665831089,
-0.08266883343458176,
0.008967319503426552,
-0.05261058360338211,
0.05496266484260559,
0.01981976628303528,
0.006680091377347708,
0.02877843752503395,
0.06226104497909546,
-0.0072724358178675175,
-0.07021662592887878,
-0.08986344188451767,
0.03988165780901909,
-0.003886991646140814,
0.006156925577670336,
0.03379391133785248,
0.001931605627760291,
-0.02205078676342964,
-0.022292913869023323,
-0.050708163529634476,
-0.03718367964029312,
0.00016092210717033595,
-0.007735069841146469,
0.05344073101878166,
-0.04019296169281006,
-0.008517656475305557,
-0.027152733877301216,
-0.015383666381239891,
-0.0006842229631729424,
0.012097666971385479,
0.03835972025990486,
-0.0022029168903827667,
0.03524667024612427,
-0.04773346707224846,
0.06713815778493881,
-0.01718231849372387,
0.0446895956993103,
0.03422627970576286,
-0.013403419405221939,
0.021064987406134605,
0.013438008725643158,
-0.020719092339277267,
0.0069222175516188145,
0.018488071858882904,
-0.054858896881341934,
0.0064120227470994,
-0.000965262355748564,
-0.02649553306400776,
-0.029435638338327408,
0.06170761212706566,
0.06890222430229187,
0.009460220113396645,
0.021964313462376595,
-0.010912977159023285,
0.04517384618520737,
0.06924811750650406,
-0.004202620591968298,
0.0400891937315464,
0.0483560785651207,
-0.006658473052084446,
-0.03247951343655586,
-0.004163707140833139,
0.018436187878251076,
0.03963953256607056,
-0.012573271989822388,
-0.05434005707502365,
0.00827553030103445,
0.004016702063381672,
0.03517749160528183,
0.005841296631842852,
0.01747632957994938,
0.06769159436225891,
-0.047283805906772614,
-0.035592563450336456,
0.0593901202082634,
0.015202071517705917,
-0.028968680649995804,
0.03963953256607056,
-0.0027866142336279154,
-0.006200162228196859,
-0.03491806983947754,
0.005110593978315592,
0.05634624511003494,
0.06741487234830856,
-0.01857454515993595,
-0.053648266941308975,
-0.06990531831979752,
-0.006809801794588566,
-0.0020526687148958445,
-0.024783354252576828,
0.02390132285654545,
0.004531220532953739,
0.06634259968996048,
0.01046331413090229,
0.001304671517573297,
0.0018710740841925144,
-0.06827960908412933,
0.009148914366960526,
-0.00931321457028389,
-0.0478026457130909,
0.028882207348942757,
-0.013334240764379501,
-0.0154009610414505,
-0.0005485673900693655,
-0.03177042677998543,
-0.023780260235071182,
-0.01365419290959835,
-0.01623975671827793,
0.021583829075098038,
0.009979061782360077,
0.039950836449861526,
-0.028743848204612732,
0.003288161475211382,
0.018678313121199608,
-0.010696792975068092,
-0.029141627252101898,
-0.029850712046027184,
0.013022935017943382,
0.035592563450336456,
-0.0075621227733790874,
0.02037319727241993,
-0.0075750937685370445,
0.037391215562820435,
0.03777170181274414,
-0.01921444945037365,
0.007860456593334675,
-0.06198433041572571,
0.004894409794360399,
-0.011457761749625206,
-0.01917986012995243,
0.025371376425027847,
0.028605490922927856,
-0.016628887504339218,
0.016231108456850052,
-0.006904922891408205,
-0.03721826896071434,
0.021116871386766434,
-0.004600399639457464,
-0.05458218231797218,
0.005633759777992964,
0.04980883747339249,
0.02094392292201519,
0.009961767122149467,
-0.036803197115659714,
-0.029435638338327408,
-0.010065536014735699,
0.007090841419994831,
-0.024039682000875473,
0.023140354081988335,
-0.04022755101323128,
-0.026945196092128754,
-0.0235381331294775,
-0.04998178407549858,
0.006615235935896635,
-0.02732568047940731,
0.051054056733846664,
0.039674121886491776,
0.009192151017487049,
0.053648266941308975,
-0.01599762961268425,
0.003383282572031021,
-0.05648460239171982,
0.004691196605563164,
0.002922810148447752,
0.018176766112446785,
-0.03237574175000191,
-0.015522024594247341,
0.019698703661561012,
0.05458218231797218,
-0.024472050368785858,
0.013662840239703655,
-0.09283813834190369,
0.010048240423202515,
0.007056251633912325,
0.0023672168608754873,
-0.00855224672704935,
-0.09256141632795334,
0.037114500999450684,
-0.05216091871261597,
0.01745038665831089,
0.0022612866014242172,
-0.06686144322156906,
0.07824137806892395,
-0.05344073101878166,
0.004557162523269653,
-0.03052520751953125,
0.05254140496253967,
0.03759875148534775,
-0.057453107088804245,
-0.015409608371555805,
-0.027844522148370743,
0.015055066905915737,
0.07761877030134201,
0.007817219942808151,
-0.021756775677204132,
-0.03019660711288452,
-0.005958036053925753,
-0.019352808594703674,
-0.03057709150016308,
-0.00017159619892481714,
0.005901828408241272,
0.04825231060385704,
-0.07837973535060883,
-0.010843798518180847,
-0.037114500999450684,
-0.022171849384903908,
0.012538682669401169,
0.01660294458270073,
-0.04949752986431122,
0.007367556914687157,
0.002453690394759178,
0.00313034700229764,
0.012019841000437737,
-0.018661018460989,
0.06596212089061737,
0.0069913966581225395,
0.010376840829849243,
-0.032462216913700104,
0.0004620936815626919,
0.00973693560808897,
0.033897679299116135,
0.06115418300032616,
0.02474876493215561,
-0.06191515177488327,
0.02767157554626465,
-0.009261330589652061,
0.06409429013729095,
0.043755680322647095,
-0.009771524928510189,
-0.017320677638053894,
0.06108500435948372,
0.0168277770280838,
-0.049013279378414154,
-0.05178043618798256,
0.02445475570857525,
0.004345302004367113,
-0.030075542628765106,
0.041403595358133316,
0.038809385150671005,
-0.009901235811412334,
-0.033845797181129456,
0.008932730183005333,
0.01252138800919056,
0.01949116587638855,
-0.0742981806397438,
-0.0250081866979599,
-0.005923446733504534,
0.02533678710460663,
-0.03607681766152382,
-0.05987437069416046,
0.02825959585607052,
0.0009047308121807873,
0.017917344346642494,
0.020217545330524445,
-0.03408792242407799,
0.03552338480949402,
-0.03524667024612427,
0.019543049857020378,
-0.023762965574860573,
-0.0424758680164814,
0.015651734545826912,
0.04776805639266968,
-0.04164572060108185,
0.019127976149320602,
-0.02706626057624817,
-0.03227197378873825,
-0.012538682669401169,
0.017614686861634254,
0.004552838858217001,
-0.0331021212041378,
-0.03752957284450531,
-0.021981608122587204,
0.03149371221661568,
0.037322036921978,
0.056795910000801086,
0.001695964951068163,
-0.03394956514239311,
-0.07045874744653702,
0.03901692107319832,
0.014761055819690228,
-0.03683778643608093,
0.029228102415800095,
0.06814125180244446,
0.009321861900389194,
0.035627152770757675,
-0.03458946943283081,
-0.03375932201743126,
-0.04365190863609314,
0.0360422283411026,
0.02763698622584343,
0.035592563450336456,
-0.031822312623262405,
0.009840703569352627,
-0.022863639518618584,
0.02064991369843483,
-0.0154009610414505,
-0.03673401474952698,
-0.010558435693383217,
-0.01338612474501133,
-0.020182956010103226,
0.025440555065870285,
0.016992077231407166,
0.02646094374358654,
0.009079735726118088,
-0.00990988314151764,
-0.042337510734796524
] |
725,021 | tf_keras.src.engine.training | get_layer | Retrieves a layer based on either its name (unique) or index.
If `name` and `index` are both provided, `index` will take precedence.
Indices are based on order of horizontal graph traversal (bottom-up).
Args:
name: String, name of layer.
index: Integer, index of layer.
Returns:
A layer instance.
| def get_layer(self, name=None, index=None):
"""Retrieves a layer based on either its name (unique) or index.
If `name` and `index` are both provided, `index` will take precedence.
Indices are based on order of horizontal graph traversal (bottom-up).
Args:
name: String, name of layer.
index: Integer, index of layer.
Returns:
A layer instance.
"""
# TODO(fchollet): We could build a dictionary based on layer names
# since they are constant, but we have not done that yet.
if index is not None and name is not None:
raise ValueError(
"Provide only a layer name or a layer index. Received: "
f"index={index}, name={name}."
)
if index is not None:
if len(self.layers) <= index:
raise ValueError(
f"Was asked to retrieve layer at index {index}"
f" but model only has {len(self.layers)}"
" layers."
)
else:
return self.layers[index]
if name is not None:
for layer in self.layers:
if layer.name == name:
return layer
raise ValueError(
f"No such layer: {name}. Existing layers are: "
f"{list(layer.name for layer in self.layers)}."
)
raise ValueError(
"Provide either a layer name or layer index at `get_layer`."
)
| (self, name=None, index=None) | [
-0.02172437496483326,
-0.05128086730837822,
-0.0670868530869484,
0.03788475692272186,
-0.01726786606013775,
-0.013378387317061424,
-0.032090410590171814,
0.029521051794290543,
0.09412714838981628,
0.0002448920567985624,
0.00676007242873311,
-0.036502622067928314,
-0.0332067534327507,
-0.025427795946598053,
0.017826037481427193,
0.035244520753622055,
0.005479822866618633,
-0.0007857587770558894,
-0.020271359011530876,
-0.011278601363301277,
0.0468863770365715,
-0.04036552086472511,
0.05610062927007675,
0.0017044154228642583,
0.02842242829501629,
0.021671215072274208,
0.018694303929805756,
0.04727621003985405,
0.01857026480138302,
-0.043342430144548416,
-0.047843240201473236,
-0.011845631524920464,
-0.031558819115161896,
0.042350128293037415,
-0.03239164501428604,
0.030212121084332466,
-0.00772579712793231,
0.010348315350711346,
0.023425467312335968,
-0.05110367015004158,
0.059892650693655014,
-0.025888508185744286,
0.06896514445543289,
-0.009843303821980953,
0.001187221147119999,
0.017524801194667816,
-0.023319149389863014,
0.0017143827863037586,
-0.023088794201612473,
-0.03646717965602875,
-0.0165502168238163,
0.02082066982984543,
0.01565537229180336,
-0.02546323649585247,
-0.020590312778949738,
-0.11801332235336304,
-0.006937270052731037,
0.012625299394130707,
0.02932613343000412,
0.008602923713624477,
-0.04025920107960701,
-0.0419248528778553,
0.002516200067475438,
0.049686092883348465,
-0.034890126436948776,
-0.05082015320658684,
-0.037813879549503326,
-0.028528746217489243,
-0.006277210544794798,
0.026242902502417564,
0.010268577374517918,
0.031417060643434525,
0.04047183692455292,
-0.031966373324394226,
-0.04780780151486397,
-0.004288171883672476,
0.055710796266794205,
0.006520856637507677,
0.04079079255461693,
0.018605705350637436,
-0.08633046597242355,
0.003986936528235674,
-0.0332067534327507,
0.01818043179810047,
0.015150359831750393,
-0.026827653869986534,
0.02491392381489277,
-0.01638188026845455,
0.007539740297943354,
-0.06010528653860092,
-0.062196213752031326,
0.033313069492578506,
-0.03403957933187485,
0.027926277369260788,
0.008266248740255833,
-0.05415146052837372,
0.0006567370728589594,
-0.03756580501794815,
0.012270905077457428,
-0.006618314888328314,
-0.03189549222588539,
0.009666106663644314,
-0.06272780150175095,
0.04206661134958267,
-0.05595887079834938,
-0.03363202512264252,
-0.012687318958342075,
0.0015770549653097987,
-0.07541511952877045,
0.01835762895643711,
0.003100950736552477,
-0.021175064146518707,
0.005812067538499832,
-0.02160033769905567,
0.03841634839773178,
-0.020501714199781418,
0.0013965353136882186,
-0.001362203387543559,
-0.038806185126304626,
-0.01871202327311039,
0.015947746112942696,
0.027058010920882225,
-0.019775206223130226,
0.01178361289203167,
-0.011960810050368309,
0.03604190796613693,
0.016178103163838387,
-0.03613050654530525,
0.06340115517377853,
-0.05291108042001724,
0.06627174466848373,
-0.006950559560209513,
-0.07520248740911484,
-0.002607013564556837,
0.02411653660237789,
0.016452759504318237,
0.02473672665655613,
0.016178103163838387,
-0.04614214599132538,
0.04646110162138939,
0.030655113980174065,
-0.0015272182645276189,
0.020749790593981743,
0.06400362402200699,
-0.07732885330915451,
-0.03304727375507355,
-0.018765181303024292,
-0.09171726554632187,
0.018428508192300797,
-0.0011772537836804986,
-0.000009534731361782178,
0.0030411467887461185,
0.0014541244599968195,
-0.013918839395046234,
-0.014654207043349743,
-0.019952403381466866,
-0.06230252981185913,
-0.0419248528778553,
0.00836370699107647,
-0.01470736600458622,
-0.05425777658820152,
0.013821380212903023,
-0.01965116709470749,
-0.054222337901592255,
-0.04695725440979004,
-0.010038220323622227,
-0.00915223453193903,
0.005085559096187353,
0.0003604855155572295,
0.03274603933095932,
-0.010622971691191196,
0.04270452260971069,
-0.008350417017936707,
0.02037767693400383,
-0.03577611222863197,
0.0014352971920743585,
0.002700042212381959,
-0.004172993823885918,
0.03919601812958717,
-0.02028907835483551,
0.049863290041685104,
-0.006441117729991674,
-0.07236733287572861,
-0.021334541961550713,
-0.0032914376351982355,
-0.003470849944278598,
0.007451141718775034,
0.026880813762545586,
0.005249466747045517,
0.018251311033964157,
0.022964755073189735,
0.0180386733263731,
0.048870984464883804,
-0.007973873056471348,
-0.006197471637278795,
-0.030796870589256287,
0.034890126436948776,
0.07399754226207733,
0.04639022424817085,
0.05227316915988922,
0.01609836518764496,
0.018463946878910065,
0.02168893627822399,
0.06162917986512184,
-0.03444713354110718,
-0.01961572840809822,
0.050891030579805374,
-0.013254349119961262,
-0.09618262946605682,
0.03306499496102333,
-0.015354136005043983,
0.006255060900002718,
0.04362594708800316,
0.053548987954854965,
0.03685701638460159,
-0.014069456607103348,
-0.06566927582025528,
0.02344318851828575,
0.08030576258897781,
0.009293992072343826,
-0.0219015721231699,
-0.03239164501428604,
0.03324219211935997,
0.0556044764816761,
0.004467584192752838,
-0.057908039540052414,
0.015097199939191341,
0.011358339339494705,
0.014335252344608307,
-0.026561858132481575,
-0.0032227737829089165,
-0.0546121746301651,
0.001083117793314159,
-0.02604798600077629,
0.030300719663500786,
0.011730453930795193,
-0.016443898901343346,
-0.028351549059152603,
0.06393274664878845,
-0.026420099660754204,
-0.004037880804389715,
-0.0345357321202755,
-0.021299101412296295,
0.07119783014059067,
-0.02675677463412285,
0.024258295074105263,
0.007393552456051111,
0.004881782457232475,
-0.016922330483794212,
0.019580289721488953,
-0.023017914965748787,
0.08080191910266876,
0.026561858132481575,
0.04564599692821503,
-0.005648160353302956,
-0.08278652280569077,
-0.10716886073350906,
-0.08299916237592697,
-0.0035572336055338383,
0.001244810177013278,
-0.09143374860286713,
0.015859147533774376,
-0.00772579712793231,
0.007499870844185352,
0.019899243488907814,
-0.02344318851828575,
0.014804825186729431,
-0.009032626636326313,
0.030247559770941734,
0.030513355508446693,
0.05964457243680954,
0.07867555320262909,
0.01862342469394207,
-0.014680786989629269,
0.05475392937660217,
-0.08115631341934204,
0.038841623812913895,
0.02424057573080063,
-0.05730557069182396,
0.017427343875169754,
-0.004494163673371077,
-0.006906260270625353,
-0.10532600432634354,
0.03226760774850845,
-0.056065190583467484,
0.004257162567228079,
0.04298803582787514,
-0.07257996499538422,
-0.004423284903168678,
-0.014822544530034065,
0.08370795100927353,
-0.0007846513180993497,
-0.023088794201612473,
-0.035829272121191025,
0.0055329822935163975,
-0.003794234711676836,
-0.054895687848329544,
0.019722046330571175,
0.03965672850608826,
0.015575632452964783,
0.027819957584142685,
-0.0327637605369091,
0.032657440751791,
0.004243872594088316,
-0.019279053434729576,
0.005559561774134636,
0.0037898048758506775,
0.04543335735797882,
-0.006184181664139032,
0.03628998249769211,
0.005311485845595598,
-0.011145702563226223,
0.010055940598249435,
-0.009559787809848785,
0.003758795326575637,
-0.034606609493494034,
0.03288779780268669,
0.011934230104088783,
0.03005264326930046,
0.08746453374624252,
-0.016576796770095825,
0.02914893627166748,
-0.06726405024528503,
-0.009050345979630947,
0.024081097915768623,
-0.004093254916369915,
0.020218199118971825,
0.006711343303322792,
0.0040888250805437565,
0.021423140540719032,
-0.074139304459095,
-0.02891858108341694,
0.010490073822438717,
0.03660893812775612,
-0.0692840963602066,
0.01956256851553917,
0.034340813755989075,
0.07055991888046265,
0.0346420481801033,
0.01331636868417263,
0.052521247416734695,
0.0080270329490304,
-0.05312371626496315,
0.0013046142412349582,
0.007491011172533035,
0.027058010920882225,
0.04571687430143356,
-0.005714609287679195,
-0.02555183507502079,
0.040507275611162186,
-0.04798499867320061,
-0.04146414250135422,
-0.01322777010500431,
0.017923494800925255,
-0.031098106876015663,
0.07647830247879028,
0.015256677754223347,
-0.05245036631822586,
0.004312536679208279,
-0.005878516472876072,
0.03304727375507355,
-0.030105801299214363,
-0.017551381140947342,
-0.011730453930795193,
-0.0468863770365715,
-0.03636086359620094,
0.03646717965602875,
0.005453243386000395,
0.002385517116636038,
-0.011065964587032795,
-0.04206661134958267,
0.002897174097597599,
-0.018286749720573425,
0.0023788721300661564,
-0.020802950486540794,
-0.0032692879904061556,
0.04745340719819069,
-0.0046647158451378345,
0.0322144478559494,
-0.034305375069379807,
0.025711311027407646,
0.007991593331098557,
0.00836370699107647,
0.07562775909900665,
0.05315915495157242,
-0.05216685310006142,
0.009488909505307674,
-0.052521247416734695,
0.027926277369260788,
-0.03809739649295807,
0.007601759396493435,
-0.036095067858695984,
0.052060533314943314,
-0.003670196747407317,
0.012545560486614704,
-0.04047183692455292,
0.028316110372543335,
0.006875250954180956,
-0.05408057942986488,
-0.006507566664367914,
-0.015903446823358536,
-0.007194205652922392,
0.02950333058834076,
0.0272529274225235,
-0.013998577371239662,
-0.011881071142852306,
0.028900861740112305,
0.12736934423446655,
-0.015504754148423672,
-0.045539677143096924,
-0.038664426654577255,
0.04273996129631996,
-0.03604190796613693,
-0.017515942454338074,
0.02455952949821949,
0.04663829877972603,
0.07265084981918335,
0.0643225759267807,
-0.029361573979258537,
0.027873117476701736,
0.0018074113177135587,
-0.007132186554372311,
0.04933169484138489,
0.01961572840809822,
0.004775464069098234,
-0.018836060538887978,
-0.03104494698345661,
0.055675357580184937,
-0.005874086637049913,
0.054186899214982986,
-0.06439346075057983,
-0.1012859120965004,
0.05914841964840889,
-0.03239164501428604,
0.030300719663500786,
-0.022663520649075508,
0.024098817259073257,
-0.024435492232441902,
-0.036998771131038666,
0.034340813755989075,
0.06612998992204666,
-0.0012038333807140589,
-0.03441169485449791,
0.014556748792529106,
-0.041499581187963486,
-0.023017914965748787,
-0.014202354475855827,
0.02771363966166973,
0.015425015240907669,
-0.02797943539917469,
-0.011021665297448635,
0.021848412230610847,
0.045185282826423645,
-0.024400051683187485,
0.027926277369260788,
-0.027961716055870056,
-0.06790196150541306,
-0.014184635132551193,
0.008062471635639668,
0.03373834490776062,
0.01515921950340271,
0.04327155277132988,
0.04961521178483963,
-0.01007365994155407,
-0.026916252449154854,
-0.007141046691685915,
0.048374831676483154,
-0.035386279225349426,
-0.018587984144687653,
-0.053867943584918976,
0.01619582250714302,
-0.02315967157483101,
-0.05007592588663101,
-0.058900345116853714,
0.008345987647771835,
0.0077125076204538345,
0.04210205003619194,
0.01664767600595951,
0.010126818902790546,
-0.05684485659003258,
-0.016204683110117912,
-0.03714052960276604,
-0.00796501338481903,
-0.006511996500194073,
-0.007548599969595671,
0.07265084981918335,
-0.006215191446244717,
0.05929017812013626,
0.004850773140788078,
-0.05833331495523453,
-0.025179719552397728,
0.006587305571883917,
-0.0026933972258120775,
0.04713445156812668,
0.013254349119961262,
-0.008509894832968712,
0.004378985613584518,
-0.03490784391760826,
0.010560952126979828,
-0.006055713631212711,
0.03081458993256092,
-0.028599625453352928,
0.02280527725815773,
-0.028457868844270706,
-0.0011528892209753394,
-0.00034774947562254965,
-0.04957977309823036,
0.030194399878382683,
0.0642162635922432,
-0.029521051794290543,
0.01178361289203167,
0.04429929703474045,
0.025658152997493744,
0.04359050840139389,
0.007898564450442791,
0.05347811058163643,
-0.013971998356282711,
0.03958585113286972,
0.032639723271131516,
0.036998771131038666,
0.0682917982339859,
0.029521051794290543,
0.04022376239299774,
0.011402638629078865,
-0.006148742511868477,
0.05843963101506233,
0.005648160353302956,
-0.04844570904970169,
0.016204683110117912,
0.039018820971250534,
-0.00800931267440319,
0.016576796770095825,
-0.04663829877972603,
0.06790196150541306,
-0.005342495162039995,
-0.08292828500270844,
-0.044192977249622345,
0.011836771853268147,
-0.05861682817339897,
-0.0016213542548939586,
0.01664767600595951,
-0.024506371468305588,
-0.0037632251624017954,
-0.05879402533173561,
-0.008638362400233746,
-0.013440406881272793,
-0.025799909606575966,
0.004325826186686754,
-0.040188323706388474,
-0.01524781808257103,
-0.0011395993642508984,
0.04422841593623161,
-0.002673462498933077,
-0.06467697024345398,
0.09136287122964859,
0.05900666117668152,
-0.06159374117851257,
0.029857726767659187,
-0.03379150480031967,
0.033401668071746826,
0.02406337857246399,
-0.022114207968115807,
0.04727621003985405,
0.005386794451624155,
-0.02239772491157055,
-0.01540729496628046,
-0.02105102501809597,
-0.026384660974144936,
0.031151264905929565,
-0.010676130652427673,
-0.027926277369260788,
0.010428054258227348,
0.038026515394449234,
0.03368518501520157,
-0.028262950479984283,
0.013201190158724785,
0.045539677143096924,
-0.000006143066457298119,
0.0233900286257267,
-0.02181297354400158,
0.048835545778274536,
-0.02914893627166748,
0.05447041615843773,
0.008598493412137032,
0.008376996964216232,
0.021352261304855347,
-0.012049408629536629,
0.02262808009982109,
-0.016895752400159836,
0.010667270980775356,
0.02172437496483326,
-0.00971926562488079,
0.024683568626642227,
0.032905519008636475,
0.05142262205481529,
0.04125150665640831,
-0.04373226687312126,
-0.01894237846136093,
0.02154717780649662,
0.0355280376970768,
-0.03625454381108284,
-0.0011252021649852395,
0.016700834035873413,
0.02914893627166748,
0.010135679505765438,
0.029361573979258537,
-0.025356916710734367,
-0.05695117637515068,
-0.032409366220235825,
-0.07148134708404541,
0.03400414064526558,
-0.026260623708367348,
-0.03590014949440956,
-0.05914841964840889,
-0.050182241946458817,
-0.04270452260971069,
0.026615018025040627,
0.06467697024345398,
-0.01498202234506607,
0.0009186566458083689,
0.05007592588663101,
-0.00014867950812913477,
-0.03646717965602875,
0.013945418410003185,
-0.027288366109132767,
-0.014725086279213428,
0.06258604675531387,
-0.02851102687418461,
0.010064800269901752,
0.029308414086699486,
0.023868460208177567,
0.017072949558496475,
-0.04444105550646782,
-0.032551124691963196,
-0.034659769386053085,
-0.02064347267150879,
0.04157045856118202,
-0.018198151141405106,
-0.04320067539811134,
0.02420513518154621,
-0.05801435932517052,
0.028865421190857887,
-0.0043856301344931126,
0.0012104782508686185,
0.014857984147965908,
0.0068663908168673515,
0.024719007313251495,
-0.026242902502417564,
0.06488960981369019,
-0.0195271298289299,
-0.06488960981369019,
-0.03490784391760826,
0.018906939774751663,
-0.0032803628128021955,
0.05181245878338814,
0.026384660974144936,
-0.00892630871385336,
-0.012155726552009583,
0.018428508192300797,
-0.029715968295931816,
-0.04089711233973503,
-0.031239863485097885,
0.012492401525378227,
0.022096488624811172,
-0.04699269309639931,
0.015185798518359661,
-0.037849318236112595,
-0.07839203625917435,
0.006932839751243591,
-0.003207269124686718,
-0.06014072522521019,
-0.030850030481815338,
-0.02149401791393757,
0.006246200762689114,
-0.038310032337903976,
-0.0034464853815734386,
0.03877074271440506,
0.017577961087226868,
0.0457877516746521,
-0.022698959335684776,
0.020430834963917732,
0.045504238456487656,
-0.007978303357958794,
0.10015185177326202,
0.014361832290887833,
0.05167070031166077,
-0.04146414250135422,
-0.022326845675706863,
0.0712687075138092,
-0.004678005818277597,
-0.038310032337903976,
-0.004409994930028915,
0.009701546281576157,
0.047028131783008575,
-0.05128086730837822,
-0.05198965594172478,
-0.02005872130393982,
-0.047559723258018494,
-0.015557913109660149,
0.022698959335684776,
0.007690357975661755,
-0.02262808009982109,
-0.04908362030982971,
0.0018539255252107978,
0.020430834963917732,
0.010286296717822552,
-0.047701481729745865,
-0.020590312778949738,
-0.011003945022821426,
-0.034606609493494034,
-0.05641958490014076,
-0.026012547314167023,
0.0888112261891365,
0.0025294898077845573,
0.04008200392127037,
0.04592951014637947,
-0.013839100487530231,
-0.0023677973076701164,
-0.08512552827596664,
0.04826851189136505,
0.000013921399840910453,
-0.005205167457461357,
-0.008447876200079918,
0.03664437681436539,
-0.009169954806566238,
0.015354136005043983,
-0.02464812807738781,
-0.06294044107198715,
-0.052060533314943314,
0.05167070031166077,
0.02037767693400383,
0.0011141273425891995,
0.006963849533349276,
0.021245943382382393,
0.03728228807449341,
-0.014902283437550068,
0.05812067538499832,
0.01754252053797245,
0.021121904253959656,
-0.0028307251632213593,
0.030247559770941734,
-0.017117248848080635,
-0.03529768064618111,
-0.007251794915646315,
0.027855398133397102,
0.01239494327455759,
0.04064903408288956,
0.020838389173150063,
-0.013670763000845909,
-0.017072949558496475,
0.062408849596977234,
-0.0253214780241251,
0.02955649048089981,
0.01475166529417038,
0.045681435614824295,
-0.051068227738142014,
-0.02523287944495678,
0.003180689411237836,
0.012581000104546547,
-0.04575231298804283,
0.010498933494091034,
-0.013830240815877914,
0.01609836518764496,
0.0021130763925611973,
-0.028174351900815964,
-0.011296320706605911,
0.028050314635038376,
0.006613885052502155
] |
725,022 | tf_keras.src.engine.training | get_metrics_result | Returns the model's metrics values as a dict.
If any of the metric result is a dict (containing multiple metrics),
each of them gets added to the top level returned dict of this method.
Returns:
A `dict` containing values of the metrics listed in `self.metrics`.
Example:
`{'loss': 0.2, 'accuracy': 0.7}`.
| def get_metrics_result(self):
"""Returns the model's metrics values as a dict.
If any of the metric result is a dict (containing multiple metrics),
each of them gets added to the top level returned dict of this method.
Returns:
A `dict` containing values of the metrics listed in `self.metrics`.
Example:
`{'loss': 0.2, 'accuracy': 0.7}`.
"""
# Collect metrics to return
return_metrics = {}
for metric in self.metrics:
result = metric.result()
if isinstance(result, dict):
return_metrics.update(result)
else:
return_metrics[metric.name] = result
return return_metrics
| (self) | [
-0.01569344289600849,
-0.05860576406121254,
-0.01870165392756462,
0.002795281121507287,
0.02154676988720894,
0.019462767988443375,
0.0017963192658498883,
-0.057663433253765106,
0.030843231827020645,
0.04827636107802391,
0.004392261151224375,
-0.008680322207510471,
0.04776895418763161,
-0.006224823649972677,
0.043999627232551575,
0.013962814584374428,
0.04813138768076897,
-0.04229618236422539,
0.05483643710613251,
0.0013398774899542332,
-0.015539406798779964,
-0.036497220396995544,
0.02285153605043888,
0.018511375412344933,
-0.03928796947002411,
-0.0011926381848752499,
0.008775461465120316,
-0.05976555868983269,
0.02286965772509575,
0.027998115867376328,
-0.0845198780298233,
-0.006401510909199715,
0.035428036004304886,
0.033235304057598114,
-0.01834828034043312,
-0.021075604483485222,
-0.008104955777525902,
0.009749505668878555,
-0.11974857747554779,
0.005975649692118168,
-0.02772628888487816,
-0.030227091163396835,
-0.015929024666547775,
0.0013829165836796165,
0.029882779344916344,
-0.028197454288601875,
0.027164515107870102,
0.02375762350857258,
0.0457393154501915,
-0.111485056579113,
-0.004168004263192415,
-0.014696745201945305,
-0.0035065601114183664,
0.08183785527944565,
0.00040037758299149573,
-0.02629467099905014,
-0.0009049552609212697,
0.005051440093666315,
-0.023956963792443275,
0.004023030400276184,
-0.009858235716819763,
0.0012979708844795823,
0.031042570248246193,
-0.001513166818767786,
0.01993393339216709,
-0.030607648193836212,
-0.025388581678271294,
0.022470979019999504,
-0.03037206642329693,
0.03907050937414169,
-0.02672959305346012,
-0.08647702634334564,
0.05030599981546402,
-0.02339519001543522,
-0.006904389709234238,
-0.004177065100520849,
-0.019462767988443375,
-0.029629074037075043,
0.06962379068136215,
0.015466920100152493,
-0.02225351892411709,
0.06908013671636581,
-0.014180275611579418,
-0.056793589144945145,
-0.011008967645466328,
-0.03521057590842247,
-0.019354037940502167,
0.0009802738204598427,
-0.013736292719841003,
0.00176573870703578,
-0.04334724321961403,
-0.004471543710678816,
0.00029900899971835315,
0.04146258160471916,
-0.03171307593584061,
0.01765059120953083,
-0.06016423553228378,
-0.0011405381374061108,
-0.021999813616275787,
-0.04436206445097923,
-0.03548240289092064,
0.03733082115650177,
-0.0011042945552617311,
0.04370968043804169,
-0.010374706238508224,
-0.058388303965330124,
-0.029248517006635666,
-0.04914620518684387,
0.03638849034905434,
0.06353488564491272,
-0.046282969415187836,
0.04751524701714516,
-0.00706295482814312,
0.011072393506765366,
0.03089759685099125,
-0.04795017093420029,
-0.033489007502794266,
-0.014796415343880653,
-0.03691402077674866,
0.028904203325510025,
-0.03390580788254738,
0.03928796947002411,
0.04374592378735542,
0.007207929156720638,
-0.030517039820551872,
0.05186447128653526,
0.009577348828315735,
-0.015684381127357483,
0.04254988580942154,
0.013709109276533127,
-0.008861539885401726,
-0.04407211393117905,
0.002507598139345646,
0.023268336430191994,
0.06353488564491272,
0.006913450546562672,
0.057047292590141296,
0.0007180746761150658,
0.06581822037696838,
0.03270977362990379,
0.023449555039405823,
0.07545899599790573,
0.01041094958782196,
-0.04182501509785652,
0.028396794572472572,
-0.020948752760887146,
0.03903426602482796,
0.07176215946674347,
-0.05142954736948013,
-0.06389731913805008,
0.0018676737090572715,
0.0000015838841136428528,
0.0778510719537735,
-0.05266182869672775,
-0.004102312959730625,
0.03390580788254738,
0.030335823073983192,
-0.04802265763282776,
0.005155640188604593,
-0.059185661375522614,
-0.012748656794428825,
-0.03356149420142174,
0.008322416804730892,
-0.052553098648786545,
0.04182501509785652,
0.05965682491660118,
-0.001653610379435122,
-0.013301369734108448,
-0.03530118241906166,
-0.011561681516468525,
-0.06563700735569,
-0.003030864056199789,
0.015475980937480927,
0.008367721922695637,
-0.05338669940829277,
0.026802079752087593,
0.005037848837673664,
0.013527892529964447,
0.02109372615814209,
0.05081340670585632,
0.02093062922358513,
-0.04287607967853546,
-0.08495479822158813,
-0.016164608299732208,
-0.017714018002152443,
0.001719301799312234,
0.02047758549451828,
0.029592830687761307,
-0.05110335722565651,
0.00883435644209385,
0.053712889552116394,
-0.003354790387675166,
0.050342243164777756,
-0.005395753309130669,
-0.0247905645519495,
-0.021401796489953995,
-0.025297973304986954,
0.04421708732843399,
-0.0025778200943022966,
0.05258934199810028,
-0.04900123178958893,
-0.02866862155497074,
-0.016110243275761604,
0.060055505484342575,
-0.009876358322799206,
0.00245096767321229,
-0.03568173944950104,
0.026530252769589424,
-0.052553098648786545,
-0.014778293669223785,
-0.03669656068086624,
0.03577234968543053,
-0.014497405849397182,
0.04345597326755524,
0.03801944851875305,
-0.003259651130065322,
0.06114280968904495,
0.04896498844027519,
-0.019082210958003998,
-0.03573610633611679,
0.023087119683623314,
-0.0835050567984581,
0.018955359235405922,
0.022543465718626976,
-0.04871128499507904,
0.00769721670076251,
-0.008630487136542797,
-0.03028145618736744,
0.007212459575384855,
-0.015059180557727814,
0.022108543664216995,
-0.037983205169439316,
0.0067277024500072,
-0.003622086253017187,
-0.046899110078811646,
0.05737348645925522,
0.00323246861808002,
0.04555809870362282,
0.02772628888487816,
0.017007268965244293,
0.02576913870871067,
0.00685908505693078,
-0.01614648662507534,
0.010528741404414177,
-0.023413311690092087,
-0.05081340670585632,
0.05287928879261017,
0.014062483794987202,
0.001461066771298647,
-0.02232600562274456,
0.04225993901491165,
0.02551543526351452,
0.060852862894535065,
0.027581315487623215,
-0.004288061056286097,
-0.05081340670585632,
-0.035717982798814774,
-0.016626711934804916,
0.07473412901163101,
-0.06429599970579147,
0.06534706056118011,
0.049834832549095154,
0.01879226230084896,
0.04182501509785652,
-0.0745166689157486,
-0.016835112124681473,
-0.016572346910834312,
0.05436527356505394,
-0.014678623527288437,
0.023685136809945107,
0.10720831900835037,
0.005536196753382683,
-0.03841812536120415,
-0.06955130398273468,
0.001408966607414186,
-0.007040302734822035,
0.030843231827020645,
0.03325342386960983,
-0.03229297325015068,
0.016835112124681473,
-0.01826673187315464,
-0.03107881359755993,
-0.03881680592894554,
-0.024736199527978897,
0.03194865956902504,
-0.007185277063399553,
0.012105334550142288,
-0.0009128835517913103,
0.03169495239853859,
0.00833600852638483,
0.015258519910275936,
-0.07415423542261124,
-0.02488117292523384,
-0.028197454288601875,
0.005155640188604593,
0.010764324106276035,
-0.04004908353090286,
-0.03521057590842247,
0.02584162726998329,
0.0693700909614563,
-0.0035110905300825834,
0.05106711387634277,
0.029248517006635666,
0.025352338328957558,
-0.009029165841639042,
0.05559755116701126,
0.08988391607999802,
-0.018148940056562424,
-0.0020454933401197195,
-0.0077832951210439205,
-0.0007696084212511778,
0.027255123481154442,
0.03483001887798309,
0.016545165330171585,
-0.04244115576148033,
-0.046101752668619156,
0.010483437217772007,
0.03539179265499115,
0.03899802267551422,
0.034286364912986755,
-0.005930345039814711,
0.038961779326200485,
0.04943615570664406,
0.004521378315985203,
0.05349542945623398,
-0.022036056965589523,
0.01949901133775711,
0.001103161950595677,
0.03714960440993309,
-0.027055785059928894,
-0.04077395424246788,
-0.10140935331583023,
0.006347145419567823,
0.05592374503612518,
-0.01244058646261692,
-0.013265126384794712,
0.004852100741118193,
0.05277055874466896,
0.017415009438991547,
0.04262237250804901,
0.005386692471802235,
-0.049726102501153946,
-0.021039361134171486,
0.01719754748046398,
-0.02542482689023018,
-0.02469995617866516,
-0.00010972157906508073,
0.02366701513528824,
0.03408702462911606,
-0.06313620507717133,
-0.03805569186806679,
0.019118454307317734,
0.01386314444243908,
0.04820387437939644,
0.020187638700008392,
-0.0025393113028258085,
-0.008702973835170269,
-0.06273752450942993,
0.01336479652673006,
-0.03617102652788162,
0.006673337426036596,
0.04961737245321274,
-0.060236722230911255,
0.039324212819337845,
0.019571498036384583,
0.01377253606915474,
0.020423220470547676,
-0.0007696084212511778,
0.08060558140277863,
-0.05425654351711273,
-0.016264278441667557,
0.027037663385272026,
-0.019390281289815903,
0.050450973212718964,
0.01977083832025528,
0.05675734579563141,
-0.014868902042508125,
0.0015663994709029794,
-0.03356149420142174,
0.004915526602417231,
-0.009812931530177593,
0.018592923879623413,
-0.06273752450942993,
0.002682020189240575,
0.08908656239509583,
-0.01862916722893715,
0.008059651590883732,
-0.06560076028108597,
-0.040556494146585464,
-0.0140353012830019,
-0.0214561615139246,
-0.010564984753727913,
-0.034630678594112396,
0.014479284174740314,
-0.060055505484342575,
-0.01737876608967781,
-0.007452572695910931,
0.010755263268947601,
-0.03530118241906166,
-0.06639812141656876,
-0.021293064579367638,
-0.025479191914200783,
0.009214913472533226,
-0.013174518011510372,
-0.08227278292179108,
-0.03939669951796532,
-0.019897690042853355,
0.02205417864024639,
-0.0031327989418059587,
-0.017052574083209038,
-0.013437283225357533,
-0.0405927374958992,
0.0005866918945685029,
0.001940160640515387,
-0.03780198469758034,
0.03519245237112045,
0.005545258056372404,
0.0022663522977381945,
0.046029265969991684,
0.0485663115978241,
0.010483437217772007,
0.0014757906319573522,
0.055633794516325,
0.010981785133481026,
0.004034356214106083,
-0.03236545994877815,
-0.013564135879278183,
0.0023852763697504997,
0.011652289889752865,
-0.007248702924698591,
-0.004625578876584768,
-0.05530760437250137,
-0.004861161578446627,
-0.07516904920339584,
-0.04120887815952301,
-0.0363522469997406,
0.00019792356761172414,
0.010392827913165092,
0.004892874509096146,
0.012585560791194439,
-0.026276549324393272,
0.014651441015303135,
0.03722209110856056,
0.041426338255405426,
-0.0021168477833271027,
-0.04751524701714516,
-0.06027296558022499,
-0.0026480418164283037,
-0.051502034068107605,
-0.0128483260050416,
0.01819424517452717,
-0.022833414375782013,
0.049726102501153946,
-0.0052915532141923904,
0.10452629625797272,
0.07400926202535629,
-0.040628980845212936,
-0.041245121508836746,
0.05425654351711273,
0.02895856834948063,
0.004322039429098368,
-0.03071638010442257,
-0.016309581696987152,
-0.0018076453125104308,
-0.0750240758061409,
0.024844929575920105,
0.01940840296447277,
0.003302690340206027,
-0.012168760411441326,
0.02843303792178631,
0.07959076017141342,
0.034721288830041885,
0.005586031824350357,
-0.05164701119065285,
-0.0485663115978241,
0.021202456206083298,
0.01416215393692255,
-0.0021225109230726957,
0.02558792196214199,
-0.04218745231628418,
0.01784086972475052,
-0.026512131094932556,
0.023105241358280182,
-0.050958383828401566,
-0.0039052388165146112,
0.057590946555137634,
0.014588015154004097,
-0.05835206061601639,
0.001813308335840702,
0.00635167583823204,
-0.06444097310304642,
0.013999057933688164,
0.03319906070828438,
-0.02558792196214199,
-0.06560076028108597,
0.017342522740364075,
0.06563700735569,
0.019571498036384583,
-0.013509769923985004,
0.058569520711898804,
0.04842133820056915,
-0.04729778692126274,
-0.022344127297401428,
0.00944143533706665,
-0.005300614051520824,
0.032800380140542984,
-0.024645591154694557,
-0.015059180557727814,
-0.0043650781735777855,
-0.0017510148463770747,
-0.06444097310304642,
0.03562737628817558,
0.005477301310747862,
0.03733082115650177,
-0.03676904737949371,
-0.042404912412166595,
-0.0238301120698452,
-0.024410007521510124,
-0.010347523726522923,
-0.010175366885960102,
0.004607456736266613,
0.053350456058979034,
0.015213215723633766,
0.03299972042441368,
-0.010338462889194489,
0.07589392364025116,
-0.04294856637716293,
0.011507316492497921,
-0.02207230031490326,
0.00874374806880951,
0.029719682410359383,
0.006505711004137993,
-0.046391699463129044,
0.048312604427337646,
-0.05425654351711273,
-0.03131439909338951,
-0.001625295146368444,
-0.024554980918765068,
-0.0689714103937149,
0.028451159596443176,
0.05059594660997391,
-0.02435564249753952,
0.0009655499015934765,
0.002824729075655341,
0.060055505484342575,
0.002838320331647992,
0.013419161550700665,
-0.008752808906137943,
-0.000902123749256134,
-0.04030279070138931,
-0.018592923879623413,
0.00446021743118763,
-0.009522983804345131,
-0.03888929262757301,
0.019480889663100243,
0.036152906715869904,
0.03530118241906166,
-0.006107032299041748,
0.00887513067573309,
-0.0140353012830019,
0.04613799601793289,
-0.05128457397222519,
0.017405947670340538,
-0.0017736670561134815,
-0.06763040274381638,
0.0005997169064357877,
-0.04555809870362282,
0.09046381711959839,
-0.11090515553951263,
-0.033942051231861115,
-0.029520343989133835,
-0.03176744282245636,
0.013301369734108448,
-0.0400853268802166,
0.007171685807406902,
0.009024634957313538,
0.002086267340928316,
0.003796508302912116,
-0.006011893041431904,
0.022561587393283844,
-0.02355828508734703,
0.023449555039405823,
0.024373764172196388,
-0.04668164625763893,
0.023685136809945107,
-0.003946012817323208,
-0.057047292590141296,
0.011751960031688213,
0.011054271832108498,
0.04961737245321274,
0.014914206229150295,
0.02585974894464016,
-0.010057575069367886,
0.01581123284995556,
0.06483964622020721,
-0.0067639462649822235,
-0.07951827347278595,
0.024645591154694557,
-0.03997659683227539,
-0.01685323379933834,
-0.018339218571782112,
0.01853855885565281,
0.03174931928515434,
-0.04784144088625908,
0.002464558929204941,
0.0007356301066465676,
-0.001034072833135724,
0.04900123178958893,
-0.028741108253598213,
-0.026421522721648216,
-0.05429278686642647,
-0.031459372490644455,
0.016001511365175247,
0.03457631543278694,
0.07444418221712112,
-0.025877870619297028,
-0.030498918145895004,
0.00697234645485878,
-0.03903426602482796,
0.02355828508734703,
0.07136347889900208,
0.01569344289600849,
0.013265126384794712,
0.02143803983926773,
-0.017152244225144386,
-0.006125153973698616,
-0.002518924418836832,
-0.02999150939285755,
0.009024634957313538,
0.004285795614123344,
-0.02620406076312065,
-0.003438603598624468,
0.058207087218761444,
-0.06454969942569733,
-0.014443040825426579,
0.0033434643410146236,
0.04182501509785652,
-0.013210761360824108,
0.01836640201508999,
-0.06074413284659386,
-0.014796415343880653,
0.0370589941740036,
-0.014986693859100342,
0.017188487574458122,
-0.002663898281753063,
-0.00395280821248889,
-0.08133044838905334,
0.026856444776058197,
0.08843417465686798,
0.018121758475899696,
-0.02161925658583641,
-0.020767534151673317,
-0.0042971218936145306,
0.005377631634473801,
0.007688155863434076,
0.04048400744795799,
0.011561681516468525,
-0.027237001806497574,
-0.023503920063376427,
0.005128457210958004,
-0.10336650907993317,
0.024663712829351425,
-0.04660915955901146,
-0.01993393339216709,
0.034721288830041885,
0.019462767988443375,
-0.0816928818821907,
0.046029265969991684,
-0.007180746644735336,
-0.01667201705276966,
0.07234205305576324,
0.00874374806880951,
0.03647909685969353,
0.022108543664216995,
-0.0617951937019825,
0.07393676787614822,
0.012205003760755062,
0.02109372615814209,
-0.014796415343880653,
-0.08307013660669327,
0.019190941005945206,
0.04048400744795799,
-0.025479191914200783,
0.08328759670257568,
-0.018683532252907753,
-0.03270977362990379,
-0.009595470502972603,
0.018312036991119385,
-0.0429123230278492,
-0.022742806002497673,
-0.016209911555051804,
-0.04860255494713783,
0.02366701513528824,
-0.005300614051520824,
-0.038091935217380524,
0.0363522469997406,
-0.039577919989824295,
-0.023522041738033295,
0.019136575981974602,
-0.002654837444424629,
-0.04961737245321274,
0.010610288940370083,
-0.025442948564887047,
-0.014216518960893154,
0.039324212819337845,
0.0067775375209748745,
0.009101652540266514,
-0.046029265969991684,
-0.009731383994221687,
-0.05338669940829277,
0.006714111194014549,
0.031459372490644455,
0.018774140626192093,
-0.0037421430461108685,
-0.01234997808933258,
0.006392450071871281,
0.03078886680305004,
0.010954602621495724,
0.014008118771016598,
0.031169423833489418,
0.030662013217806816,
0.018312036991119385,
0.028396794572472572,
0.022724684327840805,
-0.06150524690747261,
0.038961779326200485,
0.03138688579201698,
-0.005368570797145367,
0.024337520822882652,
-0.03783823177218437,
-0.011480133049190044,
-0.007194337900727987,
-0.033489007502794266,
0.031006326898932457,
-0.03483001887798309,
-0.0062655978836119175,
0.014687684364616871,
-0.0224166139960289,
0.022017935290932655,
0.007411798927932978,
-0.0027363854460418224,
0.0002634733682498336,
0.00600283220410347,
0.022887779399752617,
-0.019009724259376526,
-0.029792169108986855,
0.03028145618736744,
0.04961737245321274,
0.0001533270551590249,
-0.03591732308268547,
0.0637160986661911,
-0.010066636838018894,
0.02674771472811699,
0.0036719210911542177,
0.054945170879364014,
0.002931194379925728,
0.019281549379229546,
-0.02797999419271946,
0.07973573356866837,
0.01239528227597475,
-0.0021576217841356993,
-0.011724777519702911,
-0.05157452076673508,
0.042767349630594254,
-0.06821029633283615,
0.04244115576148033,
0.03892553597688675,
0.0022097218316048384
] |
725,023 | tf_keras.src.engine.base_layer | get_output_at | Retrieves the output tensor(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first output node of the layer.
Returns:
A tensor (or list of tensors if the layer has multiple outputs).
Raises:
RuntimeError: If called in Eager mode.
| @doc_controls.do_not_doc_inheritable
def get_output_at(self, node_index):
"""Retrieves the output tensor(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first output node of the layer.
Returns:
A tensor (or list of tensors if the layer has multiple outputs).
Raises:
RuntimeError: If called in Eager mode.
"""
return self._get_node_attribute_at_index(
node_index, "output_tensors", "output"
)
| (self, node_index) | [
-0.03632887452840805,
-0.05382562428712845,
0.0009587261592969298,
-0.006942204665392637,
0.03256244957447052,
0.05160001292824745,
-0.044923167675733566,
0.013756007887423038,
0.09559869021177292,
-0.0077254497446119785,
0.03097027912735939,
0.001313968445174396,
-0.012026877142488956,
-0.013191044330596924,
0.06704235076904297,
0.03417173773050308,
0.008517255075275898,
0.0077425697818398476,
0.015613540075719357,
0.061187274754047394,
-0.0013674687361344695,
-0.020561251789331436,
0.024430396035313606,
-0.04509437084197998,
-0.029908832162618637,
-0.038520246744155884,
0.028607703745365143,
-0.03381221741437912,
-0.013002723455429077,
-0.045607972890138626,
-0.09251707047224045,
-0.09511932730674744,
0.007699769455939531,
0.000841025379486382,
0.002565876580774784,
0.059372540563344955,
-0.005238753743469715,
0.08539510518312454,
0.026810092851519585,
-0.01531393826007843,
0.06789835542440414,
-0.06495369970798492,
-0.013935769908130169,
0.007421567570418119,
-0.017924755811691284,
0.017257070168852806,
-0.028025619685649872,
-0.026228008791804314,
-0.05420226976275444,
-0.06971308588981628,
0.048107508569955826,
0.010006704367697239,
0.028984345495700836,
0.03588375076651573,
0.018421238288283348,
-0.05088096857070923,
0.009493101388216019,
-0.024755679070949554,
-0.0006323740817606449,
0.009801262989640236,
-0.03451414033770561,
-0.007853850722312927,
-0.0020148230250924826,
0.04050618037581444,
0.04088282212615013,
-0.027186734601855278,
-0.002046923153102398,
-0.005183113273233175,
-0.007849570363759995,
0.05088096857070923,
-0.019996289163827896,
-0.0371163971722126,
0.031055878847837448,
-0.02105773612856865,
0.015485139563679695,
-0.06937068700790405,
0.07724593579769135,
0.06300200521945953,
0.008624255657196045,
0.004382748156785965,
-0.07964275032281876,
0.03958169370889664,
-0.05160001292824745,
-0.006120439153164625,
0.008239053189754486,
-0.054236508905887604,
-0.013173924759030342,
-0.025817126035690308,
-0.07642417401075363,
-0.023386070504784584,
-0.02766609750688076,
0.020766694098711014,
-0.02766609750688076,
0.07971122860908508,
-0.04009529575705528,
-0.03252821043133736,
-0.032048847526311874,
-0.037047918885946274,
-0.019174523651599884,
-0.0005264433566480875,
-0.015168417245149612,
0.07142509520053864,
-0.004592469427734613,
0.05115488916635513,
0.010006704367697239,
-0.025577444583177567,
-0.06262536346912384,
0.046498220413923264,
0.007074885535985231,
0.0019249423639848828,
0.01592170260846615,
0.03165508434176445,
0.029104186221957207,
-0.06194055825471878,
0.06043398752808571,
-0.025526084005832672,
-0.040711622685194016,
0.01799323596060276,
-0.007746849674731493,
-0.008123491890728474,
0.06971308588981628,
0.012155277654528618,
-0.011907036416232586,
-0.0018051016377285123,
-0.043313879519701004,
0.06659723073244095,
0.023146389052271843,
0.025919847190380096,
-0.008196252398192883,
-0.030080033466219902,
-0.034086138010025024,
-0.0023925353307276964,
-0.045539490878582,
0.0771089717745781,
-0.001147047383710742,
0.03595222905278206,
0.015613540075719357,
-0.022718386724591255,
-0.052421778440475464,
0.013268085196614265,
0.023368950933218002,
-0.005084672477096319,
0.01845547929406166,
0.014158330857753754,
-0.038177844136953354,
-0.03028547391295433,
-0.00271781743504107,
0.014432252384722233,
0.030542276799678802,
-0.09053114056587219,
-0.020321570336818695,
0.01878076046705246,
-0.016418185085058212,
-0.024755679070949554,
-0.006488521583378315,
0.03509622439742088,
-0.022495824843645096,
-0.016135703772306442,
0.0061546796932816505,
-0.04999072104692459,
-0.056188199669122696,
0.008731256239116192,
0.03144964203238487,
-0.018078835681080818,
0.013918649405241013,
0.016332585364580154,
0.02754625678062439,
0.009253419004380703,
-0.010999670252203941,
0.00845305435359478,
-0.03073059767484665,
-0.012369279749691486,
-0.010177905671298504,
0.013456406071782112,
0.004939151927828789,
0.034086138010025024,
0.020458530634641647,
0.021023495122790337,
0.023180628195405006,
0.04382748156785965,
0.02708401344716549,
-0.010494627058506012,
-0.0705348551273346,
0.020681092515587807,
-0.016349704936146736,
-0.002739217597991228,
0.004934871569275856,
0.005320074036717415,
-0.006206039804965258,
-0.0010742868762463331,
0.051291849464178085,
0.04060890153050423,
-0.005872197914868593,
-0.01666642725467682,
0.014560653828084469,
-0.06755595654249191,
-0.014928735792636871,
0.039342012256383896,
0.06745323538780212,
-0.008316093124449253,
0.01508281659334898,
-0.01696602813899517,
-0.0016435305587947369,
0.09991296380758286,
-0.04964831843972206,
-0.018404118716716766,
0.029001466929912567,
0.024567358195781708,
-0.12237454950809479,
0.025354882702231407,
-0.002217054134234786,
0.025902725756168365,
0.08505270630121231,
0.008483014069497585,
0.009801262989640236,
0.028402263298630714,
-0.04769662767648697,
0.03858872875571251,
-0.017214270308613777,
0.008936697617173195,
0.013379366137087345,
-0.05430498719215393,
0.051531530916690826,
0.049100473523139954,
-0.006210319697856903,
-0.03903385251760483,
-0.009433181025087833,
-0.0016082202782854438,
0.01982508786022663,
-0.06926796585321426,
0.010580227710306644,
0.05142880976200104,
-0.00722896633669734,
-0.008089251816272736,
0.05964646488428116,
0.031569480895996094,
0.0024396157823503017,
-0.05249025672674179,
0.024533117190003395,
-0.0046095894649624825,
-0.061187274754047394,
-0.03701367601752281,
-0.015622099861502647,
-0.013250964693725109,
-0.04516284912824631,
0.08847672492265701,
0.024995360523462296,
0.0021956542041152716,
-0.00814061239361763,
-0.00611615926027298,
0.022684145718812943,
0.013019843958318233,
0.007250366732478142,
0.0182329174131155,
0.02812834084033966,
-0.023625751957297325,
-0.06317320466041565,
-0.043450839817523956,
0.02025309018790722,
0.006394361145794392,
-0.011872796341776848,
0.0031094399746507406,
-0.02639921009540558,
-0.0137217678129673,
0.017582353204488754,
-0.04827871173620224,
0.00457962928339839,
0.0021432237699627876,
-0.040711622685194016,
0.04197850823402405,
0.03882841020822525,
0.09820094704627991,
-0.04156762734055519,
-0.06135847419500351,
0.011530393734574318,
-0.03256244957447052,
0.045607972890138626,
0.04358780011534691,
-0.02722097560763359,
0.04019801691174507,
0.03367525711655617,
-0.013002723455429077,
-0.08662775903940201,
0.04598461464047432,
-0.03119284100830555,
-0.05009344220161438,
0.034325819462537766,
0.0330931730568409,
0.02982323244214058,
-0.06022854521870613,
0.09121594578027725,
0.042868755757808685,
0.02449887804687023,
-0.03240836784243584,
-0.024087995290756226,
-0.003486082423478365,
-0.0708087757229805,
0.0016456706216558814,
0.0019206623546779156,
0.01429529208689928,
0.023026548326015472,
-0.002856918377801776,
-0.02732369489967823,
0.008953817188739777,
-0.005910717882215977,
0.059817664325237274,
0.040026817470788956,
0.04221818968653679,
0.010580227710306644,
0.006805243901908398,
-0.0019035422010347247,
-0.0283680222928524,
-0.004605309572070837,
0.020527012646198273,
-0.03800664469599724,
-0.03814360499382019,
0.029652031138539314,
0.0177706740796566,
0.03708215802907944,
0.05351746454834938,
-0.056530602276325226,
0.014654814265668392,
0.037184879183769226,
-0.007434407714754343,
0.017907634377479553,
-0.020886534824967384,
0.002523076254874468,
-0.015236897394061089,
0.020167488604784012,
0.004254347179085016,
-0.03941049426794052,
-0.0571126863360405,
-0.023197749629616737,
0.0330931730568409,
-0.023129267618060112,
-0.004250067286193371,
0.018061716109514236,
-0.005919278133660555,
-0.0007441897760145366,
0.01616138406097889,
0.007370207458734512,
0.022067822515964508,
-0.018027475103735924,
0.049922239035367966,
-0.007117685861885548,
0.06444009393453598,
0.010075184516608715,
-0.0013021983904764056,
-0.0038456046022474766,
0.01297704316675663,
-0.007203286048024893,
0.06550154089927673,
-0.01592170260846615,
0.036842476576566696,
-0.003920505288988352,
0.06228296086192131,
0.0038456046022474766,
0.005816557444632053,
-0.03759576007723808,
0.02913842722773552,
-0.030251234769821167,
-0.0039675855077803135,
0.021468617022037506,
-0.013242404907941818,
0.008714135736227036,
-0.04858687147498131,
0.04608733579516411,
0.01692322827875614,
0.04903199523687363,
-0.00857289507985115,
-0.06101607158780098,
0.017685074359178543,
-0.023043667897582054,
0.007442967966198921,
-0.02049277164041996,
-0.0028183981776237488,
-0.060399748384952545,
-0.03742456063628197,
0.03384645655751228,
-0.03324725478887558,
-0.028744664043188095,
-0.0031757804099470377,
-0.0003868074854835868,
0.04293723404407501,
0.009775582700967789,
-0.014612013474106789,
-0.015784740447998047,
-0.06033126637339592,
-0.03903385251760483,
0.011941276490688324,
0.029908832162618637,
0.009176379069685936,
-0.04351931810379028,
-0.0033876418601721525,
-0.010554547421634197,
-0.05440770834684372,
0.0056196763180196285,
0.020081888884305954,
-0.010092305019497871,
-0.06899404525756836,
-0.05372290685772896,
0.029343867674469948,
-0.03663703426718712,
0.010768549516797066,
-0.02597120590507984,
-0.04701182246208191,
-0.016067223623394966,
0.02355727180838585,
-0.004301427397876978,
-0.07197294384241104,
-0.05615396052598953,
0.017445392906665802,
0.0062445602379739285,
0.004793630912899971,
0.06043398752808571,
0.022512944415211678,
0.047525424510240555,
0.07628720998764038,
-0.011966956779360771,
0.017402591183781624,
-0.009458860382437706,
0.022016461938619614,
0.06926796585321426,
-0.0034561222419142723,
0.025080960243940353,
-0.08443637937307358,
-0.029087066650390625,
0.03656855598092079,
-0.013987129554152489,
0.08560054749250412,
-0.02069821208715439,
-0.07697201520204544,
-0.0224444642663002,
-0.024909760802984238,
0.037835441529750824,
-0.03622615337371826,
0.035575587302446365,
-0.03073059767484665,
-0.010657268576323986,
0.07498607784509659,
0.05269569903612137,
0.055160995572805405,
0.016991708427667618,
0.0011620274744927883,
-0.0041901469230651855,
0.021468617022037506,
-0.026947053149342537,
0.044923167675733566,
0.011179431341588497,
-0.021708300337195396,
0.018386997282505035,
-0.01900332234799862,
0.07176750153303146,
-0.02960067056119442,
0.030199874192476273,
-0.012035436928272247,
-0.04577917233109474,
-0.056290920823812485,
0.007584208622574806,
0.016974588856101036,
-0.023711351677775383,
0.027015533298254013,
0.038759928196668625,
-0.0646112933754921,
0.005110352765768766,
-0.06687115132808685,
0.02311214804649353,
-0.014398012310266495,
-0.02514944225549698,
0.02425919659435749,
0.03595222905278206,
-0.013927209191024303,
-0.06060519069433212,
-0.10395330935716629,
0.05478435009717941,
-0.015964502468705177,
-0.023163508623838425,
0.008701295591890812,
-0.028778905048966408,
-0.028984345495700836,
-0.09532476961612701,
-0.029994431883096695,
-0.022170541808009148,
-0.019551165401935577,
-0.04848415032029152,
0.06601514667272568,
0.030987398698925972,
-0.017385471612215042,
0.02561168372631073,
-0.034205980598926544,
-0.010580227710306644,
0.008003651164472103,
0.0377669632434845,
-0.055366434156894684,
-0.02480703964829445,
0.004571069497615099,
0.06296776235103607,
-0.00810209196060896,
0.002381835365667939,
0.02996019273996353,
0.009373259730637074,
0.007952291518449783,
0.012874322943389416,
-0.04427260532975197,
-0.014389452524483204,
0.02651905082166195,
-0.05204513296484947,
0.004198707174509764,
0.024105114862322807,
0.0024396157823503017,
0.03360677510499954,
0.040369220077991486,
-0.016075782477855682,
0.02698129415512085,
-0.0033769416622817516,
0.028162579983472824,
0.010443267412483692,
0.01773643307387829,
0.02996019273996353,
0.045471012592315674,
-0.0038670047651976347,
0.05023040249943733,
-0.037493038922548294,
-0.006878003943711519,
0.03358965739607811,
0.04906623438000679,
-0.049579840153455734,
-0.0137217678129673,
-0.03838328644633293,
0.00950166117399931,
-0.019294364377856255,
-0.020184610038995743,
-0.025423362851142883,
0.038177844136953354,
-0.07128813862800598,
-0.031021639704704285,
0.03292196989059448,
0.03449702262878418,
-0.030371075496077538,
0.020355811342597008,
-0.0038391847629100084,
-0.03848600760102272,
-0.012900003232061863,
-0.05033312365412712,
0.03389781713485718,
0.034325819462537766,
-0.022598545998334885,
-0.00989542342722416,
0.026775851845741272,
0.012437759898602962,
-0.015108496882021427,
-0.015271138399839401,
0.03578102961182594,
-0.013798808678984642,
0.060742150992155075,
0.07669809460639954,
-0.014552093110978603,
0.03598647192120552,
-0.05841381475329399,
0.009801262989640236,
0.04550525173544884,
-0.01753099262714386,
0.019602525979280472,
0.004029646050184965,
0.03530166670680046,
0.025183681398630142,
0.0010785668855533004,
0.003034539520740509,
-0.020441411063075066,
-0.039684414863586426,
-0.003819924546405673,
-0.009313339367508888,
0.0207324530929327,
-0.04482044652104378,
0.0030816197395324707,
0.023642871528863907,
0.0514630489051342,
-0.04882655292749405,
0.027529137209057808,
0.019414205104112625,
0.012788722291588783,
0.017685074359178543,
0.06307048350572586,
0.0044854688458144665,
0.06170087680220604,
0.054715871810913086,
0.013978569768369198,
0.027152493596076965,
0.010537427850067616,
-0.012292238883674145,
-0.011367753148078918,
-0.007447247859090567,
0.022632785141468048,
0.006997845135629177,
0.051291849464178085,
-0.02722097560763359,
-0.04588189348578453,
0.041601866483688354,
0.07635568827390671,
-0.0198079664260149,
-0.02901858650147915,
0.006732483394443989,
0.02824818156659603,
-0.0013300185091793537,
0.007121965754777193,
-0.02651905082166195,
-0.020527012646198273,
-0.03917081281542778,
-0.01195839699357748,
0.005264434032142162,
-0.016067223623394966,
-0.019671006128191948,
-0.021365897729992867,
-0.04745694622397423,
-0.041156742721796036,
-0.03050803579390049,
-0.00974134262651205,
0.07002124935388565,
-0.025235041975975037,
0.04475196823477745,
0.07135661691427231,
0.045607972890138626,
-0.026775851845741272,
-0.013524887152016163,
-0.010426146909594536,
0.02948082983493805,
0.02605680748820305,
-0.056975726038217545,
0.03882841020822525,
0.10374786704778671,
-0.0069850049912929535,
-0.014997215941548347,
-0.0011877076467499137,
-0.036157671362161636,
-0.03232276812195778,
-0.04187578707933426,
0.024430396035313606,
-0.029052825644612312,
-0.01723138988018036,
-0.03144964203238487,
-0.016974588856101036,
0.06745323538780212,
-0.005602555815130472,
-0.058585017919540405,
0.05642788112163544,
-0.03595222905278206,
0.005855077411979437,
0.009458860382437706,
0.035027746111154556,
-0.03543862700462341,
-0.03350405395030975,
0.02163981832563877,
0.006445721257477999,
0.026245128363370895,
0.04940863698720932,
-0.028179701417684555,
-0.016717787832021713,
0.015442338772118092,
-0.005482715088874102,
-0.006253120023757219,
-0.024961119517683983,
-0.033161651343107224,
-0.006368680857121944,
0.005362874362617731,
-0.02982323244214058,
-0.06420040875673294,
-0.05529795587062836,
-0.023608632385730743,
-0.02675873227417469,
0.010426146909594536,
0.026484809815883636,
0.015707701444625854,
-0.002283394569531083,
-0.005872197914868593,
0.018181556835770607,
-0.05522947385907173,
0.06848043948411942,
0.0286933034658432,
0.008868216536939144,
-0.019602525979280472,
0.03174068406224251,
0.03701367601752281,
0.005679596681147814,
0.05861925706267357,
-0.02083517424762249,
-0.03800664469599724,
-0.01099111046642065,
0.026553289964795113,
0.05269569903612137,
-0.0330931730568409,
-0.056393641978502274,
-0.0580371730029583,
0.01626410521566868,
0.02085229381918907,
-0.007010684814304113,
-0.008281853049993515,
0.03903385251760483,
0.01515129767358303,
-0.034428540617227554,
0.015990182757377625,
0.019191643223166466,
0.003117999993264675,
-0.04656669870018959,
-0.006616922561079264,
0.007327407132834196,
-0.004943431820720434,
-0.027974259108304977,
-0.055366434156894684,
-0.04653245955705643,
-0.005033312365412712,
-0.01765083335340023,
-0.01126503199338913,
0.011821435764431953,
-0.029549309983849525,
-0.00004708030246547423,
-0.0005483785062097013,
-0.0673847496509552,
0.060057345777750015,
-0.05875621736049652,
0.030456675216555595,
-0.05992038547992706,
-0.011008230969309807,
0.04283451661467552,
0.06806955486536026,
-0.03252821043133736,
0.0439644418656826,
-0.04153338819742203,
-0.009125018492341042,
-0.000881150655914098,
0.05433923006057739,
0.008667055517435074,
-0.04088282212615013,
0.007006404921412468,
-0.05772900953888893,
-0.009416060522198677,
0.02321486920118332,
0.033521175384521484,
-0.032956212759017944,
-0.013114004395902157,
-0.06464553624391556,
0.03810936585068703,
0.02867618389427662,
-0.01183855626732111,
0.006980724632740021,
0.06248839944601059,
-0.00606051879003644,
-0.01224087830632925,
-0.008217652328312397,
-0.016075782477855682,
-0.028607703745365143,
0.08649079501628876,
0.03162084147334099,
0.007746849674731493,
-0.0035952231846749783,
0.10237825661897659,
-0.00950166117399931,
0.06659723073244095,
-0.02389967255294323,
-0.04550525173544884,
-0.0371163971722126,
-0.006818083580583334,
0.017787793651223183,
-0.027135374024510384,
0.005833677481859922,
-0.013678967952728271,
0.03732183948159218,
-0.023745592683553696,
-0.0473884642124176
] |
725,024 | tf_keras.src.engine.base_layer | get_output_mask_at | Retrieves the output mask tensor(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first time the layer was called.
Returns:
A mask tensor
(or list of tensors if the layer has multiple outputs).
| @doc_controls.do_not_doc_inheritable
def get_output_mask_at(self, node_index):
"""Retrieves the output mask tensor(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first time the layer was called.
Returns:
A mask tensor
(or list of tensors if the layer has multiple outputs).
"""
output = self.get_output_at(node_index)
if isinstance(output, list):
return [getattr(x, "_keras_mask", None) for x in output]
else:
return getattr(output, "_keras_mask", None)
| (self, node_index) | [
0.0033690892159938812,
-0.07246752828359604,
0.02664448879659176,
-0.01734631508588791,
-0.01907580904662609,
0.03589129075407982,
-0.06643998622894287,
0.022825900465250015,
0.1160302385687828,
0.016096284613013268,
0.02873357944190502,
0.007654297165572643,
-0.004240258131176233,
-0.015916485339403152,
0.06171384081244469,
0.007983928546309471,
0.007675701752305031,
0.02796301245689392,
0.03409330174326897,
0.01839086040854454,
0.011130409315228462,
-0.02673010714352131,
0.02890481799840927,
0.012166393920779228,
-0.0055352384224534035,
0.023938942700624466,
0.004351561889052391,
-0.029110301285982132,
0.00042434685747139156,
-0.03763790801167488,
-0.07123462110757828,
-0.06643998622894287,
0.00044307592906989157,
0.011395826935768127,
-0.016507253050804138,
0.03585704043507576,
-0.006117444485425949,
0.10808483511209488,
-0.0013955821050330997,
-0.017406247556209564,
0.0576726458966732,
-0.06328921765089035,
-0.01762029528617859,
-0.014375352300703526,
-0.01001736894249916,
0.014726388268172741,
-0.014452408999204636,
0.00896426010876894,
-0.0359940305352211,
-0.04688470810651779,
0.015565449371933937,
-0.004995841532945633,
0.010993420146405697,
0.013065388426184654,
-0.025034859776496887,
-0.03715844452381134,
-0.0010456163436174393,
-0.0026520341634750366,
0.023819075897336006,
-0.006087477784603834,
-0.051302626729011536,
0.019846376031637192,
0.011601311154663563,
0.01974363438785076,
0.02003473788499832,
-0.012294821441173553,
-0.060480933636426926,
-0.009049879387021065,
0.005543800070881844,
0.06263852119445801,
-0.042398300021886826,
-0.025223219767212868,
0.02655886858701706,
0.0015614680014550686,
0.022706035524606705,
-0.09226253628730774,
0.06287825107574463,
0.024401282891631126,
-0.015847990289330482,
0.00927248690277338,
-0.031353507190942764,
0.04609701782464981,
-0.01922992244362831,
0.006733897607773542,
0.032757651060819626,
-0.08500207960605621,
-0.0029602607246488333,
0.008981384336948395,
-0.015505516901612282,
-0.0767827033996582,
-0.004336578771471977,
-0.012371878139674664,
-0.021250519901514053,
0.04462438076734543,
-0.040583185851573944,
0.02815137431025505,
-0.010642384178936481,
-0.04267227649688721,
-0.021524500101804733,
-0.024932118132710457,
-0.029829496517777443,
0.07602925598621368,
-0.011096161790192127,
0.03698720782995224,
0.006382861640304327,
0.0032749089878052473,
-0.06784413009881973,
0.012697228230535984,
-0.03698720782995224,
0.01876758225262165,
0.020599819719791412,
0.032809022814035416,
0.013151006773114204,
-0.048905305564403534,
0.04811761528253555,
-0.023664962500333786,
-0.02625064179301262,
0.009383791126310825,
-0.032706279307603836,
-0.01941828429698944,
0.0887008011341095,
0.022808777168393135,
-0.017200764268636703,
0.005064336117357016,
-0.016806919127702713,
0.08301573246717453,
0.024349911138415337,
0.04869982227683067,
0.01794564537703991,
-0.03440152853727341,
-0.07664570957422256,
0.00980332214385271,
-0.04298050329089165,
0.09260500967502594,
0.01412705797702074,
0.03453851491212845,
0.008279312402009964,
-0.015539764426648617,
-0.04678196832537651,
0.021849850192666054,
0.004375107120722532,
-0.011969471350312233,
0.050275202840566635,
0.01792852021753788,
-0.02690134383738041,
-0.023510849103331566,
0.0375351645052433,
-0.001663140021264553,
0.06784413009881973,
-0.06387142837047577,
-0.02585679665207863,
0.024760879576206207,
-0.016267521306872368,
0.029332909733057022,
-0.01784290187060833,
0.06643998622894287,
0.021421756595373154,
-0.04732992500066757,
0.01965801604092121,
-0.033219993114471436,
-0.052056070417165756,
0.01844223216176033,
0.01410137303173542,
-0.0337679497897625,
0.02890481799840927,
0.006091758608818054,
-0.00004364538472145796,
0.0011023386614397168,
0.01957239769399166,
0.012174955569207668,
-0.02744930237531662,
-0.0177401602268219,
-0.0363365076482296,
0.005368282087147236,
0.025634190067648888,
0.03818586468696594,
-0.01371608953922987,
0.008827270939946175,
0.0014416021294891834,
0.0551040880382061,
0.012003718875348568,
0.049692995846271515,
-0.06774138659238815,
0.03595978394150734,
-0.0027954450342804193,
0.029658259823918343,
-0.002155446680262685,
0.022123828530311584,
-0.01421267632395029,
-0.005197044927626848,
0.04250103980302811,
0.06085765361785889,
0.004135375376790762,
0.0033027350436896086,
0.0009503657347522676,
-0.08315271884202957,
-0.0022303627338260412,
0.007684263400733471,
0.033014506101608276,
-0.0265246219933033,
0.04325448349118233,
-0.030189095064997673,
0.0030287555418908596,
0.1313730776309967,
-0.04787788540124893,
-0.030034981667995453,
0.06808385998010635,
0.06267276406288147,
-0.11130409687757492,
0.021113529801368713,
-0.016173340380191803,
0.005753565579652786,
0.06897429376840591,
0.021147778257727623,
0.049384769052267075,
0.022209448739886284,
-0.04435040056705475,
0.05284376069903374,
-0.030514445155858994,
0.019640890881419182,
-0.01981212943792343,
-0.03313437104225159,
0.010710878297686577,
0.048905305564403534,
-0.003769356058910489,
0.016781233251094818,
-0.0062886811792850494,
-0.0010119040962308645,
0.03589129075407982,
-0.04284351319074631,
0.014615084044635296,
0.01318525429815054,
-0.01922992244362831,
-0.008660314604640007,
0.005372562911361456,
0.03354534134268761,
0.041644856333732605,
-0.09260500967502594,
0.07219354808330536,
-0.01434966642409563,
-0.021096406504511833,
-0.030240466818213463,
0.0365077443420887,
-0.01426404807716608,
0.02726094052195549,
0.05195332691073418,
0.031353507190942764,
0.009315296076238155,
-0.008690280839800835,
-0.022706035524606705,
-0.01417842973023653,
-0.00462768180295825,
0.0002779926871880889,
0.030308961868286133,
0.02715819887816906,
-0.0069179777055978775,
-0.0798649713397026,
-0.02637050859630108,
0.021935468539595604,
0.01760317012667656,
-0.02700408548116684,
0.007033562753349543,
-0.0012628734111785889,
-0.031918589025735855,
-0.007872624322772026,
-0.06469336152076721,
-0.003998385742306709,
0.04774089530110359,
-0.05315198749303818,
0.007902590557932854,
-0.0024872184731066227,
0.08253626525402069,
-0.022175200283527374,
-0.06407690793275833,
0.0041268132627010345,
-0.0271239522844553,
0.05500134825706482,
0.05842608958482742,
-0.029863744974136353,
0.02880207449197769,
0.03842559829354286,
0.0008369211573153734,
-0.06417965143918991,
0.04777514189481735,
-0.0017294944263994694,
-0.05705619230866432,
0.04541207104921341,
0.05260402709245682,
0.010608136653900146,
-0.058665819466114044,
0.06972773373126984,
0.030942538753151894,
0.02585679665207863,
-0.049042295664548874,
-0.05530957505106926,
-0.006292962469160557,
-0.04678196832537651,
-0.039418771862983704,
-0.0059162406250834465,
-0.01786002703011036,
0.01797989197075367,
0.003450426971539855,
-0.016344578936696053,
0.020445706322789192,
0.0055009908974170685,
0.03313437104225159,
0.02815137431025505,
0.06236454099416733,
0.0375351645052433,
0.058802809566259384,
0.016635680571198463,
-0.06657697260379791,
0.006793830543756485,
-0.03327136114239693,
0.0002553840458858758,
-0.02614790014922619,
0.06417965143918991,
0.05705619230866432,
0.031781598925590515,
0.07883754372596741,
-0.02727806568145752,
-0.0007529080030508339,
0.010428337380290031,
0.01320237759500742,
0.012055089697241783,
-0.07554979622364044,
0.01880183070898056,
-0.015077424235641956,
-0.012500305660068989,
0.05815210938453674,
-0.0573301687836647,
-0.04674771800637245,
-0.019110057502985,
0.0023352454882115126,
-0.00971770379692316,
-0.030308961868286133,
0.03585704043507576,
-0.00926392525434494,
-0.030702807009220123,
0.015719562768936157,
-0.0006212695152498782,
0.033922065049409866,
-0.01996624283492565,
0.04784363880753517,
0.006031825672835112,
0.06691944599151611,
-0.005244135390967131,
0.04893955588340759,
-0.025120478123426437,
0.041302379220724106,
0.040788669139146805,
0.02832261100411415,
0.007534430827945471,
0.023664962500333786,
0.01909293234348297,
0.05366569757461548,
-0.004820323549211025,
0.024829374626278877,
-0.0016834744019433856,
0.03344259783625603,
0.0015593275893479586,
-0.011507131159305573,
0.03606252744793892,
-0.050138212740421295,
0.011926662176847458,
-0.016070598736405373,
-0.0027312312740832567,
0.02856234274804592,
0.0737004354596138,
-0.041542112827301025,
-0.02667873539030552,
0.00014809331332799047,
-0.07452236860990524,
-0.03527483716607094,
0.004974436946213245,
-0.021353261545300484,
-0.09020768851041794,
-0.0181682538241148,
0.016010666266083717,
-0.0027826023288071156,
-0.01895594410598278,
-0.004529220517724752,
-0.0017690929817035794,
0.02866508439183235,
0.008703123778104782,
-0.014692140743136406,
-0.014015753753483295,
-0.03541182726621628,
-0.03777489811182022,
0.016147656366229057,
0.04277502000331879,
-0.021986840292811394,
-0.007953961379826069,
-0.041336629539728165,
-0.025822550058364868,
-0.021387510001659393,
-0.008600382134318352,
0.06589202582836151,
0.0169695932418108,
-0.06507008522748947,
-0.03640500083565712,
0.02664448879659176,
-0.03914479538798332,
0.013690403662621975,
0.0290075596421957,
0.005924802739173174,
-0.007585802115499973,
0.024521147832274437,
0.004199589136987925,
-0.059419263154268265,
-0.06116588041186333,
0.014854815788567066,
0.049179285764694214,
0.014657893218100071,
0.03842559829354286,
0.023493725806474686,
0.012740038335323334,
0.04572029784321785,
-0.02657599374651909,
-0.00037645400152541697,
0.0006421389989554882,
0.0012318366207182407,
0.06263852119445801,
0.008197974413633347,
0.031644608825445175,
-0.060412436723709106,
-0.009820445440709591,
0.05250128358602524,
-0.04510384425520897,
0.0890432745218277,
-0.04438464716076851,
-0.06476186215877533,
-0.021747108548879623,
-0.032843269407749176,
0.023134127259254456,
-0.040959905833005905,
0.025171849876642227,
-0.03318574279546738,
-0.023767706006765366,
0.03440152853727341,
0.06215905770659447,
0.04760390520095825,
0.030017858371138573,
-0.031353507190942764,
-0.004820323549211025,
0.017372000962495804,
-0.021884096786379814,
0.07883754372596741,
-0.00869884341955185,
-0.050343699753284454,
0.02758629247546196,
-0.01755180023610592,
0.0568164587020874,
0.00900707021355629,
0.06691944599151611,
-0.0029859463684260845,
-0.06613175570964813,
-0.020445706322789192,
-0.006181658245623112,
-0.01919567584991455,
-0.01398150622844696,
-0.007632892113178968,
-0.015351403504610062,
-0.05465887114405632,
0.02720957063138485,
-0.03354534134268761,
0.05582328513264656,
-0.023322489112615585,
0.001177254831418395,
0.021421756595373154,
0.013827393762767315,
-0.051645100116729736,
-0.05465887114405632,
-0.08054991811513901,
0.0373639278113842,
0.013210940174758434,
0.0050600552931427956,
0.022551922127604485,
-0.041747596114873886,
-0.0014608661876991391,
-0.060515180230140686,
-0.03798038139939308,
-0.04572029784321785,
-0.030531568452715874,
-0.05506984144449234,
-0.010222853161394596,
0.021010788157582283,
0.00032615309464745224,
-0.008039580658078194,
-0.049384769052267075,
-0.009674894623458385,
0.01921279914677143,
0.0013121040537953377,
-0.03674747422337532,
0.007923995144665241,
-0.04732992500066757,
0.012911275029182434,
-0.0032278187572956085,
0.02893906459212303,
0.031918589025735855,
-0.015933608636260033,
-0.0011130409548059106,
-0.03435015678405762,
-0.011549940332770348,
0.01880183070898056,
-0.001343140727840364,
-0.06243303418159485,
-0.023664962500333786,
0.03883656859397888,
-0.012431811541318893,
0.006083196960389614,
0.0551040880382061,
-0.01919567584991455,
0.032689157873392105,
-0.01371608953922987,
0.016027789562940598,
-0.0023438073694705963,
0.02003473788499832,
0.041747596114873886,
0.041302379220724106,
-0.011378703638911247,
0.042740773409605026,
-0.022551922127604485,
-0.005963331088423729,
0.05414516106247902,
0.040137968957424164,
-0.011156095191836357,
-0.030856920406222343,
-0.030993908643722534,
0.01830524206161499,
-0.03798038139939308,
-0.03448714688420296,
0.008322121575474739,
0.0687345564365387,
-0.05380268767476082,
-0.01863059215247631,
0.03640500083565712,
-0.006489885039627552,
-0.07774163037538528,
0.02614790014922619,
-0.002444409066811204,
-0.03349396958947182,
0.016558624804019928,
-0.060754913836717606,
0.031028157100081444,
0.06147410720586777,
-0.04349421709775925,
-0.013450671918690205,
0.021575869992375374,
0.003816446056589484,
-0.004914504010230303,
-0.026028035208582878,
0.02715819887816906,
-0.015728125348687172,
0.06798111647367477,
0.059316519647836685,
-0.009315296076238155,
0.023117003962397575,
-0.06582353264093399,
0.010299909859895706,
0.00903275515884161,
-0.05325472727417946,
0.03818586468696594,
-0.0177401602268219,
-0.03416179493069649,
0.008065265603363514,
-0.04428190737962723,
-0.005171359516680241,
-0.02825411595404148,
-0.020325839519500732,
-0.03435015678405762,
-0.0024914992973208427,
0.024623891338706017,
-0.03678172081708908,
-0.023664962500333786,
0.0552753247320652,
0.04613126814365387,
-0.06551530212163925,
0.01434966642409563,
0.023134127259254456,
0.00041284188046120107,
-0.02832261100411415,
0.07630323618650436,
-0.022928643971681595,
0.0568164587020874,
0.02614790014922619,
0.002315981313586235,
0.004101127851754427,
-0.041473619639873505,
0.00965777039527893,
0.01876758225262165,
0.022140953689813614,
0.033219993114471436,
0.01402431633323431,
0.020360087975859642,
0.00896426010876894,
-0.05366569757461548,
0.007727072574198246,
0.07150860130786896,
-0.007675701752305031,
-0.01844223216176033,
-0.005637980531901121,
0.021387510001659393,
0.007046405225992203,
-0.007226204499602318,
-0.025308838114142418,
-0.005809217691421509,
-0.04482986405491829,
-0.005436777137219906,
-0.035822793841362,
-0.04424765706062317,
-0.0022496269084513187,
-0.015753811225295067,
-0.016584310680627823,
0.003161464352160692,
-0.042398300021886826,
-0.014332542195916176,
0.08911176770925522,
-0.041131142526865005,
0.01792852021753788,
0.03345972299575806,
0.050788912922143936,
-0.015514078550040722,
-0.031353507190942764,
-0.001829025917686522,
-0.004409354645758867,
0.011524254456162453,
-0.012483182363212109,
0.002360931131988764,
0.0767827033996582,
0.04006947576999664,
0.006083196960389614,
-0.012115022167563438,
-0.0349666103720665,
-0.03387069329619408,
-0.022500550374388695,
0.002185413148254156,
-0.00856185331940651,
-0.049624502658843994,
0.031593240797519684,
-0.02818562090396881,
0.016892537474632263,
0.0015764512354508042,
-0.0542479045689106,
0.0351378470659256,
-0.04263802990317345,
-0.004687614738941193,
-0.021421756595373154,
-0.01705521158874035,
-0.011344456113874912,
-0.09185156226158142,
0.02640475519001484,
-0.021918345242738724,
0.02678147703409195,
0.059350766241550446,
-0.0020901623647660017,
0.01288558915257454,
0.032295312732458115,
-0.007859781384468079,
-0.02828836441040039,
-0.07068666070699692,
-0.016318893060088158,
-0.031130898743867874,
0.006862325593829155,
-0.031713105738162994,
-0.051165636628866196,
-0.03561731055378914,
-0.030531568452715874,
0.00964064709842205,
0.03938452526926994,
0.011507131159305573,
-0.005903398152440786,
-0.060412436723709106,
-0.005321192089468241,
0.020959416404366493,
-0.029264414682984352,
0.041370876133441925,
0.00349537655711174,
0.0265246219933033,
-0.03387069329619408,
0.05154235661029816,
0.0020163164008408785,
0.0010953821474686265,
0.10061889886856079,
0.010000244714319706,
-0.04387093707919121,
0.01827099546790123,
0.010599575005471706,
0.029863744974136353,
0.0009230748401023448,
-0.02710682712495327,
-0.059864480048418045,
0.033562466502189636,
0.040925659239292145,
-0.003929890692234039,
0.033785074949264526,
0.008403459563851357,
0.023459479212760925,
-0.01797989197075367,
0.013604785315692425,
0.02732943557202816,
-0.006870887242257595,
-0.06849482655525208,
-0.0004278251144569367,
-0.02880207449197769,
-0.012551677413284779,
-0.05695344880223274,
-0.03500085696578026,
-0.042158566415309906,
-0.003247082931920886,
-0.01782577857375145,
0.04301474988460541,
0.050309449434280396,
-0.01938403584063053,
-0.03606252744793892,
-0.03501798212528229,
-0.03828860819339752,
0.020017612725496292,
-0.011772548779845238,
-0.0017380561912432313,
-0.02798013761639595,
0.015008929185569286,
0.01840798556804657,
0.07390592247247696,
-0.031165147200226784,
0.016181902959942818,
-0.07349494844675064,
-0.017149392515420914,
-0.007089214865118265,
0.03544607385993004,
0.05325472727417946,
-0.025651313364505768,
-0.0022175200283527374,
-0.051439616829156876,
-0.006965067703276873,
-0.002077319659292698,
0.04609701782464981,
-0.022055335342884064,
-0.05486435815691948,
-0.033219993114471436,
0.041268132627010345,
-0.0041524991393089294,
-0.004674771800637245,
0.029983609914779663,
0.04722718521952629,
0.00698219146579504,
0.01832236722111702,
-0.001304612378589809,
0.007483060006052256,
-0.0527067705988884,
0.06722767651081085,
0.021199150010943413,
0.0050900219939649105,
-0.0059804548509418964,
0.11219453066587448,
-0.021747108548879623,
0.05387118086218834,
-0.024315664544701576,
-0.014067125506699085,
0.004773233085870743,
-0.006498446688055992,
-0.024606766179203987,
0.0018161832122132182,
0.0064385137520730495,
-0.007080652751028538,
0.030360331758856773,
-0.023014262318611145,
-0.05171359330415726
] |
725,025 | tf_keras.src.engine.base_layer | get_output_shape_at | Retrieves the output shape(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first time the layer was called.
Returns:
A shape tuple
(or list of shape tuples if the layer has multiple outputs).
Raises:
RuntimeError: If called in Eager mode.
| @doc_controls.do_not_doc_inheritable
def get_output_shape_at(self, node_index):
"""Retrieves the output shape(s) of a layer at a given node.
Args:
node_index: Integer, index of the node
from which to retrieve the attribute.
E.g. `node_index=0` will correspond to the
first time the layer was called.
Returns:
A shape tuple
(or list of shape tuples if the layer has multiple outputs).
Raises:
RuntimeError: If called in Eager mode.
"""
return self._get_node_attribute_at_index(
node_index, "output_shapes", "output shape"
)
| (self, node_index) | [
-0.03615874797105789,
-0.07794905453920364,
0.011451986618340015,
-0.015632735565304756,
0.003023959929123521,
0.044228363782167435,
-0.03423577547073364,
0.03200375288724899,
0.09518712759017944,
0.005176572594791651,
0.031729042530059814,
-0.005674485117197037,
-0.016783084720373154,
-0.014903035946190357,
0.061912842094898224,
0.03811606019735336,
0.022371722385287285,
0.006223905831575394,
-0.0017330358969047666,
0.05473603308200836,
0.0005048875464126468,
-0.009752216748893261,
0.019521603360772133,
-0.06950171291828156,
-0.001806005835533142,
-0.009554768912494183,
0.042751796543598175,
-0.015984706580638885,
0.001592461485415697,
-0.06829985976219177,
-0.0848168134689331,
-0.06627386808395386,
-0.006185275036841631,
0.008455927483737469,
0.03732626512646675,
0.06215321272611618,
-0.0037837056443095207,
0.10260430723428726,
0.06352676451206207,
-0.027333678677678108,
0.046769432723522186,
-0.054358307272195816,
-0.02958286926150322,
0.02673274837434292,
-0.017735986039042473,
0.048555050045251846,
-0.03959262743592262,
0.00609513558447361,
-0.08083351701498032,
-0.07321030646562576,
0.011194446124136448,
-0.00928864348679781,
0.00395969208329916,
0.043953653424978256,
0.0024380541872233152,
-0.07238617539405823,
-0.0060865506529808044,
-0.02856987528502941,
-0.0036184501368552446,
-0.01114293746650219,
-0.04264877736568451,
0.004528427962213755,
0.010430407710373402,
0.015358024276793003,
0.04151559993624687,
-0.049413520842790604,
-0.015778673812747,
-0.013546653091907501,
0.010224374942481518,
0.0660334974527359,
-0.002714910777285695,
-0.012533659115433693,
0.034716516733169556,
-0.019727636128664017,
0.020757799968123436,
-0.06108871102333069,
0.10061266273260117,
0.04567059129476547,
0.03736060485243797,
-0.015503964386880398,
-0.09319548308849335,
0.06290866434574127,
-0.057483136653900146,
-0.0030175212305039167,
0.005477037280797958,
-0.01152066420763731,
0.017263827845454216,
0.019075198099017143,
-0.08529755473136902,
-0.049585215747356415,
-0.010516255162656307,
0.03181489184498787,
-0.007563118822872639,
0.07101262360811234,
-0.05768917128443718,
-0.02929098904132843,
-0.03461350128054619,
-0.05367153137922287,
0.008816484361886978,
-0.024929963052272797,
-0.06225622817873955,
0.05439264699816704,
-0.04113787040114403,
0.05844462290406227,
-0.004253717605024576,
-0.008391542360186577,
-0.013160341419279575,
0.027316508814692497,
-0.017598630860447884,
0.020414412021636963,
0.03018379770219326,
0.007404301781207323,
0.04086316004395485,
-0.04553323611617088,
0.052984755486249924,
-0.02168494649231434,
-0.043953653424978256,
0.015503964386880398,
-0.005167988128960133,
-0.025788431987166405,
0.033239949494600296,
0.017890511080622673,
-0.012447811663150787,
0.02051742747426033,
-0.010756626725196838,
0.0746525302529335,
0.024277525022625923,
0.030870573595166206,
-0.006412769202142954,
-0.00003950302198063582,
-0.02583993971347809,
0.03032115288078785,
-0.02930815890431404,
0.03488821163773537,
-0.021375898271799088,
0.06091701611876488,
0.001770593924447894,
-0.03643345832824707,
-0.07183675467967987,
0.0015828036703169346,
0.06465994566679001,
-0.020551767200231552,
0.00743864057585597,
-0.005193741992115974,
-0.043781958520412445,
0.021633438766002655,
-0.0033136934507638216,
-0.021341558545827866,
0.024741100147366524,
-0.03126547113060951,
-0.026578225195407867,
0.0045198434963822365,
0.0054126521572470665,
-0.03299957886338234,
-0.0069793593138456345,
0.003987592179328203,
-0.03032115288078785,
-0.026681240648031235,
0.006369845941662788,
-0.057620491832494736,
-0.055972229689359665,
0.013469390571117401,
0.0357123427093029,
-0.030544355511665344,
0.004957662895321846,
0.04700980708003044,
0.01933274045586586,
-0.014885866083204746,
0.00620673643425107,
-0.006296875886619091,
-0.010730871930718422,
-0.009228549897670746,
-0.0031162453815340996,
0.0027320801746100187,
-0.0024831239134073257,
0.04100051522254944,
0.026252005249261856,
0.022200029343366623,
0.03519726172089577,
0.034252945333719254,
0.0386311411857605,
0.017632968723773956,
-0.07327897846698761,
0.05899404361844063,
-0.028054792433977127,
0.02867289073765278,
-0.0041249473579227924,
-0.004816015716642141,
0.02438054233789444,
0.012636675499379635,
0.01888633519411087,
0.06998245418071747,
-0.0003318522358313203,
-0.020156871527433395,
0.013641084544360638,
-0.06702931970357895,
0.0014690564712509513,
0.03945527225732803,
0.021599099040031433,
-0.006082258652895689,
0.0060865506529808044,
-0.02379678189754486,
-0.026492377743124962,
0.10061266273260117,
-0.025633906945586205,
-0.02439771220088005,
0.025942957028746605,
0.012885631062090397,
-0.1251305490732193,
0.03808172047138214,
-0.014739925973117352,
0.007747689727693796,
0.06702931970357895,
0.03164319694042206,
0.039352256804704666,
0.009177042171359062,
-0.028054792433977127,
0.05308777093887329,
-0.02723066136240959,
0.011967068538069725,
-0.011992823332548141,
-0.0398673377931118,
0.05518243834376335,
0.03373786434531212,
-0.008249894715845585,
-0.04419402405619621,
-0.01255082804709673,
-0.004412534646689892,
0.019538773223757744,
-0.06253094226121902,
-0.0237796138972044,
-0.01479143463075161,
0.005760332103818655,
0.0033694938756525517,
0.04045109450817108,
0.03839077055454254,
0.018388422206044197,
-0.08701449632644653,
0.04608265683054924,
-0.01657705195248127,
-0.05243533477187157,
-0.05243533477187157,
-0.013477975502610207,
-0.032639022916555405,
-0.054942067712545395,
0.09072308987379074,
0.04731885343790054,
-0.008284233510494232,
-0.003558357246220112,
-0.009331566281616688,
-0.004485504701733589,
0.0220111645758152,
0.005786086432635784,
0.002126858802512288,
0.041687291115522385,
-0.029943427070975304,
-0.09044837951660156,
-0.05470169335603714,
-0.000024077395210042596,
0.004045539069920778,
-0.007666135206818581,
0.046769432723522186,
0.0118898069486022,
0.00034768026671372354,
0.03437313064932823,
-0.04251142218708992,
0.021633438766002655,
0.0012404888402670622,
-0.05130215361714363,
0.04264877736568451,
0.024277525022625923,
0.09594258666038513,
-0.04608265683054924,
-0.06352676451206207,
0.004858938977122307,
-0.03162602707743645,
-0.0026827179826796055,
0.052263639867305756,
0.0011095722438767552,
0.03629610314965248,
0.05099310353398323,
-0.01797635667026043,
-0.08014673739671707,
0.06847155094146729,
-0.04714716225862503,
-0.019710466265678406,
0.0404854342341423,
0.03523160144686699,
0.0212385430932045,
-0.0440223291516304,
0.08152028918266296,
0.031145283952355385,
-0.006859173532575369,
-0.01782183349132538,
-0.04127522557973862,
0.009039686992764473,
-0.037223249673843384,
-0.014628325589001179,
0.0004383561317808926,
-0.022921143099665642,
0.017495613545179367,
0.012962893582880497,
-0.013400712981820107,
0.015795843675732613,
-0.022715110331773758,
0.03483670577406883,
0.043198198080062866,
0.011915560811758041,
0.0086190365254879,
0.02482694573700428,
-0.028346672654151917,
-0.027608389034867287,
-0.0212385430932045,
0.007339916657656431,
-0.03045850805938244,
-0.02420884743332863,
0.031179621815681458,
0.006103720050305128,
0.0430951826274395,
0.0746525302529335,
-0.06723535060882568,
-0.021513253450393677,
0.022491907700896263,
-0.03550631180405617,
0.00928864348679781,
-0.012198856100440025,
-0.03154018148779869,
-0.01645686663687229,
0.027110476046800613,
0.041996341198682785,
-0.06383581459522247,
-0.06208453327417374,
-0.02692161314189434,
0.03729192912578583,
-0.014602570794522762,
-0.047662243247032166,
0.03880283609032631,
-0.019813483580946922,
-0.020586105063557625,
0.002296406775712967,
0.006258244626224041,
0.03866548091173172,
-0.03136848658323288,
0.055663179606199265,
-0.017306750640273094,
0.06290866434574127,
0.011031337082386017,
-0.018628794699907303,
-0.0009158799657598138,
0.03191790729761124,
-0.003938230220228434,
0.05312211066484451,
-0.01933274045586586,
0.028621383011341095,
0.018491439521312714,
0.06273697316646576,
-0.03691419959068298,
0.012834123335778713,
-0.00967495422810316,
0.03742928430438042,
-0.013186096213757992,
-0.00891091674566269,
0.03018379770219326,
-0.01205291599035263,
0.02156476117670536,
-0.027762912213802338,
0.027161983773112297,
0.0035132875200361013,
0.028707230463624,
-0.03550631180405617,
-0.05133649334311485,
0.0034167098347097635,
-0.043335553258657455,
-0.019727636128664017,
-0.018354084342718124,
0.044400058686733246,
-0.022663602605462074,
-0.03554064780473709,
0.01583876833319664,
-0.049447860568761826,
-0.039249237626791,
-0.005708823911845684,
0.023693766444921494,
0.0580325573682785,
0.005966364871710539,
-0.01976197399199009,
-0.04985992610454559,
-0.06627386808395386,
-0.057414460927248,
0.01471417210996151,
0.016534127295017242,
0.01632809452712536,
-0.03123113140463829,
-0.00414855545386672,
0.0015323685947805643,
-0.041412580758333206,
-0.001929410849697888,
0.02688727341592312,
-0.007129591424018145,
-0.03581535816192627,
-0.039352256804704666,
-0.012422057799994946,
-0.052229300141334534,
0.02098100073635578,
-0.013177511282265186,
-0.05470169335603714,
-0.02496430091559887,
0.057586152106523514,
-0.009941080585122108,
-0.061466436833143234,
-0.01673157699406147,
0.014053150080144405,
0.010078435763716698,
0.007185392081737518,
0.03959262743592262,
0.030269645154476166,
0.03466501086950302,
0.11338669061660767,
0.0035240184515714645,
0.017667308449745178,
0.0029230895452201366,
0.042305391281843185,
0.07959731668233871,
0.023848291486501694,
0.04488079994916916,
-0.056418634951114655,
-0.019727636128664017,
0.02975456230342388,
0.0029982058331370354,
0.07485856860876083,
-0.00676044961437583,
-0.041549935936927795,
-0.03464784100651741,
-0.0199336688965559,
0.012825538404285908,
-0.05336248129606247,
0.03554064780473709,
-0.025977294892072678,
-0.0282436553388834,
0.04985992610454559,
0.09848365187644958,
0.06805948168039322,
-0.010335976257920265,
0.015795843675732613,
0.03420143574476242,
0.007417179178446531,
-0.012430642731487751,
0.031128114089369774,
0.014405122958123684,
-0.030681710690259933,
0.03564366698265076,
-0.024019984528422356,
0.08076483756303787,
-0.024054324254393578,
0.033377304673194885,
-0.0029316742438822985,
-0.02111835591495037,
-0.07369104772806168,
-0.0010832815896719694,
-0.022354552522301674,
0.0008413004106841981,
0.017598630860447884,
0.023865459486842155,
-0.05913139879703522,
-0.01649978943169117,
-0.05147384852170944,
0.0535685159265995,
-0.00464861374348402,
0.009503260254859924,
0.02067195251584053,
0.05816991254687309,
-0.023762444034218788,
-0.07025716453790665,
-0.08976159989833832,
0.0567963607609272,
-0.011125768534839153,
-0.013211850076913834,
0.025651076808571815,
-0.027179153636097908,
-0.028209317475557327,
-0.06558708846569061,
-0.010584932751953602,
-0.056418634951114655,
-0.014422292821109295,
-0.030252475291490555,
0.07815509289503098,
-0.00613376684486866,
-0.011271708644926548,
-0.0027513955719769,
-0.025496551766991615,
0.005914856679737568,
-0.005665900651365519,
0.00679908087477088,
-0.056865040212869644,
-0.0004429167602211237,
0.0010054827434942126,
0.08612168580293655,
-0.02674991823732853,
0.007301285397261381,
0.008971009403467178,
-0.0020860815420746803,
0.00038657968980260193,
-0.00620673643425107,
-0.04580794647336006,
-0.005511376075446606,
0.0032042383681982756,
-0.061466436833143234,
-0.010584932751953602,
-0.006618801970034838,
0.013752685859799385,
-0.012216025032103062,
0.06005854532122612,
0.018388422206044197,
0.03526593744754791,
-0.0017298166640102863,
0.0282436553388834,
0.03512858226895332,
0.03148867189884186,
0.02063761278986931,
0.03852812573313713,
-0.0005279589095152915,
0.020912323147058487,
-0.039626967161893845,
0.016525544226169586,
0.01560698077082634,
0.03818473592400551,
-0.02810630016028881,
-0.021736454218626022,
0.004421119578182697,
-0.011331801302731037,
0.00006368102185660973,
-0.01152066420763731,
-0.014997467398643494,
0.06905531138181686,
-0.043335553258657455,
-0.043335553258657455,
0.03691419959068298,
0.03208960220217705,
-0.035025566816329956,
0.008061030879616737,
0.007065206300467253,
-0.03729192912578583,
-0.04474344477057457,
-0.04872674494981766,
0.02975456230342388,
0.07114997506141663,
0.009219965897500515,
-0.049447860568761826,
0.009657785296440125,
-0.004940493497997522,
0.018663132563233376,
-0.015778673812747,
0.02930815890431404,
0.00891950074583292,
0.08255045115947723,
0.07259220629930496,
0.013100248761475086,
0.007129591424018145,
-0.0635611042380333,
-0.0016514812596142292,
0.006932143587619066,
-0.016937609761953354,
0.026664070785045624,
-0.015426701866090298,
0.031591687351465225,
0.01989932917058468,
-0.00967495422810316,
0.01919538527727127,
-0.022560585290193558,
-0.02944551408290863,
0.007580288220196962,
0.007236900273710489,
0.02407149225473404,
-0.060161564499139786,
0.014508139342069626,
0.025942957028746605,
0.053019095212221146,
-0.04127522557973862,
0.0029552823398262262,
0.030578693374991417,
0.017924848943948746,
0.005889102816581726,
0.04680377244949341,
0.003536895615980029,
0.05250401049852371,
0.041996341198682785,
-0.024500727653503418,
-0.008661960251629353,
-0.0071210069581866264,
-0.015658488497138023,
-0.01076521072536707,
0.0009512918186374009,
0.031763382256031036,
0.005425529088824987,
-0.00336090917699039,
-0.002596870996057987,
-0.022354552522301674,
-0.0040219309739768505,
0.0555601641535759,
0.011537834070622921,
-0.035334616899490356,
0.012095839716494083,
0.052263639867305756,
0.02187380939722061,
0.021015340462327003,
-0.026818595826625824,
-0.01004409696906805,
-0.021513253450393677,
-0.018645964562892914,
-0.011649435386061668,
-0.010387483984231949,
-0.02674991823732853,
-0.0055800536647439,
-0.05040934681892395,
-0.045121170580387115,
-0.027110476046800613,
-0.019590280950069427,
0.05308777093887329,
-0.015272177755832672,
0.027110476046800613,
0.06476295739412308,
0.028054792433977127,
-0.0018081519519910216,
-0.03049284592270851,
-0.0006969701498746872,
0.032364312559366226,
0.009992588311433792,
-0.0449494794011116,
0.019727636128664017,
0.053293805569410324,
0.007176807615906,
-0.03016662783920765,
-0.0005993192316964269,
-0.09120383113622665,
-0.021787963807582855,
-0.013177511282265186,
0.017358258366584778,
-0.0038008750416338444,
-0.03238147869706154,
-0.013203265145421028,
-0.032175447791814804,
0.04419402405619621,
0.01916104555130005,
-0.06933002173900604,
0.04948220029473305,
-0.037120234221220016,
0.01219027116894722,
0.0013778440188616514,
0.02482694573700428,
-0.00023782295465935022,
-0.03945527225732803,
0.005571468733251095,
-0.010602101683616638,
0.009683539159595966,
0.0874265655875206,
0.01309166382998228,
-0.014284937642514706,
-0.013065909966826439,
-0.013409297913312912,
-0.009769386611878872,
-0.05068405717611313,
-0.03749796003103256,
-0.019590280950069427,
0.014697003178298473,
-0.05511375889182091,
-0.056865040212869644,
-0.04917315021157265,
-0.018989352509379387,
-0.012379134073853493,
0.0014443753752857447,
-0.006674602627754211,
0.017615800723433495,
-0.016250833868980408,
-0.0008938816608861089,
-0.027402356266975403,
-0.0389401912689209,
0.06105437129735947,
0.026681240648031235,
0.022251537069678307,
-0.02990908734500408,
0.025462213903665543,
0.0466320775449276,
-0.0029982058331370354,
0.044983815401792526,
0.023436225950717926,
-0.03461350128054619,
0.009460337460041046,
0.009932495653629303,
0.05796388164162636,
0.006605925038456917,
-0.02467242255806923,
-0.040073368698358536,
0.03942093253135681,
0.029806071892380714,
-0.037978705018758774,
-0.01433644536882639,
0.04323253780603409,
0.0010730872163549066,
-0.03581535816192627,
0.02674991823732853,
0.03736060485243797,
0.0007500879582948983,
-0.05161120370030403,
0.005262419581413269,
0.018525777384638786,
0.009065440855920315,
-0.05796388164162636,
-0.045395880937576294,
-0.010936904698610306,
0.009546183981001377,
-0.03402974084019661,
-0.019744805991649628,
0.033205609768629074,
-0.01560698077082634,
-0.022371722385287285,
-0.022629262879490852,
-0.06023024022579193,
0.05713975057005882,
-0.05456433817744255,
0.011409063823521137,
-0.05459867790341377,
-0.0025024395436048508,
0.045739270746707916,
0.055800534784793854,
-0.03911188244819641,
0.027591219171881676,
-0.01686893217265606,
-0.012198856100440025,
0.009735047817230225,
0.03272486850619316,
-0.009194211103022099,
-0.050340667366981506,
-0.023401886224746704,
-0.03466501086950302,
0.007666135206818581,
0.04776525869965553,
0.04999728128314018,
-0.023968476802110672,
-0.022938312962651253,
-0.04979124665260315,
0.042580101639032364,
0.03674250841140747,
-0.013580991886556149,
0.006794788409024477,
0.04982558637857437,
-0.0072111464105546474,
0.008159755729138851,
0.0004877181490883231,
-0.01931557059288025,
-0.04865806922316551,
0.05885668843984604,
0.02571975439786911,
0.039352256804704666,
-0.002485270146280527,
0.05456433817744255,
-0.021478913724422455,
0.05621260032057762,
-0.02527335099875927,
-0.03406408056616783,
-0.0306302011013031,
-0.009494676254689693,
0.009013933129608631,
-0.015400948002934456,
0.024329034611582756,
0.0200881939381361,
0.03660515323281288,
-0.03825341537594795,
-0.05950912460684776
] |
725,026 | tf_keras.src.engine.training | get_weight_paths | Retrieve all the variables and their paths for the model.
The variable path (string) is a stable key to identify a `tf.Variable`
instance owned by the model. It can be used to specify variable-specific
configurations (e.g. DTensor, quantization) from a global view.
This method returns a dict with weight object paths as keys
and the corresponding `tf.Variable` instances as values.
Note that if the model is a subclassed model and the weights haven't
been initialized, an empty dict will be returned.
Returns:
A dict where keys are variable paths and values are `tf.Variable`
instances.
Example:
```python
class SubclassModel(tf.keras.Model):
def __init__(self, name=None):
super().__init__(name=name)
self.d1 = tf.keras.layers.Dense(10)
self.d2 = tf.keras.layers.Dense(20)
def call(self, inputs):
x = self.d1(inputs)
return self.d2(x)
model = SubclassModel()
model(tf.zeros((10, 10)))
weight_paths = model.get_weight_paths()
# weight_paths:
# {
# 'd1.kernel': model.d1.kernel,
# 'd1.bias': model.d1.bias,
# 'd2.kernel': model.d2.kernel,
# 'd2.bias': model.d2.bias,
# }
# Functional model
inputs = tf.keras.Input((10,), batch_size=10)
x = tf.keras.layers.Dense(20, name='d1')(inputs)
output = tf.keras.layers.Dense(30, name='d2')(x)
model = tf.keras.Model(inputs, output)
d1 = model.layers[1]
d2 = model.layers[2]
weight_paths = model.get_weight_paths()
# weight_paths:
# {
# 'd1.kernel': d1.kernel,
# 'd1.bias': d1.bias,
# 'd2.kernel': d2.kernel,
# 'd2.bias': d2.bias,
# }
```
| def get_weight_paths(self):
"""Retrieve all the variables and their paths for the model.
The variable path (string) is a stable key to identify a `tf.Variable`
instance owned by the model. It can be used to specify variable-specific
configurations (e.g. DTensor, quantization) from a global view.
This method returns a dict with weight object paths as keys
and the corresponding `tf.Variable` instances as values.
Note that if the model is a subclassed model and the weights haven't
been initialized, an empty dict will be returned.
Returns:
A dict where keys are variable paths and values are `tf.Variable`
instances.
Example:
```python
class SubclassModel(tf.keras.Model):
def __init__(self, name=None):
super().__init__(name=name)
self.d1 = tf.keras.layers.Dense(10)
self.d2 = tf.keras.layers.Dense(20)
def call(self, inputs):
x = self.d1(inputs)
return self.d2(x)
model = SubclassModel()
model(tf.zeros((10, 10)))
weight_paths = model.get_weight_paths()
# weight_paths:
# {
# 'd1.kernel': model.d1.kernel,
# 'd1.bias': model.d1.bias,
# 'd2.kernel': model.d2.kernel,
# 'd2.bias': model.d2.bias,
# }
# Functional model
inputs = tf.keras.Input((10,), batch_size=10)
x = tf.keras.layers.Dense(20, name='d1')(inputs)
output = tf.keras.layers.Dense(30, name='d2')(x)
model = tf.keras.Model(inputs, output)
d1 = model.layers[1]
d2 = model.layers[2]
weight_paths = model.get_weight_paths()
# weight_paths:
# {
# 'd1.kernel': d1.kernel,
# 'd1.bias': d1.bias,
# 'd2.kernel': d2.kernel,
# 'd2.bias': d2.bias,
# }
```
"""
result = {}
(
descendants,
object_paths_dict,
) = tf.__internal__.tracking.ObjectGraphView(
self
).breadth_first_traversal()
for descendant in descendants:
if isinstance(descendant, tf.Variable):
trackable_references = object_paths_dict[descendant]
object_path = ".".join([t.name for t in trackable_references])
result[object_path] = descendant
return result
| (self) | [
0.024346988648176193,
-0.05414898693561554,
-0.04017052426934242,
0.013627494685351849,
-0.005444981157779694,
0.021218379959464073,
-0.03796445578336716,
0.0038881979417055845,
0.028719017282128334,
-0.012644791044294834,
-0.014058681204915047,
-0.009290562011301517,
-0.01889197900891304,
0.0038907048292458057,
-0.011792445555329323,
0.006532975006848574,
0.05398854613304138,
0.009766872972249985,
-0.013166225515305996,
-0.008307858370244503,
0.014098791405558586,
-0.02528958208858967,
0.04139389097690582,
0.0057257539592683315,
-0.026212120428681374,
-0.009576348587870598,
-0.01198296993970871,
0.005991484969854355,
0.06036609038710594,
-0.04029085487127304,
-0.0644974559545517,
-0.04231642931699753,
-0.00851843785494566,
0.02901984564960003,
-0.0025695699732750654,
-0.03636004030704498,
0.058160021901130676,
0.08728014677762985,
-0.06501889228820801,
-0.029962439090013504,
0.048774197697639465,
-0.021057939156889915,
0.0031737321987748146,
-0.017999524250626564,
0.009064941667020321,
-0.003321639262139797,
-0.02069694548845291,
-0.0014677884755656123,
0.03964909166097641,
-0.013707715086638927,
0.03224872797727585,
-0.050739604979753494,
-0.026893995702266693,
0.025089029222726822,
-0.015352239832282066,
-0.07833553105592728,
-0.010488859377801418,
-0.03132618963718414,
-0.01571323350071907,
0.0182401854544878,
-0.005951374769210815,
-0.03716224804520607,
0.004843325819820166,
0.015302102081477642,
-0.0490148589015007,
-0.05114071071147919,
-0.0565556064248085,
-0.004444729071110487,
-0.033712755888700485,
0.005324650090187788,
-0.056996822357177734,
-0.07524703443050385,
0.04925552010536194,
-0.012213604524731636,
-0.022562077268958092,
-0.022281304001808167,
0.041835106909275055,
-0.05988476797938347,
0.038064733147621155,
-0.028217637911438942,
-0.038786716759204865,
-0.061449069529771805,
-0.06249194219708443,
-0.08002016693353653,
0.015041384845972061,
-0.0035221909638494253,
0.02709454856812954,
0.00009776899969438091,
0.021138159558176994,
-0.04600658267736435,
-0.058882009238004684,
0.0733618512749672,
-0.0033492150250822306,
0.0782553106546402,
0.05811991170048714,
-0.031205860897898674,
-0.012735038995742798,
-0.027555817738175392,
-0.00821761041879654,
-0.00456004636362195,
-0.014018571004271507,
-0.011511673219501972,
-0.005495119374245405,
0.053226448595523834,
-0.051902804523706436,
-0.05358744040131569,
-0.04612691327929497,
-0.022481856867671013,
-0.01643522083759308,
-0.03523695096373558,
-0.05864134430885315,
0.03652048110961914,
0.02905995585024357,
0.06465789675712585,
0.006192036904394627,
-0.0003976566076744348,
0.010599162429571152,
0.021238435059785843,
0.04953629523515701,
0.0009413399966433644,
-0.006563057657331228,
0.09401868283748627,
-0.04163455218076706,
0.0010999012738466263,
0.03192784637212753,
0.04135378077626228,
0.03409380465745926,
0.027956921607255936,
0.015251964330673218,
-0.019724270328879356,
0.0012170987902209163,
-0.020536504685878754,
-0.03210834413766861,
0.057036932557821274,
0.05162203311920166,
0.0404512993991375,
-0.013126115314662457,
0.018711483106017113,
0.03974936529994011,
0.05747814476490021,
0.05651549622416496,
-0.0182401854544878,
0.008994747884571552,
-0.010122852399945259,
0.0032990770414471626,
0.017207344993948936,
0.0465681292116642,
-0.004750570748001337,
-0.04464283213019371,
-0.04965662583708763,
-0.043198857456445694,
0.05226380005478859,
0.0013223884161561728,
0.028719017282128334,
-0.04295819625258446,
-0.020877443253993988,
-0.048734087496995926,
-0.04139389097690582,
0.009064941667020321,
-0.038646332919597626,
-0.03894716128706932,
-0.0025131646543741226,
0.025550298392772675,
-0.06261227279901505,
-0.0069641610607504845,
0.03774384781718254,
-0.012775149196386337,
-0.013356749899685383,
0.019132642075419426,
0.004838312044739723,
-0.033572372049093246,
-0.022441746667027473,
-0.01478066761046648,
0.03256961330771446,
0.02005518041551113,
0.02198047749698162,
0.02198047749698162,
-0.028698962181806564,
-0.003607425605878234,
0.04664834961295128,
0.08848345279693604,
-0.026813775300979614,
-0.07167721539735794,
0.01539235096424818,
-0.023785443976521492,
0.017939358949661255,
0.0013537246268242598,
-0.0030082769226282835,
0.01821010373532772,
0.04151422157883644,
-0.008057168684899807,
0.05406876653432846,
0.027295099571347237,
0.03170723840594292,
0.001816247240640223,
-0.005470050498843193,
0.035577889531850815,
-0.03130613639950752,
-0.04853353649377823,
0.06878926604986191,
0.01624469645321369,
-0.049375854432582855,
0.015312129631638527,
0.03952876105904579,
-0.03599904850125313,
0.022401636466383934,
0.02524947188794613,
0.0007307606283575296,
-0.053066007792949677,
-0.005174236372113228,
-0.0789773017168045,
0.010579107329249382,
0.07324151694774628,
0.016826296225190163,
0.05751825496554375,
-0.021258490160107613,
-0.025068974122405052,
0.052504461258649826,
-0.019152697175741196,
-0.02326400950551033,
0.041794996708631516,
-0.0007539493963122368,
-0.000923791725654155,
0.03700180724263191,
-0.02135876752436161,
-0.07789432257413864,
-0.022461801767349243,
-0.00875909999012947,
-0.01129106618463993,
-0.0833493247628212,
0.0439208447933197,
-0.04085240140557289,
0.03465535119175911,
-0.02773631364107132,
0.027375319972634315,
0.03852600231766701,
-0.04400106519460678,
-0.028618741780519485,
0.0689898207783699,
-0.010980211198329926,
-0.010258224792778492,
-0.04712967202067375,
-0.012103301472961903,
-0.013346722349524498,
-0.008999762125313282,
0.009305603802204132,
0.04720989242196083,
0.007174740545451641,
-0.0036600702442228794,
-0.06385569274425507,
0.021659594029188156,
0.02579096145927906,
-0.0012803978752344847,
0.06858871877193451,
-0.009365769103169441,
-0.0026197079569101334,
0.012353991158306599,
-0.007726258132606745,
-0.02196042239665985,
-0.013246445916593075,
-0.029400894418358803,
0.0036801255773752928,
-0.022521967068314552,
0.03710208460688591,
-0.04199554771184921,
-0.021138159558176994,
0.023404395207762718,
0.02380549907684326,
-0.06465789675712585,
-0.014209095388650894,
0.11607938259840012,
0.07027334719896317,
-0.022421691566705704,
0.005369774531573057,
-0.03196795657277107,
-0.0441213957965374,
0.015171743929386139,
0.04404117539525032,
-0.021860146895051003,
-0.00875909999012947,
-0.024266768246889114,
-0.052584681659936905,
-0.01964404806494713,
0.005550270900130272,
-0.0220606978982687,
0.01261470839381218,
0.0007934330496937037,
-0.05025828257203102,
0.03890704736113548,
-0.035557832568883896,
0.052624791860580444,
-0.039328206330537796,
0.06156940385699272,
0.03345204144716263,
0.013707715086638927,
-0.022281304001808167,
-0.04091256856918335,
-0.020917553454637527,
0.037523239850997925,
0.03984964266419411,
0.020576614886522293,
0.06578098982572556,
0.03333171084523201,
0.058841899037361145,
0.009761858731508255,
-0.036219656467437744,
0.10420671850442886,
-0.022842850536108017,
-0.01583356410264969,
-0.021599428728222847,
-0.01958388276398182,
0.00944598950445652,
0.0678667277097702,
0.017407895997166634,
-0.005144153721630573,
-0.05988476797938347,
-0.055031415075063705,
-0.023484615609049797,
0.004467291291803122,
0.08495374023914337,
-0.01882178708910942,
0.08138392120599747,
-0.002179747447371483,
0.027375319972634315,
-0.031286079436540604,
0.0017573351506143808,
0.08138392120599747,
-0.01162197720259428,
0.026773665100336075,
-0.003080977126955986,
-0.03726252540946007,
-0.033672645688056946,
0.035557832568883896,
0.027876699343323708,
-0.023063456639647484,
0.023584891110658646,
0.061368849128484726,
0.0492154099047184,
0.00408373586833477,
-0.0013198815286159515,
0.044482387602329254,
0.006046636961400509,
-0.034875959157943726,
0.032469335943460464,
-0.005991484969854355,
-0.024667872115969658,
0.0226222425699234,
0.029140176251530647,
0.03726252540946007,
0.003394339233636856,
-0.02137882262468338,
0.021118104457855225,
-0.026773665100336075,
0.0020782179199159145,
0.0031361286528408527,
0.04087245836853981,
-0.01624469645321369,
0.028157472610473633,
0.019323166459798813,
0.009305603802204132,
0.0006599407643079758,
0.012444239109754562,
-0.04480327293276787,
-0.016665855422616005,
0.09963413327932358,
-0.024326933547854424,
0.03349215164780617,
0.0543094277381897,
0.015061439946293831,
-0.059483662247657776,
-0.034234192222356796,
-0.031105583533644676,
0.02324395440518856,
0.019904766231775284,
-0.01629483327269554,
0.0341339148581028,
-0.019102558493614197,
-0.016515441238880157,
0.034234192222356796,
0.07147666066884995,
0.034896012395620346,
0.006989230401813984,
0.038686443120241165,
0.019112586975097656,
0.02208075299859047,
-0.026533003896474838,
0.033091045916080475,
-0.014319398440420628,
0.011601921170949936,
-0.0001561327080707997,
0.011220873333513737,
-0.028438245877623558,
-0.00040141696808859706,
0.0552319660782814,
0.012885453179478645,
-0.046929121017456055,
0.027455542236566544,
0.005264484789222479,
-0.0505390539765358,
-0.017969440668821335,
0.010438721626996994,
-0.06666342169046402,
-0.030062714591622353,
0.03904743492603302,
0.015422433614730835,
-0.052023135125637054,
-0.009701693430542946,
0.07227887213230133,
-0.012644791044294834,
-0.03944854065775871,
-0.05426931753754616,
0.007290057837963104,
-0.019694186747074127,
0.040030140429735184,
0.01512160524725914,
0.025690685957670212,
0.007049395702779293,
0.001828781678341329,
0.07645034790039062,
0.021639538928866386,
0.024407153949141502,
0.017407895997166634,
0.041313670575618744,
-0.000514227373059839,
0.02272251807153225,
0.014018571004271507,
-0.041754886507987976,
0.05459019914269447,
0.05226380005478859,
0.07496625930070877,
-0.013998515903949738,
-0.03836555778980255,
-0.05527207627892494,
-0.026954161003232002,
-0.025409912690520287,
-0.027535762637853622,
0.06882937997579575,
-0.00818752683699131,
0.001715971389785409,
0.05418909713625908,
-0.031847625970840454,
0.004016049671918154,
0.03473557159304619,
0.026954161003232002,
-0.0427977554500103,
-0.024647817015647888,
-0.03355231508612633,
0.03722241520881653,
-0.018069718033075333,
-0.02006520703434944,
0.05098026618361473,
-0.08206579834222794,
0.05803969129920006,
0.0024041146971285343,
-0.02077716588973999,
0.02334422990679741,
-0.020456284284591675,
-0.014419673942029476,
-0.016545522958040237,
-0.02270246297121048,
0.006969174835830927,
0.039328206330537796,
0.03451496362686157,
-0.005640519317239523,
-0.06473811715841293,
-0.022501911967992783,
0.05836057290434837,
-0.0427977554500103,
-0.014209095388650894,
-0.010579107329249382,
0.05872156843543053,
0.010258224792778492,
-0.050137948244810104,
-0.049415964633226395,
-0.02392582967877388,
0.0189020074903965,
-0.01818002015352249,
0.0027550803497433662,
-0.04171477258205414,
-0.07665089517831802,
0.0005499506369233131,
-0.05844079330563545,
-0.020877443253993988,
0.0014138901606202126,
0.046367574483156204,
0.03603915870189667,
-0.0038756635040044785,
0.033070992678403854,
0.017468061298131943,
-0.028598686680197716,
-0.05936333164572716,
0.019724270328879356,
0.0052945674397051334,
0.006924050860106945,
-0.03351220488548279,
0.024286823347210884,
0.02450742945075035,
0.04017052426934242,
0.02829785831272602,
0.011240928433835506,
0.005650546867400408,
-0.042436759918928146,
-0.01563301309943199,
0.05174236372113228,
-0.03547761216759682,
0.01881175860762596,
-0.018520958721637726,
0.0029430976137518883,
0.0028929596301168203,
-0.01580348238348961,
0.008177499286830425,
0.0064878505654633045,
-0.008613700047135353,
0.0354575589299202,
0.005470050498843193,
-0.04973684623837471,
-0.021258490160107613,
0.02833796851336956,
-0.005715726409107447,
0.013707715086638927,
0.0048809293657541275,
0.024226658046245575,
0.002295064739882946,
-0.02649289183318615,
-0.010408638045191765,
0.015592901967465878,
-0.02021562121808529,
-0.01709704101085663,
0.06762606650590897,
0.05547262728214264,
0.03862627595663071,
-0.011170735582709312,
-0.004941095132380724,
0.07757343351840973,
0.0072700027376413345,
-0.0392279326915741,
0.05222368985414505,
-0.09145162254571915,
-0.14696435630321503,
0.015231909230351448,
0.03266988694667816,
-0.0056355055421590805,
0.015622985549271107,
0.0019177765352651477,
0.07853608578443527,
0.030704479664564133,
0.034234192222356796,
-0.04540492594242096,
-0.05346710979938507,
-0.019242946058511734,
0.020656835287809372,
-0.032349005341529846,
-0.021037884056568146,
0.022842850536108017,
0.0020330939441919327,
-0.05727759376168251,
-0.019192807376384735,
-0.011561810970306396,
-0.03674108907580376,
0.018400628119707108,
0.005841071251779795,
0.01703687570989132,
0.060686975717544556,
0.018400628119707108,
-0.003366763237863779,
0.03090503253042698,
-0.044402167201042175,
0.013286557048559189,
-0.06750573217868805,
0.014179011806845665,
-0.03258966654539108,
0.02398599497973919,
0.04103289917111397,
-0.0067385402508080006,
-0.022882960736751556,
-0.0008629994699731469,
-0.025429967790842056,
0.003757839323952794,
0.005841071251779795,
-0.03208828717470169,
-0.00474304985255003,
0.031005308032035828,
0.021037884056568146,
0.046287354081869125,
0.052544571459293365,
0.006502891890704632,
0.04239664971828461,
0.054550088942050934,
-0.013266501948237419,
-0.02518930658698082,
-0.02005518041551113,
0.024367043748497963,
0.027495652437210083,
-0.016595661640167236,
-0.004835805390030146,
-0.021820036694407463,
-0.09650552272796631,
0.007380306255072355,
0.006141898687928915,
-0.004580101929605007,
-0.03764357417821884,
-0.019162723794579506,
0.033171266317367554,
0.04965662583708763,
-0.03756335377693176,
-0.04408128559589386,
0.03455507382750511,
0.0391276553273201,
-0.019112586975097656,
-0.030423708260059357,
-0.027335209771990776,
-0.034254249185323715,
0.05547262728214264,
0.0010547770652920008,
-0.022441746667027473,
-0.01961396634578705,
-0.017257481813430786,
0.01701682060956955,
0.002104540355503559,
-0.016625743359327316,
0.01945352368056774,
-0.0067385402508080006,
-0.0023251473903656006,
0.011521700769662857,
-0.03597899153828621,
0.060646865516901016,
0.043198857456445694,
-0.037422966212034225,
0.013446997851133347,
0.02006520703434944,
0.041313670575618744,
0.0003509656526148319,
0.03349215164780617,
-0.009130120277404785,
0.025028863921761513,
-0.02827780321240425,
0.015352239832282066,
-0.040531519800424576,
-0.05174236372113228,
-0.004512415267527103,
-0.03726252540946007,
0.0059614023193717,
-0.0010171736357733607,
0.030423708260059357,
-0.018731538206338882,
-0.04596647247672081,
-0.001995490398257971,
-0.03507651016116142,
0.07047390192747116,
0.021158214658498764,
-0.04536481574177742,
-0.004953629337251186,
0.0002202936157118529,
-0.03381303325295448,
0.05936333164572716,
0.004499881062656641,
0.04199554771184921,
-0.07027334719896317,
0.026733554899692535,
-0.023665111511945724,
-0.04672857001423836,
-0.022562077268958092,
-0.0026748597156256437,
-0.031165748834609985,
-0.0439208447933197,
0.005480078049004078,
-0.03896721452474594,
-0.021499153226614,
0.027876699343323708,
-0.03541744872927666,
0.018440738320350647,
-0.024226658046245575,
-0.030544038861989975,
-0.033572372049093246,
-0.07941851019859314,
0.01261470839381218,
0.044442277401685715,
0.01886189728975296,
0.022160973399877548,
-0.09024830907583237,
0.046287354081869125,
0.018731538206338882,
0.006182009354233742,
0.012965673580765724,
0.04893463850021362,
-0.019293082877993584,
-0.06349469721317291,
0.034234192222356796,
0.013055922463536263,
-0.01295564603060484,
-0.011862639337778091,
-0.05896222963929176,
0.04464283213019371,
-0.00007908478437457234,
-0.04103289917111397,
-0.04219609871506691,
0.016856377944350243,
-0.02699427306652069,
-0.007254961412400007,
-0.04580603167414665,
-0.012444239109754562,
-0.0010441228514537215,
-0.028498411178588867,
-0.03194790333509445,
0.048814307898283005,
0.02651294879615307,
-0.03778395801782608,
-0.014680392108857632,
-0.038064733147621155,
0.0016996765043586493,
0.026031622663140297,
-0.04331918805837631,
0.026793720200657845,
-0.08423175662755966,
-0.002019305946305394,
0.019924821332097054,
-0.028117362409830093,
0.017839083448052406,
-0.033772923052310944,
0.010930073447525501,
0.005780905485153198,
0.007661078590899706,
0.058320462703704834,
0.05671604722738266,
0.00972676184028387,
0.011581866070628166,
0.0189020074903965,
-0.022542022168636322,
-0.0003204128297511488,
0.015001274645328522,
0.00737027870491147,
0.006638264749199152,
-0.04953629523515701,
-0.028799237683415413,
-0.003975939471274614,
0.016475331038236618,
0.02212086319923401,
-0.055673178285360336,
-0.03467540442943573,
0.05547262728214264,
0.043720293790102005,
-0.004497373942285776,
-0.0654199942946434,
0.028217637911438942,
-0.0011663340264931321,
0.012694928795099258,
0.04793187975883484,
-0.011451507918536663,
0.03573833033442497,
-0.062010616064071655,
0.06975191831588745,
0.046367574483156204,
-0.0005740795168094337,
-0.04925552010536194,
0.055713288486003876,
-0.015191799029707909,
0.01576337218284607,
-0.0855955109000206,
-0.006096774712204933,
-0.03832544758915901,
-0.029120121151208878,
-0.08262734115123749,
0.029400894418358803,
0.03784412518143654,
0.02194036729633808,
0.04075212404131889,
-0.01129106618463993,
-0.015622985549271107
] |
725,027 | tf_keras.src.engine.training | get_weights | Retrieves the weights of the model.
Returns:
A flat list of Numpy arrays.
| def get_weights(self):
"""Retrieves the weights of the model.
Returns:
A flat list of Numpy arrays.
"""
with self.distribute_strategy.scope():
return super().get_weights()
| (self) | [
0.008316305465996265,
-0.0446820892393589,
-0.05810370668768883,
-0.0020578396506607533,
0.006846723146736622,
0.011077080853283405,
-0.04719651862978935,
-0.02475353702902794,
0.06890895962715149,
0.05541938170790672,
-0.015052597038447857,
-0.04104635864496231,
0.012419242411851883,
0.01509507093578577,
-0.02081199921667576,
0.040910445153713226,
0.029374651610851288,
0.013268711976706982,
-0.0012954408302903175,
0.024770526215434074,
-0.02798152156174183,
-0.059394899755716324,
0.006770270876586437,
-0.007118553388863802,
-0.03628933057188988,
0.02680925279855728,
-0.02320750430226326,
-0.038735803216695786,
0.07033606618642807,
0.01892617717385292,
-0.08841277658939362,
-0.024532675743103027,
0.034726306796073914,
0.033927805721759796,
0.0531088262796402,
-0.012691072188317776,
0.02940862998366356,
0.03605148196220398,
-0.04396853595972061,
-0.014831735752522945,
0.06829734146595001,
-0.05531744658946991,
0.06907884776592255,
-0.007857591845095158,
-0.005173268727958202,
0.025925805792212486,
0.0025781395379453897,
0.01109407003968954,
0.0036144922487437725,
-0.010669335722923279,
0.006965648848563433,
0.027930554002523422,
0.052633121609687805,
0.026010751724243164,
-0.02076103165745735,
0.03019014187157154,
0.020676083862781525,
-0.014288075268268585,
0.008566898293793201,
-0.03639126941561699,
0.028830990195274353,
-0.06241900846362114,
0.0398910827934742,
-0.04879352077841759,
0.0005787010304629803,
-0.06799153238534927,
-0.039789143949747086,
0.04342487454414368,
0.030105194076895714,
0.04315304383635521,
0.007955281063914299,
-0.05361850559711456,
0.009751908481121063,
0.046550922095775604,
-0.04036678373813629,
0.025263220071792603,
0.04967696964740753,
-0.025857847183942795,
0.029034864157438278,
-0.02981637604534626,
0.00037482837797142565,
0.01355753093957901,
-0.0022638358641415834,
-0.017855847254395485,
0.012623115442693233,
-0.08977192640304565,
-0.01385484542697668,
-0.002448595594614744,
0.03785235434770584,
-0.023530302569270134,
-0.07631632685661316,
0.10567399114370346,
0.032993391156196594,
0.053754422813653946,
0.033180274069309235,
-0.009743413887917995,
-0.04566747322678566,
-0.05705036222934723,
0.006715055555105209,
-0.0008510621264576912,
-0.0581376850605011,
0.05745811015367508,
0.008902438916265965,
0.0625889003276825,
-0.025059346109628677,
-0.0446820892393589,
-0.01948682777583599,
-0.05674455314874649,
-0.019011124968528748,
0.016683578491210938,
-0.01877327263355255,
0.07339415699243546,
0.0356777124106884,
0.02268083207309246,
-0.032840486615896225,
-0.015222491696476936,
-0.02985035441815853,
0.04043474420905113,
0.03934742137789726,
0.049405138939619064,
-0.02696215733885765,
0.08195680379867554,
-0.024770526215434074,
-0.008443725295364857,
0.010737293399870396,
0.05022063106298447,
0.009301689453423023,
-0.015562279149889946,
0.022969651967287064,
0.0076367296278476715,
-0.004948159214109182,
-0.04328896105289459,
-0.05922500416636467,
-0.00018383048882242292,
0.028712065890431404,
-0.006638603284955025,
0.046550922095775604,
-0.001780700171366334,
0.04852169007062912,
0.04427434504032135,
0.047672223299741745,
0.036561161279678345,
0.061161793768405914,
0.015808625146746635,
0.011068586260080338,
0.023088578134775162,
0.03608546033501625,
0.01242773700505495,
-0.02013242430984974,
-0.0507642887532711,
0.026945168152451515,
0.039857104420661926,
0.0027480334974825382,
-0.026843233034014702,
-0.039789143949747086,
0.03469232842326164,
-0.03399576619267464,
-0.0377843976020813,
0.014823240227997303,
-0.05936092138290405,
-0.09745112806558609,
0.027352914214134216,
-0.02218814007937908,
-0.03292543441057205,
-0.01228332705795765,
0.03503211587667465,
-0.011077080853283405,
-0.008783513680100441,
-0.022935673594474792,
-0.0001880778290797025,
-0.026112688705325127,
-0.05389033630490303,
-0.0027416623197495937,
-0.01224085409194231,
0.015451847575604916,
0.051239993423223495,
0.01715928129851818,
0.012342790141701698,
-0.004548908676952124,
0.06911282986402512,
0.046245113015174866,
-0.06697216629981995,
-0.0436287485063076,
-0.017193259671330452,
0.006022737827152014,
0.016148412600159645,
0.0009391945786774158,
0.008052969351410866,
-0.007691945414990187,
0.03917752951383591,
0.018994135782122612,
-0.0019113060552626848,
0.011255469173192978,
-0.019554784521460533,
-0.02640150859951973,
0.011017617769539356,
0.011926550418138504,
-0.014262590557336807,
-0.10343138873577118,
0.015222491696476936,
0.008307810872793198,
-0.07196704298257828,
-0.005636229179799557,
0.04128421097993851,
-0.027233988046646118,
0.005712681449949741,
-0.03465835005044937,
-0.044750045984983444,
-0.03143036738038063,
-0.000693910289555788,
-0.0073733944445848465,
0.01158676203340292,
0.036900948733091354,
0.005903812125325203,
0.08997579663991928,
-0.026707317680120468,
-0.02985035441815853,
0.0005330420099198818,
0.0265544131398201,
-0.014627862721681595,
-0.008715556003153324,
-0.028830990195274353,
0.0036399762611836195,
0.005423862021416426,
-0.025178272277116776,
-0.047706201672554016,
0.004109308123588562,
-0.026486454531550407,
-0.035134054720401764,
0.0010857280576601624,
0.026197636500000954,
0.0030580898746848106,
0.018229613080620766,
-0.0069826385006308556,
0.01079675555229187,
0.005304936319589615,
-0.06099190190434456,
0.01145084761083126,
-0.004066834691911936,
0.0013049973640590906,
-0.02944260835647583,
-0.0025526555255055428,
0.007866086438298225,
0.023836111649870872,
0.0011966900201514363,
0.024006005376577377,
0.05463787168264389,
0.02640150859951973,
0.01027008518576622,
-0.04237153381109238,
0.015579268336296082,
-0.03387684002518654,
-0.027743669226765633,
0.0047655231319367886,
-0.007224737200886011,
-0.06075404956936836,
0.0060439747758209705,
0.000793192011769861,
-0.01371043547987938,
-0.01650518923997879,
-0.03628933057188988,
0.028525181114673615,
-0.03581362962722778,
0.009590509347617626,
-0.025772901251912117,
0.03710482269525528,
-0.03598352149128914,
0.03533792495727539,
-0.04074055328965187,
0.06581688672304153,
0.03372393548488617,
0.05140988528728485,
-0.019622743129730225,
-0.023938046768307686,
-0.02662236988544464,
-0.03459039330482483,
0.02252792753279209,
0.07094768434762955,
-0.028100447729229927,
0.0385998897254467,
-0.008613619953393936,
-0.023972025141119957,
-0.032313816249370575,
-0.00341699062846601,
-0.021151786670088768,
-0.009225237183272839,
-0.0034297325182706118,
-0.03489620238542557,
0.005513056181371212,
-0.010864713229238987,
0.022935673594474792,
0.01911306194961071,
0.03642524778842926,
-0.030767781659960747,
0.028338298201560974,
-0.0713554248213768,
0.01267408300191164,
0.00164053775370121,
0.06907884776592255,
0.06350632756948471,
0.016853472217917442,
0.041963785886764526,
-0.004799501970410347,
0.04026484861969948,
-0.004565897863358259,
-0.00665559247136116,
0.07115155458450317,
-0.006783013232052326,
-0.035541798919439316,
-0.018637357279658318,
-0.030580896884202957,
0.003100563306361437,
0.01880725286900997,
0.04328896105289459,
0.01870531588792801,
-0.06700614839792252,
0.008303563110530376,
0.04750232771039009,
0.005338915158063173,
0.108324334025383,
-0.03826010227203369,
0.05453593283891678,
-0.004060463514178991,
-0.013829361647367477,
-0.05844349414110184,
0.016428736969828606,
0.04104635864496231,
0.0147977564483881,
-0.027930554002523422,
-0.0011903189588338137,
-0.012623115442693233,
-0.015052597038447857,
0.03143036738038063,
0.024515686556696892,
-0.07094768434762955,
0.05528346821665764,
0.06309858709573746,
0.025076335296034813,
0.009811371564865112,
-0.039449356496334076,
0.008137916214764118,
0.0036314816679805517,
-0.05110407620668411,
0.061195775866508484,
-0.062283094972372055,
-0.016513684764504433,
0.004283449146896601,
0.019894571974873543,
0.027352914214134216,
-0.02283373661339283,
0.012121927924454212,
0.05127397179603577,
-0.013472584076225758,
0.09126698970794678,
0.013591510243713856,
0.019707689061760902,
-0.034488458186388016,
0.009862339124083519,
0.0039139301516115665,
0.016980892047286034,
-0.06072007119655609,
0.007645224221050739,
-0.01765197329223156,
0.05249720811843872,
0.03856591135263443,
0.0056064981035888195,
0.04213368147611618,
0.003958527464419603,
0.05171569436788559,
-0.044070471078157425,
-0.05463787168264389,
-0.029459597542881966,
-0.047672223299741745,
0.053720444440841675,
0.004663587082177401,
-0.006604624446481466,
-0.05456991121172905,
0.00019829800294246525,
0.04532768577337265,
0.019996508955955505,
-0.03574567288160324,
0.014288075268268585,
0.04471606761217117,
-0.0012614619918167591,
0.01622486487030983,
-0.0025420370511710644,
0.010278579778969288,
-0.03537190333008766,
-0.011535794474184513,
-0.031940050423145294,
0.031226495280861855,
-0.05198752507567406,
-0.052633121609687805,
0.03075079247355461,
-0.043051108717918396,
-0.004468209110200405,
0.021270712837576866,
0.02137264981865883,
-0.014976144768297672,
-0.030427992343902588,
-0.007900064811110497,
-0.0644577369093895,
-0.056268852204084396,
0.038396015763282776,
-0.08120927214622498,
-0.031005632132291794,
-0.009267711080610752,
0.08766523748636246,
0.00817614234983921,
-0.012699566781520844,
-0.05504561588168144,
0.036561161279678345,
-0.011663214303553104,
-0.03136241063475609,
0.0155282998457551,
-0.011026112362742424,
0.0359155647456646,
-0.023717185482382774,
0.06992831826210022,
0.055793147534132004,
0.07903463393449783,
0.01015965361148119,
0.0797821655869484,
0.0065366667695343494,
0.08127722889184952,
-0.043356917798519135,
-0.017821867018938065,
0.0202343612909317,
0.017150787636637688,
0.009632982313632965,
-0.01610593870282173,
-0.0618753507733345,
-0.015987014397978783,
-0.06241900846362114,
-0.00776414992287755,
0.011841603554785252,
0.03676503524184227,
0.019181018695235252,
-0.025603007525205612,
0.025229239836335182,
0.05151182413101196,
0.009658467024564743,
0.016080455854535103,
-0.014279580675065517,
-0.03669707849621773,
-0.03571169450879097,
-0.01276752445846796,
-0.008413993753492832,
-0.07094768434762955,
-0.031039610505104065,
0.007883075624704361,
-0.04471606761217117,
0.06462763249874115,
0.008656092919409275,
-0.04138614982366562,
0.045157793909311295,
0.025704942643642426,
-0.08916030824184418,
-0.013829361647367477,
-0.04247346892952919,
0.05671057477593422,
0.019809626042842865,
0.010762777179479599,
-0.02516128309071064,
-0.005287946667522192,
-0.04400251433253288,
-0.002251093741506338,
-0.041997767984867096,
0.012708062306046486,
-0.00817614234983921,
0.11117855459451675,
0.03863386809825897,
-0.009649972431361675,
-0.11593557894229889,
-0.03338414803147316,
0.04220163822174072,
-0.017974771559238434,
0.01799176074564457,
0.000447033264208585,
-0.033180274069309235,
-0.02370019629597664,
-0.03177015483379364,
0.010660841129720211,
0.02035328559577465,
-0.033214252442121506,
-0.029204757884144783,
-0.032466720789670944,
-0.02951056696474552,
0.04960901290178299,
0.0013453471474349499,
-0.032008007168769836,
0.046177156269550323,
0.07434555888175964,
0.008375768549740314,
-0.013430111110210419,
0.03900763392448425,
0.04862362891435623,
0.007462588604539633,
0.041895829141139984,
0.051885589957237244,
0.012461715377867222,
-0.004417240619659424,
-0.02861012890934944,
-0.0035698951687663794,
-0.05202150344848633,
-0.014687325805425644,
-0.017397133633494377,
-0.022035235539078712,
-0.015647225081920624,
0.01753304712474346,
0.009293194860219955,
0.013591510243713856,
-0.0581376850605011,
0.022375022992491722,
0.005886822938919067,
-0.047706201672554016,
-0.03608546033501625,
0.013829361647367477,
-0.004211244639009237,
0.031821124255657196,
0.0488954558968544,
0.03015616349875927,
-0.008371520787477493,
-0.0009482202003709972,
0.01134041603654623,
0.004574392456561327,
-0.04774018004536629,
-0.044410258531570435,
0.056268852204084396,
0.07747160643339157,
0.052599143236875534,
-0.012699566781520844,
-0.0073606520891189575,
0.06506935507059097,
-0.0038034990429878235,
-0.0004029670380987227,
-0.0018921929877251387,
-0.05423012375831604,
-0.05198752507567406,
0.013591510243713856,
-0.028593139722943306,
-0.0336899571120739,
0.04896341636776924,
-0.03331618756055832,
0.05042450129985809,
0.0470266230404377,
-0.03185510262846947,
-0.016709063202142715,
-0.0568464919924736,
-0.03632330894470215,
-0.029187768697738647,
-0.003852343652397394,
0.011187511496245861,
-0.005016116891056299,
0.11056693643331528,
-0.04131818935275078,
-0.022748790681362152,
-0.026979148387908936,
-0.010669335722923279,
0.04757028445601463,
0.018348539248108864,
-0.06425386667251587,
0.030767781659960747,
0.03489620238542557,
0.003240725724026561,
0.03341812640428543,
-0.016139918938279152,
0.05688047036528587,
-0.04186185076832771,
-0.003028358332812786,
-0.021797385066747665,
-0.018535422161221504,
0.021304691210389137,
0.013786887750029564,
-0.0005218927399255335,
-0.008460715413093567,
-0.01877327263355255,
-0.056268852204084396,
-0.033859848976135254,
-0.0581376850605011,
0.017244229093194008,
-0.023530302569270134,
0.0033426620066165924,
-0.009012870490550995,
0.013863340020179749,
-0.016182390972971916,
-0.01979263685643673,
0.019894571974873543,
-0.02944260835647583,
0.027284955605864525,
-0.008596629835665226,
-0.0005903812125325203,
0.007284199818968773,
0.010304063558578491,
0.014534421265125275,
-0.0295955128967762,
-0.09099516272544861,
-0.04213368147611618,
0.0016214246861636639,
-0.005976017098873854,
0.027098072692751884,
0.01790681481361389,
0.034726306796073914,
0.040502700954675674,
0.033859848976135254,
-0.03154929354786873,
-0.05606497824192047,
-0.004200626164674759,
0.016343791037797928,
0.017295196652412415,
-0.07923850417137146,
-0.03338414803147316,
0.016496695578098297,
-0.06700614839792252,
0.009157279506325722,
-0.008800502866506577,
-0.05069633200764656,
-0.010312558151781559,
0.04858964681625366,
0.010898692533373833,
0.061229754239320755,
-0.006829733960330486,
0.006286073476076126,
0.008944912813603878,
-0.030105194076895714,
0.026044731959700584,
0.02494042180478573,
-0.05249720811843872,
0.012189885601401329,
0.009021365083754063,
0.02850819192826748,
-0.023377398028969765,
0.1044507548213005,
-0.029561534523963928,
0.02974841743707657,
0.019775647670030594,
-0.01534141693264246,
-0.02166146971285343,
-0.007178016472607851,
-0.05535142496228218,
0.014288075268268585,
0.050526440143585205,
0.04172593727707863,
-0.0317021980881691,
-0.0338088795542717,
-0.03686697036027908,
-0.026163656264543533,
0.0012890697689726949,
0.00848619919270277,
-0.010083201341331005,
-0.0742776021361351,
-0.038328059017658234,
-0.03792031481862068,
0.006230857688933611,
0.02748882956802845,
0.03707084432244301,
0.01183310803025961,
-0.005810370668768883,
-0.005993006285279989,
-0.06371020525693893,
-0.05752606689929962,
0.04220163822174072,
0.0035529057495296,
0.0016851348336786032,
0.01604647748172283,
-0.002206496661528945,
-0.03510007634758949,
-0.015655720606446266,
-0.008006248623132706,
-0.03307833895087242,
-0.0034976901952177286,
0.05035654455423355,
-0.015035607852041721,
-0.008842975832521915,
-0.060244370251894,
0.038328059017658234,
-0.0026248604990541935,
0.001125546870753169,
-0.0011828860733658075,
-0.029493577778339386,
0.023836111649870872,
-0.0067108082585036755,
-0.0022702068090438843,
0.03173617646098137,
0.06700614839792252,
-0.021338671445846558,
-0.07869484275579453,
0.045871347188949585,
0.035134054720401764,
-0.007556030061095953,
-0.016207875683903694,
-0.038735803216695786,
0.05681251361966133,
-0.00542810931801796,
0.03897365555167198,
-0.013888824731111526,
-0.01518851239234209,
-0.012945913709700108,
0.011459342204034328,
-0.010975144803524017,
-0.001014585024677217,
-0.009845349937677383,
-0.0336899571120739,
-0.02110081911087036,
0.013251722790300846,
0.02426084503531456,
-0.023445354774594307,
-0.001654341584071517,
-0.018416495993733406,
-0.011646225117146969,
0.022222118452191353,
0.018654348328709602,
0.014525926671922207,
-0.04002699628472328,
0.00303260562941432,
0.05613293498754501,
0.0023572775535285473,
0.038396015763282776,
-0.031532302498817444,
0.018977146595716476,
-0.025246230885386467,
-0.00495665380731225,
0.026690328493714333,
-0.015078081749379635,
-0.048012010753154755,
-0.006464461795985699,
-0.00814216397702694,
-0.0017424740362912416,
0.005313430912792683,
0.03192305937409401,
0.03849795088171959,
-0.07726773619651794,
-0.0057594021782279015,
0.020608127117156982,
0.060244370251894,
0.07869484275579453,
0.025331176817417145,
-0.01933392323553562,
-0.02764173410832882,
0.006783013232052326,
0.01675153709948063,
0.0004587134753819555,
-0.04665285721421242,
0.03341812640428543,
0.0491333082318306,
0.014407000504434109,
0.01684497855603695,
0.009548035450279713,
0.04502187669277191,
-0.08005399256944656,
0.06914680451154709,
0.02568795345723629,
0.03893967717885971,
-0.028474213555455208,
0.022969651967287064,
-0.021525554358959198,
0.049439117312431335,
-0.07951033115386963,
-0.044750045984983444,
-0.029884332790970802,
-0.018467463552951813,
-0.030784770846366882,
-0.052972909063100815,
0.049744926393032074,
0.007509309332817793,
0.007042101118713617,
0.06109383702278137,
-0.0052667101845145226
] |
725,028 | tf_keras.src.engine.base_layer | load_own_variables | Loads the state of the layer.
You can override this method to take full control of how the state of
the layer is loaded upon calling `keras.models.load_model()`.
Args:
store: Dict from which the state of the model will be loaded.
| def load_own_variables(self, store):
"""Loads the state of the layer.
You can override this method to take full control of how the state of
the layer is loaded upon calling `keras.models.load_model()`.
Args:
store: Dict from which the state of the model will be loaded.
"""
self._update_trackables()
all_vars = self._trainable_weights + self._non_trainable_weights
if len(store.keys()) != len(all_vars):
raise ValueError(
f"Layer '{self.name}' expected {len(all_vars)} variables, "
"but received "
f"{len(store.keys())} variables during loading. "
f"Expected: {[v.name for v in all_vars]}"
)
for i, v in enumerate(all_vars):
# TODO(rchao): check shapes and raise errors.
v.assign(store[f"{i}"])
| (self, store) | [
-0.005032144952565432,
-0.01855851523578167,
-0.08383085578680038,
0.049289438873529434,
0.010893424972891808,
0.01802928000688553,
-0.04653741791844368,
-0.0030320766381919384,
0.022651266306638718,
-0.01513612736016512,
-0.03021933138370514,
0.017702918499708176,
-0.02049904316663742,
0.014465762302279472,
0.01855851523578167,
0.012983904220163822,
0.006050922442227602,
-0.029989995062351227,
-0.029813583940267563,
-0.0634729415178299,
0.000012352266821835656,
-0.019299443811178207,
0.020763661712408066,
0.0013837296282872558,
0.007603345904499292,
0.007515139877796173,
0.014518685638904572,
0.023868508636951447,
0.041033368557691574,
0.015753569081425667,
-0.0392339713871479,
-0.028631625697016716,
-0.023586248978972435,
0.05772192031145096,
0.01714722067117691,
-0.05094771087169647,
0.022263161838054657,
0.025385649874806404,
-0.04759588837623596,
-0.03789324313402176,
0.02656760811805725,
-0.05761607363820076,
0.06573101133108139,
0.019881602376699448,
-0.05564026162028313,
-0.029425477609038353,
-0.018002817407250404,
-0.003942802548408508,
0.06597799062728882,
-0.03683477267622948,
0.010522959753870964,
-0.015259615145623684,
0.004174342844635248,
0.038210783153772354,
0.03637610003352165,
-0.04611402750015259,
0.009288078173995018,
0.02778484858572483,
-0.02288060262799263,
0.015444847755134106,
-0.04385595768690109,
-0.06562516838312149,
-0.037575699388980865,
-0.010478856973350048,
0.012022459879517555,
-0.052253156900405884,
-0.04921887442469597,
0.011581430211663246,
0.021945619955658913,
0.003556901589035988,
0.0030629488173872232,
-0.03304191678762436,
0.05038319155573845,
0.01938764937222004,
-0.010911066085100174,
0.0005540431011468172,
-0.041703734546899796,
-0.0454789474606514,
0.011422660201787949,
-0.015630079433321953,
-0.03581158444285393,
-0.04876020550727844,
-0.027185048907995224,
0.024133125320076942,
-0.03687005490064621,
-0.04085695743560791,
0.012463489547371864,
0.014245247468352318,
0.01437755674123764,
-0.03365936130285263,
-0.01850559189915657,
0.10450631380081177,
-0.01253405399620533,
0.02700863778591156,
0.02473292499780655,
-0.029848866164684296,
0.03445321321487427,
-0.02351568453013897,
-0.02676166035234928,
-0.011643175035715103,
-0.025297442451119423,
-0.0647783875465393,
-0.03238919377326965,
0.007056469563394785,
-0.045831769704818726,
-0.020181503146886826,
0.005204146262258291,
-0.03711703047156334,
-0.031595341861248016,
-0.012022459879517555,
-0.008044375106692314,
-0.032724376767873764,
0.007162316702306271,
0.03789324313402176,
-0.048266250640153885,
0.0006075178971514106,
0.01501263864338398,
-0.0023418657947331667,
-0.027414383366703987,
0.0007723526214249432,
-0.027555514127016068,
0.07952640950679779,
-0.07119977474212646,
0.030395742505788803,
0.04921887442469597,
0.06957679241895676,
0.04434991255402565,
-0.0063155400566756725,
0.03531762957572937,
-0.04727834463119507,
0.03611148148775101,
-0.057157404720783234,
-0.051618073135614395,
0.04226825386285782,
0.003025461221113801,
0.006738928612321615,
0.020587250590324402,
0.0013208829332143068,
0.050594884902238846,
0.0157888513058424,
0.052394285798072815,
0.02243957296013832,
0.026655813679099083,
0.03171883150935173,
0.044667452573776245,
-0.014227606356143951,
0.01513612736016512,
-0.020904790610074997,
-0.06216749548912048,
-0.03124251961708069,
0.02404491975903511,
0.031207237392663956,
-0.027290895581245422,
-0.010311266407370567,
-0.03290078788995743,
0.02016386203467846,
-0.026514684781432152,
-0.04265635833144188,
-0.007660679519176483,
-0.05878039076924324,
-0.047348909080028534,
0.023445120081305504,
-0.025385649874806404,
-0.021539872512221336,
-0.015462488867342472,
0.018770208582282066,
-0.013363189063966274,
-0.008009092882275581,
0.01958170346915722,
0.017552968114614487,
-0.039904333651065826,
-0.0747985765337944,
0.0055260974913835526,
0.021434025838971138,
-0.00007972983439685777,
-0.022280802950263023,
-0.00969382468611002,
-0.09293370693922043,
-0.015003818087279797,
0.035247065126895905,
0.048795487731695175,
-0.0255973432213068,
-0.0705999806523323,
0.010725833475589752,
0.005931844934821129,
-0.02847285382449627,
0.0047013727016747,
0.009341001510620117,
0.041033368557691574,
0.007250522263348103,
0.024609437212347984,
0.04629043862223625,
-0.013098571449518204,
-0.007440165150910616,
-0.004042034037411213,
-0.010990451090037823,
0.05553441494703293,
-0.019017186015844345,
-0.019458213821053505,
0.04847794398665428,
0.012040100991725922,
-0.02988414838910103,
0.00203314539976418,
-0.004873374477028847,
-0.037187594920396805,
-0.01836446113884449,
-0.009526234120130539,
-0.014633353799581528,
-0.027467308565974236,
-0.0093498220667243,
0.0057642534375190735,
0.0187525674700737,
0.0551815927028656,
0.06237918883562088,
0.0846070721745491,
-0.048795487731695175,
-0.03814021870493889,
0.05186505243182182,
0.07282276451587677,
0.0004724526952486485,
0.07712721079587936,
0.04071582853794098,
-0.03260089084506035,
0.00006680905789835379,
0.012304718606173992,
-0.04360898211598396,
0.002474174601957202,
-0.022563060745596886,
-0.044773299247026443,
0.02623242512345314,
0.011166863143444061,
-0.03510593622922897,
-0.04008074849843979,
-0.0032481811940670013,
0.09575629234313965,
0.043115027248859406,
-0.016203418374061584,
-0.016097571700811386,
0.040398288518190384,
-0.012516412883996964,
-0.010205418802797794,
-0.010143674910068512,
-0.04318559169769287,
-0.05839228630065918,
-0.02346276119351387,
0.000613030802924186,
0.04173901677131653,
0.03672892227768898,
-0.07187014073133469,
0.00025304057635366917,
0.06421387195587158,
0.03637610003352165,
0.008860279805958271,
0.07416349649429321,
-0.010425933636724949,
-0.007118213456124067,
0.00654487544670701,
-0.054475944489240646,
0.012287077493965626,
-0.029266707599163055,
-0.03152477741241455,
0.0314718559384346,
-0.011255068704485893,
0.04883076995611191,
0.004577884450554848,
-0.013566062785685062,
0.012639900669455528,
-0.005032144952565432,
0.013513139449059963,
-0.028543420135974884,
0.061285436153411865,
0.08630061894655228,
0.001911862171255052,
0.03231862932443619,
0.02880803681910038,
-0.046607982367277145,
0.05874510854482651,
0.03304191678762436,
-0.047101933509111404,
0.037857960909605026,
0.00010171239409828559,
-0.016529779881238937,
-0.026003090664744377,
0.011740201152861118,
-0.05578139051795006,
-0.038104936480522156,
-0.020904790610074997,
-0.08009093254804611,
-0.026602890342473984,
-0.03722287714481354,
0.05878039076924324,
0.00896612647920847,
0.0788913294672966,
0.025103390216827393,
-0.022122031077742577,
-0.02482113242149353,
-0.05892151966691017,
0.05578139051795006,
0.03775211051106453,
0.06728343665599823,
0.021363461390137672,
0.02127525582909584,
0.06841247528791428,
0.011158042587339878,
0.03799908980727196,
-0.07158788293600082,
0.031542420387268066,
-0.012198871932923794,
-0.0394456647336483,
0.011502045206725597,
0.06439028680324554,
0.04449104145169258,
0.06654250621795654,
0.006827134173363447,
0.052147310227155685,
-0.04985395818948746,
0.00280494662001729,
-0.010328907519578934,
0.009905518963932991,
0.04378539323806763,
0.02041083760559559,
0.019370008260011673,
-0.04417349770665169,
0.011131580919027328,
0.0004978118813596666,
-0.01221651304513216,
0.07508083432912827,
-0.021010637283325195,
0.04191542789340019,
-0.0037575699388980865,
-0.08347803354263306,
-0.01655624248087406,
0.009120486676692963,
0.006099435966461897,
-0.019634626805782318,
0.004710193257778883,
-0.04036300629377365,
0.07416349649429321,
0.050736017525196075,
0.03891642764210701,
0.038986995816230774,
-0.013539601117372513,
-0.05468763783574104,
-0.008582430891692638,
0.010434754192829132,
-0.016688549891114235,
-0.0023131989873945713,
0.0016075519379228354,
-0.0039229560643434525,
-0.0038281346205621958,
-0.07670382410287857,
-0.007784167770296335,
-0.00432208739221096,
0.038598887622356415,
0.01495971530675888,
0.0066330814734101295,
-0.0019570677541196346,
0.011422660201787949,
0.007047649007290602,
-0.043397288769483566,
0.014606892131268978,
-0.011493224650621414,
-0.025332726538181305,
0.027820130810141563,
0.06350822746753693,
-0.009993724524974823,
0.046713829040527344,
-0.035141218453645706,
-0.016009366139769554,
-0.03799908980727196,
-0.003373874584212899,
-0.05564026162028313,
0.01355724222958088,
0.036164406687021255,
-0.03672892227768898,
0.04678439348936081,
0.00403321348130703,
0.0034157722257077694,
0.04657270014286041,
0.009914339520037174,
0.039763204753398895,
0.03193052485585213,
0.03270673751831055,
0.04689024016261101,
0.06273201107978821,
-0.0324421189725399,
-0.011122760362923145,
-0.020922431722283363,
0.017720559611916542,
0.007841501384973526,
0.015003818087279797,
0.010619986802339554,
-0.022898243740200996,
0.02473292499780655,
0.06555460393428802,
-0.008264889940619469,
0.00677862111479044,
0.037575699388980865,
-0.017720559611916542,
-0.02152223140001297,
-0.010717012919485569,
-0.04293861612677574,
-0.014994997531175613,
0.04205655679106712,
-0.024362461641430855,
0.013539601117372513,
-0.007700372487306595,
0.05168863758444786,
-0.04290333390235901,
-0.02215731516480446,
0.0035591067280620337,
0.05387614667415619,
-0.01725306734442711,
-0.02210438996553421,
0.013865962624549866,
0.00020411389414221048,
0.035829223692417145,
-0.038598887622356415,
0.01588587649166584,
0.014659815467894077,
0.014095298014581203,
0.030572153627872467,
0.04032772406935692,
0.017164861783385277,
0.01894662156701088,
0.037081748247146606,
-0.02711448445916176,
0.03648194670677185,
0.04689024016261101,
0.023303991183638573,
-0.05736909806728363,
0.007453395985066891,
0.005645175464451313,
-0.042726922780275345,
0.05740438029170036,
-0.04057469964027405,
0.022086748853325844,
-0.02346276119351387,
-0.04689024016261101,
0.037434570491313934,
0.001433345372788608,
0.00045756794861517847,
0.01739419810473919,
0.04554951190948486,
-0.05546385049819946,
-0.03526470810174942,
-0.05828643962740898,
0.06015640124678612,
-0.07268163561820984,
-0.005107119679450989,
-0.004719013813883066,
-0.007991451770067215,
0.04043357074260712,
-0.037434570491313934,
0.07095280289649963,
0.046078745275735855,
-0.07158788293600082,
0.002460943767800927,
-0.004454396199434996,
-0.052535414695739746,
0.005076247733086348,
-0.011863689869642258,
-0.0118548683822155,
0.008445711806416512,
0.015709465369582176,
-0.029425477609038353,
0.004899836145341396,
0.014606892131268978,
0.022210238501429558,
0.034223876893520355,
-0.0034025413915514946,
-0.03644666448235512,
0.009094025008380413,
-0.03104846552014351,
-0.045302532613277435,
0.010549422353506088,
0.028490494936704636,
0.013910065405070782,
-0.015806492418050766,
-0.08608892560005188,
0.0069373915903270245,
-0.0127986716106534,
-0.06139128655195236,
0.038210783153772354,
0.03510593622922897,
0.0747985765337944,
-0.005323224235326052,
0.05235900357365608,
0.04152732342481613,
0.009561516344547272,
-0.06880057603120804,
0.018205691128969193,
-0.007938528433442116,
0.02356860786676407,
-0.037822674959897995,
-0.019546421244740486,
-0.005023324396461248,
0.00023912059259600937,
0.03969264030456543,
0.03140128776431084,
0.010461215861141682,
-0.030642718076705933,
0.03258324787020683,
0.04586705192923546,
-0.01124624814838171,
0.039763204753398895,
-0.014192324131727219,
0.029460759833455086,
0.023745020851492882,
-0.000030251856514951214,
-0.006059742998331785,
0.020604891702532768,
0.04629043862223625,
0.003574542934074998,
0.014659815467894077,
-0.009596798568964005,
-0.022845320403575897,
0.060897331684827805,
-0.0325479656457901,
0.028437571600079536,
0.021204691380262375,
-0.03304191678762436,
0.04360898211598396,
-0.05556969717144966,
0.005468763876706362,
0.03316540643572807,
-0.03919868916273117,
-0.0552874393761158,
0.026408838108181953,
0.03468254953622818,
0.0039009046740829945,
-0.01189897209405899,
0.011237427592277527,
0.03662307560443878,
-0.0033297715708613396,
-0.04396180436015129,
0.07606874406337738,
-0.08474820107221603,
-0.13760115206241608,
-0.03224806487560272,
0.010787577368319035,
-0.01991688460111618,
0.02891388349235058,
-0.009605619125068188,
0.02991943061351776,
0.014977356418967247,
-0.027414383366703987,
-0.024750566110014915,
-0.05401727557182312,
-0.012719286605715752,
-0.038493040949106216,
-0.000026530671675573103,
-0.05786304920911789,
-0.05172392353415489,
0.04025715962052345,
-0.10401236265897751,
0.025368008762598038,
-0.0068932888098061085,
-0.01153732743114233,
0.05606365203857422,
0.02180449105799198,
-0.04396180436015129,
0.013274983502924442,
0.034911882132291794,
-0.03074856661260128,
0.010134854353964329,
-0.05842756852507591,
-0.05620478093624115,
-0.045302532613277435,
0.03011348284780979,
0.044526323676109314,
0.013654268346726894,
0.028931524604558945,
-0.007144675590097904,
0.005230607930570841,
0.016820859163999557,
0.01734127476811409,
0.03365936130285263,
0.02443302609026432,
0.01676793582737446,
0.0057863048277795315,
0.04502027481794357,
-0.008335454389452934,
0.04382067546248436,
0.024609437212347984,
0.01972283236682415,
-0.017658814787864685,
0.055252157151699066,
0.012745748274028301,
0.0031754113733768463,
-0.007872373796999454,
0.04276220500469208,
-0.0037377236876636744,
-0.01445694174617529,
0.0008445712155662477,
-0.031948164105415344,
-0.02000509202480316,
0.02720269002020359,
-0.0013219855027273297,
-0.012578156776726246,
-0.03489424288272858,
-0.043750111013650894,
0.028137672692537308,
0.017332453280687332,
-0.03521178290247917,
-0.06096789613366127,
0.006518413778394461,
0.10584704577922821,
-0.023445120081305504,
0.004465422127395868,
0.0028622804675251245,
-0.054475944489240646,
0.002549149561673403,
-0.04579648748040199,
0.008163453079760075,
-0.029548965394496918,
-0.00976439006626606,
0.013160315342247486,
-0.0045249611139297485,
-0.046466853469610214,
-0.021116485819220543,
-0.04360898211598396,
-0.028596343472599983,
0.027132125571370125,
-0.03374756500124931,
0.015286076813936234,
0.022563060745596886,
-0.02210438996553421,
-0.001982426969334483,
-0.02171628549695015,
-0.003481926629319787,
-0.005980357993394136,
0.04173901677131653,
-0.026126578450202942,
0.04985395818948746,
-0.039269253611564636,
0.07218768447637558,
-0.0003332527994643897,
0.003067359095439315,
-0.03644666448235512,
0.03644666448235512,
0.009182230569422245,
0.004251522943377495,
0.010840501636266708,
0.011413839645683765,
0.024856414645910263,
-0.003905314952135086,
0.007290215231478214,
0.07508083432912827,
0.01095516886562109,
-0.03196580708026886,
-0.028331724926829338,
0.003510593669489026,
0.02434482052922249,
0.0375051349401474,
0.0063993358053267,
0.082560695707798,
-0.029813583940267563,
0.07493970543146133,
-0.06135600432753563,
-0.08213730901479721,
0.03612912446260452,
-0.00338931055739522,
0.0325479656457901,
0.025861961767077446,
0.007453395985066891,
-0.055358003824949265,
0.0062714372761547565,
0.024803491309285164,
-0.0007514037424698472,
-0.005821587517857552,
-0.06160297989845276,
0.0008219684241339564,
0.011581430211663246,
-0.0015149357495829463,
-0.0257561132311821,
-0.02492697909474373,
-0.00820755586028099,
0.05976829677820206,
-0.042973898351192474,
0.03177175298333168,
0.02750259079039097,
-0.0017597071127966046,
-0.006941801868379116,
0.017711738124489784,
0.04434991255402565,
-0.0632612481713295,
0.04025715962052345,
0.0494658499956131,
0.011440301313996315,
-0.01705901511013508,
-0.002765253884717822,
0.03824606537818909,
0.006624260917305946,
-0.09977848082780838,
-0.07289332896471024,
-0.00280494662001729,
-0.07818568497896194,
-0.02520923689007759,
-0.014800945296883583,
-0.025826677680015564,
-0.021945619955658913,
-0.03775211051106453,
-0.017852867022156715,
0.001039726659655571,
0.030625076964497566,
-0.09152241051197052,
-0.014659815467894077,
-0.07063525915145874,
-0.026320630684494972,
0.02259834297001362,
-0.03316540643572807,
-0.032477401196956635,
-0.055393286049366,
-0.012313539162278175,
0.022898243740200996,
-0.00733431801199913,
-0.04025715962052345,
-0.06640137732028961,
0.04872492328286171,
-0.010355369187891483,
0.025032825767993927,
0.0009515208075754344,
0.015259615145623684,
0.008860279805958271,
0.013098571449518204,
-0.022386649623513222,
-0.049289438873529434,
0.0454789474606514,
0.023868508636951447,
0.04001018404960632,
0.006580157671123743,
0.007224060595035553,
0.03711703047156334,
-0.027925977483391762,
-0.0015965262427926064,
0.020604891702532768,
0.017156042158603668,
-0.02205146662890911,
0.015506591647863388,
0.07762116193771362,
-0.014836227521300316,
-0.006328770890831947,
0.03263617306947708,
-0.06823606044054031,
0.0353529118001461,
0.05267654359340668,
-0.024362461641430855,
-0.021345820277929306,
-0.00818550493568182,
0.004275779705494642,
0.05980357900261879,
0.025297442451119423,
0.010126033797860146,
0.07550422102212906,
-0.010161316022276878,
-0.014227606356143951,
-0.05267654359340668,
-0.02662053145468235,
-0.06791851669549942,
-0.03972792252898216,
-0.10979866236448288,
0.019846320152282715,
0.02340983785688877,
0.004838091786950827,
0.006302309222519398,
0.032953713089227676,
-0.0017266299109905958
] |
725,029 | tf_keras.src.engine.training | load_weights | Loads all layer weights from a saved files.
The saved file could be a SavedModel file, a `.keras` file (v3 saving
format), or a file created via `model.save_weights()`.
By default, weights are loaded based on the network's
topology. This means the architecture should be the same as when the
weights were saved. Note that layers that don't have weights are not
taken into account in the topological ordering, so adding or removing
layers is fine as long as they don't have weights.
**Partial weight loading**
If you have modified your model, for instance by adding a new layer
(with weights) or by changing the shape of the weights of a layer,
you can choose to ignore errors and continue loading
by setting `skip_mismatch=True`. In this case any layer with
mismatching weights will be skipped. A warning will be displayed
for each skipped layer.
**Weight loading by name**
If your weights are saved as a `.h5` file created
via `model.save_weights()`, you can use the argument `by_name=True`.
In this case, weights are loaded into layers only if they share
the same name. This is useful for fine-tuning or transfer-learning
models where some of the layers have changed.
Note that only topological loading (`by_name=False`) is supported when
loading weights from the `.keras` v3 format or from the TensorFlow
SavedModel format.
Args:
filepath: String, path to the weights file to load. For weight files
in TensorFlow format, this is the file prefix (the same as was
passed to `save_weights()`). This can also be a path to a
SavedModel or a `.keras` file (v3 saving format) saved
via `model.save()`.
skip_mismatch: Boolean, whether to skip loading of layers where
there is a mismatch in the number of weights, or a mismatch in
the shape of the weights.
by_name: Boolean, whether to load weights by name or by topological
order. Only topological loading is supported for weight files in
the `.keras` v3 format or in the TensorFlow SavedModel format.
options: Optional `tf.train.CheckpointOptions` object that specifies
options for loading weights (only valid for a SavedModel file).
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Training-related part of the TF-Keras engine."""
import copy
import itertools
import json
import warnings
import weakref
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow.python.distribute import distribute_utils
from tensorflow.python.distribute import input_ops
from tensorflow.python.eager import context
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util.tf_export import keras_export
from tensorflow.tools.docs import doc_controls
from tf_keras.src import backend
from tf_keras.src import callbacks as callbacks_module
from tf_keras.src import optimizers
from tf_keras.src.dtensor import dtensor_api
from tf_keras.src.dtensor import layout_map as layout_map_lib
from tf_keras.src.engine import base_layer
from tf_keras.src.engine import base_layer_utils
from tf_keras.src.engine import compile_utils
from tf_keras.src.engine import data_adapter
from tf_keras.src.engine import input_layer as input_layer_module
from tf_keras.src.engine import training_utils
from tf_keras.src.metrics import base_metric
from tf_keras.src.mixed_precision import loss_scale_optimizer as lso
from tf_keras.src.optimizers import optimizer
from tf_keras.src.optimizers import optimizer_v1
from tf_keras.src.saving import pickle_utils
from tf_keras.src.saving import saving_api
from tf_keras.src.saving import saving_lib
from tf_keras.src.saving import serialization_lib
from tf_keras.src.saving.legacy import serialization
from tf_keras.src.saving.legacy.saved_model import json_utils
from tf_keras.src.saving.legacy.saved_model import model_serialization
from tf_keras.src.utils import generic_utils
from tf_keras.src.utils import io_utils
from tf_keras.src.utils import layer_utils
from tf_keras.src.utils import steps_per_execution_tuning
from tf_keras.src.utils import tf_inspect
from tf_keras.src.utils import tf_utils
from tf_keras.src.utils import traceback_utils
from tf_keras.src.utils import version_utils
from tf_keras.src.utils.mode_keys import ModeKeys
try:
import h5py
except ImportError:
h5py = None
@keras_export("keras.Model", "keras.models.Model")
class Model(base_layer.Layer, version_utils.ModelVersionSelector):
"""A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
"""
_TF_MODULE_IGNORED_PROPERTIES = frozenset(
itertools.chain(
(
"_train_counter",
"_test_counter",
"_predict_counter",
"_steps_per_execution",
"_compiled_trainable_state",
),
base_layer.Layer._TF_MODULE_IGNORED_PROPERTIES,
)
)
_SCALAR_UPRANKING_ON = False
def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, *args, **kwargs):
self._is_model_for_instrumentation = True
# Special case for Subclassed Functional Model, which we couldn't detect
# when __new__ is called. We only realize it is a functional model when
# it calls super.__init__ with input and output tensor.
from tf_keras.src.engine import functional
if is_functional_model_init_params(args, kwargs) and not isinstance(
self, functional.Functional
):
# Filter the kwargs for multiple inheritance.
support | (self, filepath, skip_mismatch=False, by_name=False, options=None) | [
0.024942101910710335,
-0.08747810125350952,
-0.039559438824653625,
0.04965827986598015,
-0.00267297332175076,
-0.002055916003882885,
-0.08698106557130814,
0.00023880961816757917,
-0.009330695495009422,
-0.024399882182478905,
-0.0193052776157856,
0.00976560078561306,
-0.02758542262017727,
0.0508330874145031,
0.05711380019783974,
0.03992091864347458,
0.0009750069002620876,
-0.007670148275792599,
0.0006516519351862371,
-0.01573566533625126,
0.027517644688487053,
-0.04254164919257164,
-0.045297931879758835,
0.03549279272556305,
0.018458059057593346,
0.05205308273434639,
-0.007122280541807413,
0.006365432403981686,
0.020231569185853004,
-0.025913579389452934,
-0.055577509105205536,
0.0008465121500194073,
-0.036102790385484695,
-0.009940693154931068,
0.0195876844227314,
-0.03497316688299179,
0.012990678660571575,
0.0643433928489685,
-0.03809092938899994,
-0.03759389370679855,
0.03578649461269379,
-0.04482349008321762,
0.0034397055860608816,
-0.01901157572865486,
-0.004577802028506994,
0.017656026408076286,
-0.006467098370194435,
0.00822366401553154,
0.019632868468761444,
-0.04857384040951729,
-0.042812757194042206,
-0.010499857366085052,
-0.00792431365698576,
0.03325613588094711,
-0.027020610868930817,
-0.048121992498636246,
-0.016978250816464424,
-0.04631459340453148,
0.011013835668563843,
-0.007551537826657295,
-0.009714768268167973,
-0.02469358593225479,
0.0017396212788298726,
0.017689915373921394,
-0.03264613822102547,
-0.001828579232096672,
-0.043874602764844894,
-0.047127921134233475,
0.002551538636907935,
0.044529784470796585,
-0.049613095819950104,
-0.04412312060594559,
0.05657158046960831,
0.029166897758841515,
0.009562268853187561,
0.00042643313645385206,
0.0006703613325953484,
-0.0407116562128067,
0.03809092938899994,
-0.04577237367630005,
-0.041728317737579346,
-0.002704037819057703,
-0.029392821714282036,
-0.03397909551858902,
0.011601240374147892,
-0.0288957878947258,
-0.007399038411676884,
-0.006003952585160732,
-0.013837896287441254,
-0.005823212675750256,
-0.009980229660868645,
0.04211239144206047,
0.023428406566381454,
0.04739903286099434,
0.0663767158985138,
-0.017938433215022087,
-0.05521602928638458,
-0.03777463361620903,
-0.006969781126827002,
-0.02489691786468029,
0.02153063751757145,
0.032962433993816376,
-0.024332106113433838,
0.010240043513476849,
-0.042270537465810776,
-0.04554644599556923,
-0.07229594886302948,
-0.017486583441495895,
-0.05598417669534683,
-0.028376160189509392,
-0.02760801464319229,
-0.009646990336477757,
-0.00895227212458849,
0.013386046513915062,
-0.027449868619441986,
0.03210391849279404,
0.00016882586351130158,
-0.01169161032885313,
-0.030364299193024635,
-0.002346794353798032,
0.0004087827692274004,
0.05598417669534683,
-0.04943235591053963,
-0.03897203505039215,
-0.017181584611535072,
0.012968085706233978,
0.05051679536700249,
0.02158711850643158,
0.04599829763174057,
-0.040440548211336136,
-0.039017219096422195,
-0.01762213744223118,
-0.003445353824645281,
0.060773782432079315,
0.013352158479392529,
-0.0038689628709107637,
-0.0021166333463042974,
0.02693024091422558,
-0.05982489883899689,
0.062174517661333084,
0.06700930744409561,
0.0056820097379386425,
0.05982489883899689,
0.02663653902709484,
-0.037616487592458725,
-0.021564526483416557,
-0.004877152387052774,
-0.06366562098264694,
-0.009488843381404877,
-0.04197683557868004,
-0.002817000262439251,
0.008528662845492363,
0.017576953396201134,
0.00912171509116888,
-0.005975712090730667,
0.03232984617352486,
-0.03594464063644409,
-0.06465969234704971,
0.028715047985315323,
-0.009675230830907822,
-0.06090933829545975,
-0.04645014554262161,
0.0234735906124115,
-0.03797796741127968,
0.013815304264426231,
0.003911323845386505,
-0.04132165387272835,
-0.023315442726016045,
0.005354418884962797,
0.02063823491334915,
0.04195424169301987,
0.01710250973701477,
0.03463427722454071,
0.01981360837817192,
0.010996891185641289,
0.04468793421983719,
0.052007898688316345,
-0.01174809131771326,
0.02041230909526348,
0.047444216907024384,
0.045297931879758835,
-0.01741880550980568,
-0.0903247520327568,
-0.03689352795481682,
-0.05404122173786163,
0.02235526219010353,
-0.049929387867450714,
0.025393951684236526,
0.041389431804418564,
-0.0006410617497749627,
0.03007059544324875,
0.02824060432612896,
0.021146565675735474,
0.03910759091377258,
-0.04351312294602394,
-0.00703755859285593,
-0.000034352047805441543,
0.047896064817905426,
0.04988420382142067,
0.020084718242287636,
-0.011454389430582523,
0.0097938422113657,
0.0386105552315712,
-0.0004306692280806601,
-0.07297372072935104,
0.006173396483063698,
0.008319682441651821,
-0.018401578068733215,
-0.049070876091718674,
-0.07694999873638153,
-0.036102790385484695,
0.013939562253654003,
0.04622422158718109,
0.07288335263729095,
0.07193446904420853,
-0.06371080130338669,
-0.029731709510087967,
0.02009601518511772,
-0.00408923951908946,
-0.030160965397953987,
0.033504653722047806,
0.027766162529587746,
-0.040011290460824966,
0.0010392542462795973,
0.028940971940755844,
-0.037277597934007645,
0.04358090087771416,
0.004942106083035469,
-0.017226768657565117,
-0.055577509105205536,
-0.02336062863469124,
-0.07550407946109772,
0.004027110058814287,
0.02500987984240055,
0.016910474747419357,
0.010166618041694164,
-0.04263201728463173,
-0.03596723452210426,
0.04035017639398575,
-0.0697655901312828,
-0.013081048615276814,
-0.06520190834999084,
-0.011155039072036743,
-0.031448736786842346,
-0.024851731956005096,
0.04272238910198212,
0.02575543150305748,
0.06953966617584229,
-0.037842411547899246,
-0.0508330874145031,
0.03343687579035759,
0.027110980823636055,
-0.01276475377380848,
0.08291441947221756,
-0.0244450680911541,
-0.031855400651693344,
0.03160688653588295,
-0.07803443819284439,
0.056752320379018784,
0.01471900288015604,
-0.012041794136166573,
0.02835356816649437,
-0.02575543150305748,
0.0883817970752716,
0.022287486121058464,
-0.05078790336847305,
0.02084156684577465,
0.020457495003938675,
0.04297090321779251,
-0.015216037631034851,
0.13374750316143036,
0.05639084056019783,
-0.05987008288502693,
0.005868397653102875,
-0.03655463829636574,
-0.019655460491776466,
0.0053939553909003735,
-0.0009594745351932943,
0.024919509887695312,
-0.0006982489721849561,
0.004004517570137978,
-0.0903247520327568,
-0.052233822643756866,
-0.00010237219248665497,
0.0026037837378680706,
-0.026049133390188217,
0.005441964603960514,
-0.04925161600112915,
-0.0025374183896929026,
-0.02033323608338833,
0.02007342129945755,
-0.017893247306346893,
0.08860772103071213,
0.001763625768944621,
-0.02238915115594864,
-0.02184693142771721,
-0.019971756264567375,
0.010364302434027195,
0.019836200401186943,
-0.03323354572057724,
0.007421630900353193,
0.05987008288502693,
0.07789888232946396,
0.002852301113307476,
0.007596722804009914,
-0.08241738379001617,
0.002584015252068639,
0.00960745383054018,
-0.023563960567116737,
-0.021621007472276688,
-0.013013270683586597,
-0.0007141343085095286,
0.0352894589304924,
-0.0333465076982975,
-0.009754304774105549,
-0.059237491339445114,
0.006410617381334305,
-0.018661390990018845,
0.056436024606227875,
0.057746388018131256,
0.01767861843109131,
0.06456931680440903,
0.005693305749446154,
0.003482066560536623,
-0.0017975145019590855,
-0.05539676919579506,
0.10022025555372238,
-0.015182149596512318,
-0.00020509739988483489,
0.018582317978143692,
-0.0026602649595588446,
-0.05715898424386978,
0.03580908849835396,
0.052866414189338684,
-0.08580625057220459,
-0.018751760944724083,
0.009234678000211716,
-0.00001763934596965555,
-0.010104488581418991,
0.0343179814517498,
0.051239755004644394,
0.05096864327788353,
-0.050923459231853485,
0.021282119676470757,
-0.009053938090801239,
-0.02783394046127796,
0.02683987095952034,
0.03183281049132347,
0.007415982894599438,
0.00456085754558444,
-0.005450436845421791,
-0.009624398313462734,
-0.031109850853681564,
0.0372324138879776,
0.016469920054078102,
0.031222812831401825,
-0.034159835427999496,
-0.008799772709608078,
0.020773788914084435,
-0.03754870966076851,
0.036419082432985306,
0.006687375251203775,
-0.033369097858667374,
0.026772093027830124,
0.0814233124256134,
-0.009341992437839508,
0.0031488274689763784,
-0.01567918434739113,
0.01687658578157425,
0.015498444437980652,
0.001998022897168994,
-0.07184410095214844,
0.07329002022743225,
0.014956224709749222,
-0.040530916303396225,
0.023338036611676216,
0.012843826785683632,
0.030477261170744896,
0.007365149911493063,
0.01113809458911419,
0.04468793421983719,
0.05304715409874916,
0.0032137809321284294,
0.048438284546136856,
0.05684268847107887,
-0.024648400023579597,
-0.032194290310144424,
-0.02272803895175457,
0.02369951643049717,
-0.012425865978002548,
0.013442528434097767,
-0.018175654113292694,
-0.014481781981885433,
0.021293416619300842,
-0.011098558083176613,
0.026139503344893456,
0.009234678000211716,
0.0488901361823082,
-0.025597283616662025,
-0.04699236527085304,
-0.03700648993253708,
-0.037819817662239075,
0.06551820039749146,
0.05566788092255592,
0.00900875311344862,
-0.011268001049757004,
0.024286920204758644,
0.01790454424917698,
-0.045727185904979706,
0.03409205749630928,
-0.005399603862315416,
0.01796102523803711,
-0.06949447840452194,
0.05273085832595825,
-0.00613950751721859,
0.06881670653820038,
0.012730864807963371,
-0.023631738498806953,
0.03492797911167145,
0.004202201962471008,
0.019745830446481705,
0.04098276421427727,
0.03330131992697716,
0.015385481528937817,
-0.02070601098239422,
0.022886186838150024,
-0.04059869423508644,
0.11278168112039566,
-0.007421630900353193,
0.017509175464510918,
-0.003312622895464301,
-0.05652639642357826,
-0.015871219336986542,
-0.03628353029489517,
-0.05173678696155548,
-0.00011155039101140574,
0.07148262113332748,
-0.009726064279675484,
0.002937022829428315,
0.020118607208132744,
-0.025710247457027435,
-0.019395647570490837,
0.0534990020096302,
0.025371359661221504,
-0.028647270053625107,
-0.027223942801356316,
-0.02369951643049717,
0.08621291816234589,
-0.03605760633945465,
-0.0042389146983623505,
0.04635977745056152,
-0.017317138612270355,
0.04236090928316116,
0.026681723073124886,
-0.017260657623410225,
-0.021688785403966904,
0.03833944350481033,
-0.010256987996399403,
-0.021598415449261665,
-0.00512566976249218,
-0.001314600114710629,
0.056436024606227875,
0.020231569185853004,
0.0032589659094810486,
-0.012798641808331013,
0.022253597155213356,
0.09158992767333984,
-0.007969498634338379,
-0.0543123297393322,
0.017802877351641655,
0.08006776124238968,
0.009567917324602604,
0.041931651532649994,
0.0059192306362092495,
-0.06773226708173752,
0.01710250973701477,
0.013555490411818027,
-0.020751196891069412,
0.014459189958870411,
-0.03452131524682045,
0.04220275953412056,
-0.05566788092255592,
-0.019937867298722267,
0.026320243254303932,
0.00881106872111559,
0.05941823124885559,
0.02781134843826294,
0.0010526685509830713,
0.010053655132651329,
0.008912734687328339,
-0.05467380955815315,
0.009336343966424465,
0.06872633844614029,
0.0027802875265479088,
-0.057972315698862076,
-0.030341705307364464,
0.03061281517148018,
-0.0028240603860467672,
0.009991525672376156,
0.0010378422448411584,
0.042270537465810776,
-0.0018794122152030468,
-0.03797796741127968,
-0.03275910019874573,
0.010036710649728775,
0.0420897975564003,
-0.04019203037023544,
0.0050352998077869415,
-0.021462859585881233,
-0.019632868468761444,
-0.03531205281615257,
-0.02510024979710579,
0.043242014944553375,
-0.011940128169953823,
-0.01293419674038887,
-0.010889577679336071,
0.05182715877890587,
0.03275910019874573,
-0.02650098316371441,
0.008398756384849548,
0.010929114185273647,
0.02469358593225479,
0.018458059057593346,
-0.03691611811518669,
0.00862468034029007,
0.05517084524035454,
-0.010595874860882759,
0.00037489403621293604,
0.09642472118139267,
0.012403273954987526,
0.006879411172121763,
-0.00700367009267211,
-0.013397343456745148,
0.053950853645801544,
-0.016537697985768318,
-0.06090933829545975,
0.03160688653588295,
-0.021067490801215172,
-0.06872633844614029,
-0.03117762878537178,
0.019824905321002007,
-0.005408075638115406,
0.022321375086903572,
-0.0008705166401341558,
0.009567917324602604,
0.00010952059528790414,
0.015351592563092709,
-0.001613950589671731,
-0.017079917713999748,
0.008788476698100567,
-0.04834791645407677,
0.0048263194039464,
-0.015193445608019829,
0.028421344235539436,
0.007043207064270973,
-0.0016153625911101699,
-0.006822930183261633,
0.029302451759576797,
-0.020593049004673958,
0.02966393157839775,
-0.011307538487017155,
0.03386613354086876,
0.04477830231189728,
-0.05408640578389168,
0.01955379545688629,
0.046811625361442566,
-0.0387687012553215,
-0.03251058608293533,
-0.08901438862085342,
0.010420783422887325,
-0.011714203283190727,
0.021462859585881233,
0.028285790234804153,
0.005241456441581249,
-0.07161817699670792,
0.002863597357645631,
-0.022795816883444786,
0.014165487140417099,
0.0021265174727886915,
-0.01618751510977745,
-0.007399038411676884,
-0.00021374608331825584,
-0.021519340574741364,
0.012572716921567917,
0.06375598907470703,
-0.042586833238601685,
0.03831685334444046,
0.031109850853681564,
-0.04202201962471008,
-0.02009601518511772,
0.00832532998174429,
0.029686523601412773,
-0.02392544038593769,
-0.05706861615180969,
-0.00673820823431015,
0.02663653902709484,
-0.06533746421337128,
-0.01964416541159153,
0.024603215977549553,
0.018153060227632523,
-0.08969216048717499,
-0.007342557422816753,
0.014470485970377922,
-0.0059361751191318035,
0.016978250816464424,
-0.006630894262343645,
-0.04543348401784897,
0.030386891216039658,
0.011205872520804405,
-0.00041125380084849894,
-0.014041229151189327,
-0.005077660549432039,
-0.0412764698266983,
-0.03865573927760124,
0.006015249062329531,
-0.011205872520804405,
-0.02124823071062565,
0.04785088077187538,
0.056752320379018784,
-0.049839019775390625,
0.07396779209375381,
0.015826035290956497,
-0.039446476846933365,
0.009025697596371174,
-0.06687375158071518,
0.017452694475650787,
0.0176447294652462,
-0.004077943507581949,
0.04511719197034836,
0.015317704528570175,
0.04240609332919121,
0.024761362001299858,
0.02478395588696003,
0.0037192876916378736,
0.08485736697912216,
-0.01818694919347763,
-0.001933069434016943,
0.0032985026482492685,
0.0011183279566466808,
-0.0001623834832571447,
-0.017893247306346893,
0.016865288838744164,
0.018717873841524124,
-0.006625245790928602,
0.009313751943409443,
-0.05313752219080925,
0.005554927047342062,
0.005501269828528166,
0.07821518182754517,
-0.011928831227123737,
-0.05639084056019783,
0.020739899948239326,
0.03698389604687691,
-0.05941823124885559,
0.021621007472276688,
-0.01855972595512867,
0.00811070203781128,
-0.04857384040951729,
0.04830273240804672,
-0.011510870419442654,
-0.0037672966718673706,
-0.03551538661122322,
0.061632297933101654,
0.023835070431232452,
-0.02101100981235504,
0.013035863637924194,
-0.027630608528852463,
-0.004467663820832968,
0.002903134096413851,
0.029505783692002296,
-0.054718997329473495,
-0.05833379551768303,
-0.01872916892170906,
0.0016492513241246343,
-0.007404686417430639,
-0.02564246952533722,
0.025348767638206482,
0.021654896438121796,
-0.010522449389100075,
-0.030386891216039658,
-0.005975712090730667,
0.031222812831401825,
-0.03264613822102547,
0.02552950754761696,
0.04412312060594559,
-0.045388299971818924,
-0.06881670653820038,
0.007331260945647955,
-0.006789041217416525,
-0.036306120455265045,
0.01055068988353014,
-0.008404403924942017,
0.023021740838885307,
-0.035108719021081924,
-0.0705789178609848,
-0.07541371136903763,
-0.021406378597021103,
0.018921205773949623,
-0.04534311592578888,
-0.020999714732170105,
0.0003337686648592353,
0.008748939260840416,
-0.0322168804705143,
-0.009517083875834942,
0.05462862551212311,
0.08648402988910675,
-0.10500986874103546,
-0.034679461270570755,
-0.018424170091748238,
-0.08860772103071213,
0.0412764698266983,
0.026049133390188217,
0.007421630900353193,
-0.0277209784835577,
-0.008551254868507385,
-0.030974294990301132,
-0.006241173483431339,
0.02467099204659462,
-0.01822083815932274,
0.012188645079731941,
0.037616487592458725,
0.04391979053616524,
0.030251335352659225,
-0.0032533176708966494,
-0.037277597934007645,
-0.00027269835118204355,
-0.016628067940473557,
-0.010522449389100075,
0.06316858530044556,
0.00665913475677371,
0.0504264235496521,
0.001736797159537673,
-0.023541368544101715,
-0.008799772709608078,
-0.012301607988774776,
-0.006495339330285788,
0.0234735906124115,
-0.01229031104594469,
-0.011804573237895966,
-0.03158429265022278,
0.05304715409874916,
-0.017147695645689964,
-0.09271955490112305,
0.0025458906311541796,
-0.010070599615573883,
0.08291441947221756,
0.033820949494838715,
-0.0420897975564003,
0.023948032408952713,
-0.008201071992516518,
0.008619032800197601,
-0.021316008642315865,
-0.008314033970236778,
0.026862462982535362,
0.059373047202825546,
-0.0023044333793222904,
-0.02063823491334915,
-0.025800617411732674,
-0.051465678960084915,
-0.08634847402572632,
0.01157864835113287,
-0.07265742868185043,
0.027969494462013245,
-0.009392824955284595,
0.05313752219080925,
0.0368257500231266,
0.013736230321228504,
0.019519906491041183
] |
725,030 | tf_keras.src.engine.training | make_predict_function | Creates a function that executes one step of inference.
This method can be overridden to support custom inference logic.
This method is called by `Model.predict` and `Model.predict_on_batch`.
Typically, this method directly controls `tf.function` and
`tf.distribute.Strategy` settings, and delegates the actual evaluation
logic to `Model.predict_step`.
This function is cached the first time `Model.predict` or
`Model.predict_on_batch` is called. The cache is cleared whenever
`Model.compile` is called. You can skip the cache and generate again the
function with `force=True`.
Args:
force: Whether to regenerate the predict function and skip the cached
function if available.
Returns:
Function. The function created by this method should accept a
`tf.data.Iterator`, and return the outputs of the `Model`.
| def make_predict_function(self, force=False):
"""Creates a function that executes one step of inference.
This method can be overridden to support custom inference logic.
This method is called by `Model.predict` and `Model.predict_on_batch`.
Typically, this method directly controls `tf.function` and
`tf.distribute.Strategy` settings, and delegates the actual evaluation
logic to `Model.predict_step`.
This function is cached the first time `Model.predict` or
`Model.predict_on_batch` is called. The cache is cleared whenever
`Model.compile` is called. You can skip the cache and generate again the
function with `force=True`.
Args:
force: Whether to regenerate the predict function and skip the cached
function if available.
Returns:
Function. The function created by this method should accept a
`tf.data.Iterator`, and return the outputs of the `Model`.
"""
if self.predict_function is not None and not force:
return self.predict_function
def step_function(model, iterator):
"""Runs a single evaluation step."""
def run_step(data):
outputs = model.predict_step(data)
# Ensure counter is updated only if `test_step` succeeds.
with tf.control_dependencies(_minimum_control_deps(outputs)):
model._predict_counter.assign_add(1)
return outputs
if self.jit_compile:
run_step = tf.function(
run_step, jit_compile=True, reduce_retracing=True
)
data = next(iterator)
outputs = model.distribute_strategy.run(run_step, args=(data,))
outputs = reduce_per_replica(
outputs, self.distribute_strategy, reduction="concat"
)
return outputs
# Special case if steps_per_execution is one.
if (
self._steps_per_execution is None
or self._steps_per_execution.numpy().item() == 1
and not self.autotune_steps_per_execution
):
def predict_function(iterator):
"""Runs an evaluation execution with a single step."""
return step_function(self, iterator)
else:
def predict_function(iterator):
"""Runs an evaluation execution with multiple steps."""
outputs = step_function(self, iterator)
for _ in tf.range(self._steps_per_execution - 1):
tf.autograph.experimental.set_loop_options(
shape_invariants=[
(
outputs,
tf.nest.map_structure(
lambda t: tf_utils.get_tensor_spec(
t, dynamic_batch=True
).shape,
outputs,
),
)
]
)
step_outputs = step_function(self, iterator)
outputs = tf.nest.map_structure(
lambda t1, t2: concat([t1, t2]), outputs, step_outputs
)
return outputs
if not self.run_eagerly:
predict_function = tf.function(
predict_function, reduce_retracing=True
)
self.predict_function = predict_function
return self.predict_function
| (self, force=False) | [
0.061950862407684326,
-0.027480073273181915,
-0.07021612673997879,
0.014734571799635887,
0.010746775195002556,
0.034625280648469925,
-0.06643109768629074,
-0.03167064115405083,
0.05492152273654938,
-0.016202235594391823,
0.025780674070119858,
0.00039769342401996255,
-0.028793245553970337,
-0.005489255767315626,
0.04576793685555458,
0.03296450152993202,
0.030724382027983665,
0.030743693932890892,
-0.005812720861285925,
0.0047916327603161335,
0.03730955719947815,
-0.005947900470346212,
-0.0481625460088253,
-0.021396992728114128,
0.0257034283131361,
-0.010486071929335594,
0.026224834844470024,
-0.029469143599271774,
0.04337332770228386,
0.04337332770228386,
-0.01921480894088745,
-0.04198290780186653,
0.02311570569872856,
-0.00937566813081503,
0.03953036665916443,
-0.044184405356645584,
-0.034277673810720444,
0.08574246615171432,
-0.058976911008358,
-0.054458051919937134,
0.004533343017101288,
-0.04990056902170181,
0.017428508028388023,
0.0010198814561590552,
-0.04314159229397774,
-0.0014628359349444509,
-0.019687937572598457,
-0.02751869708299637,
0.011094379238784313,
-0.0459996722638607,
0.00009278507786802948,
-0.025973787531256676,
0.025259265676140785,
0.023830225691199303,
0.008096289820969105,
0.015091832727193832,
-0.0000220270267163869,
-0.07697510719299316,
-0.03443216532468796,
-0.03707782179117203,
0.052102066576480865,
-0.05071164667606354,
-0.004072284325957298,
0.04163530468940735,
0.009955009445548058,
0.018423043191432953,
-0.021783219650387764,
-0.02720971405506134,
-0.011046101339161396,
0.02048935927450657,
-0.057934097945690155,
-0.05526912957429886,
0.05194757506251335,
-0.014232476241886616,
0.006522413808852434,
-0.008395615965127945,
0.03611225262284279,
-0.08396581560373306,
0.06337989866733551,
0.0007440910558216274,
-0.047312844544649124,
-0.008226641453802586,
-0.02715178020298481,
-0.07539156824350357,
-0.009399807080626488,
-0.0010977304773405194,
0.026456570252776146,
-0.019794149324297905,
-0.019137563183903694,
-0.0007404701900668442,
-0.02336675301194191,
0.05434218421578407,
0.00936118420213461,
0.03669159486889839,
0.05071164667606354,
0.0004915345925837755,
-0.017650587484240532,
-0.024583369493484497,
0.023926781490445137,
-0.01420350931584835,
0.05530774965882301,
0.10072808712720871,
0.004349885042756796,
-0.00013887588283978403,
0.0378502756357193,
-0.038719289004802704,
-0.05387870967388153,
0.027074534446001053,
-0.015873942524194717,
-0.013025516644120216,
-0.04140356928110123,
0.0459996722638607,
-0.006792773026973009,
0.010302613489329815,
-0.020470047369599342,
0.01528494618833065,
0.01152888499200344,
0.0039057238027453423,
-0.011046101339161396,
0.02493097260594368,
-0.023521242663264275,
0.03369833156466484,
-0.03371764346957207,
-0.048664640635252,
-0.02751869708299637,
-0.005020955111831427,
0.054805655032396317,
0.07666612416505814,
0.01027364656329155,
-0.06670145690441132,
-0.01702296920120716,
-0.026379326358437538,
0.016607774421572685,
0.0583975687623024,
-0.013797970488667488,
0.03454803302884102,
0.02379160188138485,
0.027113158255815506,
-0.04920535907149315,
0.026958666741847992,
0.012513765133917332,
0.004719214979559183,
0.050788890570402145,
0.03503081575036049,
-0.011895800940692425,
-0.05117511749267578,
-0.013556579127907753,
0.019514136016368866,
0.02738351747393608,
-0.031129920855164528,
0.06326403468847275,
0.047312844544649124,
-0.011915112845599651,
0.029276030138134956,
-0.059208646416664124,
0.048085302114486694,
0.006068596616387367,
0.007309352047741413,
-0.006860362831503153,
-0.02108801156282425,
-0.07349906116724014,
0.01102678943425417,
0.03308036923408508,
-0.012050292454659939,
0.018249239772558212,
0.022323938086628914,
-0.0064451685175299644,
0.01654018461704254,
0.023289507254958153,
0.04043800011277199,
0.01489871833473444,
0.014232476241886616,
0.06403648853302002,
-0.017660243436694145,
-0.020141754299402237,
0.0783655196428299,
0.058783795684576035,
-0.01778576709330082,
0.005305797792971134,
0.06071493402123451,
0.0028508403338491917,
-0.06894157826900482,
-0.08033528178930283,
-0.0557326003909111,
-0.011731654405593872,
0.02149355039000511,
-0.040746983140707016,
0.005518222693353891,
0.02191839925944805,
0.03491494804620743,
-0.0465017668902874,
0.030415400862693787,
0.05075027048587799,
0.028078725561499596,
-0.0005953331710770726,
-0.039375875145196915,
-0.0036353645846247673,
0.05244966968894005,
0.02877393551170826,
-0.017554031684994698,
-0.02282603457570076,
-0.03082093968987465,
0.05959487333893776,
0.04661763831973076,
-0.081184983253479,
0.049398474395275116,
-0.003060851478949189,
0.0021737355273216963,
-0.02908291667699814,
-0.026630373671650887,
-0.0746191143989563,
-0.02012244239449501,
0.049707453697919846,
0.0757777988910675,
0.04140356928110123,
-0.004637141712009907,
0.016182923689484596,
0.0246219914406538,
0.03477976843714714,
-0.01738988421857357,
0.021339058876037598,
-0.028252528980374336,
0.003186375368386507,
-0.010959199629724026,
0.06299367547035217,
-0.05418769270181656,
0.006647937465459108,
-0.026379326358437538,
-0.020952831953763962,
-0.0074783265590667725,
-0.030415400862693787,
-0.004499548114836216,
0.0010633320780470967,
-0.023984715342521667,
0.10428137332201004,
-0.04209877550601959,
-0.02384953759610653,
0.0017742316704243422,
0.01071780826896429,
0.006300332956016064,
-0.025877229869365692,
0.03296450152993202,
0.005494083743542433,
-0.021841155365109444,
-0.03296450152993202,
0.07160654664039612,
0.025143397971987724,
0.04642452299594879,
-0.016800887882709503,
-0.02180253155529499,
0.016057400032877922,
-0.025799984112381935,
-0.011374394409358501,
0.043334703892469406,
0.0032225842587649822,
-0.005358904134482145,
0.10459035634994507,
-0.012523421086370945,
0.06314816325902939,
0.1070622131228447,
-0.008603213354945183,
0.03022228740155697,
-0.04793081060051918,
0.021068699657917023,
-0.02985537052154541,
-0.06898020207881927,
-0.04005177319049835,
0.023637112230062485,
0.014647671021521091,
0.051445476710796356,
0.07114306837320328,
0.04854877293109894,
-0.05109787359833717,
-0.01306413859128952,
-0.000060498889070004225,
-0.0017380228964611888,
0.006739666685461998,
0.044725123792886734,
-0.03636329993605614,
-0.03188306465744972,
0.014213165268301964,
-0.07581642270088196,
-0.05333799123764038,
-0.0267848651856184,
-0.06650834530591965,
-0.03574533760547638,
0.015622895210981369,
0.020045198500156403,
0.07454187422990799,
-0.04611553996801376,
0.04487961530685425,
0.018509944900870323,
0.0465017668902874,
-0.004120562691241503,
0.026340702548623085,
-0.04372093081474304,
-0.03255896270275116,
-0.02692004293203354,
0.003582258243113756,
0.018886515870690346,
0.01627948135137558,
-0.008535623550415039,
0.0059285894967615604,
-0.008091461844742298,
0.03259758651256561,
-0.00018783321138471365,
0.006198948249220848,
0.010766086168587208,
-0.04178979620337486,
-0.008395615965127945,
-0.026282768696546555,
0.0032587929163128138,
-0.014522147364914417,
0.0020554536022245884,
-0.048934999853372574,
-0.062491580843925476,
0.02000657469034195,
-0.003239481709897518,
0.050364043563604355,
0.02612827718257904,
-0.02157079614698887,
0.07767031341791153,
0.014358000829815865,
0.03580327332019806,
0.018307175487279892,
-0.003147752722725272,
0.05592571571469307,
-0.049475718289613724,
-0.017969226464629173,
0.025799984112381935,
0.04090147092938423,
-0.027711810544133186,
-0.005648574326187372,
0.08751910924911499,
-0.05542362108826637,
-0.006256882566958666,
0.024699237197637558,
0.005368559621274471,
0.015371846966445446,
0.010109500028192997,
0.013402087613940239,
-0.0004981728852726519,
0.010688841342926025,
0.02738351747393608,
0.005001643672585487,
0.01484078448265791,
0.03491494804620743,
0.03918275982141495,
0.016868477687239647,
0.036131564527750015,
0.004007108509540558,
0.0006626212270930409,
0.0029256718698889017,
0.039124827831983566,
0.02666899561882019,
-0.005329936742782593,
-0.018828582018613815,
0.00039890038897283375,
-0.007729374337941408,
-0.03503081575036049,
-0.009829484857618809,
-0.024911662563681602,
-0.004127804655581713,
0.032771386206150055,
0.07875175029039383,
-0.027827678248286247,
-0.04298710078001022,
0.029778126627206802,
0.01616361364722252,
-0.0016257755924016237,
-0.02427438646554947,
-0.0305698923766613,
0.03327348455786705,
0.001878030365332961,
0.011384050361812115,
0.0033553498797118664,
0.0059141055680811405,
-0.012591010890901089,
0.025394445285201073,
0.050557155162096024,
0.0035098406951874495,
-0.014155231416225433,
-0.007043820805847645,
-0.02137768268585205,
0.05453529581427574,
0.0038188225589692593,
0.025124086067080498,
-0.04206015542149544,
0.061834994703531265,
-0.08157120645046234,
0.017428508028388023,
-0.03275207802653313,
-0.017978882417082787,
-0.03524324297904968,
0.006618970539420843,
-0.012175816111266613,
-0.0335245318710804,
0.033968690782785416,
-0.02888980321586132,
-0.024911662563681602,
-0.053917333483695984,
0.009955009445548058,
0.07720684260129929,
0.04221464693546295,
-0.0026504849083721638,
-0.03358246386051178,
0.040824227035045624,
0.017013313248753548,
-0.022130824625492096,
0.05561673268675804,
-0.016501562669873238,
-0.02751869708299637,
-0.0643068477511406,
-0.009926041588187218,
0.013759348541498184,
0.06110116094350815,
-0.03487632796168327,
-0.002232876606285572,
0.008014217019081116,
-0.006348611321300268,
0.04530446231365204,
0.07940833270549774,
0.018480977043509483,
0.05384008586406708,
0.02240118384361267,
0.02854219824075699,
0.0083811329677701,
0.0714520514011383,
-0.030241599306464195,
0.033543843775987625,
0.005532706156373024,
-0.10358616709709167,
-0.0573161318898201,
0.0045381709933280945,
-0.0208369642496109,
0.019929328933358192,
0.021879777312278748,
0.001311965868808329,
-0.00015298221842385828,
0.017718177288770676,
-0.016501562669873238,
-0.008188019506633282,
0.02883186936378479,
0.004137460142374039,
-0.0016076711472123861,
0.011905456893146038,
-0.004562309943139553,
-0.019745871424674988,
-0.006044457666575909,
-0.024119894951581955,
0.03821719437837601,
0.01994864083826542,
0.015980154275894165,
0.002858082065358758,
0.007936971262097359,
-0.015951188281178474,
-0.014773194678127766,
-0.06967540830373764,
-0.07419426739215851,
0.02043142542243004,
-0.006816911976784468,
0.038468241691589355,
0.016897445544600487,
-0.02048935927450657,
0.014049018733203411,
-0.05550086498260498,
-0.0205472931265831,
0.03449010103940964,
-0.07094995677471161,
-0.04372093081474304,
0.03759922832250595,
-0.06198948249220848,
0.0378502756357193,
-0.01316069532185793,
-0.04399129003286362,
0.023443998768925667,
-0.008250781334936619,
-0.027962857857346535,
0.014618704095482826,
-0.0057306475937366486,
0.002158045070245862,
0.0012341169640421867,
-0.02108801156282425,
0.047312844544649124,
0.02686210907995701,
0.005938244983553886,
-0.010901265777647495,
-0.02408127300441265,
0.01994864083826542,
0.04611553996801376,
-0.03188306465744972,
0.011789589188992977,
0.08195743709802628,
0.019359644502401352,
-0.07249486446380615,
-0.009394979104399681,
0.06786014139652252,
0.026108967140316963,
0.03207617998123169,
-0.03611225262284279,
0.03335072845220566,
-0.04395266994833946,
-0.011886145919561386,
0.016182923689484596,
-0.014676637947559357,
-0.0006752943154424429,
-0.02108801156282425,
0.004526101518422365,
-0.05561673268675804,
0.01850028894841671,
-0.0015533579280599952,
-0.03141959384083748,
0.030415400862693787,
-0.009076341986656189,
0.004103665240108967,
-0.024100584909319878,
0.03605432063341141,
-0.04684937372803688,
-0.05430356040596962,
-0.01756368763744831,
0.01949482411146164,
-0.02137768268585205,
-0.0196106918156147,
-0.0346059687435627,
0.0025322027504444122,
0.05368559807538986,
0.047003865242004395,
-0.012591010890901089,
0.09246282279491425,
-0.0008104738662950695,
-0.023463308811187744,
-0.012156505137681961,
0.03898964822292328,
0.04572931304574013,
0.015835320577025414,
-0.056852661073207855,
0.035474978387355804,
-0.04379817843437195,
-0.035108063369989395,
-0.001270929235033691,
0.013122073374688625,
0.01141301728785038,
-0.035474978387355804,
-0.0227101668715477,
0.0003285949642304331,
-0.03771509602665901,
0.027190402150154114,
-0.0028653237968683243,
-0.010225367732346058,
-0.02968156896531582,
-0.06670145690441132,
0.03122647851705551,
0.04835566133260727,
-0.005692025180906057,
-0.028967048972845078,
0.04294847697019577,
0.022961214184761047,
0.04437751695513725,
0.007005197927355766,
0.005189929623156786,
-0.036015696823596954,
0.012890337035059929,
0.030724382027983665,
-0.06403648853302002,
0.026591749861836433,
0.03543635457754135,
-0.02487303875386715,
-0.004798874258995056,
-0.03746404871344566,
-0.02299983613193035,
0.06187361478805542,
-0.0025008218362927437,
0.048394281417131424,
-0.019794149324297905,
-0.030975431203842163,
-0.004526101518422365,
0.0026963495183736086,
-0.04684937372803688,
0.01645328290760517,
-0.05716164410114288,
-0.04078560322523117,
-0.020257622003555298,
0.02421645261347294,
0.009882591664791107,
-0.02775043249130249,
-0.01570979692041874,
0.01813337206840515,
0.0616418793797493,
-0.004909914918243885,
-0.06326403468847275,
-0.05461254343390465,
0.016405005007982254,
-0.05017092823982239,
-0.026031721383333206,
0.01549737062305212,
-0.009897074662148952,
-0.03105267696082592,
0.012243405915796757,
-0.01585463061928749,
-0.062259841710329056,
-0.060212839394807816,
0.055346373468637466,
0.013382776640355587,
-0.009718445129692554,
0.03599638491868973,
-0.046887997537851334,
-0.07917659729719162,
0.023946093395352364,
0.035223931074142456,
-0.03232722729444504,
-0.03082093968987465,
0.0014242131728678942,
0.018664434552192688,
-0.03207617998123169,
0.012262716889381409,
0.007975594140589237,
-0.019427234306931496,
0.03593845292925835,
-0.00920669361948967,
-0.03503081575036049,
0.059208646416664124,
-0.029218096286058426,
-0.036015696823596954,
-0.010244679637253284,
-0.0123109957203269,
0.03141959384083748,
0.03358246386051178,
-0.07199276983737946,
0.0508275143802166,
0.009028063155710697,
0.014609048143029213,
0.03808201476931572,
0.013131728395819664,
-0.03327348455786705,
0.10914783924818039,
-0.03404593840241432,
0.012938614934682846,
0.05051853135228157,
-0.0185292549431324,
-0.08620593696832657,
-0.030550580471754074,
0.05005506053566933,
-0.021300436928868294,
0.0006463272729888558,
-0.00007690600614296272,
-0.05669816955924034,
0.014261443167924881,
0.022903280332684517,
0.1103065237402916,
0.014946997165679932,
-0.03989728167653084,
0.03393007069826126,
0.05542362108826637,
0.017525063827633858,
0.04252362623810768,
-0.009694305248558521,
0.005600295960903168,
-0.05716164410114288,
0.015951188281178474,
-0.038835156708955765,
-0.012986893765628338,
-0.005035438574850559,
-0.05183170735836029,
-0.05059577897191048,
-0.004301606677472591,
-0.005373387597501278,
-0.019871395081281662,
-0.02991330623626709,
-0.030724382027983665,
-0.03433560952544212,
-0.037637852132320404,
0.023463308811187744,
-0.003319140989333391,
-0.03122647851705551,
0.06415235996246338,
-0.03416180610656738,
-0.004581621382385492,
0.0045478264801204205,
0.01378831546753645,
-0.028909115120768547,
-0.011461295187473297,
-0.018480977043509483,
-0.016800887882709503,
0.016800887882709503,
-0.05418769270181656,
-0.08427479863166809,
0.010486071929335594,
0.005629262886941433,
-0.038410305976867676,
-0.040283508598804474,
-0.002636001445353031,
-0.013807626441121101,
0.037155069410800934,
-0.016067055985331535,
-0.010650218464434147,
-0.048741888254880905,
-0.06967540830373764,
0.02888980321586132,
-0.013865560293197632,
0.002258222782984376,
-0.007753513287752867,
0.018065782263875008,
-0.0145993921905756,
-0.038835156708955765,
0.010225367732346058,
0.10976580530405045,
-0.10868436843156815,
-0.04294847697019577,
-0.05708439648151398,
-0.033003125339746475,
0.03437422960996628,
0.011306804604828358,
0.015236667357385159,
-0.024834416806697845,
-0.04410715773701668,
-0.029237408190965652,
-0.01787266880273819,
-0.0006481377058662474,
-0.012803435325622559,
0.034934259951114655,
-0.0036305368412286043,
0.003999866545200348,
-0.010302613489329815,
-0.014705604873597622,
-0.05503739416599274,
0.003982969094067812,
-0.031863752752542496,
-0.025317201390862465,
0.05233380198478699,
0.02805941365659237,
0.04596105217933655,
0.02222738228738308,
0.0022509810514748096,
-0.01793060265481472,
-0.02390747144818306,
-0.015371846966445446,
0.03491494804620743,
-0.03794683516025543,
-0.04576793685555458,
-0.048201169818639755,
0.04406853765249252,
-0.020470047369599342,
-0.05611882731318474,
0.02031555585563183,
0.01781473495066166,
0.029585013166069984,
-0.001103765214793384,
-0.01607671193778515,
0.07172241061925888,
-0.025510314851999283,
0.04673350602388382,
0.03566809371113777,
-0.0012298926012590528,
-0.012619977816939354,
0.05808858945965767,
0.02114594541490078,
0.03532048687338829,
-0.02276810072362423,
-0.012919303961098194,
-0.029488455504179,
-0.030048485845327377,
-0.05071164667606354,
-0.013942806050181389,
-0.031554773449897766,
0.03190237656235695,
-0.00752177694812417,
0.03929862752556801,
0.025239955633878708
] |
725,031 | tf_keras.src.engine.training | make_test_function | Creates a function that executes one step of evaluation.
This method can be overridden to support custom evaluation logic.
This method is called by `Model.evaluate` and `Model.test_on_batch`.
Typically, this method directly controls `tf.function` and
`tf.distribute.Strategy` settings, and delegates the actual evaluation
logic to `Model.test_step`.
This function is cached the first time `Model.evaluate` or
`Model.test_on_batch` is called. The cache is cleared whenever
`Model.compile` is called. You can skip the cache and generate again the
function with `force=True`.
Args:
force: Whether to regenerate the test function and skip the cached
function if available.
Returns:
Function. The function created by this method should accept a
`tf.data.Iterator`, and return a `dict` containing values that will
be passed to `tf.keras.Callbacks.on_test_batch_end`.
| def make_test_function(self, force=False):
"""Creates a function that executes one step of evaluation.
This method can be overridden to support custom evaluation logic.
This method is called by `Model.evaluate` and `Model.test_on_batch`.
Typically, this method directly controls `tf.function` and
`tf.distribute.Strategy` settings, and delegates the actual evaluation
logic to `Model.test_step`.
This function is cached the first time `Model.evaluate` or
`Model.test_on_batch` is called. The cache is cleared whenever
`Model.compile` is called. You can skip the cache and generate again the
function with `force=True`.
Args:
force: Whether to regenerate the test function and skip the cached
function if available.
Returns:
Function. The function created by this method should accept a
`tf.data.Iterator`, and return a `dict` containing values that will
be passed to `tf.keras.Callbacks.on_test_batch_end`.
"""
if self.test_function is not None and not force:
return self.test_function
def step_function(model, iterator):
"""Runs a single evaluation step."""
def run_step(data):
outputs = model.test_step(data)
# Ensure counter is updated only if `test_step` succeeds.
with tf.control_dependencies(_minimum_control_deps(outputs)):
model._test_counter.assign_add(1)
return outputs
if self.jit_compile:
run_step = tf.function(
run_step, jit_compile=True, reduce_retracing=True
)
data = next(iterator)
outputs = model.distribute_strategy.run(run_step, args=(data,))
outputs = reduce_per_replica(
outputs,
self.distribute_strategy,
reduction=self.distribute_reduction_method,
)
return outputs
# Special case if steps_per_execution is one.
if (
self._steps_per_execution is None
or self._steps_per_execution.numpy().item() == 1
and not self.autotune_steps_per_execution
):
def test_function(iterator):
"""Runs a test execution with a single step."""
return step_function(self, iterator)
if not self.run_eagerly:
test_function = tf.function(
test_function, reduce_retracing=True
)
if self._cluster_coordinator:
self.test_function = (
lambda it: self._cluster_coordinator.schedule(
test_function, args=(it,)
)
)
else:
self.test_function = test_function
# If we're using a coordinator, use the value of
# self._steps_per_execution at the time the function is
# called/scheduled, and not when it is actually executed.
elif self._cluster_coordinator:
def test_function(iterator, steps_per_execution):
"""Runs a test execution with multiple steps."""
for _ in tf.range(steps_per_execution):
outputs = step_function(self, iterator)
return outputs
if not self.run_eagerly:
test_function = tf.function(
test_function, reduce_retracing=True
)
self.test_function = lambda it: self._cluster_coordinator.schedule(
test_function, args=(it, self._steps_per_execution.value())
)
else:
def test_function(iterator):
"""Runs a test execution with multiple steps."""
for _ in tf.range(self._steps_per_execution):
outputs = step_function(self, iterator)
return outputs
if not self.run_eagerly:
test_function = tf.function(
test_function, reduce_retracing=True
)
self.test_function = test_function
return self.test_function
| (self, force=False) | [
0.025099359452724457,
-0.004320579115301371,
-0.029398253187537193,
0.00925322063267231,
0.026660840958356857,
0.05455544590950012,
-0.08890802413225174,
0.006395324598997831,
0.032019998878240585,
-0.030458517372608185,
-0.009224303998053074,
0.024096928536891937,
0.018390774726867676,
0.005691694561392069,
0.057716961950063705,
0.029417529702186584,
0.03622250258922577,
-0.014496712014079094,
0.027412666007876396,
0.014554544351994991,
-0.01675218529999256,
-0.014361768960952759,
0.0037277948576956987,
0.004166359081864357,
0.014814791269600391,
0.005277227144688368,
0.05910494551062584,
-0.031499505043029785,
0.06076281517744064,
0.019104044884443283,
-0.030786234885454178,
-0.040984056890010834,
-0.0009144784417003393,
0.040251508355140686,
0.0318850539624691,
-0.04992883652448654,
-0.0477311946451664,
0.04530222341418266,
-0.06569786369800568,
-0.028627149760723114,
-0.011248446069657803,
-0.014959372580051422,
0.006751959212124348,
0.008303801529109478,
-0.05393856391310692,
-0.012617151252925396,
-0.023653544485569,
0.015634087845683098,
0.0006012183730490506,
-0.027142779901623726,
0.0050603547133505344,
-0.08281632512807846,
0.00964359100908041,
0.06392432749271393,
-0.007282091770321131,
-0.003404896007850766,
0.019653454422950745,
-0.1058722659945488,
0.0036796010099351406,
-0.01054481603205204,
0.03163444623351097,
-0.00591338612139225,
-0.0017181109869852662,
0.029166921973228455,
-0.0029928383883088827,
-0.004327808506786823,
-0.048193857073783875,
-0.009768894873559475,
0.014969011768698692,
0.053630124777555466,
-0.05039149522781372,
0.003012116067111492,
0.10309629887342453,
-0.0441841259598732,
-0.003901292569935322,
-0.0034747770987451077,
0.0040097287856042385,
-0.06870516389608383,
0.039711736142635345,
-0.031981442123651505,
-0.0010897836182266474,
0.013532835058867931,
-0.02105107717216015,
-0.05509521812200546,
-0.01414971612393856,
0.003469957737252116,
0.04268047958612442,
-0.009426718577742577,
-0.017812449485063553,
-0.017137736082077026,
-0.002980790100991726,
0.009653229266405106,
-0.011691829189658165,
-0.03622250258922577,
0.03556706756353378,
-0.000012312024409766309,
-0.03363931179046631,
-0.0124532924965024,
0.000501517322845757,
-0.022940276190638542,
0.053630124777555466,
0.1212942972779274,
0.04156238213181496,
0.03271399065852165,
0.05224214121699333,
-0.050275832414627075,
-0.07568363100290298,
0.018969101831316948,
-0.01880524307489395,
0.010226735845208168,
-0.04248770326375961,
0.04711431264877319,
0.01644374430179596,
0.029147643595933914,
-0.009739978238940239,
-0.0132340332493186,
-0.0025783712044358253,
-0.0075567965395748615,
-0.005161562003195286,
0.0028554860036820173,
0.01852571777999401,
0.03620322421193123,
-0.015171426348388195,
-0.04884929209947586,
0.01079542376101017,
0.0030458515975624323,
0.04761552810668945,
0.10193964093923569,
0.02056913822889328,
-0.04241059347987175,
0.03493090718984604,
-0.01647266000509262,
0.034564632922410965,
0.07641617953777313,
-0.030130797997117043,
0.03298387676477432,
0.03705143555998802,
0.05683019384741783,
-0.00782186258584261,
-0.00026371076819486916,
0.021398073062300682,
0.019142599776387215,
0.022419782355427742,
0.02723916806280613,
0.02621745690703392,
-0.028395820409059525,
-0.05559643357992172,
0.05424700304865837,
0.01802450232207775,
-0.011479776352643967,
0.0744113102555275,
0.0585651732981205,
-0.017426898702979088,
0.02234267257153988,
-0.05328312888741493,
0.01183641143143177,
-0.0006307371077127755,
-0.006573642138391733,
0.023287272080779076,
-0.011479776352643967,
-0.04136960580945015,
0.008973696269094944,
0.02695000357925892,
0.029513917863368988,
0.03157661482691765,
0.011980992741882801,
-0.02905125729739666,
-0.009532744996249676,
-0.014564183540642262,
0.013870191760361195,
-0.0066411131992936134,
0.0016422056360170245,
0.04904206842184067,
0.01400513481348753,
0.003031393513083458,
0.04310458526015282,
0.017581118270754814,
-0.03157661482691765,
-0.007489325478672981,
0.011768939904868603,
-0.03572128713130951,
-0.034082695841789246,
-0.06388577818870544,
-0.03579839691519737,
-0.014091883786022663,
0.025311414152383804,
-0.031499505043029785,
-0.018361859023571014,
0.010833978652954102,
0.01649193838238716,
-0.06616052240133286,
0.021417349576950073,
0.0365694984793663,
0.030265741050243378,
0.01347500178962946,
-0.023846320807933807,
-0.01906548999249935,
0.06392432749271393,
0.042256373912096024,
0.01746545359492302,
-0.04908062145113945,
0.0021000471897423267,
0.07869093120098114,
-0.00418804632499814,
-0.06643041223287582,
0.02392343059182167,
-0.023557156324386597,
0.033253759145736694,
-0.047692641615867615,
0.006559183821082115,
-0.03849725052714348,
-0.016520854085683823,
-0.007754391524940729,
0.10409872978925705,
0.030400684103369713,
-0.03936474025249481,
0.030458517372608185,
0.040984056890010834,
0.017793171107769012,
-0.0005069391336292028,
0.016019638627767563,
-0.02669939585030079,
0.03036212921142578,
-0.05328312888741493,
0.07402576506137848,
-0.03336942568421364,
0.03905630111694336,
-0.05016016587615013,
-0.02721988968551159,
-0.01336897537112236,
-0.019451040774583817,
-0.005176020320504904,
0.01772570051252842,
-0.01748473010957241,
0.0452251136302948,
-0.06296045333147049,
-0.017629312351346016,
0.02257400192320347,
-0.018159445375204086,
-0.019605260342359543,
-0.04711431264877319,
-0.012385820969939232,
0.0390755794942379,
-0.02801026962697506,
-0.037417709827423096,
0.04499378427863121,
0.013214755803346634,
0.03527790307998657,
-0.019460679963231087,
0.001645820215344429,
0.006082064472138882,
-0.010082154534757137,
-0.002604878041893244,
0.03261760249733925,
-0.05424700304865837,
0.024501755833625793,
0.09746725112199783,
-0.007551977410912514,
0.060068823397159576,
0.05420845001935959,
0.0048844474367797375,
-0.0053398790769279,
-0.06253635138273239,
0.03427547216415405,
-0.04753841832280159,
-0.09122133255004883,
-0.02881992608308792,
0.0493890643119812,
0.014689487405121326,
0.040251508355140686,
0.0689750462770462,
0.03568273037672043,
-0.0452251136302948,
-0.024598143994808197,
-0.006718223448842764,
-0.00846284069120884,
0.02162940241396427,
0.036087557673454285,
0.00901707075536251,
-0.03651166707277298,
0.0110460314899683,
-0.028145212680101395,
-0.05833384394645691,
-0.0313645601272583,
-0.07159679383039474,
-0.03290676325559616,
-0.008313439786434174,
0.004561548586934805,
0.0664689689874649,
-0.049736060202121735,
-0.010149626061320305,
-0.028492208570241928,
0.04518656060099602,
0.008337536826729774,
0.057755518704652786,
-0.009638771414756775,
-0.06504242867231369,
-0.04402990639209747,
0.009976128116250038,
0.02747049741446972,
0.014969011768698692,
-0.013667777180671692,
-0.011074948124587536,
0.0028024727944284678,
0.02777893841266632,
-0.015778668224811554,
-0.029398253187537193,
-0.02623673528432846,
-0.022516170516610146,
-0.011026754043996334,
-0.02033780701458454,
-0.0037061076145619154,
-0.0032121206168085337,
-0.01105567067861557,
0.00938334409147501,
-0.030497072264552116,
-0.011084587313234806,
-0.02161012589931488,
0.05571209639310837,
0.027913881465792656,
-0.008790559135377407,
0.05783262848854065,
0.032752543687820435,
0.08520673960447311,
0.0013253310462459922,
0.00822187215089798,
0.04707575961947441,
-0.057485632598400116,
-0.05806395784020424,
0.01374488789588213,
0.01477623637765646,
-0.03211638703942299,
0.017128096893429756,
0.06292189657688141,
-0.0571000799536705,
0.021706512197852135,
0.03321520611643791,
0.015788307413458824,
0.02747049741446972,
-0.0065013510175049305,
0.03876713663339615,
0.01477623637765646,
0.012038825079798698,
-0.0014542496064677835,
-0.01594252698123455,
0.01695459894835949,
0.00846284069120884,
0.04322025179862976,
0.0452251136302948,
-0.016106387600302696,
0.05235780403017998,
-0.025002973154187202,
-0.029648860916495323,
-0.006009773816913366,
0.03217421844601631,
0.037706874310970306,
-0.00353742903098464,
-0.005556751508265734,
-0.0019771528895944357,
-0.042834699153900146,
0.006250743288546801,
-0.031711556017398834,
-0.008752004243433475,
0.05247347056865692,
0.08435852825641632,
-0.013667777180671692,
0.007344743702560663,
-0.0010301436996087432,
0.025774074718356133,
-0.03753337636590004,
-0.021147463470697403,
-0.02955247275531292,
0.06504242867231369,
-0.011142419651150703,
0.0329260416328907,
-0.019335374236106873,
0.012944869697093964,
-0.015113593079149723,
0.007788127288222313,
0.07579929381608963,
0.014969011768698692,
-0.021436627954244614,
-0.0123472660779953,
-0.03780326247215271,
-0.007619448471814394,
0.014814791269600391,
-0.015325645916163921,
-0.020414916798472404,
0.04190937802195549,
-0.09947212040424347,
0.029976578429341316,
-0.013195477426052094,
0.005672416649758816,
-0.015132870525121689,
0.014747319743037224,
0.021147463470697403,
-0.012655707076191902,
0.015354562550783157,
-0.03086334466934204,
-0.03697432577610016,
-0.03082478977739811,
0.002154265297576785,
0.04568777605891228,
0.024328257888555527,
0.0043446761555969715,
-0.033060986548662186,
0.027412666007876396,
0.00873272679746151,
-0.017619673162698746,
0.07306188344955444,
-0.029976578429341316,
-0.04422268271446228,
-0.07487397640943527,
0.0075567965395748615,
-0.023807764053344727,
0.04572632908821106,
-0.07703305780887604,
0.03651166707277298,
0.014448517933487892,
0.014969011768698692,
0.04136960580945015,
0.04746130853891373,
-0.010033960454165936,
0.052319251000881195,
0.047654084861278534,
0.0007361611351370811,
0.012617151252925396,
0.05197225511074066,
-0.03840086609125137,
0.04275758937001228,
-0.006983289960771799,
-0.08937069028615952,
-0.05224214121699333,
0.027354832738637924,
-0.0395960733294487,
-0.019123321399092674,
-0.01374488789588213,
0.00014375323371496052,
0.031480226665735245,
0.04904206842184067,
-0.016877489164471626,
-0.030535627156496048,
0.024829475209116936,
0.004065151792019606,
-0.03680082783102989,
0.018063057214021683,
0.0012295458000153303,
-0.01374488789588213,
-0.027894603088498116,
0.026680119335651398,
0.03597189486026764,
0.047692641615867615,
-0.022053508087992668,
0.0025301773566752672,
0.00270126573741436,
-0.003233807859942317,
-0.035123683512210846,
-0.053822897374629974,
-0.042564813047647476,
0.02006792090833187,
0.01744617521762848,
0.054131340235471725,
-0.017648590728640556,
-0.0328296534717083,
-0.022246284410357475,
-0.02721988968551159,
-0.02311377413570881,
0.04160093516111374,
-0.006954373326152563,
0.0020048643928021193,
-0.0006620630738325417,
-0.029995856806635857,
0.00018283544341102242,
-0.02774038352072239,
-0.0006036280537955463,
0.024058373644948006,
-0.05891216918826103,
-0.0109400050714612,
0.020877579227089882,
0.010573731735348701,
0.0038675570394843817,
-0.0252150259912014,
0.006544725503772497,
0.05235780403017998,
0.013070173561573029,
0.00643387995660305,
-0.009889379143714905,
-0.023287272080779076,
0.02750905230641365,
0.03288748860359192,
-0.025137916207313538,
-0.02752833068370819,
0.054902441799640656,
0.013137645088136196,
-0.09908656775951385,
-0.032791100442409515,
0.077302947640419,
0.04576488584280014,
-0.004836253356188536,
0.009686965495347977,
0.04387568682432175,
0.038208089768886566,
-0.052010808140039444,
0.05829528719186783,
0.032270606607198715,
-0.0067712366580963135,
0.0015928068896755576,
-0.044839564710855484,
-0.08582361787557602,
-0.035374291241168976,
-0.012742455117404461,
0.0025422258768230677,
0.035374291241168976,
-0.014795513823628426,
-0.012270155362784863,
-0.0664689689874649,
0.026930727064609528,
-0.049196287989616394,
-0.0421021543443203,
-0.0254270788282156,
0.0020675163250416517,
-0.022304115816950798,
-0.0033060985151678324,
-0.0007777283317409456,
0.016626879572868347,
0.03340798243880272,
0.017311234027147293,
0.04136960580945015,
0.08366453647613525,
0.012520764023065567,
-0.018323304131627083,
0.0007970058941282332,
0.024096928536891937,
0.0667002946138382,
0.017282316461205482,
-0.030400684103369713,
0.017031708732247353,
-0.04449256882071495,
-0.004142262041568756,
-0.0038314114790409803,
0.026333123445510864,
0.0318850539624691,
0.014843707904219627,
-0.024251148104667664,
0.007542338687926531,
-0.030901901423931122,
0.07699450105428696,
-0.006207368802279234,
-0.011190613731741905,
-0.056907303631305695,
-0.021687235683202744,
0.021186018362641335,
0.04753841832280159,
-0.02107035368680954,
-0.0054748221300542355,
-0.011797855608165264,
0.02078119106590748,
0.048463743180036545,
0.00835199560970068,
-0.022940276190638542,
-0.05081560090184212,
0.037186380475759506,
0.01039059553295374,
-0.02978380396962166,
0.03007296659052372,
0.011479776352643967,
0.010101431980729103,
-0.014641293324530125,
-0.038439419120550156,
-0.01441960223019123,
0.032232049852609634,
-0.026545176282525063,
0.03367786854505539,
-0.01440996304154396,
-0.07552941143512726,
-0.02415475994348526,
-0.026256013661623,
-0.026313845068216324,
-0.0022867985535413027,
-0.07360165566205978,
-0.0575241856276989,
-0.022227006033062935,
0.029398253187537193,
-0.008154400624334812,
-0.040482837706804276,
0.0039302087388932705,
0.016771461814641953,
0.08243077248334885,
0.002648252295330167,
-0.05991460382938385,
-0.02213061787188053,
0.030940456315875053,
-0.05999171361327171,
-0.052589137107133865,
-0.012231600470840931,
-0.03496946021914482,
-0.04117682948708534,
0.03502729535102844,
-0.005045896861702204,
-0.03194288909435272,
-0.05274335667490959,
0.055904872715473175,
0.017417259514331818,
-0.017099179327487946,
0.017426898702979088,
-0.030188631266355515,
-0.0664689689874649,
0.029224755242466927,
0.029436808079481125,
-0.02955247275531292,
-0.027065670117735863,
0.010670119896531105,
0.045841995626688004,
-0.052512027323246,
0.0386514738202095,
-0.005363976117223501,
-0.03427547216415405,
0.02162940241396427,
0.030400684103369713,
-0.0827392116189003,
0.04009728878736496,
0.012472569942474365,
-0.042025040835142136,
-0.006009773816913366,
-0.006665210239589214,
-0.0016265426529571414,
0.025292135775089264,
-0.08913935720920563,
0.036665886640548706,
-0.03140311688184738,
-0.023441491648554802,
0.005296504590660334,
0.01672326773405075,
-0.032482657581567764,
0.11435437947511673,
-0.0869031623005867,
0.020260697230696678,
0.0554422102868557,
0.005388073157519102,
-0.072098009288311,
-0.0047446852549910545,
0.06400144100189209,
0.023190883919596672,
-0.0033157372381538153,
-0.023846320807933807,
-0.04788541421294212,
0.03493090718984604,
0.02137879468500614,
0.12268228083848953,
0.0022398093715310097,
-0.04545644670724869,
0.09206954389810562,
0.04117682948708534,
0.010101431980729103,
0.038439419120550156,
-0.00552301574498415,
0.020935410633683205,
-0.044107016175985336,
0.029456084594130516,
-0.05262769013643265,
-0.0016060603084042668,
0.0259475726634264,
-0.03633816912770271,
0.002104866784065962,
-0.02695000357925892,
-0.024868030101060867,
0.04117682948708534,
0.007123052142560482,
-0.05482533201575279,
-0.022284839302301407,
-0.039441850036382675,
0.029359696432948112,
-0.012665345333516598,
-0.04310458526015282,
0.05494099482893944,
-0.016260607168078423,
0.0011024344712495804,
0.022458337247371674,
-0.021667957305908203,
-0.04962039366364479,
-0.023248715326189995,
0.02265111170709133,
-0.03088262304663658,
-0.010506260208785534,
-0.029918745160102844,
-0.036357443779706955,
-0.04468534514307976,
-0.01852571777999401,
-0.05108548700809479,
-0.043066028505563736,
-0.020916134119033813,
-0.01695459894835949,
0.02828015387058258,
-0.02004864439368248,
-0.03633816912770271,
-0.00810620654374361,
-0.055365100502967834,
0.048155300319194794,
-0.022034231573343277,
0.014824430458247662,
-0.05139392986893654,
0.0323091596364975,
-0.013021979480981827,
-0.01244365330785513,
0.04545644670724869,
0.05941338464617729,
-0.08150544762611389,
-0.047191422432661057,
-0.023537879809737206,
-0.07518241554498672,
0.04838663339614868,
-0.024501755833625793,
-0.013677416369318962,
-0.0007783307810314,
-0.06326889246702194,
-0.03670443966984749,
-0.02290172129869461,
-0.027104225009679794,
-0.001826547202654183,
0.014747319743037224,
0.006491712294518948,
-0.004455522168427706,
0.009142374619841576,
-0.019489595666527748,
-0.03340798243880272,
0.0017554612131789327,
-0.030034411698579788,
-0.009899018332362175,
0.035836949944496155,
-0.013272588141262531,
0.05108548700809479,
0.05509521812200546,
0.028897035866975784,
0.007773668970912695,
0.011431582272052765,
-0.007542338687926531,
0.027586163952946663,
-0.036935772746801376,
-0.02080046758055687,
-0.04796252399682999,
0.028723537921905518,
0.009127916768193245,
-0.03735987842082977,
-0.03726349025964737,
-0.00026069863815791905,
0.06072425842285156,
-0.01620277389883995,
0.006294117774814367,
0.062343571335077286,
-0.030535627156496048,
0.03493090718984604,
0.011094225570559502,
-0.015046121552586555,
-0.0017807630356401205,
0.057177189737558365,
0.0124532924965024,
0.016597963869571686,
-0.014458157122135162,
-0.01476659718900919,
-0.0328296534717083,
-0.031711556017398834,
-0.04090694338083267,
0.019595621153712273,
-0.009118277579545975,
0.025234302505850792,
-0.0252150259912014,
0.04499378427863121,
0.049466174095869064
] |
725,032 | tf_keras.src.engine.training | make_train_function | Creates a function that executes one step of training.
This method can be overridden to support custom training logic.
This method is called by `Model.fit` and `Model.train_on_batch`.
Typically, this method directly controls `tf.function` and
`tf.distribute.Strategy` settings, and delegates the actual training
logic to `Model.train_step`.
This function is cached the first time `Model.fit` or
`Model.train_on_batch` is called. The cache is cleared whenever
`Model.compile` is called. You can skip the cache and generate again the
function with `force=True`.
Args:
force: Whether to regenerate the train function and skip the cached
function if available.
Returns:
Function. The function created by this method should accept a
`tf.data.Iterator`, and return a `dict` containing values that will
be passed to `tf.keras.Callbacks.on_train_batch_end`, such as
`{'loss': 0.2, 'accuracy': 0.7}`.
| def make_train_function(self, force=False):
"""Creates a function that executes one step of training.
This method can be overridden to support custom training logic.
This method is called by `Model.fit` and `Model.train_on_batch`.
Typically, this method directly controls `tf.function` and
`tf.distribute.Strategy` settings, and delegates the actual training
logic to `Model.train_step`.
This function is cached the first time `Model.fit` or
`Model.train_on_batch` is called. The cache is cleared whenever
`Model.compile` is called. You can skip the cache and generate again the
function with `force=True`.
Args:
force: Whether to regenerate the train function and skip the cached
function if available.
Returns:
Function. The function created by this method should accept a
`tf.data.Iterator`, and return a `dict` containing values that will
be passed to `tf.keras.Callbacks.on_train_batch_end`, such as
`{'loss': 0.2, 'accuracy': 0.7}`.
"""
if self.train_function is not None and not force:
return self.train_function
def step_function(model, iterator):
"""Runs a single training step."""
def run_step(data):
outputs = model.train_step(data)
# Ensure counter is updated only if `train_step` succeeds.
with tf.control_dependencies(_minimum_control_deps(outputs)):
model._train_counter.assign_add(1)
return outputs
if self.jit_compile:
run_step = tf.function(
run_step, jit_compile=True, reduce_retracing=True
)
data = next(iterator)
outputs = model.distribute_strategy.run(run_step, args=(data,))
outputs = reduce_per_replica(
outputs,
self.distribute_strategy,
reduction=self.distribute_reduction_method,
)
return outputs
# Special case if steps_per_execution is one.
if (
self._steps_per_execution is None
or self._steps_per_execution.numpy().item() == 1
and not self.autotune_steps_per_execution
):
def train_function(iterator):
"""Runs a training execution with a single step."""
return step_function(self, iterator)
if not self.run_eagerly:
train_function = tf.function(
train_function, reduce_retracing=True
)
self.train_tf_function = train_function
if self._cluster_coordinator:
self.train_function = (
lambda it: self._cluster_coordinator.schedule(
train_function, args=(it,)
)
)
else:
self.train_function = train_function
# If we're using a coordinator, use the value of
# self._steps_per_execution at the time the function is
# called/scheduled, and not when it is actually executed.
elif self._cluster_coordinator:
def train_function(iterator, steps_per_execution):
"""Runs a training execution with multiple steps."""
for _ in tf.range(steps_per_execution):
outputs = step_function(self, iterator)
return outputs
if not self.run_eagerly:
train_function = tf.function(
train_function, reduce_retracing=True
)
self.train_tf_function = train_function
self.train_function = lambda it: self._cluster_coordinator.schedule(
train_function, args=(it, self._steps_per_execution.value())
)
else:
def train_function(iterator):
"""Runs a training execution with multiple steps."""
for _ in tf.range(self._steps_per_execution):
outputs = step_function(self, iterator)
return outputs
if not self.run_eagerly:
train_function = tf.function(
train_function, reduce_retracing=True
)
self.train_tf_function = train_function
self.train_function = train_function
return self.train_function
| (self, force=False) | [
-0.0045358468778431416,
0.004135411232709885,
-0.02457948587834835,
0.008746491745114326,
0.005120726302266121,
0.04519829526543617,
-0.08061139285564423,
-0.007741761393845081,
0.025181353092193604,
-0.023666976019740105,
-0.01261009182780981,
-0.02030816860496998,
0.002272777259349823,
-0.0019208790035918355,
0.04368392005562782,
0.022676808759570122,
-0.0013990988954901695,
0.004179094918072224,
-0.017007606104016304,
-0.013027515262365341,
0.02345341071486473,
-0.0255502387881279,
-0.024210598319768906,
-0.01160050742328167,
0.018250171095132828,
0.02921968884766102,
0.053779758512973785,
-0.011192791163921356,
0.004191229585558176,
0.021356582641601562,
0.003385503776371479,
-0.026851048693060875,
0.008265968412160873,
-0.013542015105485916,
0.043256789445877075,
-0.04480999335646629,
-0.023822298273444176,
0.04150943085551262,
-0.056963831186294556,
-0.040072716772556305,
-0.009071693755686283,
-0.018677301704883575,
-0.00719813909381628,
0.0035286899656057358,
-0.050945159047842026,
0.005829376168549061,
-0.03279206156730652,
0.027045199647545815,
0.01958010345697403,
-0.043101467192173004,
-0.019424783065915108,
-0.0582452267408371,
0.0088387131690979,
0.01777450181543827,
-0.026715144515037537,
-0.0011642978060990572,
0.017056142911314964,
-0.10064774751663208,
-0.013716750778257847,
-0.013551722280681133,
0.05704149231314659,
-0.035024795681238174,
0.01600772887468338,
0.024307673797011375,
0.016959067434072495,
0.001309304148890078,
-0.05222655087709427,
-0.010377357713878155,
0.009979348629713058,
0.05859469622373581,
-0.03510245680809021,
-0.02085179090499878,
0.08573697507381439,
-0.03976207599043846,
-0.009867711924016476,
-0.005047919694334269,
0.001928159617818892,
-0.0757964551448822,
0.04387807101011276,
-0.009061986580491066,
-0.0038878689520061016,
-0.009785197675228119,
-0.02232733741402626,
-0.042713165283203125,
0.0020058199297636747,
0.01497873105108738,
0.007518487982451916,
-0.014619551599025726,
-0.041237618774175644,
-0.03663624823093414,
-0.032869722694158554,
0.04826587811112404,
-0.0010896711610257626,
-0.009173623286187649,
0.029976876452565193,
-0.011658752337098122,
-0.03601496294140816,
-0.033801645040512085,
-0.0002953214861918241,
-0.01997811160981655,
0.05595424771308899,
0.1022009551525116,
0.022094355896115303,
0.008105793967843056,
0.022288506850600243,
-0.08993063122034073,
-0.07369962334632874,
0.010435602627694607,
-0.013813826255500317,
0.016192173585295677,
-0.051527608186006546,
0.010804489254951477,
0.02657923847436905,
0.04069399833679199,
-0.018531689420342445,
0.00520324008539319,
-0.012862487696111202,
0.00993566494435072,
-0.01811426505446434,
0.007144747767597437,
0.014134175144135952,
0.03813120722770691,
-0.03166598826646805,
-0.059254810214042664,
0.00834848266094923,
-0.0059313056990504265,
0.055643606930971146,
0.0785922259092331,
0.04787757620215416,
-0.059021830558776855,
0.03591788932681084,
-0.02271563746035099,
0.03271440044045448,
0.048887159675359726,
0.004251901526004076,
-0.0016114512691274285,
0.015337909571826458,
0.05723564326763153,
-0.059215981513261795,
0.05016855522990227,
0.02789946272969246,
0.008397020399570465,
0.04170358180999756,
0.023725222796201706,
0.028676066547632217,
0.00405046995729208,
-0.04713980481028557,
0.01388177927583456,
0.006911766715347767,
-0.03384047746658325,
0.07921350747346878,
0.03593730553984642,
-0.006892351899296045,
0.040849316865205765,
-0.0716804563999176,
0.026792803779244423,
-0.03871366009116173,
-0.026462746784090996,
0.025336673483252525,
-0.0010107973357662559,
-0.04896482080221176,
0.005800253711640835,
0.037276946008205414,
-0.003286001505330205,
0.006106041371822357,
0.03671390563249588,
-0.019026773050427437,
0.010027886368334293,
-0.011707290075719357,
0.029510915279388428,
0.014736042357981205,
0.008246553130447865,
0.08146565407514572,
0.0331803634762764,
-0.004958124831318855,
0.05498349294066429,
0.027744142338633537,
-0.013289619237184525,
0.004904733505100012,
0.06255537271499634,
-0.029142027720808983,
-0.010173499584197998,
-0.07195226848125458,
-0.03319977968931198,
-0.030850553885102272,
0.029103197157382965,
-0.019512150436639786,
-0.005756570026278496,
0.031413592398166656,
0.027452915906906128,
-0.03883014991879463,
0.020735301077365875,
0.03844184800982475,
0.008892104960978031,
-0.020638225600123405,
-0.01243535615503788,
-0.0020033931359648705,
0.03768466040492058,
0.011056885123252869,
0.019366538152098656,
-0.004727570805698633,
0.011484016664326191,
0.09125085175037384,
0.0016757636331021786,
-0.06177876889705658,
0.03657800331711769,
-0.02265739254653454,
0.023142769932746887,
-0.04380040988326073,
0.01630866341292858,
-0.03807296231389046,
-0.03916020691394806,
0.001224969862960279,
0.12984801828861237,
0.04170358180999756,
-0.0594489611685276,
0.020696470513939857,
0.04842119663953781,
0.030617574229836464,
-0.015260249376296997,
0.03636443614959717,
-0.01324108149856329,
-0.012221789918839931,
-0.05851703882217407,
0.0673314779996872,
-0.041392941027879715,
0.04053867608308792,
-0.06837989389896393,
-0.033413343131542206,
-0.0028103322256356478,
-0.03197662904858589,
-0.04360625892877579,
-0.014202127233147621,
0.025491993874311447,
0.05090632662177086,
-0.03417053446173668,
-0.011882025748491287,
0.007940765470266342,
0.016871700063347816,
-0.03327744081616402,
-0.031840723007917404,
-0.007387435995042324,
0.03430643677711487,
-0.016726087778806686,
-0.02657923847436905,
0.06888468563556671,
0.01796865276992321,
0.06907884031534195,
-0.05801224336028099,
-0.005722593516111374,
-0.021570147946476936,
0.018978236243128777,
-0.02644333243370056,
0.04694565385580063,
-0.052110061049461365,
-0.00719813909381628,
0.08760081976652145,
-0.016143634915351868,
0.04069399833679199,
0.04644085839390755,
-0.021317752078175545,
0.014629259705543518,
-0.06115748733282089,
0.030967045575380325,
-0.02036641351878643,
-0.0686517059803009,
-0.004142691846936941,
0.02619093656539917,
0.038208868354558945,
0.058827679604291916,
0.08426142483949661,
0.07657305896282196,
-0.02310393936932087,
-0.013600260019302368,
0.00993566494435072,
-0.044188711792230606,
-0.0060041118413209915,
0.004188802558928728,
0.0012583396164700389,
-0.015289371833205223,
-0.007620417047291994,
-0.03354924917221069,
-0.07960180938243866,
-0.029064368456602097,
-0.07125332951545715,
-0.03222902491688728,
0.014765164814889431,
-0.014920485205948353,
0.04057750850915909,
-0.03304445743560791,
0.015823286026716232,
-0.0018517128191888332,
0.05972077324986458,
0.008605732582509518,
0.06989426910877228,
-0.010222037322819233,
-0.03407345712184906,
-0.02149248868227005,
0.006411828566342592,
0.020444074645638466,
0.04127645120024681,
0.0062856306321918964,
-0.026035616174340248,
-0.03525777533650398,
0.03279206156730652,
-0.035704322159290314,
-0.03156891092658043,
-0.006581710651516914,
-0.016085390001535416,
-0.005018796771764755,
-0.023628147318959236,
-0.009265844710171223,
-0.00036888642353005707,
-0.01963834837079048,
-0.012940147891640663,
-0.03648092597723007,
-0.006945743225514889,
-0.0056158103980124,
0.06721498817205429,
0.06088567525148392,
0.003123400267213583,
0.08884338289499283,
0.024113522842526436,
0.04034452512860298,
-0.00014000089140608907,
-0.02457948587834835,
0.07300068438053131,
-0.05176059156656265,
-0.06069152429699898,
0.024443579837679863,
0.012823657132685184,
-0.023181600496172905,
0.013493477366864681,
0.0676809549331665,
-0.0788252055644989,
0.009702684357762337,
0.04562542587518692,
0.012250912375748158,
0.009023156017065048,
0.006659370847046375,
0.03818945214152336,
0.03613145649433136,
0.0012377110542729497,
0.03137475997209549,
-0.030831139534711838,
-0.031996045261621475,
0.050013232976198196,
0.04391689971089363,
0.028326595202088356,
0.01983249932527542,
0.020036358386278152,
-0.0025894856080412865,
-0.022482657805085182,
0.02976331114768982,
0.05684734135866165,
0.01586211659014225,
-0.00044411985436454415,
-0.030268102884292603,
-0.006018673535436392,
-0.07160279899835587,
-0.0030627280939370394,
-0.019706301391124725,
-0.023919373750686646,
0.06919533014297485,
0.0727677047252655,
0.021473072469234467,
0.007727200165390968,
-0.019104434177279472,
0.0326949879527092,
-0.026249181479215622,
0.005426513496786356,
-0.030578743666410446,
0.04376158118247986,
-0.006620540749281645,
0.015231126919388771,
-0.014901069924235344,
0.03153008222579956,
-0.01714351214468479,
-0.018910283222794533,
0.04989674314856529,
0.019696593284606934,
-0.011289866641163826,
0.016861993819475174,
-0.012309158220887184,
0.019317999482154846,
0.03176306188106537,
0.005805107299238443,
-0.038946639746427536,
0.053041987121105194,
-0.09963816404342651,
0.012920732609927654,
-0.014066222123801708,
0.006732177454978228,
-0.0027593676932156086,
0.01698819175362587,
0.00608177250251174,
-0.0042883045971393585,
0.021414827555418015,
0.006834106519818306,
-0.06643838435411453,
-0.03075348027050495,
-0.026598652824759483,
0.07463154941797256,
0.061273977160453796,
0.011513140052556992,
-0.017590058967471123,
0.03617028519511223,
0.0032811476849019527,
-0.022249676287174225,
0.051527608186006546,
-0.024928957223892212,
-0.031064121052622795,
-0.04205305501818657,
0.014357448555529118,
0.000026828449335880578,
0.036597415804862976,
-0.07129215449094772,
0.01659988984465599,
0.009989055804908276,
0.019172387197613716,
0.010726829059422016,
0.04830470681190491,
0.011911149136722088,
0.07630124688148499,
0.03617028519511223,
0.03193780034780502,
0.01963834837079048,
0.0297244805842638,
-0.012017931789159775,
0.025103691965341568,
-0.00047172565246000886,
-0.0707097053527832,
-0.03807296231389046,
0.006290484219789505,
-0.046052560210227966,
0.002587058814242482,
0.015172881074249744,
0.010532678104937077,
0.004545554518699646,
0.04053867608308792,
0.007460242602974176,
-0.04523712396621704,
0.03325802460312843,
0.019599517807364464,
-0.03739343583583832,
0.000981068005785346,
-0.018036605790257454,
0.002221812726929784,
-0.011707290075719357,
0.008071817457675934,
0.028656650334596634,
0.03430643677711487,
-0.01655135117471218,
0.02947208471596241,
0.0173764917999506,
0.02393878810107708,
-0.0398397333920002,
-0.07109800726175308,
-0.040461018681526184,
-0.005688617005944252,
0.03143300861120224,
0.08045607060194016,
-0.015240834094583988,
0.0022958326153457165,
-0.006538026500493288,
-0.024948371574282646,
0.0008093659416772425,
0.04170358180999756,
-0.012813949957489967,
-0.011707290075719357,
0.02976331114768982,
-0.04185890406370163,
0.02879255637526512,
-0.0653899759054184,
-0.011930563487112522,
0.0491589717566967,
-0.03308328986167908,
-0.01005700882524252,
0.030326347798109055,
-0.01586211659014225,
0.008994033560156822,
-0.04073282703757286,
0.005314876791089773,
0.05451752990484238,
0.04356743022799492,
0.01928887702524662,
-0.04954727366566658,
-0.009814320132136345,
0.02819068916141987,
0.06546763330698013,
-0.04337327927350998,
-0.017735671252012253,
0.07272887229919434,
0.006411828566342592,
-0.05199357122182846,
-0.013231373392045498,
0.053935080766677856,
0.04248018562793732,
-0.0035359705798327923,
0.03156891092658043,
0.035316020250320435,
-0.004145118407905102,
-0.06608891487121582,
0.06849638372659683,
0.012561554089188576,
0.003710706252604723,
-0.031413592398166656,
-0.010192914865911007,
-0.09241575747728348,
-0.017463861033320427,
-0.011610214598476887,
-0.014561306685209274,
0.039140790700912476,
-0.0035869351122528315,
-0.029899215325713158,
-0.05253719538450241,
0.008105793967843056,
0.006460366304963827,
-0.026986954733729362,
-0.033762816339731216,
0.0036233384162187576,
-0.00026377200265415013,
0.009503679350018501,
-0.028074199333786964,
-0.004179094918072224,
0.05273134633898735,
0.03552958741784096,
-0.024560069665312767,
0.0748257040977478,
0.01869671791791916,
-0.008324213325977325,
0.0076301246881484985,
0.03314153477549553,
0.059992581605911255,
0.02007518708705902,
-0.04317912831902504,
0.011736413463950157,
-0.04787757620215416,
-0.02129833772778511,
-0.017017314210534096,
0.0087173692882061,
-0.006309899501502514,
0.011377234011888504,
-0.017153218388557434,
0.013299326412379742,
-0.02432709001004696,
0.04205305501818657,
-0.020599395036697388,
-0.045936066657304764,
-0.04519829526543617,
-0.04077165946364403,
0.03430643677711487,
0.03696630522608757,
-0.014988438226282597,
-0.008023279719054699,
0.011862611398100853,
-0.008824151940643787,
0.04348976910114288,
0.015046683140099049,
0.0012176892487332225,
-0.03549075871706009,
0.021511903032660484,
-0.004200936760753393,
-0.047566935420036316,
0.0173764917999506,
-0.011843196116387844,
-0.009290113113820553,
-0.023666976019740105,
-0.05032387375831604,
-0.012076176702976227,
0.037082795053720474,
-0.0028879924211651087,
-0.0011266811052337289,
-0.005829376168549061,
-0.07890286296606064,
0.019900452345609665,
-0.010173499584197998,
-0.051721759140491486,
-0.03760699927806854,
-0.10266692191362381,
-0.03937377408146858,
-0.018026897683739662,
-0.013493477366864681,
0.003909710794687271,
-0.01821134053170681,
0.0059458669275045395,
-0.0145904291421175,
0.06348729878664017,
-0.020346999168395996,
-0.04174241051077843,
-0.011280158534646034,
0.03617028519511223,
-0.052265383303165436,
-0.030908800661563873,
0.014202127233147621,
0.011425771750509739,
-0.015998022630810738,
0.010998640209436417,
0.01224120520055294,
-0.01649310626089573,
-0.09365832060575485,
0.04900364950299263,
-0.0023443703539669514,
0.007508780341595411,
0.02490954101085663,
-0.03881073743104935,
-0.06671019643545151,
0.025880295783281326,
0.036053795367479324,
-0.04974142462015152,
-0.023433996364474297,
0.013716750778257847,
0.029433254152536392,
-0.05801224336028099,
0.02423001453280449,
0.012503308244049549,
-0.0039825174026191235,
-0.03774290531873703,
0.045353617519140244,
-0.08837742358446121,
0.04314029589295387,
-0.050983987748622894,
-0.04108230024576187,
-0.02310393936932087,
-0.023220429196953773,
-0.01559030544012785,
0.04034452512860298,
-0.07715550810098648,
0.04003388434648514,
-0.03428702428936958,
-0.004761547315865755,
0.007999011315405369,
0.01505639124661684,
-0.017512397840619087,
0.106549933552742,
-0.022482657805085182,
0.001045380486175418,
0.055488284677267075,
-0.021278923377394676,
-0.09125085175037384,
-0.023725222796201706,
0.08472739160060883,
0.023472826927900314,
-0.028753725811839104,
0.005062480922788382,
-0.0870571956038475,
0.005290607921779156,
0.02252148650586605,
0.1093457043170929,
0.0022278798278421164,
-0.05311964452266693,
0.0491589717566967,
0.04356743022799492,
0.031219441443681717,
0.03465590998530388,
0.02306510880589485,
0.019075311720371246,
-0.07606826722621918,
0.05645903944969177,
-0.06814691424369812,
-0.0038077817298471928,
0.01505639124661684,
-0.005785692483186722,
-0.019958697259426117,
-0.04811055585741997,
-0.014473938383162022,
0.0025433748960494995,
-0.013425524346530437,
-0.03166598826646805,
-0.021958449855446815,
-0.07140864431858063,
0.020405244082212448,
-0.007804860360920429,
-0.028909048065543175,
0.049663763493299484,
0.010610338300466537,
-0.006135163828730583,
-0.013279911130666733,
-0.004686313681304455,
-0.04216954484581947,
-0.030908800661563873,
0.017929822206497192,
-0.004943563602864742,
-0.004589238204061985,
-0.044227540493011475,
-0.04822704568505287,
-0.031996045261621475,
-0.022540902718901634,
-0.01963834837079048,
-0.02213318645954132,
-0.004756693262606859,
0.006261361762881279,
-0.007363167125731707,
-0.007892227731645107,
-0.016231002286076546,
-0.044965315610170364,
-0.05308081582188606,
0.02995746210217476,
-0.01909472607076168,
0.0035723738837987185,
-0.026152106001973152,
0.03226785361766815,
-0.004914441145956516,
-0.007877666503190994,
0.0260938610881567,
0.04655735194683075,
-0.07680603861808777,
-0.04500414431095123,
-0.040072716772556305,
-0.0008621506858617067,
0.0675644651055336,
-0.031646572053432465,
0.00310883903875947,
0.012784827500581741,
-0.049120139330625534,
-0.05669201910495758,
-0.013988561928272247,
-0.023414580151438713,
0.016143634915351868,
0.02207494154572487,
0.02760823629796505,
-0.03261732682585716,
-0.0005830589798279107,
0.012794534675776958,
-0.019182095304131508,
-0.004618361126631498,
-0.028365425765514374,
-0.0005600035656243563,
0.024365918710827827,
-0.03485006093978882,
0.07925233989953995,
0.03459766507148743,
-0.0024596473667770624,
0.0027108299545943737,
0.04480999335646629,
-0.007897081784904003,
0.0357237383723259,
0.0038466118276119232,
-0.04391689971089363,
-0.036539170891046524,
0.04034452512860298,
0.009333797730505466,
-0.04244135320186615,
-0.004560115747153759,
0.004989674314856529,
0.03760699927806854,
0.016726087778806686,
-0.0179201140999794,
0.06729265302419662,
-0.013872071169316769,
0.012930439785122871,
-0.0029535184148699045,
-0.015386447310447693,
-0.007605855818837881,
0.04166475310921669,
-0.012037347070872784,
-0.018813207745552063,
0.01314400602132082,
-0.027181105688214302,
-0.058672357350587845,
-0.0012013077503070235,
-0.08177629858255386,
0.01663872040808201,
-0.018133681267499924,
0.03308328986167908,
-0.02193903550505638,
0.056226059794425964,
0.03803413361310959
] |
725,033 | tf_keras.src.engine.training | predict | Generates output predictions for the input samples.
Computation is done in batches. This method is designed for batch
processing of large numbers of inputs. It is not intended for use inside
of loops that iterate over your data and process small numbers of inputs
at a time.
For small numbers of inputs that fit in one batch,
directly use `__call__()` for faster execution, e.g.,
`model(x)`, or `model(x, training=False)` if you have layers such as
`tf.keras.layers.BatchNormalization` that behave differently during
inference. You may pair the individual model call with a `tf.function`
for additional performance inside your inner loop.
If you need access to numpy array values instead of tensors after your
model call, you can use `tensor.numpy()` to get the numpy array value of
an eager tensor.
Also, note the fact that test loss is not affected by
regularization layers like noise and dropout.
Note: See [this FAQ entry](
https://keras.io/getting_started/faq/#whats-the-difference-between-model-methods-predict-and-call)
for more details about the difference between `Model` methods
`predict()` and `__call__()`.
Args:
x: Input samples. It could be:
- A Numpy array (or array-like), or a list of arrays
(in case the model has multiple inputs).
- A TensorFlow tensor, or a list of tensors
(in case the model has multiple inputs).
- A `tf.data` dataset.
- A generator or `keras.utils.Sequence` instance.
A more detailed description of unpacking behavior for iterator
types (Dataset, generator, Sequence) is given in the `Unpacking
behavior for iterator-like inputs` section of `Model.fit`.
batch_size: Integer or `None`.
Number of samples per batch.
If unspecified, `batch_size` will default to 32.
Do not specify the `batch_size` if your data is in the
form of dataset, generators, or `keras.utils.Sequence` instances
(since they generate batches).
verbose: `"auto"`, 0, 1, or 2. Verbosity mode.
0 = silent, 1 = progress bar, 2 = single line.
`"auto"` becomes 1 for most cases, and to 2 when used with
`ParameterServerStrategy`. Note that the progress bar is not
particularly useful when logged to a file, so `verbose=2` is
recommended when not running interactively (e.g. in a production
environment). Defaults to 'auto'.
steps: Total number of steps (batches of samples)
before declaring the prediction round finished.
Ignored with the default value of `None`. If x is a `tf.data`
dataset and `steps` is None, `predict()` will
run until the input dataset is exhausted.
callbacks: List of `keras.callbacks.Callback` instances.
List of callbacks to apply during prediction.
See [callbacks](
https://www.tensorflow.org/api_docs/python/tf/tf_keras/callbacks).
max_queue_size: Integer. Used for generator or
`keras.utils.Sequence` input only. Maximum size for the
generator queue. If unspecified, `max_queue_size` will default
to 10.
workers: Integer. Used for generator or `keras.utils.Sequence` input
only. Maximum number of processes to spin up when using
process-based threading. If unspecified, `workers` will default
to 1.
use_multiprocessing: Boolean. Used for generator or
`keras.utils.Sequence` input only. If `True`, use process-based
threading. If unspecified, `use_multiprocessing` will default to
`False`. Note that because this implementation relies on
multiprocessing, you should not pass non-pickleable arguments to
the generator as they can't be passed easily to children
processes.
See the discussion of `Unpacking behavior for iterator-like inputs` for
`Model.fit`. Note that Model.predict uses the same interpretation rules
as `Model.fit` and `Model.evaluate`, so inputs must be unambiguous for
all three methods.
Returns:
Numpy array(s) of predictions.
Raises:
RuntimeError: If `model.predict` is wrapped in a `tf.function`.
ValueError: In case of mismatch between the provided
input data and the model's expectations,
or in case a stateful model receives a number of samples
that is not a multiple of the batch size.
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Training-related part of the TF-Keras engine."""
import copy
import itertools
import json
import warnings
import weakref
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow.python.distribute import distribute_utils
from tensorflow.python.distribute import input_ops
from tensorflow.python.eager import context
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util.tf_export import keras_export
from tensorflow.tools.docs import doc_controls
from tf_keras.src import backend
from tf_keras.src import callbacks as callbacks_module
from tf_keras.src import optimizers
from tf_keras.src.dtensor import dtensor_api
from tf_keras.src.dtensor import layout_map as layout_map_lib
from tf_keras.src.engine import base_layer
from tf_keras.src.engine import base_layer_utils
from tf_keras.src.engine import compile_utils
from tf_keras.src.engine import data_adapter
from tf_keras.src.engine import input_layer as input_layer_module
from tf_keras.src.engine import training_utils
from tf_keras.src.metrics import base_metric
from tf_keras.src.mixed_precision import loss_scale_optimizer as lso
from tf_keras.src.optimizers import optimizer
from tf_keras.src.optimizers import optimizer_v1
from tf_keras.src.saving import pickle_utils
from tf_keras.src.saving import saving_api
from tf_keras.src.saving import saving_lib
from tf_keras.src.saving import serialization_lib
from tf_keras.src.saving.legacy import serialization
from tf_keras.src.saving.legacy.saved_model import json_utils
from tf_keras.src.saving.legacy.saved_model import model_serialization
from tf_keras.src.utils import generic_utils
from tf_keras.src.utils import io_utils
from tf_keras.src.utils import layer_utils
from tf_keras.src.utils import steps_per_execution_tuning
from tf_keras.src.utils import tf_inspect
from tf_keras.src.utils import tf_utils
from tf_keras.src.utils import traceback_utils
from tf_keras.src.utils import version_utils
from tf_keras.src.utils.mode_keys import ModeKeys
try:
import h5py
except ImportError:
h5py = None
@keras_export("keras.Model", "keras.models.Model")
class Model(base_layer.Layer, version_utils.ModelVersionSelector):
"""A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
"""
_TF_MODULE_IGNORED_PROPERTIES = frozenset(
itertools.chain(
(
"_train_counter",
"_test_counter",
"_predict_counter",
"_steps_per_execution",
"_compiled_trainable_state",
),
base_layer.Layer._TF_MODULE_IGNORED_PROPERTIES,
)
)
_SCALAR_UPRANKING_ON = False
def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, *args, **kwargs):
self._is_model_for_instrumentation = True
# Special case for Subclassed Functional Model, which we couldn't detect
# when __new__ is called. We only realize it is a functional model when
# it calls super.__init__ with input and output tensor.
from tf_keras.src.engine import functional
if is_functional_model_init_params(args, kwargs) and not isinstance(
self, functional.Functional
):
# Filter the kwargs for multiple inheritance.
support | (self, x, batch_size=None, verbose='auto', steps=None, callbacks=None, max_queue_size=10, workers=1, use_multiprocessing=False) | [
0.024919170886278152,
-0.08747690916061401,
-0.03955890238285065,
0.04970278963446617,
-0.0026446967385709286,
-0.0020671843085438013,
-0.08697988092899323,
0.0001960930385394022,
-0.009330568835139275,
-0.024422142654657364,
-0.01929371990263462,
0.009805005043745041,
-0.02756245620548725,
0.05083239823579788,
0.0571582093834877,
0.0399203784763813,
0.0009679335635155439,
-0.0077039324678480625,
0.0006749412859790027,
-0.01570156216621399,
0.02753986418247223,
-0.04251847788691521,
-0.04527472332119942,
0.03549230843782425,
0.01845780946314335,
0.05205237492918968,
-0.007127831690013409,
0.0063371057622134686,
0.02025388740003109,
-0.02591322734951973,
-0.05562194064259529,
0.0008761528879404068,
-0.0361022986471653,
-0.009917966090142727,
0.01958741806447506,
-0.03497269004583359,
0.012979205697774887,
0.06425215303897858,
-0.03809041157364845,
-0.03766115754842758,
0.03578600659966469,
-0.0448002852499485,
0.003428362775593996,
-0.019022613763809204,
-0.004555147606879473,
0.01766708306968212,
-0.0064896028488874435,
0.008274384774267673,
0.019632602110505104,
-0.04857318103313446,
-0.04283476620912552,
-0.010465825907886028,
-0.007958094589412212,
0.033255685120821,
-0.026975059881806374,
-0.048121336847543716,
-0.01697802171111107,
-0.04631396383047104,
0.011019334197044373,
-0.00757402740418911,
-0.00974852405488491,
-0.024648064747452736,
0.001783369923941791,
0.017655786126852036,
-0.03262310475111008,
-0.0018539705779403448,
-0.04387400671839714,
-0.04712728038430214,
0.0025656241923570633,
0.044529180973768234,
-0.04952205345034599,
-0.044145114719867706,
0.056570809334516525,
0.02916650101542473,
0.009545194916427135,
0.0004384294443298131,
0.0006661161896772683,
-0.04068851098418236,
0.03806781768798828,
-0.04579434171319008,
-0.041772935539484024,
-0.002706825267523527,
-0.02936982922255993,
-0.03400122746825218,
0.011623675003647804,
-0.028895394876599312,
-0.007415882311761379,
-0.005998223088681698,
-0.013849004171788692,
-0.005800541490316391,
-0.009963150136172771,
0.04211181774735451,
0.023450680077075958,
0.04735320433974266,
0.06642100214958191,
-0.017949484288692474,
-0.05521528050303459,
-0.03777411952614784,
-0.0069922786206007,
-0.02489657886326313,
0.02153034508228302,
0.03298457711935043,
-0.024331774562597275,
0.010222960263490677,
-0.04226996377110481,
-0.045545827597379684,
-0.07229496538639069,
-0.017508937045931816,
-0.05598341301083565,
-0.02835318259894848,
-0.027630232274532318,
-0.009697691537439823,
-0.008929558098316193,
0.0133745688945055,
-0.02742690220475197,
0.03217126056551933,
0.0001353765546809882,
-0.011702748015522957,
-0.030363885685801506,
-0.0023580584675073624,
0.0004285453469492495,
0.05598341301083565,
-0.04938649758696556,
-0.03899409621953964,
-0.017249127849936485,
0.012967909686267376,
0.05051610618829727,
0.021586824208498,
0.04599767178297043,
-0.040439996868371964,
-0.03897150605916977,
-0.017599305137991905,
-0.0033972985111176968,
0.06077295541763306,
0.01336327288299799,
-0.0038434939924627542,
-0.0021589649841189384,
0.02695246785879135,
-0.059824083000421524,
0.06221885606646538,
0.06705357879400253,
0.005698876455426216,
0.059824083000421524,
0.02663617581129074,
-0.03754819929599762,
-0.021519048139452934,
-0.0048940302804112434,
-0.0636647567152977,
-0.009471770375967026,
-0.04199885576963425,
-0.002828258089721203,
0.008505954407155514,
0.017599305137991905,
0.00913853570818901,
-0.0059586865827441216,
0.03235199674963951,
-0.035966746509075165,
-0.06461362540721893,
0.028692064806818962,
-0.009697691537439823,
-0.06090850755572319,
-0.04649470001459122,
0.02347327210009098,
-0.03797744959592819,
0.013837708160281181,
0.0038943265099078417,
-0.041388869285583496,
-0.023292534053325653,
0.005300689488649368,
0.020626656711101532,
0.041976265609264374,
0.017057092860341072,
0.03467899188399315,
0.019824635237455368,
0.011019334197044373,
0.04466473311185837,
0.05196200683712959,
-0.011781820096075535,
0.02040073648095131,
0.04744357243180275,
0.045252129435539246,
-0.017418568953871727,
-0.09032352268695831,
-0.036870431154966354,
-0.05408567190170288,
0.022354958578944206,
-0.049928709864616394,
0.02539360709488392,
0.041366275399923325,
-0.000633639981970191,
0.030025003477931023,
0.028240220621228218,
0.021146276965737343,
0.03915224224328995,
-0.04353512451052666,
-0.0070205191150307655,
-0.00003920536983059719,
0.047895416617393494,
0.04988352581858635,
0.020073149353265762,
-0.011471177451312542,
0.009805005043745041,
0.03865521401166916,
-0.00046914067934267223,
-0.07297272980213165,
0.0061846086755394936,
0.008302625268697739,
-0.018435215577483177,
-0.04907020926475525,
-0.07694895565509796,
-0.0361022986471653,
0.013950669206678867,
0.04622359573841095,
0.07288236171007156,
0.07188830524682999,
-0.06370993703603745,
-0.029663529247045517,
0.02010703831911087,
-0.0041061281226575375,
-0.030160555616021156,
0.03354938328266144,
0.0277657862752676,
-0.04001074656844139,
0.0010505361715331674,
0.02896317094564438,
-0.03725450113415718,
0.04360290244221687,
0.004916622303426266,
-0.017215238884091377,
-0.0555315725505352,
-0.02338290400803089,
-0.07554823905229568,
0.004043999593704939,
0.02500953897833824,
0.016865059733390808,
0.010166479274630547,
-0.042608845978975296,
-0.035966746509075165,
0.04037221893668175,
-0.069764643907547,
-0.013092166744172573,
-0.06520102173089981,
-0.011166183277964592,
-0.03142571821808815,
-0.02480621077120304,
0.04267662391066551,
0.025732489302754402,
0.06953871995210648,
-0.03781930357217789,
-0.05078721418976784,
0.03350419923663139,
0.027155796065926552,
-0.012775875627994537,
0.08286810666322708,
-0.024444734677672386,
-0.03183237835764885,
0.031583864241838455,
-0.07807856053113937,
0.056751549243927,
0.014707507565617561,
-0.012007742188870907,
0.02835318259894848,
-0.02580026537179947,
0.0883805975317955,
0.022298479452729225,
-0.05078721418976784,
0.020841283723711967,
0.02042332850396633,
0.042902544140815735,
-0.015181942842900753,
0.1337456852197647,
0.05639007315039635,
-0.059824083000421524,
0.005907854065299034,
-0.036576732993125916,
-0.019655194133520126,
0.005391058046370745,
-0.0009594614966772497,
0.024919170886278152,
-0.0007314217509701848,
0.003998815547674894,
-0.09027834236621857,
-0.05223311483860016,
-0.0001251394860446453,
0.0026672889944165945,
-0.026048779487609863,
0.0054334187880158424,
-0.04925094544887543,
-0.002537383930757642,
-0.020299071446061134,
0.020073149353265762,
-0.017915597185492516,
0.08860652148723602,
0.0017381856450811028,
-0.02240014262497425,
-0.02184663526713848,
-0.019971484318375587,
0.010398049838840961,
0.019824635237455368,
-0.03323309123516083,
0.007404585834592581,
0.05986927077174187,
0.0778978243470192,
0.002849438227713108,
0.007641803938895464,
-0.08241625875234604,
0.0025670360773801804,
0.009579082950949669,
-0.02356364019215107,
-0.02162071317434311,
-0.013024389743804932,
-0.0007095355540513992,
0.035266388207674026,
-0.03336864709854126,
-0.009708988480269909,
-0.059236686676740646,
0.0063935862854123116,
-0.01866113767027855,
0.05643525719642639,
0.05774560570716858,
0.017723562195897102,
0.06456844508647919,
0.005721468944102526,
0.003487667301669717,
-0.00178478192538023,
-0.055350832641124725,
0.10021889954805374,
-0.015181942842900753,
-0.00022080322378315032,
0.01857076957821846,
-0.0026701129972934723,
-0.0571582093834877,
0.03580860048532486,
0.05286569520831108,
-0.08580508828163147,
-0.018706321716308594,
0.009245848283171654,
-0.00003483696127659641,
-0.010109999217092991,
0.034317515790462494,
0.05123905837535858,
0.05092276632785797,
-0.05087758228182793,
0.02127053402364254,
-0.009048166684806347,
-0.027810970321297646,
0.02683950588107109,
0.03185496851801872,
0.0074384743347764015,
0.004529731348156929,
-0.005453186575323343,
-0.009624266996979713,
-0.03113202005624771,
0.03725450113415718,
0.016469696536660194,
0.0312223881483078,
-0.03415936976671219,
-0.008827893063426018,
0.02077350579202175,
-0.03752560541033745,
0.03639599680900574,
0.006681636441498995,
-0.03336864709854126,
0.026749137789011,
0.08142220228910446,
-0.009307976812124252,
0.00317420088686049,
-0.01572415605187416,
0.016876356676220894,
0.015520825982093811,
0.0020191757939755917,
-0.07188830524682999,
0.07328902184963226,
0.01494472473859787,
-0.04053036496043205,
0.023315126076340675,
0.012866244651377201,
0.030454253777861595,
0.0073255132883787155,
0.01114359125494957,
0.04470991715788841,
0.05304643139243126,
0.0032476254273205996,
0.04848281294107437,
0.05684191733598709,
-0.024670656770467758,
-0.03217126056551933,
-0.022739026695489883,
0.02367660216987133,
-0.01240310538560152,
0.013453640975058079,
-0.018186703324317932,
-0.01448158547282219,
0.021349607035517693,
-0.011104054749011993,
0.026161741465330124,
0.009223256260156631,
0.04888946935534477,
-0.02559693716466427,
-0.046991728246212006,
-0.03702857717871666,
-0.03784189745783806,
0.06551731377840042,
0.05562194064259529,
0.009025574661791325,
-0.01122831180691719,
0.024263998493552208,
0.01790430024266243,
-0.04572656750679016,
0.034136779606342316,
-0.005405178293585777,
0.017983373254537582,
-0.06940316408872604,
0.05277532711625099,
-0.006150720175355673,
0.06881576776504517,
0.012674211524426937,
-0.023654010146856308,
0.03499528393149376,
0.0042021446861326694,
0.019745562225580215,
0.0409822091460228,
0.03332345932722092,
0.015385272912681103,
-0.020694434642791748,
0.02286328375339508,
-0.040552958846092224,
0.1126897782087326,
-0.00742717832326889,
0.017508937045931816,
-0.003239153418689966,
-0.05652562528848648,
-0.015859708189964294,
-0.036260444670915604,
-0.05173608660697937,
-0.00012002093717455864,
0.07143646478652954,
-0.009725932031869888,
0.0029143907595425844,
0.020095741376280785,
-0.025732489302754402,
-0.019417976960539818,
0.053498275578022,
0.025371015071868896,
-0.028646880760788918,
-0.027223573997616768,
-0.02376697026193142,
0.08625692874193192,
-0.03607970476150513,
-0.004204968921840191,
0.04635914787650108,
-0.017339495941996574,
0.04233773797750473,
0.02672654576599598,
-0.017271719872951508,
-0.021654602140188217,
0.038316331803798676,
-0.010268144309520721,
-0.021609418094158173,
-0.005119951907545328,
-0.0013018741738051176,
0.05643525719642639,
0.020231295377016068,
0.0032363294158130884,
-0.012798468582332134,
0.022298479452729225,
0.09154350310564041,
-0.00793550256639719,
-0.054311592131853104,
0.01779134012758732,
0.08011186122894287,
0.009601674973964691,
0.04193108156323433,
0.005936094559729099,
-0.0677313432097435,
0.01709098182618618,
0.01352141797542572,
-0.020739618688821793,
0.014470289461314678,
-0.034520845860242844,
0.04222477972507477,
-0.055667124688625336,
-0.019892411306500435,
0.02631988562643528,
0.008810948580503464,
0.05941742658615112,
0.027810970321297646,
0.001059714355506003,
0.010064815171062946,
0.008952150121331215,
-0.05467306822538376,
0.009336217306554317,
0.06872539967298508,
0.002801429945975542,
-0.058016709983348846,
-0.030341293662786484,
0.030567215755581856,
-0.002814138075336814,
0.009963150136172771,
0.0010152359027415514,
0.042292553931474686,
-0.0018709147116169333,
-0.03797744959592819,
-0.03273606300354004,
0.010047870688140392,
0.04211181774735451,
-0.04021407663822174,
0.005040879361331463,
-0.02147386409342289,
-0.019666489213705063,
-0.03531157225370407,
-0.02509990893304348,
0.04324142634868622,
-0.011928669176995754,
-0.012945317663252354,
-0.010895077139139175,
0.05182645469903946,
0.03275865688920021,
-0.026500623673200607,
0.008370401337742805,
0.010928965173661709,
0.024715840816497803,
0.01845780946314335,
-0.036870431154966354,
0.008630211465060711,
0.0551249124109745,
-0.01055054645985365,
0.00040242314571514726,
0.09642340987920761,
0.012414401397109032,
0.006896262057125568,
-0.006958390586078167,
-0.013397160917520523,
0.05395011976361275,
-0.01653747446835041,
-0.06090850755572319,
0.03160645440220833,
-0.021044611930847168,
-0.06868021935224533,
-0.031199796125292778,
0.019824635237455368,
-0.005408002529293299,
0.02237755060195923,
-0.000868386821821332,
0.009545194916427135,
0.00008463241101708263,
0.015351383946835995,
-0.0016068685799837112,
-0.017057092860341072,
0.00876576453447342,
-0.048302073031663895,
0.004840373992919922,
-0.015193238854408264,
0.028420958667993546,
0.007037463132292032,
-0.0016647609882056713,
-0.006783301010727882,
0.029324645176529884,
-0.02057017758488655,
0.029640935361385345,
-0.011324328370392323,
0.03391085937619209,
0.04477769508957863,
-0.054130855947732925,
0.019610010087490082,
0.04681099206209183,
-0.038813360035419464,
-0.032510142773389816,
-0.08901317417621613,
0.010409345850348473,
-0.011725340038537979,
0.021485161036252975,
0.02826281264424324,
0.00523008918389678,
-0.07166238874197006,
0.0028437902219593525,
-0.02284069173038006,
0.014165295287966728,
0.0021250767167657614,
-0.0162211824208498,
-0.007387641817331314,
-0.0002146256883861497,
-0.021519048139452934,
0.012606434524059296,
0.06375512480735779,
-0.042586252093315125,
0.0382937416434288,
0.031086836010217667,
-0.04206663370132446,
-0.020039260387420654,
0.008364753797650337,
0.029640935361385345,
-0.023947708308696747,
-0.057067837566137314,
-0.006692932453006506,
0.02663617581129074,
-0.06533657759428024,
-0.01964389719069004,
0.02460288070142269,
0.018175406381487846,
-0.08973612636327744,
-0.007331161294132471,
0.014447697438299656,
-0.005941742565482855,
0.01694413274526596,
-0.0066025638952851295,
-0.045455459505319595,
0.03040906973183155,
0.011200071312487125,
-0.0003759479441214353,
-0.014052334241569042,
-0.00504935160279274,
-0.04129850119352341,
-0.03865521401166916,
0.006026463117450476,
-0.011233960278332233,
-0.021259238943457603,
0.047805044800043106,
0.056751549243927,
-0.049928709864616394,
0.07396678626537323,
0.015791932120919228,
-0.039445940405130386,
0.009042519144713879,
-0.06687284260988235,
0.017452456057071686,
0.017655786126852036,
-0.004029879346489906,
0.04509398341178894,
0.015294903889298439,
0.042405515909194946,
0.024761026725172997,
0.02480621077120304,
0.0037333571817725897,
0.08490139991044998,
-0.01819799840450287,
-0.0019372791284695268,
0.0032815136946737766,
0.0011041926918551326,
-0.00020809512352570891,
-0.017870411276817322,
0.016842467710375786,
0.018728915601968765,
-0.006636451929807663,
0.009296680800616741,
-0.05318198353052139,
0.005518139339983463,
0.005515315104275942,
0.0782141163945198,
-0.011917373165488243,
-0.0563448891043663,
0.020705729722976685,
0.03702857717871666,
-0.05946261063218117,
0.02164330519735813,
-0.018502993509173393,
0.008133184164762497,
-0.04857318103313446,
0.048302073031663895,
-0.011499417945742607,
-0.0037898377049714327,
-0.03553749620914459,
0.061676643788814545,
0.023834746330976486,
-0.020988132804632187,
0.013046981766819954,
-0.02765282429754734,
-0.004453483037650585,
0.002939807018265128,
0.029505383223295212,
-0.0547182522714138,
-0.05833300203084946,
-0.01871761865913868,
0.0016492289723828435,
-0.0074384743347764015,
-0.02561952918767929,
0.025371015071868896,
0.021654602140188217,
-0.01056184247136116,
-0.030363885685801506,
-0.006009519100189209,
0.031244980171322823,
-0.03266828879714012,
0.025574345141649246,
0.044122520834207535,
-0.04538768529891968,
-0.06877058744430542,
0.007353753782808781,
-0.006788949016481638,
-0.03628303483128548,
0.010573138482868671,
-0.008415586315095425,
0.023021427914500237,
-0.03513083606958389,
-0.07062314450740814,
-0.0754578709602356,
-0.021394791081547737,
0.018909651786088943,
-0.045342497527599335,
-0.021022019907832146,
0.00035159074468538165,
0.008771413005888462,
-0.03221644461154938,
-0.009545194916427135,
0.05467306822538376,
0.08648285269737244,
-0.10500843822956085,
-0.03467899188399315,
-0.018446512520313263,
-0.08860652148723602,
0.04129850119352341,
0.02602618746459484,
0.007404585834592581,
-0.027698008343577385,
-0.008556786924600601,
-0.03099646605551243,
-0.00620155269280076,
0.024648064747452736,
-0.01819799840450287,
0.012143295258283615,
0.03761597350239754,
0.04394178465008736,
0.03018314763903618,
-0.0032843376975506544,
-0.03725450113415718,
-0.00026722310576587915,
-0.01659395359456539,
-0.010522305965423584,
0.06316772848367691,
0.006670340429991484,
0.05047092214226723,
0.0016958252526819706,
-0.023495864123106003,
-0.00882224552333355,
-0.012278848327696323,
-0.006500898860394955,
0.023450680077075958,
-0.012290144339203835,
-0.011781820096075535,
-0.031561270356178284,
0.05304643139243126,
-0.01714746281504631,
-0.09271829575300217,
0.002537383930757642,
-0.010087407194077969,
0.08291328698396683,
0.033820487558841705,
-0.04206663370132446,
0.023947708308696747,
-0.008178368210792542,
0.008601970970630646,
-0.021338311955332756,
-0.008347809314727783,
0.026907281950116158,
0.05937224254012108,
-0.002305814065039158,
-0.020683137699961662,
-0.02582285739481449,
-0.051464978605508804,
-0.086347296833992,
0.011623675003647804,
-0.07270162552595139,
0.0279691144824028,
-0.009392697364091873,
0.05313679948449135,
0.03680265694856644,
0.013736044056713581,
0.019542232155799866
] |
725,034 | tf_keras.src.engine.training | predict_generator | Generates predictions for the input samples from a data generator.
DEPRECATED:
`Model.predict` now supports generators, so there is no longer any
need to use this endpoint.
| @doc_controls.do_not_generate_docs
def predict_generator(
self,
generator,
steps=None,
callbacks=None,
max_queue_size=10,
workers=1,
use_multiprocessing=False,
verbose=0,
):
"""Generates predictions for the input samples from a data generator.
DEPRECATED:
`Model.predict` now supports generators, so there is no longer any
need to use this endpoint.
"""
warnings.warn(
"`Model.predict_generator` is deprecated and "
"will be removed in a future version. "
"Please use `Model.predict`, which supports generators.",
stacklevel=2,
)
return self.predict(
generator,
steps=steps,
max_queue_size=max_queue_size,
workers=workers,
use_multiprocessing=use_multiprocessing,
verbose=verbose,
callbacks=callbacks,
)
| (self, generator, steps=None, callbacks=None, max_queue_size=10, workers=1, use_multiprocessing=False, verbose=0) | [
0.06212548166513443,
-0.02741251140832901,
-0.07658325135707855,
0.002672809176146984,
-0.0005359597853384912,
0.03721803054213524,
-0.047631923109292984,
0.04068932682275772,
0.04516264796257019,
0.037182245403528214,
0.05267782881855965,
0.02435275912284851,
0.012578978203237057,
0.019306853413581848,
0.042371295392513275,
0.04695197567343712,
0.04358803853392601,
-0.0015835555968806148,
0.017580151557922363,
0.02136458083987236,
-0.00695154070854187,
0.007295986637473106,
-0.04319438710808754,
-0.008955588564276695,
0.004688040353357792,
0.05686485767364502,
-0.02363702841103077,
-0.031044848263263702,
0.027985095977783203,
0.03940100967884064,
-0.01601448841392994,
-0.057222720235586166,
0.028325067833065987,
0.009277667850255966,
0.01909213326871395,
-0.030418582260608673,
-0.0351245179772377,
0.09082631021738052,
-0.041261911392211914,
-0.04970754310488701,
0.002344020176678896,
-0.07658325135707855,
0.000695601396728307,
0.011603794991970062,
0.019199494272470474,
0.004276494961231947,
-0.04251444339752197,
-0.030830128118395805,
-0.032798390835523605,
-0.06681352108716965,
0.0035764200147241354,
0.009322401136159897,
0.03589392825961113,
0.01358100213110447,
0.004701460245996714,
0.033907774835824966,
-0.004625414032489061,
0.04061775282025337,
-0.025354783982038498,
0.006383428815752268,
0.011639581061899662,
0.0022646186407655478,
0.014842478558421135,
0.004171371925622225,
0.06405795365571976,
0.04655832424759865,
0.011568007990717888,
-0.0013621262041851878,
0.011183302849531174,
0.04333753511309624,
-0.02363702841103077,
-0.035231877118349075,
0.0002788836136460304,
0.03331729397177696,
0.023440202698111534,
0.0177769772708416,
-0.029040800407528877,
-0.05901205167174339,
0.07282566279172897,
-0.015996595844626427,
-0.005537971388548613,
-0.009376080706715584,
-0.016533393412828445,
-0.06466633081436157,
-0.015227184630930424,
-0.038756851106882095,
0.0025497928727418184,
-0.04054618254303932,
-0.005189052317291498,
0.05299990624189377,
-0.026732565835118294,
0.04326596111059189,
0.012552138417959213,
0.005372458603233099,
0.0024312499444931746,
-0.004019279032945633,
-0.013142617419362068,
0.017410164698958397,
0.055326033383607864,
0.020237304270267487,
0.060049861669540405,
0.05622069910168648,
0.037575896829366684,
0.04476899653673172,
0.02182980626821518,
-0.051103219389915466,
-0.032798390835523605,
-0.00481329346075654,
0.01614868827164173,
-0.04580680653452873,
-0.02726936526596546,
0.03786218911409378,
-0.029631277546286583,
-0.024388546124100685,
-0.05868997052311897,
0.015611889772117138,
0.010548090562224388,
0.00806539785116911,
-0.042442869395017624,
0.009733946062624454,
-0.05239153653383255,
-0.0058824168518185616,
-0.07629696279764175,
-0.015271917916834354,
-0.050459060817956924,
-0.028414534404873848,
0.05983513966202736,
0.03127745911478996,
0.003703909693285823,
-0.041583992540836334,
-0.009040581993758678,
-0.002370860194787383,
0.010905956849455833,
0.04247865453362465,
0.004558314103633165,
0.045592088252305984,
0.030042823404073715,
0.039222076535224915,
-0.02175823412835598,
0.009456600993871689,
-0.013151563704013824,
-0.003690489800646901,
0.0582963190972805,
0.03839898854494095,
0.015790823847055435,
-0.06094452366232872,
0.0018284699181094766,
-0.0022881035692989826,
0.04562787339091301,
0.025784222409129143,
0.03399723768234253,
0.04577102139592171,
0.10635767877101898,
-0.0031044846400618553,
-0.033585693687200546,
0.07089319080114365,
0.015880288556218147,
-0.000714613008312881,
-0.012122699990868568,
-0.009438707493245602,
-0.011263822205364704,
0.017508577555418015,
0.018412189558148384,
-0.0028606888372451067,
0.02206241898238659,
0.04981490224599838,
0.017070192843675613,
0.0483834408223629,
0.023815961554646492,
-0.0011585900792852044,
0.03285206854343414,
-0.002822665497660637,
0.01735648512840271,
-0.05081692710518837,
-0.020147837698459625,
0.03686016425490379,
0.05704379081726074,
0.015889236703515053,
0.04043882340192795,
0.048276081681251526,
-0.017132818698883057,
-0.012373206205666065,
-0.0805913507938385,
-0.062483347952365875,
-0.01665864698588848,
-0.010315477848052979,
-0.023422308266162872,
0.04602152481675148,
-0.00899137556552887,
-0.012892111204564571,
-0.046236246824264526,
-0.0051085324957966805,
0.04534158110618591,
0.04340910539031029,
-0.02873661369085312,
-0.018483761698007584,
-0.007841731421649456,
0.030436476692557335,
0.02449590526521206,
-0.0043413578532636166,
0.016560234129428864,
-0.032386843115091324,
0.013643628917634487,
0.01696283370256424,
-0.056435417383909225,
0.03972309082746506,
-0.0040819053538143635,
-0.0025811062660068274,
0.006267122458666563,
-0.05779530853033066,
0.02050570398569107,
-0.0044442443177104,
0.03528555482625961,
0.037897974252700806,
0.061696041375398636,
0.04419641196727753,
-0.009868145920336246,
-0.013223136775195599,
-0.006030036602169275,
-0.01629183441400528,
0.03054383583366871,
-0.012480565346777439,
0.017598044127225876,
-0.024299079552292824,
0.0929735004901886,
-0.01795591041445732,
0.0008963416912592947,
-0.041977643966674805,
-0.053536705672740936,
-0.03771904110908508,
-0.02088146284222603,
-0.009948666207492352,
0.020702529698610306,
-0.005265098996460438,
0.07894516736268997,
-0.08216595649719238,
0.03864949196577072,
-0.009671320207417011,
-0.0005932741914875805,
0.05725850909948349,
0.0043413578532636166,
0.06838813424110413,
-0.015119824558496475,
-0.051103219389915466,
0.02088146284222603,
0.06684930622577667,
0.010378104634582996,
-0.006763661280274391,
0.0012905531330034137,
-0.023136015981435776,
0.03183215111494064,
-0.04806135967373848,
-0.01955735869705677,
0.02873661369085312,
0.04702354967594147,
-0.005121952388435602,
0.06144553795456886,
-0.05371563881635666,
0.03387198597192764,
0.08739079535007477,
-0.05908362194895744,
0.04963596910238266,
-0.08867911249399185,
0.08023348450660706,
0.013688362203538418,
-0.035929713398218155,
-0.018948987126350403,
-0.011147515848279,
0.021811913698911667,
0.035231877118349075,
0.1364184021949768,
0.06677773594856262,
-0.05876154452562332,
-0.022420285269618034,
0.020129945129156113,
-0.0005971883656457067,
-0.009447653777897358,
0.009903932921588421,
-0.038828425109386444,
-0.027287257835268974,
0.04154820367693901,
-0.05371563881635666,
0.008633509278297424,
0.008646929636597633,
-0.01673022098839283,
0.0009634415036998689,
-0.024764304980635643,
0.03000703640282154,
0.054073505103588104,
-0.04344489425420761,
0.0660262182354927,
0.03158164769411087,
-0.0036166799254715443,
-0.06387902051210403,
-0.009957612492144108,
-0.0333709754049778,
-0.018895307555794716,
0.0059808301739394665,
0.001591383945196867,
-0.00033438074751757085,
0.034211959689855576,
-0.031241673976182938,
0.024138040840625763,
0.05718693509697914,
-0.028092455118894577,
0.01409990806132555,
0.050136979669332504,
-0.0070767938159406185,
-0.0505664199590683,
-0.0005664342897944152,
-0.03728960454463959,
-0.007295986637473106,
0.04995805025100708,
0.013375230133533478,
-0.07060689479112625,
-0.05944148823618889,
0.04981490224599838,
0.047238267958164215,
0.043695397675037384,
-0.0010361329186707735,
-0.03940100967884064,
0.038291625678539276,
0.015370330773293972,
-0.017848551273345947,
-0.01649760827422142,
0.031617432832717896,
-0.014386200346052647,
-0.009993399493396282,
-0.060193005949258804,
0.030848020687699318,
0.027680909261107445,
-0.07522336393594742,
0.01252529863268137,
0.08789180964231491,
-0.04781085625290871,
0.03134903311729431,
0.008942168205976486,
-0.00875876285135746,
0.0281998161226511,
0.014341467060148716,
0.00989498570561409,
-0.0212035421282053,
-0.018966881558299065,
0.04476899653673172,
-0.004419641103595495,
0.037504322826862335,
0.04133348539471626,
-0.026088407263159752,
0.011075942777097225,
0.033567801117897034,
-0.027627229690551758,
0.03746853768825531,
0.026034727692604065,
0.03125956654548645,
0.02004047855734825,
-0.038756851106882095,
0.00781936477869749,
-0.009733946062624454,
0.019145812839269638,
-0.016077116131782532,
-0.06058666110038757,
-0.01469038613140583,
0.023994892835617065,
-0.005130899138748646,
-0.01413569413125515,
-0.03245841711759567,
-0.04720248281955719,
0.010279691778123379,
0.013062097132205963,
0.021883485838770866,
-0.016077116131782532,
-0.00962658692151308,
-0.028933439403772354,
0.06548941880464554,
-0.003589840140193701,
-0.028325067833065987,
-0.0623759888112545,
0.01869848184287548,
-0.01596975512802601,
0.039687301963567734,
-0.04963596910238266,
0.009787626564502716,
0.0034243271220475435,
0.02449590526521206,
0.0807344987988472,
-0.033818308264017105,
-0.013929921202361584,
0.003587603336200118,
-0.020953034982085228,
-0.08331113308668137,
0.003623390104621649,
-0.06452318280935287,
-0.07153734564781189,
-0.032154232263565063,
-0.004862499888986349,
-0.06695666909217834,
-0.012972630560398102,
0.036788590252399445,
-0.03972309082746506,
-0.05733008310198784,
-0.02442433312535286,
0.02247396484017372,
-0.062232840806245804,
0.018430082127451897,
-0.00008324570808326825,
-0.010315477848052979,
0.05661435052752495,
0.02726936526596546,
-0.015254024416208267,
0.03419406712055206,
-0.016882313415408134,
-0.00481329346075654,
-0.03295942768454552,
-0.02317180298268795,
-0.013697308488190174,
0.010261798277497292,
-0.049671754240989685,
-0.0035987866576761007,
0.03077644854784012,
0.004064012318849564,
0.07901674509048462,
0.06001407280564308,
0.05793845281004906,
-0.004388327710330486,
0.04562787339091301,
0.05106743052601814,
0.011603794991970062,
-0.0010551445884630084,
-0.011344341561198235,
-0.002177388872951269,
0.0008163810707628727,
-0.12060073018074036,
-0.047560349106788635,
-0.011863247491419315,
-0.0057929507456719875,
0.03312046825885773,
-0.014466719701886177,
-0.015763983130455017,
-0.02512217126786709,
-0.030114397406578064,
0.03315625339746475,
-0.04280073568224907,
0.031044848263263702,
-0.0031223781406879425,
0.00504590617492795,
0.0038202160503715277,
-0.000301390013191849,
-0.04179871082305908,
0.04781085625290871,
-0.05622069910168648,
0.008253277279436588,
0.018313776701688766,
0.050709567964076996,
-0.005640857852995396,
0.04555629938840866,
0.0012368732132017612,
-0.008687189780175686,
-0.04484057053923607,
-0.07593909651041031,
0.01860901527106762,
0.013795722275972366,
-0.035464487969875336,
-0.0036368099972605705,
-0.019056348130106926,
0.017759084701538086,
0.04408905282616615,
0.02347598783671856,
0.03675280511379242,
-0.05940570309758186,
-0.02898712083697319,
0.05443137139081955,
-0.0625191330909729,
0.032798390835523605,
0.0006637289770878851,
-0.06609778851270676,
0.01385834813117981,
-0.02970285154879093,
-0.0156655702739954,
0.012265846133232117,
-0.018716374412178993,
0.02755565755069256,
-0.008096710778772831,
0.006168709602206945,
0.02709043212234974,
-0.027197791263461113,
-0.0037956128362566233,
-0.029828105121850967,
-0.015728196129202843,
-0.000889631686732173,
0.007573332637548447,
0.0005876825307495892,
-0.00814591720700264,
0.06588307023048401,
-0.03603707253932953,
-0.03426563739776611,
0.02324337512254715,
0.09168518334627151,
0.005784003995358944,
0.028307175263762474,
-0.02984599769115448,
-0.003216317854821682,
-0.025784222409129143,
0.022760257124900818,
-0.0623759888112545,
0.0177769772708416,
-0.009067421779036522,
-0.003945468924939632,
-0.00797145813703537,
-0.0808776468038559,
0.048884451389312744,
-0.013482589274644852,
0.0014896158827468753,
0.03607286140322685,
0.010243904776871204,
0.01853744126856327,
-0.023780174553394318,
0.0562564842402935,
-0.027394616976380348,
-0.03227948397397995,
0.01809905655682087,
0.060049861669540405,
-0.004227288533002138,
-0.03199319168925285,
-0.044017478823661804,
-0.02089935541152954,
0.015075091272592545,
0.001953722909092903,
-0.03023964911699295,
0.05707957595586777,
0.0041847918182611465,
-0.0018944514449685812,
-0.0027018857654184103,
0.04262180253863335,
0.06094452366232872,
-0.014350413344800472,
-0.029488131403923035,
0.03975887596607208,
0.004616467282176018,
0.030758554115891457,
0.017615938559174538,
0.022599218413233757,
-0.012999470345675945,
-0.03433721140027046,
0.0056229643523693085,
0.013402069918811321,
-0.022724470123648643,
-0.02599894069135189,
0.03061540797352791,
0.031134314835071564,
0.011890087276697159,
-0.07930303364992142,
-0.022008739411830902,
0.018644802272319794,
-0.0025855794083327055,
0.026124194264411926,
0.05911941081285477,
-0.007788051851093769,
0.03872106596827507,
0.03975887596607208,
0.02104250155389309,
-0.04204921796917915,
-0.009483440779149532,
-0.023028656840324402,
-0.07350561022758484,
0.07210993766784668,
0.081020787358284,
-0.03072276897728443,
-0.03061540797352791,
-0.007336246315389872,
-0.05554075166583061,
0.048168718814849854,
0.04083247482776642,
0.029076585546135902,
0.012999470345675945,
-0.02072042226791382,
0.025354783982038498,
-0.0015690173022449017,
-0.0292913056910038,
0.001481787534430623,
-0.014037281274795532,
0.0029233151581138372,
0.015960808843374252,
0.006826287601143122,
-0.013276816345751286,
-0.023923320695757866,
-0.07858730107545853,
-0.03245841711759567,
0.0023574400693178177,
-0.04963596910238266,
0.008682715706527233,
-0.018224310129880905,
0.01948578655719757,
-0.09003900736570358,
-0.003185004461556673,
0.01492299884557724,
0.004126638639718294,
-0.01823325641453266,
-0.04727405682206154,
-0.031313247978687286,
-0.03800533339381218,
-0.02490745112299919,
0.05890468880534172,
0.025820009410381317,
-0.015925021842122078,
0.06305593252182007,
-0.009501333348453045,
-0.07400662451982498,
-0.013786775059998035,
-0.004790926817804575,
0.009733946062624454,
-0.050709567964076996,
0.006862074602395296,
-0.02347598783671856,
-0.019199494272470474,
-0.0055692847818136215,
0.003840346122160554,
-0.03478454425930977,
-0.016551287844777107,
-0.0055558644235134125,
-0.011362235061824322,
0.053751423954963684,
-0.0724320113658905,
-0.01004707906395197,
-0.0002256231236970052,
-0.06928279250860214,
-0.01986154541373253,
0.013133670203387737,
-0.06541784852743149,
0.023654920980334282,
-0.024406438693404198,
0.016238154843449593,
-0.014600919559597969,
0.05135372653603554,
-0.04541315510869026,
0.09104102849960327,
-0.0031715845689177513,
0.002954628551378846,
0.041047193109989166,
0.004956439603120089,
-0.08359742164611816,
-0.02333284169435501,
0.018009589985013008,
-0.07944618165493011,
-0.01225689984858036,
-0.01987943798303604,
-0.01823325641453266,
-0.027000965550541878,
0.07808629423379898,
0.07944618165493011,
0.014556186273694038,
-0.0345340371131897,
0.05253468081355095,
-0.004934072960168123,
0.008043031208217144,
-0.002096869284287095,
-0.01772329770028591,
-0.01645287498831749,
-0.026660993695259094,
0.0047998735681176186,
-0.01925317384302616,
-0.03501715511083603,
0.0059495167806744576,
0.016354462131857872,
-0.03077644854784012,
-0.01986154541373253,
0.04262180253863335,
-0.0341046005487442,
-0.022885510697960854,
-0.03362147882580757,
0.006276069208979607,
-0.03023964911699295,
0.00899137556552887,
0.027215685695409775,
-0.07729898393154144,
0.03739696368575096,
-0.02512217126786709,
-0.01390308141708374,
-0.037826403975486755,
0.02270657755434513,
0.0022131756413728,
-0.017410164698958397,
0.019986798986792564,
-0.018134843558073044,
0.02449590526521206,
-0.02333284169435501,
-0.005117479246109724,
0.00819065049290657,
-0.014538292773067951,
-0.002411120105534792,
0.016631808131933212,
0.028092455118894577,
0.03943679854273796,
0.03143849968910217,
-0.056435417383909225,
-0.04387433081865311,
-0.022885510697960854,
-0.026983072981238365,
-0.0667419508099556,
-0.016533393412828445,
-0.01041389163583517,
0.022205565124750137,
-0.009984452277421951,
-0.0424070842564106,
-0.029416559264063835,
-0.03972309082746506,
0.07246779650449753,
-0.07429291307926178,
-0.015933969989418983,
-0.060443513095378876,
-0.039472583681344986,
0.040259890258312225,
0.038613706827163696,
0.018000643700361252,
-0.025247422978281975,
-0.010861223563551903,
-0.06173183023929596,
-0.025265317410230637,
0.048669733107089996,
0.00003714953345479444,
0.06183918938040733,
-0.050136979669332504,
-0.0008722975617274642,
-0.023529667407274246,
-0.03186793997883797,
-0.08238068222999573,
-0.030364902690052986,
-0.0441606231033802,
-0.03839898854494095,
0.028700826689600945,
0.04351646825671196,
0.06588307023048401,
-0.008973482064902782,
-0.02175823412835598,
-0.031456392258405685,
-0.03668123111128807,
-0.015772929415106773,
0.019181599840521812,
-0.03771904110908508,
0.021400367841124535,
-0.03558974340558052,
0.0012290449813008308,
0.025318996980786324,
-0.0201836246997118,
0.02490745112299919,
0.010378104634582996,
0.003218554425984621,
-0.006213442888110876,
-0.01754436455667019,
0.00902716163545847,
-0.019825758412480354,
0.03539291396737099,
0.0005658750887960196,
-0.00598977692425251,
0.016739167273044586,
-0.001643945463001728,
-0.0048848665319383144,
0.03965151682496071,
-0.009295561350882053,
-0.05503974109888077,
-0.009993399493396282,
-0.030758554115891457,
0.016998618841171265,
0.01515561155974865,
-0.04738141596317291,
0.04204921796917915,
0.030347010120749474,
0.0345340371131897,
0.028700826689600945
] |
725,035 | tf_keras.src.engine.training | predict_on_batch | Returns predictions for a single batch of samples.
Args:
x: Input data. It could be:
- A Numpy array (or array-like), or a list of arrays (in case the
model has multiple inputs).
- A TensorFlow tensor, or a list of tensors (in case the model has
multiple inputs).
Returns:
Numpy array(s) of predictions.
Raises:
RuntimeError: If `model.predict_on_batch` is wrapped in a
`tf.function`.
| def predict_on_batch(self, x):
"""Returns predictions for a single batch of samples.
Args:
x: Input data. It could be:
- A Numpy array (or array-like), or a list of arrays (in case the
model has multiple inputs).
- A TensorFlow tensor, or a list of tensors (in case the model has
multiple inputs).
Returns:
Numpy array(s) of predictions.
Raises:
RuntimeError: If `model.predict_on_batch` is wrapped in a
`tf.function`.
"""
self._check_call_args("predict_on_batch")
_disallow_inside_tf_function("predict_on_batch")
with self.distribute_strategy.scope():
iterator = data_adapter.single_batch_iterator(
self.distribute_strategy, x
)
self.predict_function = self.make_predict_function()
outputs = self.predict_function(iterator)
return tf_utils.sync_to_numpy_or_python_type(outputs)
| (self, x) | [
0.01689780130982399,
-0.021345531567931175,
-0.07623659074306488,
0.008105049841105938,
0.012414347380399704,
0.01866617612540722,
-0.04722810536623001,
0.020559588447213173,
0.05465885251760483,
0.008859734982252121,
0.010494141839444637,
-0.03163425624370575,
-0.01810351200401783,
-0.023042457178235054,
0.03722517937421799,
0.00380915030837059,
0.05244391784071922,
0.007962151430547237,
-0.020220203325152397,
0.026257682591676712,
0.034706585109233856,
0.015915371477603912,
-0.0634114146232605,
0.01271800696849823,
0.01830892823636532,
0.01952357031404972,
0.035438939929008484,
-0.022006439045071602,
0.027543773874640465,
0.013200291432440281,
0.03872561827301979,
-0.02557891421020031,
0.03279531002044678,
0.004412005189806223,
-0.022202925756573677,
-0.010869251564145088,
-0.022310100495815277,
0.07159237563610077,
-0.04219091683626175,
-0.08166675269603729,
-0.007220862898975611,
-0.0629112645983696,
0.03736807778477669,
0.048799995332956314,
-0.013137772679328918,
0.027043627575039864,
0.0032353217247873545,
-0.011047875508666039,
-0.05012181028723717,
0.0011186308693140745,
-0.03256310150027275,
-0.02143484354019165,
0.02388198859989643,
0.009047290310263634,
0.009060687385499477,
0.008725767955183983,
0.025489602237939835,
-0.03656427189707756,
-0.05001463368535042,
-0.010119032114744186,
0.05966031551361084,
-0.008122912608087063,
0.024203510954976082,
0.0018989931559190154,
0.029883744195103645,
-0.029526496306061745,
0.005577525123953819,
-0.03297393396496773,
-0.07227114588022232,
0.03029457852244377,
-0.0653405487537384,
-0.03617129847407341,
0.021988576278090477,
-0.002274102997034788,
0.0022249813191592693,
0.032045092433691025,
0.06316133588552475,
0.0068323565647006035,
0.05162224918603897,
0.027436599135398865,
-0.0320272296667099,
-0.004570533987134695,
-0.01518301386386156,
-0.022756658494472504,
-0.009860028512775898,
-0.053551383316516876,
0.018058855086565018,
0.014825766906142235,
-0.030098093673586845,
0.03801112249493599,
-0.0023109440226107836,
0.05983893945813179,
0.014772179536521435,
0.02940146066248417,
0.02348901703953743,
0.0014446191489696503,
0.000013553771168517414,
0.016960320994257927,
-0.021595604717731476,
0.03740380331873894,
-0.010619178414344788,
0.08166675269603729,
0.003512188559398055,
-0.016799557954072952,
-0.0032576497178524733,
-0.005492678843438625,
-0.017933819442987442,
0.005573059432208538,
-0.02540029026567936,
0.024167785421013832,
-0.026972178369760513,
0.056873783469200134,
-0.0074754017405211926,
0.02107759565114975,
-0.014995459467172623,
0.02904421277344227,
-0.028651241213083267,
0.014111272059381008,
-0.09645679593086243,
-0.0009383326396346092,
0.023971300572156906,
0.06698388606309891,
-0.005282795988023281,
-0.027901021763682365,
-0.01799633726477623,
-0.005497144069522619,
0.07323571294546127,
0.01930922083556652,
-0.006153586320579052,
-0.02082752250134945,
-0.05119355022907257,
0.0008367403643205762,
-0.01934494636952877,
0.03531390428543091,
0.02841903083026409,
0.01970219425857067,
0.011771301738917828,
0.017058562487363815,
-0.03499238193035126,
-0.03801112249493599,
0.044905997812747955,
0.01296808011829853,
0.06759120523929596,
0.002715080277994275,
0.016388723626732826,
-0.07041346281766891,
0.02320321835577488,
0.015209808014333248,
0.027829572558403015,
-0.020202340558171272,
-0.009860028512775898,
0.029204973950982094,
0.04147642105817795,
-0.03040175326168537,
-0.040619030594825745,
0.07823717594146729,
-0.015665298327803612,
-0.043941430747509,
0.05265826731920242,
-0.01866617612540722,
-0.03479589521884918,
0.05080058053135872,
-0.009216982871294022,
0.016808489337563515,
-0.024578621610999107,
0.03036602772772312,
-0.06573352217674255,
0.013700437732040882,
-0.004724596627056599,
-0.028669103980064392,
0.06308989226818085,
0.03293820843100548,
0.0845961794257164,
-0.009467056021094322,
-0.045191794633865356,
0.05112210288643837,
0.03447437286376953,
0.0017192531377077103,
0.02182781510055065,
0.06466177850961685,
0.025668226182460785,
-0.033491943031549454,
-0.015138358809053898,
-0.03944011405110359,
-0.05973176285624504,
0.004898754879832268,
-0.044727373868227005,
0.019112735986709595,
0.0013061857316643,
0.04747818037867546,
-0.05133645236492157,
0.0320986770093441,
0.034563686698675156,
0.011074669659137726,
-0.07173527777194977,
-0.002302012871950865,
-0.040619030594825745,
0.0070645674131810665,
0.02820468135178089,
-0.009699266403913498,
0.0023310391698032618,
-0.05122927576303482,
0.053051237016916275,
0.061267927289009094,
-0.08852590620517731,
0.025489602237939835,
0.01406661607325077,
0.002012865850701928,
-0.05948169156908989,
-0.06741258502006531,
-0.036081988364458084,
-0.017701609060168266,
0.022435136139392853,
0.057766903191804886,
0.04283396154642105,
0.012441140599548817,
-0.041262075304985046,
0.0017415810143575072,
0.025168079882860184,
-0.033634841442108154,
0.018049923703074455,
-0.057981252670288086,
0.000581643427722156,
0.002496266271919012,
0.05037188157439232,
-0.04708520695567131,
0.03929721191525459,
0.016799557954072952,
0.014781110920011997,
-0.024650070816278458,
-0.018648313358426094,
0.013110979460179806,
0.06980614364147186,
-0.01753191649913788,
0.06998476386070251,
-0.04990746080875397,
-0.00005951797356829047,
-0.03933293744921684,
0.03136632218956947,
0.028901314362883568,
0.009601023979485035,
0.015227669849991798,
0.022417273372411728,
-0.05005035921931267,
-0.008940116502344608,
0.10110101103782654,
-0.004514713771641254,
0.056766610592603683,
0.007484333124011755,
-0.057552553713321686,
-0.0212204959243536,
0.033920641988515854,
0.012566177174448967,
0.012414347380399704,
0.017138943076133728,
-0.04390570521354675,
0.06337568908929825,
-0.0014334551524370909,
0.02795460820198059,
0.05680233612656593,
-0.05880292132496834,
0.06723395735025406,
-0.01529018860310316,
0.005653440020978451,
-0.023328253999352455,
-0.012655489146709442,
-0.040404681116342545,
0.052979789674282074,
0.05805270001292229,
0.0629827156662941,
0.05094347894191742,
0.08838300406932831,
-0.02373909018933773,
-0.07580789923667908,
0.02922283671796322,
0.02331039309501648,
0.032152265310287476,
0.0104494858533144,
0.016960320994257927,
-0.005729354918003082,
0.027972470968961716,
-0.09109808504581451,
0.010869251564145088,
-0.0047424593940377235,
0.016317274421453476,
-0.062018148601055145,
0.019148459658026695,
-0.016853146255016327,
0.0313841849565506,
-0.01803206279873848,
0.0217563658952713,
0.012325035408139229,
0.028544066473841667,
-0.023721227422356606,
-0.05901727080345154,
-0.007332502864301205,
0.002498498884961009,
-0.010065445676445961,
0.0035166540183126926,
-0.006689457688480616,
0.0038984622806310654,
0.03340263292193413,
0.014280964620411396,
-0.010244068689644337,
-0.026204096153378487,
-0.009359881281852722,
0.03893996775150299,
0.025025179609656334,
-0.087882861495018,
-0.024453584104776382,
0.02961580827832222,
0.017067493870854378,
0.0018621520139276981,
-0.0648403987288475,
-0.07269984483718872,
-0.041440699249506,
0.05169369652867317,
0.023113906383514404,
0.03683220595121384,
-0.014004098251461983,
-0.012664420530200005,
0.07102078199386597,
0.064911849796772,
0.028008196502923965,
0.008252414874732494,
0.013593262992799282,
0.0850248783826828,
-0.017898093909025192,
-0.05905299261212349,
0.0648403987288475,
0.05412298068404198,
-0.041440699249506,
-0.01271800696849823,
0.0420122928917408,
-0.04637071117758751,
0.003818081459030509,
-0.012003512121737003,
0.036153435707092285,
0.036260612308979034,
0.007935358211398125,
-0.03911858797073364,
-0.0037488648667931557,
0.0033960831351578236,
0.045120347291231155,
0.005590921733528376,
0.03249165043234825,
-0.022238649427890778,
0.049264416098594666,
0.005256002303212881,
0.03036602772772312,
0.026722105219960213,
0.005130965728312731,
0.013119910843670368,
0.009895753115415573,
-0.011565884575247765,
-0.016245825216174126,
-0.001976024592295289,
-0.01718359999358654,
-0.003952049184590578,
0.0014524339931085706,
-0.008926719427108765,
-0.030633963644504547,
0.014298827387392521,
-0.0026123714633286,
0.05808842554688454,
-0.00184875528793782,
-0.021952852606773376,
0.007287846878170967,
0.0036528545897454023,
0.02716866508126259,
-0.014638211578130722,
0.02277452126145363,
-0.04801404848694801,
0.0835958868265152,
-0.0022428438533097506,
0.009681404568254948,
0.0017382318619638681,
-0.007051170337945223,
-0.00010131312592420727,
0.05987466499209404,
-0.02388198859989643,
-0.03134845942258835,
0.03304538503289223,
-0.003152708290144801,
0.01142298523336649,
0.03318828344345093,
-0.0037711928598582745,
-0.06755547970533371,
-0.012905562296509743,
-0.053765732795000076,
0.028151094913482666,
-0.04808549955487251,
-0.053801458328962326,
-0.024525033310055733,
-0.07487905025482178,
-0.05419442802667618,
0.010369105264544487,
0.025703949853777885,
0.0064617120660841465,
-0.034920934587717056,
-0.040940552949905396,
0.01778198964893818,
-0.011771301738917828,
-0.016495898365974426,
-0.022327961400151253,
0.006577817723155022,
-0.012235723435878754,
-0.023756951093673706,
-0.05955313891172409,
0.057266756892204285,
0.033920641988515854,
0.016987113282084465,
0.009475987404584885,
-0.01496866624802351,
0.028954900801181793,
0.06351858377456665,
-0.053444210439920425,
0.0432983860373497,
-0.017701609060168266,
-0.017415810376405716,
0.03940438851714134,
0.05483747646212578,
0.012191067449748516,
0.0004914942546747625,
0.005546265747398138,
-0.009011565707623959,
0.0011353768641129136,
0.03736807778477669,
0.01753191649913788,
-0.011226499453186989,
-0.015004390850663185,
-0.14089837670326233,
-0.07162810117006302,
-0.0002509104670025408,
-0.027007903903722763,
0.040404681116342545,
0.02093469724059105,
0.026507757604122162,
-0.028722690418362617,
-0.007220862898975611,
-0.012753731571137905,
0.01859472692012787,
0.05051477998495102,
0.03534962981939316,
-0.004202122334390879,
-0.0025811123196035624,
-0.03343835473060608,
-0.0328846238553524,
-0.013602194376289845,
-0.0436556302011013,
0.009958270937204361,
-0.006274157203733921,
0.061982423067092896,
0.028669103980064392,
0.013521813787519932,
-0.07930891960859299,
-0.0428696870803833,
-0.0420122928917408,
-0.031669981777668,
-0.002672657137736678,
-0.013986235484480858,
0.02713293954730034,
0.04537041857838631,
-0.07973761856555939,
-0.0023734623100608587,
-0.0869540125131607,
-0.020470276474952698,
0.026757830753922462,
0.01952357031404972,
-0.016272619366645813,
0.05037188157439232,
0.010842458344995975,
0.007930892519652843,
0.03025885485112667,
-0.030901899561285973,
0.010199412703514099,
0.026972178369760513,
0.011244361288845539,
0.0051175691187381744,
0.020720349624753,
0.0028669103048741817,
-0.022542310878634453,
0.008917788043618202,
0.025346701964735985,
-0.00022048862592782825,
-0.0026570274494588375,
-0.0032978400122374296,
-0.001407778006978333,
0.03577832505106926,
0.034277886152267456,
-0.017835576087236404,
0.02525738999247551,
0.0831671953201294,
-0.023042457178235054,
-0.049585938453674316,
-0.040011707693338394,
0.03990453481674194,
0.030616100877523422,
0.029187113046646118,
-0.0022651718463748693,
0.03411712497472763,
-0.00015783078561071306,
-0.006041946355253458,
-0.0442986786365509,
-0.026436306536197662,
0.020202340558171272,
-0.0021836746018379927,
0.016996044665575027,
-0.05808842554688454,
-0.00047865568194538355,
-0.07959471642971039,
0.01781771332025528,
-0.011967787519097328,
0.006033015437424183,
0.00853821262717247,
0.008524815551936626,
0.06055343523621559,
-0.007386089768260717,
-0.024292822927236557,
0.001358656445518136,
0.05101492628455162,
0.019612882286310196,
-0.002037426456809044,
-0.03783249855041504,
-0.02745446190237999,
0.05230101943016052,
0.03715372830629349,
-0.010833526961505413,
0.016996044665575027,
0.02745446190237999,
-0.015843922272324562,
-0.015575986355543137,
0.024542896077036858,
0.0010622527915984392,
-0.0005347547121345997,
0.00988682173192501,
-0.016951389610767365,
-0.0211490448564291,
-0.016701316460967064,
0.05240819230675697,
-0.015379500575363636,
-0.024560758844017982,
-0.012798387557268143,
-0.013789749704301357,
-0.01271800696849823,
-0.029705120250582695,
-0.024792969226837158,
0.013843336142599583,
-0.025168079882860184,
0.05487319827079773,
-0.02164919301867485,
-0.045048896223306656,
0.035689014941453934,
0.0014256404247134924,
0.008051463402807713,
0.009413468651473522,
0.011458709836006165,
0.01813923567533493,
-0.015495605766773224,
0.008038066327571869,
-0.034170713275671005,
0.009069617837667465,
0.04601346328854561,
0.007109222933650017,
0.033384770154953,
0.020202340558171272,
-0.04169077053666115,
0.01970219425857067,
-0.013003804720938206,
-0.03336690738797188,
0.030723275616765022,
0.014272033236920834,
-0.02593616023659706,
-0.012503658421337605,
-0.022488722577691078,
0.01379868108779192,
-0.0032509511802345514,
-0.07616514712572098,
-0.024560758844017982,
0.0419408455491066,
-0.017621228471398354,
-0.028436891734600067,
0.0017382318619638681,
-0.021702779456973076,
0.004693337716162205,
0.019112735986709595,
-0.01941639557480812,
0.024632208049297333,
-0.066769540309906,
-0.027365149930119514,
-0.020220203325152397,
0.030884036794304848,
-0.014191652648150921,
0.013646850362420082,
0.05433733016252518,
-0.011896338313817978,
-0.024596482515335083,
-0.03865416720509529,
-0.02936573512852192,
-0.07516485452651978,
-0.011271155439317226,
0.07652239501476288,
-0.0012079427251592278,
0.007930892519652843,
0.0626254677772522,
-0.07973761856555939,
-0.08995489031076431,
-0.0029696188867092133,
0.03436719998717308,
-0.05033615976572037,
-0.057874079793691635,
-0.01498652808368206,
-0.013423570431768894,
-0.0035546114668250084,
0.011467641219496727,
0.027400875464081764,
-0.011181843467056751,
0.04844274744391441,
0.005644508637487888,
-0.01406661607325077,
0.09724274277687073,
-0.008886529132723808,
-0.006318813189864159,
-0.006510833743959665,
-0.018291067332029343,
0.0018610355909913778,
0.007698681205511093,
-0.07402165979146957,
0.04812122508883476,
0.004302598536014557,
0.03509955480694771,
0.03904714062809944,
0.031830742955207825,
-0.007886236533522606,
0.1268942803144455,
-0.02741873823106289,
-0.026722105219960213,
0.02954435907304287,
-0.0035479131620377302,
-0.09281287342309952,
-0.057088132947683334,
0.030651826411485672,
0.007993410341441631,
-0.014004098251461983,
0.02334611676633358,
-0.07980906963348389,
-0.030419616028666496,
0.03811829537153244,
0.10038651525974274,
0.004644216038286686,
0.0017326498636975884,
-0.00021420889243017882,
0.004916617181152105,
0.031294871121644974,
0.044655922800302505,
0.05140789970755577,
-0.007537920027971268,
-0.0018498717108741403,
-0.0320272296667099,
-0.010092238895595074,
0.000561548222322017,
-0.008627524599432945,
-0.05583776906132698,
0.006434918846935034,
-0.01909487321972847,
-0.005532869137823582,
-0.0638401061296463,
-0.05430160462856293,
-0.01877335086464882,
0.012726938351988792,
-0.057302482426166534,
0.033849190920591354,
-0.02413206174969673,
-0.02377481386065483,
0.06058915704488754,
-0.07423600554466248,
0.011030013673007488,
-0.016290482133626938,
0.006792166270315647,
-0.030616100877523422,
-0.03865416720509529,
-0.02986588142812252,
0.026918591931462288,
0.023078180849552155,
-0.03854699432849884,
-0.06923454254865646,
-0.025275252759456635,
0.023578327149152756,
-0.03493879362940788,
-0.02791888453066349,
0.04776397719979286,
-0.002235029125586152,
0.052586816251277924,
-0.048585645854473114,
-0.04619208723306656,
0.0008417641511186957,
-0.007144948001950979,
0.015174083411693573,
-0.04987173527479172,
0.0022528914269059896,
-0.03476016968488693,
-0.027436599135398865,
-0.03624274954199791,
-0.025882573798298836,
-0.0021993042901158333,
0.07566499710083008,
-0.10174405574798584,
-0.020184477791190147,
-0.03840409591794014,
0.016460172832012177,
0.03177715465426445,
-0.0008049230091273785,
0.0314556322991848,
-0.030026644468307495,
0.03113410994410515,
0.00866324920207262,
-0.03025885485112667,
-0.007823717780411243,
-0.017103219404816628,
0.0625540167093277,
-0.04615636169910431,
0.0013352121459320188,
0.01192313153296709,
0.022131476551294327,
-0.05612356588244438,
-0.04640643671154976,
0.05601639300584793,
-0.024507170543074608,
0.028383305296301842,
0.013905854895710945,
0.045227520167827606,
0.012878768146038055,
-0.019398532807826996,
-0.03559970110654831,
0.02306031994521618,
0.02706149034202099,
0.018541140481829643,
-0.053122688084840775,
0.0016455708537250757,
-0.061803799122571945,
0.042226642370224,
-0.045441869646310806,
-0.010199412703514099,
-0.021702779456973076,
-0.0015763541450724006,
0.02402488701045513,
-0.034277886152267456,
-0.041083451360464096,
0.028186818584799767,
-0.04190512001514435,
0.031223421916365623,
0.024399997666478157,
-0.02943718619644642,
-0.013584332540631294,
0.09295577555894852,
-0.005309589207172394,
0.009297363460063934,
-0.06287553906440735,
-0.015316981822252274,
0.006613542325794697,
-0.040333230048418045,
-0.0166923850774765,
0.0049210828728973866,
-0.04629926383495331,
-0.022113613784313202,
-0.05483747646212578,
0.02745446190237999,
0.031259145587682724
] |
725,036 | tf_keras.src.engine.training | predict_step | The logic for one inference step.
This method can be overridden to support custom inference logic.
This method is called by `Model.make_predict_function`.
This method should contain the mathematical logic for one step of
inference. This typically includes the forward pass.
Configuration details for *how* this logic is run (e.g. `tf.function`
and `tf.distribute.Strategy` settings), should be left to
`Model.make_predict_function`, which can also be overridden.
Args:
data: A nested structure of `Tensor`s.
Returns:
The result of one inference step, typically the output of calling the
`Model` on data.
| def predict_step(self, data):
"""The logic for one inference step.
This method can be overridden to support custom inference logic.
This method is called by `Model.make_predict_function`.
This method should contain the mathematical logic for one step of
inference. This typically includes the forward pass.
Configuration details for *how* this logic is run (e.g. `tf.function`
and `tf.distribute.Strategy` settings), should be left to
`Model.make_predict_function`, which can also be overridden.
Args:
data: A nested structure of `Tensor`s.
Returns:
The result of one inference step, typically the output of calling the
`Model` on data.
"""
x, _, _ = data_adapter.unpack_x_y_sample_weight(data)
return self(x, training=False)
| (self, data) | [
0.025024527683854103,
-0.02221508137881756,
-0.030941106379032135,
0.026661818847060204,
0.020373128354549408,
-0.006446839310228825,
0.011814553290605545,
-0.026140863075852394,
0.03207604959607124,
0.03510875999927521,
0.04123000055551529,
-0.016856670379638672,
0.012614593841135502,
0.013172762468457222,
0.016800854355096817,
0.024615203961730003,
0.03490410000085831,
0.03918338567018509,
-0.0284479558467865,
0.03406684845685959,
0.03382497280836105,
-0.0062700859270989895,
-0.05257941409945488,
0.03157369792461395,
-0.01584266498684883,
0.01983356475830078,
-0.007991103455424309,
-0.019089341163635254,
0.015275194309651852,
0.02260579913854599,
-0.03629951924085617,
-0.025229187682271004,
-0.025396639481186867,
-0.010140050202608109,
0.059575118124485016,
0.000898882863111794,
-0.03110855631530285,
0.021098745986819267,
-0.09064646810293198,
-0.025024527683854103,
-0.02228950522840023,
-0.08007849007844925,
-0.0006349159521050751,
0.03977876529097557,
-0.045658133924007416,
0.015135652385652065,
-0.026568790897727013,
-0.04405805096030235,
0.020503366366028786,
-0.03244816139340401,
-0.021098745986819267,
-0.03570413962006569,
0.026140863075852394,
0.023163966834545135,
0.024317514151334763,
0.051909614354372025,
0.00879579596221447,
-0.04450458660721779,
-0.04294171556830406,
-0.018056731671094894,
0.05440276488661766,
-0.044653430581092834,
0.018940497189760208,
0.0315178819000721,
0.014596090652048588,
0.01951727084815502,
-0.004537439905107021,
0.004060671199113131,
-0.05830993875861168,
0.02454078197479248,
-0.03343425691127777,
-0.05726802721619606,
-0.014893779531121254,
0.05332363769412041,
0.04100673273205757,
0.01380535215139389,
0.052542202174663544,
-0.03077365644276142,
0.07509218901395798,
0.029824770987033844,
-0.040671832859516144,
-0.027554888278245926,
-0.0664219781756401,
-0.034829676151275635,
-0.03661581501364708,
-0.021247591823339462,
0.030959712341427803,
-0.021098745986819267,
-0.049974631518125534,
-0.00930744968354702,
-0.02260579913854599,
0.04703494906425476,
0.01098660472780466,
0.07315720617771149,
0.07978079468011856,
0.010102839209139347,
-0.013609993271529675,
-0.007893424481153488,
-0.015005413442850113,
0.006330554373562336,
0.012195968069136143,
0.0826832726597786,
-0.012102940119802952,
-0.012409932911396027,
0.012772741727530956,
-0.050495587289333344,
-0.021415041759610176,
0.02281046099960804,
-0.0564865916967392,
-0.005200264044106007,
-0.03215046972036362,
0.018084639683365822,
-0.05909137427806854,
0.04971415176987648,
-0.032969117164611816,
0.02495010383427143,
0.012754136696457863,
0.011972701177001,
-0.0581238828599453,
0.04856060817837715,
-0.0037536791060119867,
0.030457360669970512,
-0.061733368784189224,
-0.011358716525137424,
-0.047518692910671234,
-0.027257198467850685,
0.0725618228316307,
-0.008256233297288418,
-0.040113665163517,
-0.09459085017442703,
0.016735734418034554,
-0.024726837873458862,
-0.025005921721458435,
0.03455059230327606,
-0.02852237969636917,
0.04926761984825134,
0.05749129131436348,
0.03142485395073891,
-0.036466967314481735,
0.025824567303061485,
0.023870980367064476,
-0.01718226820230484,
0.05012347549200058,
0.04160211235284805,
0.006763134151697159,
-0.031331826001405716,
-0.005502604879438877,
0.03752748668193817,
0.04305335134267807,
0.0186242014169693,
0.02249416522681713,
0.021563885733485222,
0.06705456972122192,
-0.04204864799976349,
0.01636362262070179,
0.009619093500077724,
-0.04636514559388161,
-0.027536282315850258,
-0.025229187682271004,
-0.012075032107532024,
-0.03948107361793518,
-0.019070737063884735,
0.041155580431222916,
-0.00997259933501482,
0.011088935658335686,
0.03207604959607124,
-0.07096174359321594,
0.045062754303216934,
0.03468083217740059,
0.01687527634203434,
0.07062683999538422,
0.010354014113545418,
0.022531377151608467,
-0.01923818700015545,
-0.038699641823768616,
0.03873685002326965,
0.06474747508764267,
-0.014326308853924274,
0.06337065994739532,
0.03855079412460327,
-0.0005279338220134377,
-0.0229220949113369,
-0.06504516303539276,
-0.04982578754425049,
-0.031034134328365326,
0.015665913000702858,
-0.012363418936729431,
0.021117351949214935,
0.00807948037981987,
0.05924021825194359,
-0.02658739686012268,
-0.012698319740593433,
0.019145159050822258,
0.00772132258862257,
-0.026326918974518776,
0.009619093500077724,
0.009935388341546059,
0.013935592025518417,
0.042904503643512726,
-0.029024729505181313,
0.007367816288024187,
-0.0791109949350357,
0.07635736465454102,
0.04264402762055397,
-0.0758364126086235,
0.04309055954217911,
0.014689118601381779,
0.06783600151538849,
-0.03304353728890419,
-0.03603903949260712,
-0.03977876529097557,
-0.015126349404454231,
0.06705456972122192,
0.04696052521467209,
0.04346267133951187,
-0.02249416522681713,
-0.005809597671031952,
-0.03977876529097557,
0.037471670657396317,
-0.0050514196045696735,
0.008791144005954266,
-0.02014986053109169,
-0.029638715088367462,
0.04815128445625305,
0.05142586678266525,
-0.06757552921772003,
0.020819662138819695,
-0.019610298797488213,
-0.04111836850643158,
-0.02158249169588089,
-0.03611346334218979,
-0.03752748668193817,
0.009465597569942474,
-0.03981597721576691,
0.06776158511638641,
-0.025247793644666672,
-0.03341565281152725,
-0.026419946923851967,
-0.016642706468701363,
0.025005921721458435,
-0.005446788389235735,
0.018884681165218353,
-0.020503366366028786,
-0.011879673227667809,
-0.03752748668193817,
0.016233382746577263,
0.031034134328365326,
0.0016570609295740724,
0.021842969581484795,
-0.053025949746370316,
0.0032141166739165783,
0.012549474835395813,
-0.0026419947389513254,
0.03732282668352127,
0.022047631442546844,
-0.01881025731563568,
0.10195866972208023,
-0.018968405202031136,
0.05388180539011955,
0.0613984689116478,
-0.01559149008244276,
0.032950509339571,
-0.00838182121515274,
0.04156490042805672,
-0.04242075979709625,
-0.03559250757098198,
-0.05983559787273407,
-0.018689321354031563,
0.042495183646678925,
0.031350430101156235,
0.13053686916828156,
0.038513585925102234,
-0.004065322689712048,
0.021638307720422745,
0.017433444038033485,
-0.005321200471371412,
0.01933121494948864,
-0.000024637878595967777,
-0.030029432848095894,
-0.017042726278305054,
0.012856466695666313,
-0.05871926248073578,
-0.0552586205303669,
-0.016633402556180954,
-0.040262509137392044,
-0.013526268303394318,
0.010791245847940445,
0.00997259933501482,
0.0905720442533493,
-0.03996482118964195,
0.036057647317647934,
0.040448565036058426,
0.04264402762055397,
0.008214370347559452,
0.015684517100453377,
0.0019187021534889936,
-0.03903454169631004,
0.017973005771636963,
0.009149301797151566,
-0.01508913841098547,
0.043202195316553116,
-0.017675315961241722,
0.01781485788524151,
-0.019294003024697304,
-0.05879368260502815,
0.022568589076399803,
0.025824567303061485,
0.05953790992498398,
-0.030550388619303703,
-0.06984540820121765,
0.01119126658886671,
0.017424140125513077,
-0.01942424289882183,
0.016893882304430008,
-0.0749061331152916,
-0.08915802091360092,
0.03027130477130413,
0.03229931369423866,
0.020373128354549408,
0.023889586329460144,
-0.023350022733211517,
0.07799465954303741,
0.03477386012673378,
0.004760706797242165,
0.009888874366879463,
-0.006111938506364822,
0.08201346546411514,
-0.03936944156885147,
-0.008656254038214684,
0.0306992344558239,
0.013303001411259174,
-0.012354115955531597,
-0.006772437132894993,
0.05213288217782974,
-0.08089713007211685,
-0.032783061265945435,
0.0025489667896181345,
0.03490410000085831,
0.013098339550197124,
0.060282133519649506,
0.00807948037981987,
-0.03153648599982262,
0.023033728823065758,
0.027368832379579544,
0.055891212075948715,
0.005432833917438984,
0.035350631922483444,
0.01962890475988388,
0.044132474809885025,
0.05365854129195213,
-0.046886101365089417,
-0.015163561329245567,
0.004860712215304375,
0.01585196889936924,
0.03304353728890419,
-0.0364297591149807,
-0.029843376949429512,
-0.03944386541843414,
-0.0032629563938826323,
-0.012075032107532024,
0.013051825575530529,
0.038699641823768616,
-0.06776158511638641,
0.031648118048906326,
0.018252089619636536,
-0.036373939365148544,
-0.059351854026317596,
0.04971415176987648,
0.01365650724619627,
0.06266365200281143,
-0.011340110562741756,
-0.03996482118964195,
-0.018745137378573418,
0.023964008316397667,
0.02517337165772915,
0.03006664291024208,
0.024391936138272285,
0.020503366366028786,
0.008242279291152954,
0.033806368708610535,
-0.007125943433493376,
-0.008609740063548088,
-0.03382497280836105,
0.02126619592308998,
0.04037414491176605,
0.005684009753167629,
0.00997259933501482,
-0.05101654678583145,
0.028875885531306267,
-0.03170393779873848,
-0.0037443763576447964,
-0.027480466291308403,
-0.021340619772672653,
-0.04171374812722206,
-0.012968100607395172,
-0.03008524887263775,
-0.01811254769563675,
0.03977876529097557,
-0.05570515617728233,
-0.02517337165772915,
-0.028187477961182594,
0.00031891153776086867,
0.021805759519338608,
0.009181861765682697,
0.004556045401841402,
-0.008400427177548409,
0.02913636341691017,
0.020168466493487358,
-0.015833362936973572,
0.021210379898548126,
0.009944691322743893,
0.036969318985939026,
0.04234633594751358,
0.011684314347803593,
0.011237780563533306,
0.0601704977452755,
0.011907581239938736,
0.044951122254133224,
-0.011079632677137852,
-0.008991154842078686,
0.019107947126030922,
0.07085011154413223,
0.01717296615242958,
0.02098711207509041,
0.014289097860455513,
0.010419134050607681,
-0.0007744579343125224,
0.029601503163576126,
0.0025768750347197056,
0.0319272018969059,
-0.02658739686012268,
-0.0791109949350357,
-0.02217787131667137,
-0.009767938405275345,
-0.008200416341423988,
0.020224282518029213,
-0.0134053323417902,
-0.01852187141776085,
0.010093536227941513,
-0.018466053530573845,
-0.027238592505455017,
-0.024466359987854958,
0.04632793366909027,
-0.046476781368255615,
-0.04186259210109711,
-0.020689422264695168,
-0.019145159050822258,
-0.046476781368255615,
-0.025229187682271004,
-0.02660600282251835,
0.026661818847060204,
-0.02803863398730755,
0.04774196073412895,
-0.0017512517515569925,
0.006237525958567858,
-0.03027130477130413,
-0.05213288217782974,
-0.042495183646678925,
-0.004507205914705992,
-0.025191977620124817,
-0.00012289868027437478,
-0.0009012085502035916,
0.004604884888976812,
-0.03049457259476185,
0.053844597190618515,
-0.011972701177001,
-0.010912181809544563,
0.0362250953912735,
-0.0622171126306057,
-0.05615168809890747,
0.03142485395073891,
-0.007805047556757927,
0.038811273872852325,
-0.0008686487562954426,
0.006684060674160719,
0.046476781368255615,
0.0025605952832847834,
-0.04443016275763512,
0.025024527683854103,
-0.03722979873418808,
0.026122257113456726,
-0.01604732684791088,
0.026047835126519203,
0.026847874745726585,
-0.03006664291024208,
-0.002281511202454567,
-0.013898380100727081,
0.00751666072756052,
0.013935592025518417,
0.009572579525411129,
0.011712223291397095,
0.04353709518909454,
0.0321318656206131,
0.02415006421506405,
-0.03877406194806099,
0.012670410796999931,
0.07293393462896347,
0.004035088699311018,
0.07483170926570892,
-0.0047769867815077305,
0.03985318914055824,
-0.03209465369582176,
0.0362250953912735,
-0.06322181969881058,
-0.007265485357493162,
0.04785359278321266,
-0.05298873782157898,
0.012493657879531384,
-0.07129664719104767,
0.05983559787273407,
0.010698217898607254,
-0.0053909714333713055,
-0.003030386520549655,
-0.0006482887547463179,
0.030829472467303276,
0.014382125809788704,
0.049342039972543716,
0.008907428942620754,
-0.0560772679746151,
-0.0031838826835155487,
-0.010921484790742397,
-0.012754136696457863,
0.021210379898548126,
-0.0021094095427542925,
-0.02455938793718815,
0.06005886569619179,
-0.00375833036378026,
-0.048523396253585815,
0.03311796113848686,
0.038104262202978134,
-0.01983356475830078,
-0.03198302164673805,
0.03817868232727051,
0.07386421412229538,
0.00108145026024431,
-0.02463380992412567,
-0.03509015589952469,
-0.013740233145654202,
-0.007991103455424309,
0.011907581239938736,
0.015451948158442974,
-0.06791042536497116,
-0.06891512870788574,
-0.0354064479470253,
0.0034420352894812822,
-0.030420150607824326,
-0.038215894252061844,
0.039927609264850616,
-0.040225300937891006,
0.010791245847940445,
-0.062031056731939316,
-0.025712933391332626,
0.022345321252942085,
0.05235614627599716,
-0.007009658496826887,
0.024466359987854958,
0.020521972328424454,
0.02813166193664074,
0.04405805096030235,
0.006860813591629267,
-0.07207807898521423,
-0.06731504946947098,
0.033787764608860016,
-0.050272319465875626,
0.059054162353277206,
0.0027931651566177607,
-0.024317514151334763,
-0.005470045376569033,
-0.04837455227971077,
-0.037173982709646225,
0.05842157080769539,
0.01298670656979084,
-0.0034838980063796043,
0.004030437208712101,
-0.04774196073412895,
-0.004458365961909294,
-0.02098711207509041,
-0.04684889316558838,
-0.012233179993927479,
-0.03402963653206825,
0.00975863542407751,
-0.02483847178518772,
0.032466765493154526,
0.00011454070045147091,
-0.05172355845570564,
-0.04145326837897301,
-0.006423582322895527,
0.007977149449288845,
-0.0656033307313919,
-0.01789858378469944,
-0.040262509137392044,
-0.019907988607883453,
-0.02474544383585453,
0.019796354696154594,
0.0345878042280674,
-0.01523798331618309,
0.007023612502962351,
-0.014698420651257038,
0.025805961340665817,
-0.04826291650533676,
-0.042085859924554825,
0.0544399730861187,
-0.010874970816075802,
0.00621426897123456,
0.034401748329401016,
-0.0454348661005497,
-0.0791109949350357,
0.04744426906108856,
-0.0253780335187912,
-0.06701736152172089,
0.017935795709490776,
0.0060003045946359634,
0.0321318656206131,
0.003116437466815114,
-0.0409323126077652,
0.0035118062514811754,
0.014493759721517563,
0.005944488104432821,
-0.0339738205075264,
0.0364297591149807,
0.05257941409945488,
-0.061733368784189224,
-0.014419336803257465,
0.02619667910039425,
-0.017749739810824394,
0.027871184051036835,
0.059686753898859024,
-0.05864483863115311,
0.031145768240094185,
-0.058868106454610825,
0.03447616845369339,
0.030941106379032135,
-0.0051397960633039474,
-0.050495587289333344,
0.07070126384496689,
0.012140152044594288,
-0.019070737063884735,
0.034829676151275635,
0.00444441195577383,
-0.09518623352050781,
-0.038922905921936035,
0.0349971279501915,
-0.009888874366879463,
0.0074050272814929485,
0.04357430711388588,
-0.03077365644276142,
-0.02169412560760975,
0.009712121449410915,
0.060505397617816925,
0.06065424531698227,
-0.03311796113848686,
-0.002558269537985325,
0.009126044809818268,
0.062440380454063416,
0.04245797172188759,
0.032690033316612244,
0.019461452960968018,
-0.028559589758515358,
-0.01881025731563568,
-0.02947126515209675,
-0.05544467642903328,
0.02106153592467308,
-0.03244816139340401,
-0.05953790992498398,
0.0491187758743763,
0.019070737063884735,
-0.04189980402588844,
-0.02556408941745758,
-0.003258305136114359,
-0.01770322397351265,
-0.07386421412229538,
0.04346267133951187,
-0.006711968686431646,
0.01942424289882183,
0.05778898298740387,
-0.05626332387328148,
0.03899732977151871,
-0.07658063620328903,
-0.014354217797517776,
-0.00444441195577383,
-0.0462535135447979,
-0.04844897240400314,
-0.0003645534161478281,
-0.0050328136421740055,
-0.04387199506163597,
-0.019684720784425735,
-0.010437739081680775,
0.0003334471839480102,
-0.021526675671339035,
-0.002858284628018737,
-0.013033220544457436,
-0.013321607373654842,
0.02772233821451664,
-0.045174386352300644,
0.002502452814951539,
-0.0815669372677803,
-0.06954772025346756,
-0.022884882986545563,
-0.027536282315850258,
-0.03722979873418808,
0.01749856397509575,
-0.012158757075667381,
-0.014679815620183945,
-0.059351854026317596,
0.013014614582061768,
0.0515747144818306,
-0.08179020136594772,
-0.027387438341975212,
-0.03177835792303085,
-0.025489667430520058,
0.01717296615242958,
0.020280100405216217,
-0.02362910658121109,
-0.03570413962006569,
0.001550078741274774,
0.04201143607497215,
-0.07356652617454529,
0.006130544003099203,
-0.04387199506163597,
0.05503535270690918,
-0.031257402151823044,
0.008312050253152847,
0.02415006421506405,
0.009372568689286709,
-0.05920300632715225,
0.002514081308618188,
0.0005238638259470463,
-0.07226413488388062,
0.038290318101644516,
0.037787966430187225,
-0.0008924871799536049,
0.00035815773298963904,
0.0006407301989383996,
0.00040409030043520033,
-0.020521972328424454,
0.0020977810490876436,
0.010447042062878609,
-0.0141216479241848,
0.044244106858968735,
0.009572579525411129,
0.054886508733034134,
-0.030234094709157944,
-0.002497801324352622,
0.01912655308842659,
0.013386726379394531,
-0.009386523626744747,
0.012028518132865429,
-0.010809851810336113,
0.04283008351922035,
-0.061807792633771896,
0.030624810606241226,
0.012819255702197552,
-0.002322210930287838,
-0.003714142134413123,
0.010047022253274918,
0.013758838176727295,
0.042681239545345306,
-0.04472785443067551,
0.021954603493213654,
-0.037490274757146835,
-0.029434053227305412,
-0.04856060817837715,
0.036262307316064835,
-0.004625816363841295,
0.0015686843544244766,
0.022066237404942513,
0.08625554293394089,
0.07680390030145645
] |
725,037 | tf_keras.src.engine.training | reset_metrics | Resets the state of all the metrics in the model.
Examples:
>>> inputs = tf.keras.layers.Input(shape=(3,))
>>> outputs = tf.keras.layers.Dense(2)(inputs)
>>> model = tf.keras.models.Model(inputs=inputs, outputs=outputs)
>>> model.compile(optimizer="Adam", loss="mse", metrics=["mae"])
>>> x = np.random.random((2, 3))
>>> y = np.random.randint(0, 2, (2, 2))
>>> _ = model.fit(x, y, verbose=0)
>>> assert all(float(m.result()) for m in model.metrics)
>>> model.reset_metrics()
>>> assert all(float(m.result()) == 0 for m in model.metrics)
| def reset_metrics(self):
"""Resets the state of all the metrics in the model.
Examples:
>>> inputs = tf.keras.layers.Input(shape=(3,))
>>> outputs = tf.keras.layers.Dense(2)(inputs)
>>> model = tf.keras.models.Model(inputs=inputs, outputs=outputs)
>>> model.compile(optimizer="Adam", loss="mse", metrics=["mae"])
>>> x = np.random.random((2, 3))
>>> y = np.random.randint(0, 2, (2, 2))
>>> _ = model.fit(x, y, verbose=0)
>>> assert all(float(m.result()) for m in model.metrics)
>>> model.reset_metrics()
>>> assert all(float(m.result()) == 0 for m in model.metrics)
"""
for m in self.metrics:
m.reset_state()
| (self) | [
-0.026054175570607185,
-0.001371272373944521,
0.05691719427704811,
-0.026260804384946823,
-0.05338570103049278,
-0.010838687419891357,
-0.06033598259091377,
-0.007532605901360512,
0.049666356295347214,
0.045909445732831955,
-0.06984096765518188,
-0.000058188088587485254,
0.07074262946844101,
0.07029179483652115,
0.034582361578941345,
0.04068734124302864,
0.005672934930771589,
-0.0071850912645459175,
0.07453710585832596,
-0.03048732876777649,
-0.0045411656610667706,
-0.01718786545097828,
0.021771296858787537,
0.015083995647728443,
-0.04207739979028702,
-0.0014452364994212985,
-0.03396247327327728,
-0.016521014273166656,
0.008086750283837318,
0.020230963826179504,
-0.03837684169411659,
0.0005465130670927465,
0.020400024950504303,
0.02629837393760681,
0.0003921275492757559,
-0.10128630697727203,
-0.0021637456957250834,
0.009542552754282951,
-0.06533267349004745,
-0.0031628489959985018,
0.008654982782900333,
-0.009354706853628159,
-0.005625973455607891,
-0.015440902672708035,
0.03251606225967407,
0.012914380058646202,
0.04835144057869911,
0.05214591696858406,
0.030243130400776863,
-0.07547633349895477,
-0.05327299237251282,
0.016436483711004257,
-0.005226801615208387,
0.08483104407787323,
-0.0023656797129660845,
0.0050812214612960815,
0.008753601461648941,
-0.06176361069083214,
0.01889725960791111,
-0.037738166749477386,
0.005095310043543577,
-0.011862444691359997,
-0.03229064494371414,
-0.05222105607390404,
0.04579674080014229,
-0.05500116944313049,
-0.01196576002985239,
0.02021217904984951,
0.011909406632184982,
-0.009739791043102741,
-0.0322718620300293,
-0.044068560004234314,
0.024138150736689568,
-0.008476529270410538,
0.0004804736527148634,
-0.0004954425967298448,
-0.03294810652732849,
0.02034367062151432,
-0.0192541666328907,
-0.03796358034014702,
-0.014999465085566044,
0.06495698541402817,
-0.025396715849637985,
-0.013449739664793015,
-0.044293977320194244,
-0.023724889382719994,
0.023067431524395943,
0.05511387810111046,
0.021733727306127548,
-0.029191195964813232,
0.04714922606945038,
0.018521569669246674,
0.030543683096766472,
-0.02380002848803997,
0.007213268429040909,
0.031558047980070114,
-0.06112493574619293,
0.015187310986220837,
-0.012519904412329197,
-0.10722222924232483,
-0.01588233932852745,
-0.004008153919130564,
-0.00775332422927022,
0.05109398439526558,
-0.048802267760038376,
-0.05624094977974892,
0.008058573119342327,
-0.049854204058647156,
0.04143872484564781,
0.05263431742787361,
-0.036460816860198975,
0.013506093062460423,
-0.031219927594065666,
0.006940892431885004,
0.0385083332657814,
0.0014839796349406242,
0.004576386883854866,
-0.013149186968803406,
-0.000029754437491646968,
-0.004621000029146671,
-0.012679573148488998,
0.04290391877293587,
-0.004686745814979076,
-0.038959164172410965,
0.021489528939127922,
-0.009303050115704536,
0.02541550062596798,
0.023330414667725563,
0.01575084775686264,
-0.020418809726834297,
-0.026749202981591225,
-0.03441330045461655,
0.001093026134185493,
0.09279569238424301,
0.026843126863241196,
-0.020982345566153526,
0.07258351147174835,
0.006306913681328297,
0.02357461303472519,
0.02472047135233879,
0.028007768094539642,
0.058645375072956085,
-0.010547526180744171,
0.0033178215380758047,
0.05131939798593521,
0.012416589073836803,
0.027444232255220413,
0.02896578051149845,
-0.061838749796152115,
-0.04064977169036865,
-0.015337587334215641,
-0.0020909556187689304,
0.034450870007276535,
-0.053348131477832794,
-0.017563557252287865,
0.05774371698498726,
-0.0008687855442985892,
-0.017835933715105057,
0.0014346701791509986,
-0.01968621090054512,
-0.013318248093128204,
0.025528207421302795,
0.02864644303917885,
-0.05391166731715202,
-0.0019418532028794289,
0.0645437240600586,
-0.06446858495473862,
0.019329305738210678,
-0.033567994832992554,
-0.004797105211764574,
-0.05368625372648239,
-0.03223429247736931,
0.0470740906894207,
-0.04865199327468872,
0.052296195179224014,
0.004529425408691168,
-0.004235916770994663,
-0.02620445191860199,
-0.02982986904680729,
0.05774371698498726,
0.013468524441123009,
-0.011026532389223576,
-0.050680723041296005,
-0.05473818629980087,
-0.05391166731715202,
-0.004637436475604773,
-0.05214591696858406,
0.012238136492669582,
-0.06811279058456421,
-0.04523320496082306,
0.10188741236925125,
0.000998516334220767,
0.029454179108142853,
0.004083292093127966,
0.007194483652710915,
-0.001635430147871375,
-0.011956367641687393,
-0.021733727306127548,
0.10985206812620163,
0.005226801615208387,
-0.04868956282734871,
0.024513840675354004,
0.03465750068426132,
0.02047516219317913,
-0.001738745137117803,
0.015760239213705063,
-0.03469507023692131,
-0.0032426833640784025,
-0.0582696832716465,
-0.003245031461119652,
-0.023198923096060753,
0.031426556408405304,
0.019272951409220695,
0.014379574917256832,
0.043467454612255096,
0.01762930303812027,
0.08685977011919022,
0.04651055112481117,
0.0022658866364508867,
-0.013534270226955414,
-0.02265417017042637,
-0.006673212628811598,
-0.012801672331988811,
0.010425426997244358,
0.01710333488881588,
0.05022989585995674,
-0.00496381800621748,
-0.029811086133122444,
0.001157598104327917,
-0.019235381856560707,
0.02695583365857601,
-0.02686190977692604,
0.04125087708234787,
-0.02900335006415844,
0.012933164834976196,
0.037644244730472565,
0.006086195353418589,
-0.032703906297683716,
-0.02642986550927162,
-0.00595939951017499,
-0.0480508878827095,
-0.03933485224843025,
0.006846969481557608,
0.01614532247185707,
0.007631224580109119,
0.048539284616708755,
0.025039808824658394,
-0.006034537684172392,
-0.02659892663359642,
0.004409673623740673,
0.021545881405472755,
0.021977927535772324,
0.047487348318099976,
0.009617690928280354,
0.06728626787662506,
-0.08933933079242706,
-0.038658611476421356,
-0.009965205565094948,
0.04117573797702789,
0.014163552783429623,
0.05428735911846161,
-0.015769632533192635,
-0.03989839181303978,
0.024908317252993584,
-0.0042241765186190605,
0.03967297449707985,
0.0026298374868929386,
0.0882122591137886,
0.02511494792997837,
-0.010575703345239162,
0.11766643822193146,
-0.009072938933968544,
0.008753601461648941,
0.003195722121745348,
0.0256784837692976,
0.017084550112485886,
0.010866863653063774,
0.005067133344709873,
0.01718786545097828,
0.0250210240483284,
0.030430976301431656,
-0.052559178322553635,
0.010622664354741573,
0.02620445191860199,
0.026148097589612007,
-0.02402544394135475,
-0.01574145443737507,
-0.02331162989139557,
0.010885648429393768,
0.011871837079524994,
0.0329105369746685,
-0.010650841519236565,
0.021207761019468307,
-0.010772940702736378,
-0.04256579652428627,
-0.058344822376966476,
-0.036892861127853394,
0.014661343768239021,
-0.04260336607694626,
0.06225200742483139,
0.00554613908752799,
0.032609984278678894,
-0.008021004498004913,
0.002758981194347143,
0.03430059179663658,
0.010406642220914364,
0.04391828551888466,
0.027763569727540016,
0.08520673215389252,
-0.014802227728068829,
0.006095587275922298,
0.05316028371453285,
-0.04594701528549194,
-0.025359146296977997,
0.0121817821636796,
-0.052822161465883255,
0.03465750068426132,
-0.022409971803426743,
0.04237795248627663,
0.009373491629958153,
0.010434819385409355,
0.044256407767534256,
-0.009265480563044548,
0.017525987699627876,
-0.05744316428899765,
-0.005729288794100285,
0.019498364999890327,
-0.0002271756820846349,
-0.011843660846352577,
-0.02808290719985962,
-0.010190620087087154,
-0.11706533282995224,
0.030637605115771294,
-0.002965611172839999,
-0.08272717148065567,
-0.08994043618440628,
-0.02182765118777752,
-0.013092833571135998,
0.006687300745397806,
0.05019232630729675,
0.010885648429393768,
-0.01012487430125475,
-0.0120972516015172,
-0.03771938383579254,
-0.03240335360169411,
0.04493265226483345,
0.00671547744423151,
0.013740899972617626,
0.024551410228013992,
0.028007768094539642,
-0.022428756579756737,
0.04767519608139992,
0.044819943606853485,
0.018793944269418716,
0.0796465054154396,
0.02778235450387001,
-0.0000909876762307249,
0.01172156073153019,
0.014604989439249039,
-0.059434324502944946,
-0.04981663450598717,
0.052333764731884,
-0.10211282968521118,
-0.04699895158410072,
0.06491941213607788,
-0.017422672361135483,
0.0129237724468112,
-0.017572948709130287,
0.027575723826885223,
-0.025208869948983192,
-0.011308301240205765,
-0.0812995433807373,
-0.0427912101149559,
0.03937242180109024,
-0.015008857473731041,
0.037080708891153336,
-0.012125428766012192,
0.009871282614767551,
0.03322987258434296,
0.03448843955993652,
0.046660829335451126,
-0.03048732876777649,
-0.04234038293361664,
-0.006058018188923597,
0.0036747280973941088,
-0.0008646764326840639,
-0.019798919558525085,
-0.02323649264872074,
0.015581786632537842,
-0.02449505776166916,
0.042415522038936615,
-0.036855291575193405,
-0.02357461303472519,
0.019611073657870293,
-0.0045716906897723675,
0.02331162989139557,
0.01408841460943222,
0.0038437892217189074,
-0.024908317252993584,
-0.1020376905798912,
-0.0128392418846488,
-0.020268533378839493,
0.016558583825826645,
-0.014924326911568642,
-0.030956942588090897,
0.00992763601243496,
-0.054137080907821655,
-0.004250004887580872,
-0.009133988991379738,
-0.019329305738210678,
0.038038719445466995,
-0.003350694663822651,
0.02284201607108116,
0.00771105894818902,
0.02669285051524639,
0.00007689926133025438,
0.017563557252287865,
-0.03557794168591499,
0.08746087551116943,
0.02860887348651886,
-0.033755842596292496,
0.04628513753414154,
-0.006903323344886303,
0.047261934727430344,
0.049854204058647156,
-0.06751168519258499,
-0.03413153067231178,
-0.012670180760324001,
-0.022203341126441956,
0.03390611708164215,
-0.016830958425998688,
-0.04790060967206955,
0.006729566026479006,
-0.02883428893983364,
-0.05327299237251282,
-0.01128951646387577,
-0.0016518665943294764,
0.014783442951738834,
-0.0750630721449852,
0.02956688590347767,
-0.005325420759618282,
-0.04358016327023506,
0.086258664727211,
0.004151386208832264,
0.018390078097581863,
0.002184878336265683,
0.019704995676875114,
0.0317646786570549,
-0.07138130068778992,
0.03452600911259651,
0.001114745857194066,
-0.004874591249972582,
-0.014661343768239021,
-0.040537066757678986,
0.052521608769893646,
0.03219672292470932,
0.007635920774191618,
0.021226543933153152,
0.0189348291605711,
-0.008917966857552528,
0.008500009775161743,
0.03298567607998848,
-0.07179456204175949,
-0.004700834397226572,
-0.030562467873096466,
0.03706192225217819,
0.04305419698357582,
0.05338570103049278,
0.012116036377847195,
0.03614148125052452,
0.04301662743091583,
-0.02524643950164318,
0.028665227815508842,
-0.01476465817540884,
-0.08633380383253098,
-0.006710781715810299,
-0.03826413303613663,
-0.01736631989479065,
0.013130402192473412,
-0.03944756090641022,
0.021226543933153152,
-0.04463209584355354,
0.05293487012386322,
-0.011251946911215782,
0.021714942529797554,
0.03153926506638527,
0.003475142177194357,
-0.08002219349145889,
-0.027707215398550034,
-0.007236748933792114,
-0.06796251237392426,
-0.020418809726834297,
0.0007484470261260867,
-0.019874056801199913,
-0.029153626412153244,
0.030863020569086075,
0.02982986904680729,
0.00975857488811016,
-0.02926633320748806,
-0.00901188887655735,
0.061350349336862564,
-0.004945033695548773,
-0.04260336607694626,
-0.0028740365523844957,
-0.021902788430452347,
0.04891497641801834,
-0.019611073657870293,
-0.05552713945508003,
-0.00958012230694294,
-0.019094498828053474,
-0.043242041021585464,
-0.015083995647728443,
0.025077378377318382,
0.06672272831201553,
-0.032572414726018906,
-0.053047578781843185,
-0.029454179108142853,
-0.0530100092291832,
0.060035429894924164,
0.011073494330048561,
-0.038038719445466995,
-0.005038956180214882,
0.02498345449566841,
0.03384976461529732,
-0.024814395233988762,
0.02778235450387001,
-0.020061902701854706,
0.017375711351633072,
0.025866329669952393,
0.0014933719066902995,
0.044819943606853485,
0.016389522701501846,
-0.00009465653420193121,
0.03599120303988457,
-0.025828760117292404,
-0.06206416338682175,
0.016605544835329056,
-0.10677140206098557,
-0.047224365174770355,
0.02370610646903515,
0.02344312146306038,
0.005006083287298679,
0.006537024397403002,
-0.002869340358301997,
0.00002087580105580855,
0.030956942588090897,
0.011298908852040768,
-0.0016025571385398507,
-0.01946079730987549,
-0.009504984132945538,
-0.04944094270467758,
-0.0192541666328907,
-0.00771105894818902,
-0.04158899933099747,
-0.0057762498036026955,
0.00024390568432863802,
0.035371314734220505,
0.019479582086205482,
0.04636027663946152,
0.0009351185290142894,
0.0004452526045497507,
-0.002484257100149989,
0.06987853348255157,
-0.016727644950151443,
0.00955664087086916,
0.010340896435081959,
-0.046435415744781494,
0.010895040817558765,
-0.041664138436317444,
0.028327105566859245,
-0.0023962045088410378,
-0.041100602596998215,
0.047712765634059906,
-0.03321108967065811,
-0.07104317843914032,
0.023386768996715546,
0.00953785702586174,
-0.04786304011940956,
-0.012876811437308788,
0.006701389327645302,
0.009303050115704536,
-0.00771105894818902,
-0.0638674795627594,
-0.06984096765518188,
0.04158899933099747,
-0.006194206420332193,
-0.010228188708424568,
0.016389522701501846,
-0.024833178147673607,
0.005950007122009993,
-0.012078467756509781,
0.048802267760038376,
0.013290070928633213,
-0.011683992110192776,
-0.03386854752898216,
0.0349017009139061,
0.009058850817382336,
-0.03144534304738045,
-0.03292931988835335,
0.027463017031550407,
0.02607295848429203,
0.028139259666204453,
0.04282877966761589,
-0.04583431035280228,
0.0023692017421126366,
0.0029303901828825474,
-0.012651395983994007,
0.07791832834482193,
0.015779023990035057,
0.016079576686024666,
-0.04358016327023506,
-0.005362989846616983,
0.029247548431158066,
0.0192541666328907,
0.05624094977974892,
-0.030374621972441673,
-0.0060392338782548904,
-0.03858347237110138,
-0.01919781230390072,
-0.024156935513019562,
0.018127093091607094,
-0.003113539656624198,
-0.03775694966316223,
0.00945332646369934,
-0.021771296858787537,
0.009082331322133541,
-0.052296195179224014,
0.0007138130022212863,
-0.05421222001314163,
-0.008598629385232925,
-0.007175699342042208,
-0.04902768135070801,
-0.015675708651542664,
-0.04098789393901825,
0.030017714947462082,
-0.04132601618766785,
-0.021414389833807945,
-0.005832603666931391,
0.015234271995723248,
-0.024250857532024384,
0.009406364522874355,
0.026805557310581207,
0.060260847210884094,
0.013496701605618,
-0.022672954946756363,
-0.048802267760038376,
-0.06905201822519302,
0.0007108779391273856,
0.07791832834482193,
0.016342561691999435,
-0.013891177251935005,
-0.007034814916551113,
0.012444766238331795,
0.002601660555228591,
0.044068560004234314,
0.008542275056242943,
0.031614404171705246,
-0.06364206224679947,
0.06863875687122345,
-0.038076288998126984,
-0.08317799866199493,
0.016849743202328682,
-0.006856361869722605,
0.0905415415763855,
0.033624351024627686,
-0.036892861127853394,
-0.051244258880615234,
0.06086195260286331,
-0.028721582144498825,
0.005447520408779383,
-0.024438703432679176,
0.010622664354741573,
0.018963005393743515,
-0.0015966870123520494,
-0.023255275562405586,
0.0635293573141098,
0.020418809726834297,
-0.019085105508565903,
-0.05019232630729675,
-0.004250004887580872,
0.020174609497189522,
0.06901444494724274,
-0.02962324023246765,
0.019272951409220695,
0.020268533378839493,
0.03208401799201965,
0.0005541443242691457,
0.017638694494962692,
-0.019272951409220695,
0.005879565142095089,
-0.01705637387931347,
-0.047487348318099976,
0.0605613999068737,
-0.019225990399718285,
-0.09955812990665436,
0.030111638829112053,
-0.05560227483510971,
-0.02432599663734436,
0.000709703890606761,
-0.031163573265075684,
-0.010679018683731556,
0.06578350067138672,
-0.039297282695770264,
0.002794202184304595,
0.05428735911846161,
0.021714942529797554,
-0.03384976461529732,
0.002364505548030138,
-0.06540781259536743,
-0.011054709553718567,
0.04579674080014229,
0.01711272820830345,
-0.017732618376612663,
0.004780668765306473,
0.041889552026987076,
-0.0189348291605711,
0.012341450899839401,
-0.07006638497114182,
0.0062975212931632996,
0.03940999135375023,
0.0398232527077198,
0.0062035988084971905,
-0.020982345566153526,
0.016173500567674637,
-0.012933164834976196,
0.036329325288534164,
-0.07912053912878036,
0.027988983318209648,
0.02353704534471035,
-0.0915183424949646,
0.03219672292470932,
-0.040011096745729446,
0.037475183606147766,
0.04095032438635826,
-0.04530834034085274,
0.00783315859735012,
0.017084550112485886,
0.003498622914776206,
0.059471894055604935,
0.016248637810349464,
0.006649731658399105,
0.00477832043543458,
0.010444211773574352,
0.04158899933099747,
-0.047261934727430344,
0.008124318905174732,
-0.0006521762115880847,
0.05451277270913124,
0.001034324406646192,
-0.016304992139339447,
0.01631438359618187,
-0.03783208876848221,
0.02541550062596798,
0.012482335790991783,
0.0513569675385952,
0.021977927535772324,
-0.023630967363715172,
0.0014616730622947216,
0.00496381800621748,
0.026317158713936806,
0.0008276943699456751,
-0.04158899933099747,
-0.007903601042926311,
0.03364313393831253,
-0.0360475555062294,
0.031651969999074936,
0.058382391929626465,
-0.027538154274225235
] |
725,038 | tf_keras.src.engine.training | reset_states | null | def reset_states(self):
for layer in self.layers:
if hasattr(layer, "reset_states") and getattr(
layer, "stateful", False
):
layer.reset_states()
| (self) | [
-0.028544753789901733,
-0.0041315932758152485,
0.03690919280052185,
0.011190740391612053,
-0.06061137467622757,
-0.018436986953020096,
-0.06990911066532135,
0.03912797197699547,
0.07677675783634186,
0.04476296156644821,
-0.06860601902008057,
0.024987664073705673,
-0.0038894647732377052,
0.03042895346879959,
-0.020972734317183495,
0.02084946818649769,
-0.009429805912077427,
0.02366696298122406,
0.009376977570354939,
-0.09628791362047195,
0.016138967126607895,
0.023191511631011963,
0.037437472492456436,
0.02512853965163231,
-0.006387791130691767,
-0.017653372138738632,
-0.03085157833993435,
-0.009517852216959,
0.010363101027905941,
0.014545321464538574,
-0.03616959974169731,
0.024934837594628334,
-0.007910999469459057,
-0.0007814147975295782,
0.013462346978485584,
-0.02044445276260376,
0.007488375063985586,
0.03905753418803215,
0.006942485459148884,
-0.016411911696195602,
-0.007924206554889679,
-0.043917715549468994,
-0.015954069793224335,
0.0062733301892876625,
0.01826089434325695,
0.004626856185495853,
0.01414911076426506,
0.003440426429733634,
0.024846790358424187,
-0.005881522316485643,
-0.01648234948515892,
0.012212082743644714,
0.052123669534921646,
0.07896031439304352,
0.0229449812322855,
-0.031362250447273254,
0.006555079948157072,
-0.013726486824452877,
0.02113121747970581,
-0.07068392634391785,
-0.03160877898335457,
-0.01198316179215908,
-0.05187714099884033,
-0.06321755796670914,
0.020585328340530396,
-0.06103400141000748,
-0.037507910281419754,
0.04578430578112602,
-0.005912338383495808,
0.014923922717571259,
-0.05983656644821167,
0.013030917383730412,
0.024459384381771088,
0.03715572506189346,
-0.045396897941827774,
-0.020884687080979347,
0.005841901060193777,
0.017327599227428436,
-0.02690708450973034,
-0.05973090976476669,
-0.0466647706925869,
0.021360138431191444,
-0.039585813879966736,
0.11319288611412048,
-0.0275410208851099,
-0.04620692878961563,
0.05011620372533798,
0.03238359093666077,
0.009376977570354939,
-0.04673520848155022,
0.0423680916428566,
0.07082479447126389,
0.009658727794885635,
-0.008100300095975399,
0.029460439458489418,
0.05990700051188469,
-0.03877578303217888,
0.007919804193079472,
-0.021712325513362885,
-0.1230541244149208,
-0.032471638172864914,
-0.036662664264440536,
-0.02507571130990982,
0.025304632261395454,
-0.001927123055793345,
-0.003953298553824425,
0.028861721977591515,
-0.05920262634754181,
-0.011331615038216114,
0.013620831072330475,
-0.031291812658309937,
-0.0007522493251599371,
-0.002408078406006098,
-0.014959141612052917,
0.01574275642633438,
-0.04772133380174637,
0.028808893635869026,
0.00043775737867690623,
-0.03263012319803238,
-0.017327599227428436,
-0.02370218187570572,
0.023385213688015938,
-0.00246750982478261,
-0.01735401339828968,
0.05029229819774628,
0.04884833097457886,
0.03340493142604828,
0.05807562917470932,
0.05043317377567291,
-0.03786009922623634,
-0.01683453656733036,
-0.0011787257390096784,
-0.06902864575386047,
0.03979712724685669,
-0.0050538829527795315,
-0.04131153225898743,
0.02650206908583641,
-0.027752332389354706,
0.006343767512589693,
0.04131153225898743,
0.02544550783932209,
0.026290755718946457,
-0.00431429035961628,
0.08029862493276596,
0.010583218187093735,
0.06240753084421158,
0.0531097948551178,
-0.01574275642633438,
-0.041452404111623764,
-0.005877119954675436,
0.029301954433321953,
-0.012423395179212093,
-0.025656819343566895,
-0.01383214257657528,
-0.06927517801523209,
0.04166371747851372,
-0.011560536921024323,
-0.013664853759109974,
0.006194088142365217,
-0.017292380332946777,
-0.05240542069077492,
0.02979501709342003,
-0.018436986953020096,
-0.0730435773730278,
-0.03268295153975487,
-0.022768886759877205,
-0.029918283224105835,
-0.03948015719652176,
-0.00988764874637127,
-0.011877505108714104,
-0.03226032480597496,
0.0006399897392839193,
0.03041134402155876,
0.009359368123114109,
0.03976190835237503,
0.028122128918766975,
0.008188346400856972,
-0.02116643637418747,
-0.06353452801704407,
0.017653372138738632,
-0.00420863414183259,
-0.02190602943301201,
-0.06339365243911743,
0.00412058737128973,
-0.0004303284513298422,
-0.020550109446048737,
-0.021219264715909958,
0.005828693974763155,
-0.02220538817346096,
-0.011410857550799847,
0.03881100192666054,
0.024160025641322136,
0.014615759253501892,
-0.0023090257309377193,
0.023490870371460915,
0.011692606844007969,
0.006634321995079517,
-0.027118396013975143,
0.08276393264532089,
-0.043847277760505676,
-0.049306172877550125,
0.013207010924816132,
0.002082305494695902,
0.005454495549201965,
-0.0068984623067080975,
0.017433254048228264,
-0.049306172877550125,
-0.050045765936374664,
0.00691607128828764,
-0.020585328340530396,
0.006392193492501974,
-0.014730219729244709,
0.04659433662891388,
0.023473260924220085,
0.0365217886865139,
-0.029495658352971077,
0.016411911696195602,
0.025551164522767067,
0.03118615597486496,
0.004446360282599926,
-0.08093256503343582,
0.00011143415758851916,
-0.0018522832542657852,
-0.023068245500326157,
-0.03326405957341194,
0.05846303701400757,
-0.022311044856905937,
-0.005137527361512184,
-0.006198490504175425,
0.011525318026542664,
-0.010116570629179478,
-0.02685425616800785,
-0.024230463430285454,
-0.03500738367438316,
0.03764878585934639,
0.00440233713015914,
0.025005273520946503,
-0.09417479485273361,
-0.0050538829527795315,
-0.012326543219387531,
-0.05082057788968086,
-0.06335843354463577,
0.02944283001124859,
-0.04405858740210533,
-0.029460439458489418,
0.05638513341546059,
0.025515945628285408,
0.0033875983208417892,
-0.018718736246228218,
0.03870534524321556,
0.0474395826458931,
-0.012212082743644714,
0.0022352866362780333,
0.014835875481367111,
0.06068181246519089,
-0.1452419012784958,
-0.01363843958824873,
0.013136574067175388,
0.005472104996442795,
0.020867077633738518,
0.013110159896314144,
-0.00491300830617547,
-0.044586870819330215,
0.04832005128264427,
0.04765089601278305,
0.01668485812842846,
0.05296891927719116,
0.01092660054564476,
0.010266249999403954,
-0.012264911085367203,
0.09699229151010513,
-0.02873845584690571,
-0.006669540423899889,
0.02755863033235073,
0.02076142095029354,
0.024494603276252747,
0.02653728798031807,
-0.025568773970007896,
-0.062231436371803284,
-0.0035306743811815977,
0.11079801619052887,
-0.02470591478049755,
-0.03402126207947731,
0.04842570796608925,
0.020321188494563103,
0.001041152747347951,
-0.03227793425321579,
-0.0415932796895504,
-0.006973301991820335,
-0.00742674246430397,
0.07698807120323181,
0.0696977972984314,
0.05832216143608093,
-0.008364439941942692,
-0.014765438623726368,
-0.06057615578174591,
-0.062231436371803284,
0.0112787876278162,
-0.019247017800807953,
0.03898709639906883,
0.02044445276260376,
-0.03859969228506088,
0.004763328470289707,
0.023121073842048645,
0.043988149613142014,
-0.0035306743811815977,
0.0167376846075058,
0.04272027686238289,
0.03051700070500374,
0.009764383547008038,
0.02944283001124859,
0.002250694902613759,
-0.043847277760505676,
-0.021958857774734497,
0.03870534524321556,
-0.07255051285028458,
0.020620547235012054,
-0.02690708450973034,
0.001588143059052527,
0.06194968521595001,
-0.033827558159828186,
-0.021360138431191444,
-0.05409591645002365,
0.03976190835237503,
-0.023755010217428207,
0.019969001412391663,
0.03842359781265259,
-0.013532783836126328,
-0.02683664672076702,
0.005075894761830568,
-0.053250666707754135,
-0.05634991452097893,
0.03842359781265259,
0.013708877377212048,
-0.04483339935541153,
-0.06057615578174591,
0.027840379625558853,
-0.004329698625952005,
0.011965552344918251,
-0.0171867236495018,
0.02474113367497921,
0.04307246580719948,
-0.03948015719652176,
-0.05117276683449745,
-0.023173902183771133,
0.08128475397825241,
0.029953500255942345,
0.02442416548728943,
0.020497281104326248,
0.024459384381771088,
-0.02336760424077511,
0.03579980507493019,
0.0221701692789793,
0.11495382338762283,
0.018542643636465073,
0.033528197556734085,
-0.013251034542918205,
0.03874056413769722,
0.025287024676799774,
-0.06349930912256241,
0.02789320796728134,
-0.017582934349775314,
-0.02868562750518322,
-0.03513064980506897,
0.07001476734876633,
-0.030728312209248543,
0.009200884029269218,
-0.05765300616621971,
-0.021342528983950615,
-0.05578641593456268,
-0.007682078052312136,
-0.05705428868532181,
-0.050750140100717545,
0.0046796840615570545,
-0.028967376798391342,
0.004613649100065231,
-0.02731209807097912,
-0.004030339419841766,
0.09093467146158218,
0.05976612865924835,
0.055680759251117706,
-0.05694863200187683,
0.008985170163214207,
0.017820660024881363,
0.07607237994670868,
-0.010178202763199806,
-0.0013041923521086574,
-0.015663515776395798,
0.04412902519106865,
-0.05015142261981964,
0.06596461683511734,
-0.03345775976777077,
-0.0030530206859111786,
0.014818266034126282,
0.03234837204217911,
0.008139921352267265,
0.020268360152840614,
0.017494887113571167,
0.02514614909887314,
0.012493832036852837,
-0.021395357325673103,
0.00228921533562243,
0.019458329305052757,
-0.033827558159828186,
0.013207010924816132,
0.026607725769281387,
-0.040607158094644547,
0.08036906272172928,
-0.006519861053675413,
-0.060047876089811325,
0.024864399805665016,
0.024318508803844452,
-0.04110021889209747,
-0.045678649097681046,
0.045361679047346115,
-0.014730219729244709,
0.041381966322660446,
0.015989288687705994,
0.07487494498491287,
0.027171224355697632,
0.04758045822381973,
0.040677592158317566,
0.017433254048228264,
0.047510020434856415,
0.0020041640382260084,
-0.01397301722317934,
-0.02224060706794262,
0.013911385089159012,
-0.0247939620167017,
0.032454028725624084,
-0.021078389137983322,
-0.04722827300429344,
0.00781414844095707,
-0.024529822170734406,
0.007673273328691721,
0.02012748457491398,
-0.010759311728179455,
-0.00889712292701006,
-0.05229976400732994,
0.027452973648905754,
0.0501866415143013,
0.03627525642514229,
0.004228444769978523,
-0.013462346978485584,
0.07867857068777084,
0.022698448970913887,
0.03976190835237503,
0.05451854318380356,
0.005797877907752991,
0.04264983907341957,
-0.06663377583026886,
-0.014589345082640648,
-0.03831794112920761,
-0.05620903894305229,
0.030640264973044395,
0.03014720417559147,
-0.008276393637061119,
0.05015142261981964,
-0.0707191452383995,
0.023173902183771133,
0.013805728405714035,
-0.007761320099234581,
-0.06244274973869324,
0.04687608405947685,
0.039268847554922104,
-0.007999046705663204,
-0.011490099132061005,
0.009068814106285572,
-0.0052167694084346294,
-0.00003525308784446679,
0.005001054611057043,
-0.044939056038856506,
0.02681903727352619,
-0.027452973648905754,
-0.024846790358424187,
-0.012080012820661068,
-0.04222721606492996,
0.007008520420640707,
-0.010521585121750832,
-0.021324919536709785,
-0.037085287272930145,
-0.012370566837489605,
-0.010090156458318233,
-0.03379233926534653,
-0.01147249061614275,
-0.010970624163746834,
0.02731209807097912,
-0.019194189459085464,
-0.007752515375614166,
-0.037050068378448486,
-0.047157835215330124,
-0.04085368663072586,
0.004386928863823414,
0.03049939125776291,
0.018049580976366997,
-0.048918768763542175,
-0.03199618682265282,
-0.01131400652229786,
0.02010987512767315,
-0.04448121413588524,
0.036046333611011505,
0.032137058675289154,
-0.027047958225011826,
0.0423680916428566,
0.0012898847926408052,
0.02618510089814663,
0.01863069087266922,
-0.036733098328113556,
0.01076811645179987,
-0.010785725899040699,
0.01022222638130188,
-0.0275410208851099,
0.011243568733334541,
0.0027052361983805895,
0.019194189459085464,
-0.013955408707261086,
0.0229449812322855,
0.0036825549323111773,
0.08959636092185974,
0.039268847554922104,
0.009368172846734524,
-0.027752332389354706,
-0.003471242729574442,
0.039233628660440445,
-0.027769941836595535,
0.028949767351150513,
0.012018379755318165,
0.00502306642010808,
0.011516513302922249,
-0.01149890385568142,
0.027347316965460777,
-0.003788210917264223,
-0.01722194254398346,
0.04972879961133003,
-0.02076142095029354,
-0.06268928200006485,
-0.0012491631787270308,
-0.11220676451921463,
-0.08072125166654587,
0.0276290662586689,
0.03937450051307678,
0.006475837901234627,
0.03305274620652199,
0.014017040841281414,
-0.010319078341126442,
0.009412196464836597,
-0.027470583096146584,
-0.030358515679836273,
-0.025269415229558945,
0.039585813879966736,
-0.06638724356889725,
-0.008857501670718193,
-0.018859611824154854,
-0.030710702762007713,
0.04775655269622803,
-0.02183559164404869,
0.01974007859826088,
0.03125659376382828,
-0.013074941001832485,
0.01557546854019165,
0.005665807519108057,
0.006885255221277475,
0.05166582763195038,
-0.04807351902127266,
0.02396632358431816,
0.005423679016530514,
-0.006792806088924408,
0.00024254125310108066,
0.024864399805665016,
0.06673943251371384,
0.02583291381597519,
-0.012828409671783447,
0.00912164244800806,
-0.01076811645179987,
0.034954555332660675,
0.01310135517269373,
0.04525602608919144,
-0.03937450051307678,
-0.00698650861158967,
-0.020690983161330223,
0.04758045822381973,
-0.04550255462527275,
-0.03403887152671814,
-0.0443403385579586,
0.011349224485456944,
0.00735630514100194,
-0.037507910281419754,
0.03550044447183609,
-0.019511157646775246,
-0.017600543797016144,
-0.01935267262160778,
0.010803335346281528,
0.04944704845547676,
-0.0060223969630897045,
-0.046418242156505585,
0.017477277666330338,
0.04807351902127266,
-0.009817211888730526,
-0.030200032517313957,
0.07593151181936264,
0.00464886799454689,
0.01506479736417532,
0.055680759251117706,
-0.016825731843709946,
-0.009729164652526379,
-0.011199545115232468,
0.00760283600538969,
0.03078114055097103,
0.0008656095014885068,
0.045361679047346115,
-0.01701943576335907,
-0.015857217833399773,
0.012995698489248753,
-0.0365217886865139,
0.013867361471056938,
-0.06536590307950974,
0.0006636523175984621,
0.002249594312161207,
-0.007501582149416208,
-0.020321188494563103,
-0.03139746934175491,
-0.045326460152864456,
-0.07557932287454605,
-0.01359441690146923,
-0.010107765905559063,
0.01041592936962843,
0.011243568733334541,
0.01504718791693449,
-0.013479955494403839,
0.021641889587044716,
-0.0024543029721826315,
-0.027417754754424095,
-0.039973221719264984,
-0.03430300951004028,
0.02042684331536293,
-0.01324222981929779,
0.0009855731623247266,
0.05927306413650513,
-0.0009734667837619781,
-0.027752332389354706,
0.025339851155877113,
-0.046101272106170654,
0.04257940500974655,
-0.015144038945436478,
-0.027752332389354706,
-0.006603505462408066,
-0.02549833618104458,
-0.019616814330220222,
0.05067970231175423,
0.006555079948157072,
-0.04617170989513397,
-0.009011583402752876,
-0.031080499291419983,
0.02012748457491398,
-0.020356405526399612,
-0.018331332132220268,
0.0011644181795418262,
-0.03148551285266876,
0.10452909022569656,
-0.06212577968835831,
-0.05666688084602356,
0.010803335346281528,
-0.03648656979203224,
0.10614915192127228,
0.06082268804311752,
-0.024653086438775063,
-0.024934837594628334,
0.014369227923452854,
0.020215531811118126,
0.006326158065348864,
-0.033123183995485306,
-0.019898563623428345,
-0.009011583402752876,
-0.004794145002961159,
-0.02512853965163231,
0.03416213393211365,
0.007536801043897867,
0.014483688399195671,
0.023526089265942574,
0.03786009922623634,
-0.0552581325173378,
0.06850036233663559,
-0.04264983907341957,
0.04222721606492996,
0.04969358071684837,
0.04092412441968918,
-0.02789320796728134,
0.0023376408498734236,
0.05737125501036644,
0.008632983081042767,
-0.05423679202795029,
-0.022029293701052666,
0.05582163482904434,
0.038141846656799316,
-0.10206378251314163,
-0.03287665173411369,
-0.0036077152471989393,
-0.0886806771159172,
0.014510102570056915,
-0.013779315166175365,
0.044692523777484894,
0.024882009252905846,
-0.056103382259607315,
0.006114846095442772,
0.05518769845366478,
0.048918768763542175,
-0.009200884029269218,
-0.009236102923750877,
-0.036380913108587265,
-0.008941146545112133,
-0.010891381651163101,
0.006088431924581528,
-0.010715288110077381,
0.04592518135905266,
-0.006009189877659082,
-0.020197922363877296,
0.002709638327360153,
-0.05226454511284828,
-0.030992452055215836,
0.0009883246384561062,
0.010142984800040722,
0.01829611323773861,
-0.05406069755554199,
0.0204092338681221,
-0.010680069215595722,
0.021007951349020004,
-0.06533068418502808,
0.032823823392391205,
-0.006158869247883558,
0.018859611824154854,
0.004014931153506041,
-0.04905964434146881,
-0.027523411437869072,
0.01829611323773861,
-0.036662664264440536,
-0.014430860988795757,
0.0654011219739914,
0.06061137467622757,
-0.03196096792817116,
-0.004688488785177469,
0.003951097372919321,
-0.06536590307950974,
-0.006850036326795816,
0.024512212723493576,
0.0060708229430019855,
0.009015985764563084,
0.025973787531256676,
-0.0072022234089672565,
-0.04377683997154236,
-0.020514890551567078,
0.01857786253094673,
0.041452404111623764,
0.02296259067952633,
-0.023209121078252792,
0.05948437750339508,
0.02935478277504444,
-0.05959003418684006,
0.001374629675410688,
-0.0501866415143013,
-0.032119449228048325,
0.026396412402391434,
-0.032049015164375305,
0.033123183995485306,
-0.007395926397293806,
0.06638724356889725,
0.01383214257657528,
0.019088532775640488,
-0.038177065551280975
] |
725,039 | tf_keras.src.engine.training | save | Saves a model as a TensorFlow SavedModel or HDF5 file.
See the [Serialization and Saving guide](
https://keras.io/guides/serialization_and_saving/) for details.
Args:
model: TF-Keras model instance to be saved.
filepath: `str` or `pathlib.Path` object. Path where to save the
model.
overwrite: Whether we should overwrite any existing model at the
target location, or instead ask the user via an interactive
prompt.
save_format: Either `"keras"`, `"tf"`, `"h5"`,
indicating whether to save the model
in the native TF-Keras format (`.keras`),
in the TensorFlow SavedModel format
(referred to as "SavedModel" below),
or in the legacy HDF5 format (`.h5`).
Defaults to `"tf"` in TF 2.X, and `"h5"` in TF 1.X.
SavedModel format arguments:
include_optimizer: Only applied to SavedModel and legacy HDF5
formats. If False, do not save the optimizer state.
Defaults to `True`.
signatures: Only applies to SavedModel format. Signatures to save
with the SavedModel. See the `signatures` argument in
`tf.saved_model.save` for details.
options: Only applies to SavedModel format.
`tf.saved_model.SaveOptions` object that specifies SavedModel
saving options.
save_traces: Only applies to SavedModel format. When enabled, the
SavedModel will store the function traces for each layer. This
can be disabled, so that only the configs of each layer are
stored. Defaults to `True`.
Disabling this will decrease serialization time
and reduce file size, but it requires that all custom
layers/models implement a `get_config()` method.
Example:
```python
model = tf.keras.Sequential([
tf.keras.layers.Dense(5, input_shape=(3,)),
tf.keras.layers.Softmax()])
model.save("model.keras")
loaded_model = tf.keras.models.load_model("model.keras")
x = tf.random.uniform((10, 3))
assert np.allclose(model.predict(x), loaded_model.predict(x))
```
Note that `model.save()` is an alias for `tf.keras.models.save_model()`.
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Training-related part of the TF-Keras engine."""
import copy
import itertools
import json
import warnings
import weakref
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow.python.distribute import distribute_utils
from tensorflow.python.distribute import input_ops
from tensorflow.python.eager import context
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util.tf_export import keras_export
from tensorflow.tools.docs import doc_controls
from tf_keras.src import backend
from tf_keras.src import callbacks as callbacks_module
from tf_keras.src import optimizers
from tf_keras.src.dtensor import dtensor_api
from tf_keras.src.dtensor import layout_map as layout_map_lib
from tf_keras.src.engine import base_layer
from tf_keras.src.engine import base_layer_utils
from tf_keras.src.engine import compile_utils
from tf_keras.src.engine import data_adapter
from tf_keras.src.engine import input_layer as input_layer_module
from tf_keras.src.engine import training_utils
from tf_keras.src.metrics import base_metric
from tf_keras.src.mixed_precision import loss_scale_optimizer as lso
from tf_keras.src.optimizers import optimizer
from tf_keras.src.optimizers import optimizer_v1
from tf_keras.src.saving import pickle_utils
from tf_keras.src.saving import saving_api
from tf_keras.src.saving import saving_lib
from tf_keras.src.saving import serialization_lib
from tf_keras.src.saving.legacy import serialization
from tf_keras.src.saving.legacy.saved_model import json_utils
from tf_keras.src.saving.legacy.saved_model import model_serialization
from tf_keras.src.utils import generic_utils
from tf_keras.src.utils import io_utils
from tf_keras.src.utils import layer_utils
from tf_keras.src.utils import steps_per_execution_tuning
from tf_keras.src.utils import tf_inspect
from tf_keras.src.utils import tf_utils
from tf_keras.src.utils import traceback_utils
from tf_keras.src.utils import version_utils
from tf_keras.src.utils.mode_keys import ModeKeys
try:
import h5py
except ImportError:
h5py = None
@keras_export("keras.Model", "keras.models.Model")
class Model(base_layer.Layer, version_utils.ModelVersionSelector):
"""A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
"""
_TF_MODULE_IGNORED_PROPERTIES = frozenset(
itertools.chain(
(
"_train_counter",
"_test_counter",
"_predict_counter",
"_steps_per_execution",
"_compiled_trainable_state",
),
base_layer.Layer._TF_MODULE_IGNORED_PROPERTIES,
)
)
_SCALAR_UPRANKING_ON = False
def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, *args, **kwargs):
self._is_model_for_instrumentation = True
# Special case for Subclassed Functional Model, which we couldn't detect
# when __new__ is called. We only realize it is a functional model when
# it calls super.__init__ with input and output tensor.
from tf_keras.src.engine import functional
if is_functional_model_init_params(args, kwargs) and not isinstance(
self, functional.Functional
):
# Filter the kwargs for multiple inheritance.
support | (self, filepath, overwrite=True, save_format=None, **kwargs) | [
0.024942101910710335,
-0.08747810125350952,
-0.039559438824653625,
0.04965827986598015,
-0.00267297332175076,
-0.002055916003882885,
-0.08698106557130814,
0.00023880961816757917,
-0.009330695495009422,
-0.024399882182478905,
-0.0193052776157856,
0.00976560078561306,
-0.02758542262017727,
0.0508330874145031,
0.05711380019783974,
0.03992091864347458,
0.0009750069002620876,
-0.007670148275792599,
0.0006516519351862371,
-0.01573566533625126,
0.027517644688487053,
-0.04254164919257164,
-0.045297931879758835,
0.03549279272556305,
0.018458059057593346,
0.05205308273434639,
-0.007122280541807413,
0.006365432403981686,
0.020231569185853004,
-0.025913579389452934,
-0.055577509105205536,
0.0008465121500194073,
-0.036102790385484695,
-0.009940693154931068,
0.0195876844227314,
-0.03497316688299179,
0.012990678660571575,
0.0643433928489685,
-0.03809092938899994,
-0.03759389370679855,
0.03578649461269379,
-0.04482349008321762,
0.0034397055860608816,
-0.01901157572865486,
-0.004577802028506994,
0.017656026408076286,
-0.006467098370194435,
0.00822366401553154,
0.019632868468761444,
-0.04857384040951729,
-0.042812757194042206,
-0.010499857366085052,
-0.00792431365698576,
0.03325613588094711,
-0.027020610868930817,
-0.048121992498636246,
-0.016978250816464424,
-0.04631459340453148,
0.011013835668563843,
-0.007551537826657295,
-0.009714768268167973,
-0.02469358593225479,
0.0017396212788298726,
0.017689915373921394,
-0.03264613822102547,
-0.001828579232096672,
-0.043874602764844894,
-0.047127921134233475,
0.002551538636907935,
0.044529784470796585,
-0.049613095819950104,
-0.04412312060594559,
0.05657158046960831,
0.029166897758841515,
0.009562268853187561,
0.00042643313645385206,
0.0006703613325953484,
-0.0407116562128067,
0.03809092938899994,
-0.04577237367630005,
-0.041728317737579346,
-0.002704037819057703,
-0.029392821714282036,
-0.03397909551858902,
0.011601240374147892,
-0.0288957878947258,
-0.007399038411676884,
-0.006003952585160732,
-0.013837896287441254,
-0.005823212675750256,
-0.009980229660868645,
0.04211239144206047,
0.023428406566381454,
0.04739903286099434,
0.0663767158985138,
-0.017938433215022087,
-0.05521602928638458,
-0.03777463361620903,
-0.006969781126827002,
-0.02489691786468029,
0.02153063751757145,
0.032962433993816376,
-0.024332106113433838,
0.010240043513476849,
-0.042270537465810776,
-0.04554644599556923,
-0.07229594886302948,
-0.017486583441495895,
-0.05598417669534683,
-0.028376160189509392,
-0.02760801464319229,
-0.009646990336477757,
-0.00895227212458849,
0.013386046513915062,
-0.027449868619441986,
0.03210391849279404,
0.00016882586351130158,
-0.01169161032885313,
-0.030364299193024635,
-0.002346794353798032,
0.0004087827692274004,
0.05598417669534683,
-0.04943235591053963,
-0.03897203505039215,
-0.017181584611535072,
0.012968085706233978,
0.05051679536700249,
0.02158711850643158,
0.04599829763174057,
-0.040440548211336136,
-0.039017219096422195,
-0.01762213744223118,
-0.003445353824645281,
0.060773782432079315,
0.013352158479392529,
-0.0038689628709107637,
-0.0021166333463042974,
0.02693024091422558,
-0.05982489883899689,
0.062174517661333084,
0.06700930744409561,
0.0056820097379386425,
0.05982489883899689,
0.02663653902709484,
-0.037616487592458725,
-0.021564526483416557,
-0.004877152387052774,
-0.06366562098264694,
-0.009488843381404877,
-0.04197683557868004,
-0.002817000262439251,
0.008528662845492363,
0.017576953396201134,
0.00912171509116888,
-0.005975712090730667,
0.03232984617352486,
-0.03594464063644409,
-0.06465969234704971,
0.028715047985315323,
-0.009675230830907822,
-0.06090933829545975,
-0.04645014554262161,
0.0234735906124115,
-0.03797796741127968,
0.013815304264426231,
0.003911323845386505,
-0.04132165387272835,
-0.023315442726016045,
0.005354418884962797,
0.02063823491334915,
0.04195424169301987,
0.01710250973701477,
0.03463427722454071,
0.01981360837817192,
0.010996891185641289,
0.04468793421983719,
0.052007898688316345,
-0.01174809131771326,
0.02041230909526348,
0.047444216907024384,
0.045297931879758835,
-0.01741880550980568,
-0.0903247520327568,
-0.03689352795481682,
-0.05404122173786163,
0.02235526219010353,
-0.049929387867450714,
0.025393951684236526,
0.041389431804418564,
-0.0006410617497749627,
0.03007059544324875,
0.02824060432612896,
0.021146565675735474,
0.03910759091377258,
-0.04351312294602394,
-0.00703755859285593,
-0.000034352047805441543,
0.047896064817905426,
0.04988420382142067,
0.020084718242287636,
-0.011454389430582523,
0.0097938422113657,
0.0386105552315712,
-0.0004306692280806601,
-0.07297372072935104,
0.006173396483063698,
0.008319682441651821,
-0.018401578068733215,
-0.049070876091718674,
-0.07694999873638153,
-0.036102790385484695,
0.013939562253654003,
0.04622422158718109,
0.07288335263729095,
0.07193446904420853,
-0.06371080130338669,
-0.029731709510087967,
0.02009601518511772,
-0.00408923951908946,
-0.030160965397953987,
0.033504653722047806,
0.027766162529587746,
-0.040011290460824966,
0.0010392542462795973,
0.028940971940755844,
-0.037277597934007645,
0.04358090087771416,
0.004942106083035469,
-0.017226768657565117,
-0.055577509105205536,
-0.02336062863469124,
-0.07550407946109772,
0.004027110058814287,
0.02500987984240055,
0.016910474747419357,
0.010166618041694164,
-0.04263201728463173,
-0.03596723452210426,
0.04035017639398575,
-0.0697655901312828,
-0.013081048615276814,
-0.06520190834999084,
-0.011155039072036743,
-0.031448736786842346,
-0.024851731956005096,
0.04272238910198212,
0.02575543150305748,
0.06953966617584229,
-0.037842411547899246,
-0.0508330874145031,
0.03343687579035759,
0.027110980823636055,
-0.01276475377380848,
0.08291441947221756,
-0.0244450680911541,
-0.031855400651693344,
0.03160688653588295,
-0.07803443819284439,
0.056752320379018784,
0.01471900288015604,
-0.012041794136166573,
0.02835356816649437,
-0.02575543150305748,
0.0883817970752716,
0.022287486121058464,
-0.05078790336847305,
0.02084156684577465,
0.020457495003938675,
0.04297090321779251,
-0.015216037631034851,
0.13374750316143036,
0.05639084056019783,
-0.05987008288502693,
0.005868397653102875,
-0.03655463829636574,
-0.019655460491776466,
0.0053939553909003735,
-0.0009594745351932943,
0.024919509887695312,
-0.0006982489721849561,
0.004004517570137978,
-0.0903247520327568,
-0.052233822643756866,
-0.00010237219248665497,
0.0026037837378680706,
-0.026049133390188217,
0.005441964603960514,
-0.04925161600112915,
-0.0025374183896929026,
-0.02033323608338833,
0.02007342129945755,
-0.017893247306346893,
0.08860772103071213,
0.001763625768944621,
-0.02238915115594864,
-0.02184693142771721,
-0.019971756264567375,
0.010364302434027195,
0.019836200401186943,
-0.03323354572057724,
0.007421630900353193,
0.05987008288502693,
0.07789888232946396,
0.002852301113307476,
0.007596722804009914,
-0.08241738379001617,
0.002584015252068639,
0.00960745383054018,
-0.023563960567116737,
-0.021621007472276688,
-0.013013270683586597,
-0.0007141343085095286,
0.0352894589304924,
-0.0333465076982975,
-0.009754304774105549,
-0.059237491339445114,
0.006410617381334305,
-0.018661390990018845,
0.056436024606227875,
0.057746388018131256,
0.01767861843109131,
0.06456931680440903,
0.005693305749446154,
0.003482066560536623,
-0.0017975145019590855,
-0.05539676919579506,
0.10022025555372238,
-0.015182149596512318,
-0.00020509739988483489,
0.018582317978143692,
-0.0026602649595588446,
-0.05715898424386978,
0.03580908849835396,
0.052866414189338684,
-0.08580625057220459,
-0.018751760944724083,
0.009234678000211716,
-0.00001763934596965555,
-0.010104488581418991,
0.0343179814517498,
0.051239755004644394,
0.05096864327788353,
-0.050923459231853485,
0.021282119676470757,
-0.009053938090801239,
-0.02783394046127796,
0.02683987095952034,
0.03183281049132347,
0.007415982894599438,
0.00456085754558444,
-0.005450436845421791,
-0.009624398313462734,
-0.031109850853681564,
0.0372324138879776,
0.016469920054078102,
0.031222812831401825,
-0.034159835427999496,
-0.008799772709608078,
0.020773788914084435,
-0.03754870966076851,
0.036419082432985306,
0.006687375251203775,
-0.033369097858667374,
0.026772093027830124,
0.0814233124256134,
-0.009341992437839508,
0.0031488274689763784,
-0.01567918434739113,
0.01687658578157425,
0.015498444437980652,
0.001998022897168994,
-0.07184410095214844,
0.07329002022743225,
0.014956224709749222,
-0.040530916303396225,
0.023338036611676216,
0.012843826785683632,
0.030477261170744896,
0.007365149911493063,
0.01113809458911419,
0.04468793421983719,
0.05304715409874916,
0.0032137809321284294,
0.048438284546136856,
0.05684268847107887,
-0.024648400023579597,
-0.032194290310144424,
-0.02272803895175457,
0.02369951643049717,
-0.012425865978002548,
0.013442528434097767,
-0.018175654113292694,
-0.014481781981885433,
0.021293416619300842,
-0.011098558083176613,
0.026139503344893456,
0.009234678000211716,
0.0488901361823082,
-0.025597283616662025,
-0.04699236527085304,
-0.03700648993253708,
-0.037819817662239075,
0.06551820039749146,
0.05566788092255592,
0.00900875311344862,
-0.011268001049757004,
0.024286920204758644,
0.01790454424917698,
-0.045727185904979706,
0.03409205749630928,
-0.005399603862315416,
0.01796102523803711,
-0.06949447840452194,
0.05273085832595825,
-0.00613950751721859,
0.06881670653820038,
0.012730864807963371,
-0.023631738498806953,
0.03492797911167145,
0.004202201962471008,
0.019745830446481705,
0.04098276421427727,
0.03330131992697716,
0.015385481528937817,
-0.02070601098239422,
0.022886186838150024,
-0.04059869423508644,
0.11278168112039566,
-0.007421630900353193,
0.017509175464510918,
-0.003312622895464301,
-0.05652639642357826,
-0.015871219336986542,
-0.03628353029489517,
-0.05173678696155548,
-0.00011155039101140574,
0.07148262113332748,
-0.009726064279675484,
0.002937022829428315,
0.020118607208132744,
-0.025710247457027435,
-0.019395647570490837,
0.0534990020096302,
0.025371359661221504,
-0.028647270053625107,
-0.027223942801356316,
-0.02369951643049717,
0.08621291816234589,
-0.03605760633945465,
-0.0042389146983623505,
0.04635977745056152,
-0.017317138612270355,
0.04236090928316116,
0.026681723073124886,
-0.017260657623410225,
-0.021688785403966904,
0.03833944350481033,
-0.010256987996399403,
-0.021598415449261665,
-0.00512566976249218,
-0.001314600114710629,
0.056436024606227875,
0.020231569185853004,
0.0032589659094810486,
-0.012798641808331013,
0.022253597155213356,
0.09158992767333984,
-0.007969498634338379,
-0.0543123297393322,
0.017802877351641655,
0.08006776124238968,
0.009567917324602604,
0.041931651532649994,
0.0059192306362092495,
-0.06773226708173752,
0.01710250973701477,
0.013555490411818027,
-0.020751196891069412,
0.014459189958870411,
-0.03452131524682045,
0.04220275953412056,
-0.05566788092255592,
-0.019937867298722267,
0.026320243254303932,
0.00881106872111559,
0.05941823124885559,
0.02781134843826294,
0.0010526685509830713,
0.010053655132651329,
0.008912734687328339,
-0.05467380955815315,
0.009336343966424465,
0.06872633844614029,
0.0027802875265479088,
-0.057972315698862076,
-0.030341705307364464,
0.03061281517148018,
-0.0028240603860467672,
0.009991525672376156,
0.0010378422448411584,
0.042270537465810776,
-0.0018794122152030468,
-0.03797796741127968,
-0.03275910019874573,
0.010036710649728775,
0.0420897975564003,
-0.04019203037023544,
0.0050352998077869415,
-0.021462859585881233,
-0.019632868468761444,
-0.03531205281615257,
-0.02510024979710579,
0.043242014944553375,
-0.011940128169953823,
-0.01293419674038887,
-0.010889577679336071,
0.05182715877890587,
0.03275910019874573,
-0.02650098316371441,
0.008398756384849548,
0.010929114185273647,
0.02469358593225479,
0.018458059057593346,
-0.03691611811518669,
0.00862468034029007,
0.05517084524035454,
-0.010595874860882759,
0.00037489403621293604,
0.09642472118139267,
0.012403273954987526,
0.006879411172121763,
-0.00700367009267211,
-0.013397343456745148,
0.053950853645801544,
-0.016537697985768318,
-0.06090933829545975,
0.03160688653588295,
-0.021067490801215172,
-0.06872633844614029,
-0.03117762878537178,
0.019824905321002007,
-0.005408075638115406,
0.022321375086903572,
-0.0008705166401341558,
0.009567917324602604,
0.00010952059528790414,
0.015351592563092709,
-0.001613950589671731,
-0.017079917713999748,
0.008788476698100567,
-0.04834791645407677,
0.0048263194039464,
-0.015193445608019829,
0.028421344235539436,
0.007043207064270973,
-0.0016153625911101699,
-0.006822930183261633,
0.029302451759576797,
-0.020593049004673958,
0.02966393157839775,
-0.011307538487017155,
0.03386613354086876,
0.04477830231189728,
-0.05408640578389168,
0.01955379545688629,
0.046811625361442566,
-0.0387687012553215,
-0.03251058608293533,
-0.08901438862085342,
0.010420783422887325,
-0.011714203283190727,
0.021462859585881233,
0.028285790234804153,
0.005241456441581249,
-0.07161817699670792,
0.002863597357645631,
-0.022795816883444786,
0.014165487140417099,
0.0021265174727886915,
-0.01618751510977745,
-0.007399038411676884,
-0.00021374608331825584,
-0.021519340574741364,
0.012572716921567917,
0.06375598907470703,
-0.042586833238601685,
0.03831685334444046,
0.031109850853681564,
-0.04202201962471008,
-0.02009601518511772,
0.00832532998174429,
0.029686523601412773,
-0.02392544038593769,
-0.05706861615180969,
-0.00673820823431015,
0.02663653902709484,
-0.06533746421337128,
-0.01964416541159153,
0.024603215977549553,
0.018153060227632523,
-0.08969216048717499,
-0.007342557422816753,
0.014470485970377922,
-0.0059361751191318035,
0.016978250816464424,
-0.006630894262343645,
-0.04543348401784897,
0.030386891216039658,
0.011205872520804405,
-0.00041125380084849894,
-0.014041229151189327,
-0.005077660549432039,
-0.0412764698266983,
-0.03865573927760124,
0.006015249062329531,
-0.011205872520804405,
-0.02124823071062565,
0.04785088077187538,
0.056752320379018784,
-0.049839019775390625,
0.07396779209375381,
0.015826035290956497,
-0.039446476846933365,
0.009025697596371174,
-0.06687375158071518,
0.017452694475650787,
0.0176447294652462,
-0.004077943507581949,
0.04511719197034836,
0.015317704528570175,
0.04240609332919121,
0.024761362001299858,
0.02478395588696003,
0.0037192876916378736,
0.08485736697912216,
-0.01818694919347763,
-0.001933069434016943,
0.0032985026482492685,
0.0011183279566466808,
-0.0001623834832571447,
-0.017893247306346893,
0.016865288838744164,
0.018717873841524124,
-0.006625245790928602,
0.009313751943409443,
-0.05313752219080925,
0.005554927047342062,
0.005501269828528166,
0.07821518182754517,
-0.011928831227123737,
-0.05639084056019783,
0.020739899948239326,
0.03698389604687691,
-0.05941823124885559,
0.021621007472276688,
-0.01855972595512867,
0.00811070203781128,
-0.04857384040951729,
0.04830273240804672,
-0.011510870419442654,
-0.0037672966718673706,
-0.03551538661122322,
0.061632297933101654,
0.023835070431232452,
-0.02101100981235504,
0.013035863637924194,
-0.027630608528852463,
-0.004467663820832968,
0.002903134096413851,
0.029505783692002296,
-0.054718997329473495,
-0.05833379551768303,
-0.01872916892170906,
0.0016492513241246343,
-0.007404686417430639,
-0.02564246952533722,
0.025348767638206482,
0.021654896438121796,
-0.010522449389100075,
-0.030386891216039658,
-0.005975712090730667,
0.031222812831401825,
-0.03264613822102547,
0.02552950754761696,
0.04412312060594559,
-0.045388299971818924,
-0.06881670653820038,
0.007331260945647955,
-0.006789041217416525,
-0.036306120455265045,
0.01055068988353014,
-0.008404403924942017,
0.023021740838885307,
-0.035108719021081924,
-0.0705789178609848,
-0.07541371136903763,
-0.021406378597021103,
0.018921205773949623,
-0.04534311592578888,
-0.020999714732170105,
0.0003337686648592353,
0.008748939260840416,
-0.0322168804705143,
-0.009517083875834942,
0.05462862551212311,
0.08648402988910675,
-0.10500986874103546,
-0.034679461270570755,
-0.018424170091748238,
-0.08860772103071213,
0.0412764698266983,
0.026049133390188217,
0.007421630900353193,
-0.0277209784835577,
-0.008551254868507385,
-0.030974294990301132,
-0.006241173483431339,
0.02467099204659462,
-0.01822083815932274,
0.012188645079731941,
0.037616487592458725,
0.04391979053616524,
0.030251335352659225,
-0.0032533176708966494,
-0.037277597934007645,
-0.00027269835118204355,
-0.016628067940473557,
-0.010522449389100075,
0.06316858530044556,
0.00665913475677371,
0.0504264235496521,
0.001736797159537673,
-0.023541368544101715,
-0.008799772709608078,
-0.012301607988774776,
-0.006495339330285788,
0.0234735906124115,
-0.01229031104594469,
-0.011804573237895966,
-0.03158429265022278,
0.05304715409874916,
-0.017147695645689964,
-0.09271955490112305,
0.0025458906311541796,
-0.010070599615573883,
0.08291441947221756,
0.033820949494838715,
-0.0420897975564003,
0.023948032408952713,
-0.008201071992516518,
0.008619032800197601,
-0.021316008642315865,
-0.008314033970236778,
0.026862462982535362,
0.059373047202825546,
-0.0023044333793222904,
-0.02063823491334915,
-0.025800617411732674,
-0.051465678960084915,
-0.08634847402572632,
0.01157864835113287,
-0.07265742868185043,
0.027969494462013245,
-0.009392824955284595,
0.05313752219080925,
0.0368257500231266,
0.013736230321228504,
0.019519906491041183
] |
725,040 | tf_keras.src.engine.base_layer | save_own_variables | Saves the state of the layer.
You can override this method to take full control of how the state of
the layer is saved upon calling `model.save()`.
Args:
store: Dict where the state of the model will be saved.
| def save_own_variables(self, store):
"""Saves the state of the layer.
You can override this method to take full control of how the state of
the layer is saved upon calling `model.save()`.
Args:
store: Dict where the state of the model will be saved.
"""
all_vars = self._trainable_weights + self._non_trainable_weights
for i, v in enumerate(all_vars):
store[f"{i}"] = v.numpy()
| (self, store) | [
-0.02590879239141941,
-0.01488642580807209,
-0.04405384883284569,
0.056198038160800934,
0.009669054299592972,
-0.004084418527781963,
-0.09750965237617493,
0.01919565536081791,
0.032052114605903625,
0.0019809987861663103,
-0.017210204154253006,
0.017423884943127632,
-0.005132789723575115,
0.0004782776231877506,
0.02448425255715847,
0.021474916487932205,
0.02297068201005459,
-0.05409684404730797,
-0.012464710511267185,
-0.01684516668319702,
0.01040803361684084,
-0.04579890891909599,
0.026745708659291267,
-0.016854070127010345,
0.018358739092946053,
0.0068288808688521385,
0.035292938351631165,
0.023344622924923897,
0.017984796315431595,
0.02941671758890152,
-0.07671139389276505,
-0.09067186713218689,
0.008293484337627888,
0.04059934243559837,
0.052957214415073395,
-0.030271440744400024,
-0.013381757773458958,
0.07599912583827972,
-0.022347446531057358,
-0.026033438742160797,
0.033316392451524734,
-0.0565185621380806,
-0.0009971768595278263,
0.026603253558278084,
-0.04430314525961876,
0.0033298584166914225,
-0.006784364115446806,
0.022578934207558632,
0.07371985912322998,
-0.0439470075070858,
-0.011102495715022087,
-0.01892855390906334,
0.012838652357459068,
0.018946360796689987,
0.029915306717157364,
-0.020228445529937744,
0.06196742132306099,
0.0197298564016819,
-0.0201750248670578,
-0.001054492313414812,
-0.031143970787525177,
-0.05327773466706276,
0.008983494713902473,
-0.049538321793079376,
0.028134632855653763,
-0.010060802102088928,
-0.07225970923900604,
0.03365471959114075,
0.021136587485671043,
0.01708555780351162,
0.0031540170311927795,
-0.07899065315723419,
0.04893289506435394,
0.026033438742160797,
-0.034402601420879364,
0.006868945900350809,
-0.01873268000781536,
-0.014049509540200233,
-0.04957393556833267,
-0.016230834648013115,
-0.03488338366150856,
-0.06649032980203629,
-0.03228360041975975,
0.050072524696588516,
-0.03685992956161499,
-0.018608031794428825,
-0.008703039027750492,
0.0349724180996418,
-0.0007873913273215294,
-0.034936804324388504,
0.009775894694030285,
0.09366340190172195,
0.0018830617191269994,
0.039424099028110504,
0.0021034199744462967,
-0.059688158333301544,
-0.005524537991732359,
-0.03206992149353027,
-0.027564818039536476,
0.004489521961659193,
-0.028383927419781685,
-0.014788488857448101,
-0.026478607207536697,
0.0020767098758369684,
-0.04519347846508026,
-0.03030705451965332,
-0.010176545940339565,
-0.03390401229262352,
-0.0224186722189188,
-0.0019153363537043333,
-0.0014278771122917533,
0.014975459314882755,
0.014022800140082836,
-0.022347446531057358,
-0.027956565842032433,
0.0002665444917511195,
0.017699889838695526,
0.024448640644550323,
-0.029701625928282738,
0.012927685864269733,
-0.021492723375558853,
0.06574244797229767,
-0.059332024306058884,
0.03570249304175377,
-0.010238870047032833,
0.07033658027648926,
0.06980238109827042,
0.05374071002006531,
0.008093158714473248,
-0.052138105034828186,
-0.007981866598129272,
-0.06435351818799973,
-0.04968077689409256,
0.06695330142974854,
0.029131809249520302,
0.014548098668456078,
0.032942451536655426,
-0.007296307478100061,
0.017076654359698296,
0.00782160647213459,
0.03126861900091171,
0.030609767884016037,
0.018857326358556747,
0.04619065672159195,
0.05587751790881157,
0.006343647371977568,
-0.014378934167325497,
-0.0015792343765497208,
-0.057337671518325806,
-0.06620541960000992,
0.015945926308631897,
0.044089462608098984,
-0.03817762807011604,
-0.029078390449285507,
-0.023914437741041183,
0.01637328788638115,
0.004936915822327137,
-0.03570249304175377,
-0.002982627134770155,
-0.035008031874895096,
-0.05669662728905678,
0.039495326578617096,
-0.029185229912400246,
-0.0011796958278864622,
-0.011992832645773888,
0.0349724180996418,
0.008876655250787735,
0.025000648573040962,
0.010799781419336796,
0.02557046338915825,
-0.026834741234779358,
-0.08910487592220306,
-0.021581755951046944,
0.03632573038339615,
-0.025036262348294258,
-0.0044227465987205505,
0.014548098668456078,
-0.07072833180427551,
-0.01259826123714447,
0.057622577995061874,
0.05594874545931816,
-0.02152833715081215,
-0.07963169366121292,
0.03620108217000961,
0.01775331050157547,
-0.08554352819919586,
-0.006668620277196169,
0.010995655320584774,
0.04205949604511261,
0.002904722699895501,
0.04198826849460602,
0.04270053654909134,
-0.028633221983909607,
-0.049110960215330124,
0.003935287240892649,
-0.01579456962645054,
0.04978761821985245,
-0.04387578368186951,
-0.011966122314333916,
0.03461628407239914,
0.005382084287703037,
-0.043982621282339096,
0.011147012934088707,
-0.030146794393658638,
-0.015011073090136051,
-0.023077521473169327,
-0.03281780332326889,
-0.048826053738594055,
-0.038426924496889114,
-0.020566772669553757,
0.058263618499040604,
0.03999391570687294,
0.03392181918025017,
0.04401823505759239,
0.11873527616262436,
-0.03992268815636635,
-0.03518609702587128,
0.057444509118795395,
0.06517262756824493,
0.0017083331476897001,
0.029755044728517532,
0.013355047442018986,
-0.01864364556968212,
0.024413026869297028,
0.019872309640049934,
-0.047650810331106186,
0.02806340530514717,
-0.04679608717560768,
-0.027689464390277863,
-0.01299891248345375,
0.000628800131380558,
0.010879911482334137,
-0.06595613062381744,
-0.0003580822085496038,
0.07019412517547607,
0.058156780898571014,
-0.033957432955503464,
-0.0528859868645668,
0.03739413246512413,
0.005724863614886999,
-0.018136154860258102,
-0.00721617741510272,
-0.03718045353889465,
-0.03139326348900795,
-0.01830531843006611,
0.012500324286520481,
0.05858414247632027,
0.05865536630153656,
-0.04220195114612579,
0.006873397622257471,
0.06428229808807373,
0.0061344183050096035,
-0.008106513880193233,
0.057622577995061874,
0.024697933346033096,
0.01910662092268467,
-0.002308197319507599,
0.01197502575814724,
0.013417370617389679,
-0.026425186544656754,
-0.04252247139811516,
0.014494678005576134,
-0.016631485894322395,
0.007750378921627998,
0.005275243893265724,
-0.0068244291469454765,
0.030894676223397255,
-0.009962865151464939,
0.010746361687779427,
0.0026665576733648777,
0.07592789828777313,
0.09872051328420639,
-0.027279909700155258,
0.00690901093184948,
0.016168510541319847,
-0.058263618499040604,
0.03746536001563072,
0.03867621719837189,
-0.05719521641731262,
0.016453418880701065,
0.00876536313444376,
-0.015278174541890621,
-0.010372419841587543,
0.004217969253659248,
-0.020869487896561623,
-0.0168006494641304,
-0.003948642406612635,
-0.029185229912400246,
-0.008587295189499855,
-0.05527208745479584,
0.040670569986104965,
0.04679608717560768,
0.08312181383371353,
0.024413026869297028,
-0.015856893733143806,
-0.02574853040277958,
-0.05901150405406952,
0.046582404524087906,
0.03518609702587128,
0.0779934749007225,
0.02501845546066761,
0.057978712022304535,
0.046155042946338654,
0.0031406618654727936,
0.03299586847424507,
-0.04373332858085632,
0.019266881048679352,
0.004400487989187241,
-0.012348966673016548,
0.01426319032907486,
0.040670569986104965,
0.024680128321051598,
0.024911614134907722,
0.05082040652632713,
0.0358627550303936,
-0.05338457599282265,
0.011066882871091366,
-0.04943148046731949,
-0.005649184808135033,
0.07069271802902222,
0.02930987812578678,
-0.011325079947710037,
-0.04822062328457832,
-0.016391094774007797,
-0.006539521738886833,
0.0037238323129713535,
0.03317393735051155,
0.00030967016937211156,
0.02672790177166462,
-0.011912702582776546,
-0.053776323795318604,
-0.009330726228654385,
0.04896850511431694,
0.02861541509628296,
-0.012446904554963112,
0.004678718280047178,
-0.029274264350533485,
0.04473050683736801,
0.03372594714164734,
0.022115958854556084,
-0.020050378516316414,
0.018857326358556747,
-0.050606727600097656,
0.0165958721190691,
-0.005542344879359007,
0.0021468237973749638,
-0.03885428607463837,
0.008248967118561268,
-0.00030382731347344816,
0.03093028999865055,
-0.062109872698783875,
0.012072962708771229,
-0.01488642580807209,
0.0502505898475647,
0.022009117528796196,
0.022044731304049492,
0.014191963709890842,
-0.00423800153657794,
-0.01706775091588497,
-0.04579890891909599,
-0.0018708196002990007,
0.00013521985965780914,
0.01259826123714447,
0.01666709966957569,
0.054025616496801376,
-0.0035279584117233753,
0.04590575024485588,
-0.026478607207536697,
0.0327465757727623,
-0.059332024306058884,
0.01058610063046217,
-0.04718783497810364,
0.0036570571828633547,
0.03244386240839958,
-0.03513267636299133,
0.03750097379088402,
-0.025695111602544785,
-0.008970140479505062,
0.0492890290915966,
-0.021670790389180183,
0.014788488857448101,
-0.016756132245063782,
0.03335200622677803,
0.02053115889430046,
0.09793701022863388,
0.0043181320652365685,
0.024252766743302345,
-0.0036570571828633547,
-0.006098804995417595,
-0.0016137348720803857,
-0.013711182400584221,
0.014218674041330814,
-0.05370509624481201,
0.013355047442018986,
0.05594874545931816,
-0.017272528260946274,
-0.011120302602648735,
0.024163732305169106,
-0.03267534822225571,
-0.008511616848409176,
-0.024430833756923676,
-0.05883343517780304,
-0.04583452269434929,
0.023113135248422623,
-0.03208772838115692,
-0.01784234307706356,
-0.0367530919611454,
0.047650810331106186,
-0.010372419841587543,
-0.04725906252861023,
0.0034745382145047188,
0.03835569694638252,
0.0005394882755354047,
-0.036539409309625626,
0.06392616033554077,
0.021492723375558853,
0.008890009485185146,
-0.042451243847608566,
0.027244295924901962,
0.025980018079280853,
0.014993266202509403,
0.05719521641731262,
0.03568468615412712,
0.04718783497810364,
0.01348859816789627,
0.0120996730402112,
-0.04366210103034973,
0.017343753948807716,
0.03664625063538551,
0.06043604016304016,
-0.03685992956161499,
-0.03490119054913521,
-0.014325514435768127,
-0.021296849474310875,
0.04715222120285034,
-0.030912483111023903,
0.039602167904376984,
-0.0511053130030632,
-0.0645672008395195,
0.09031573683023453,
0.025054069235920906,
-0.012464710511267185,
-0.01631096377968788,
0.04077741131186485,
-0.005497827660292387,
-0.031090550124645233,
-0.03518609702587128,
0.03881867229938507,
-0.042023882269859314,
0.0021156619768589735,
0.034313566982746124,
-0.0026732352562248707,
0.04989445582032204,
-0.049360256642103195,
0.07849206775426865,
0.03176720440387726,
-0.08098500967025757,
-0.061931807547807693,
0.009152659215033054,
-0.05270792171359062,
0.016186317428946495,
-0.014476871117949486,
-0.02053115889430046,
0.018946360796689987,
0.01821628399193287,
-0.08468880504369736,
-0.021279042586684227,
-0.015082299709320068,
0.04316351190209389,
0.03561345860362053,
0.012464710511267185,
-0.037073612213134766,
-0.007879477925598621,
-0.0582992322742939,
-0.034313566982746124,
0.03504364565014839,
0.004485070239752531,
0.017646469175815582,
-0.03461628407239914,
-0.08126991242170334,
-0.032515089958906174,
-0.015233657322824001,
-0.07770857214927673,
0.041560906916856766,
0.05270792171359062,
0.08347795158624649,
-0.003603636985644698,
0.01788686029613018,
0.0538119375705719,
0.02232963964343071,
-0.04088425263762474,
0.007639087270945311,
-0.007701410446316004,
0.014797392301261425,
-0.026496414095163345,
0.0008853283361531794,
-0.010684037581086159,
0.022080345079302788,
-0.007892833091318607,
0.027867531403899193,
-0.007438761182129383,
-0.028633221983909607,
0.005293050315231085,
0.033316392451524734,
-0.015803473070263863,
-0.005106079857796431,
-0.0030560800805687904,
0.028455154970288277,
-0.022917261347174644,
0.005342018790543079,
-0.0183943510055542,
-0.018946360796689987,
0.013417370617389679,
-0.00299375643953681,
-0.0062546138651669025,
-0.017584145069122314,
-0.03532855212688446,
0.03356568515300751,
-0.014503581449389458,
0.010167642496526241,
-0.0026621061842888594,
-0.03201650083065033,
0.01650683768093586,
-0.02959478460252285,
0.007759282365441322,
0.04772203415632248,
-0.055735062807798386,
-0.038961123675107956,
0.0237541776150465,
0.056625399738550186,
0.01935591548681259,
0.013711182400584221,
0.03486557677388191,
0.04351964592933655,
-0.008084255270659924,
-0.014414547942578793,
0.08205340802669525,
-0.0797741487622261,
-0.06200303137302399,
-0.04287860542535782,
-0.01631096377968788,
-0.038569375872612,
0.004226872697472572,
-0.04501541331410408,
0.016435611993074417,
0.04822062328457832,
-0.02512529492378235,
-0.05334896221756935,
-0.027226489037275314,
-0.022098151966929436,
-0.030965903773903847,
-0.00815548188984394,
-0.020299671217799187,
-0.039780233055353165,
0.06449597328901291,
-0.07186795771121979,
0.02923865057528019,
0.007990770041942596,
-0.005493375938385725,
0.04440998286008835,
0.0012297772336751223,
-0.054844729602336884,
0.04594136402010918,
0.029078390449285507,
-0.0376790389418602,
0.03206992149353027,
-0.038604989647865295,
-0.06168251112103462,
-0.03518609702587128,
0.015126816928386688,
0.05245862528681755,
0.002530781552195549,
0.038569375872612,
-0.027867531403899193,
0.007728120777755976,
0.023451462388038635,
0.034117694944143295,
0.01999695785343647,
0.021029748022556305,
0.025036262348294258,
-0.028757868334650993,
0.0538119375705719,
-0.03814201429486275,
0.021759822964668274,
0.040029529482126236,
0.03406427428126335,
0.013114656321704388,
0.04647556319832802,
-0.012188706547021866,
0.02699500322341919,
0.0012731811730191112,
0.07692506909370422,
0.021581755951046944,
-0.04027882218360901,
-0.005261888727545738,
-0.06987360864877701,
-0.02592659927904606,
0.03580933436751366,
0.007487729657441378,
-0.008360259234905243,
-0.012990009039640427,
-0.042914219200611115,
0.012829748913645744,
0.018412157893180847,
-0.020246252417564392,
-0.06706014275550842,
-0.012705101631581783,
0.09693983942270279,
-0.02395005151629448,
0.006584038492292166,
-0.02348707616329193,
-0.017610855400562286,
0.00849826168268919,
-0.04170336201786995,
-0.02377198450267315,
0.004772203508764505,
-0.00013062905054539442,
0.02897154912352562,
-0.03871183097362518,
-0.009882735088467598,
-0.03148229792714119,
-0.04106231778860092,
-0.04715222120285034,
-0.002406134270131588,
-0.046048201620578766,
-0.021047554910182953,
0.024858195334672928,
-0.019516175612807274,
0.008956785313785076,
-0.031250812113285065,
-0.03871183097362518,
-0.005528989713639021,
0.043270353227853775,
-0.040919866412878036,
0.02996872551739216,
-0.0394597128033638,
0.015349401161074638,
-0.014245383441448212,
0.005212920252233744,
-0.045870136469602585,
0.036183275282382965,
0.048291850835084915,
0.02305971458554268,
-0.003881867043673992,
-0.0034456022549420595,
0.026852548122406006,
-0.0010784200858324766,
-0.012571550905704498,
0.019605210050940514,
-0.02870444767177105,
-0.06154005974531174,
-0.027564818039536476,
-0.0259978249669075,
0.029933113604784012,
0.03436698764562607,
0.03146449103951454,
0.08198218047618866,
0.011360693722963333,
0.056198038160800934,
-0.0672738254070282,
-0.06510140746831894,
0.03290683776140213,
-0.015812376514077187,
0.01014093216508627,
0.013408467173576355,
0.017717696726322174,
-0.06178935244679451,
0.022489899769425392,
0.01573224551975727,
-0.04099109023809433,
0.008885557763278484,
-0.03839131072163582,
0.010212159715592861,
-0.0055467961356043816,
0.005956351291388273,
-0.044516824185848236,
-0.02054896578192711,
0.027956565842032433,
0.042736150324344635,
-0.050606727600097656,
0.01610618643462658,
0.018590226769447327,
0.021118782460689545,
-0.02519652247428894,
0.0573732815682888,
0.025089683011174202,
-0.05057111382484436,
0.06139760464429855,
0.012357870116829872,
0.008013028651475906,
-0.057266443967819214,
-0.043270353227853775,
0.03488338366150856,
0.0011941638076677918,
-0.03561345860362053,
-0.03732290491461754,
0.030716609209775925,
-0.029576977714896202,
-0.010737458243966103,
-0.025873178616166115,
-0.045157868415117264,
0.010247772559523582,
-0.02494722791016102,
0.02635396085679531,
0.034384794533252716,
0.016453418880701065,
-0.04490857198834419,
-0.0237541776150465,
-0.05274353548884392,
-0.025712918490171432,
0.021777629852294922,
-0.020157217979431152,
-0.023540496826171875,
-0.025855371728539467,
-0.04027882218360901,
0.054737888276576996,
0.0011017913930118084,
-0.015919215977191925,
-0.05566383898258209,
0.03871183097362518,
-0.006419326178729534,
0.015135720372200012,
0.019071007147431374,
0.0006677523488178849,
-0.039424099028110504,
-0.021296849474310875,
-0.0367530919611454,
-0.027689464390277863,
0.05712398886680603,
0.005506731104105711,
0.004718783311545849,
-0.01179695874452591,
0.020744839683175087,
0.03174939751625061,
-0.03650379553437233,
0.026229312643408775,
0.01766427606344223,
-0.016115089878439903,
-0.06577806174755096,
0.021279042586684227,
0.0842614471912384,
0.011770248413085938,
0.023469269275665283,
0.013052333146333694,
-0.05516524985432625,
0.020050378516316414,
0.05285037308931351,
-0.015402820892632008,
-0.04369771480560303,
-0.009998478926718235,
0.04351964592933655,
0.08091378211975098,
0.0033498909324407578,
-0.002417263574898243,
0.08938978612422943,
0.018625838682055473,
0.043270353227853775,
-0.045620840042829514,
-0.02977285161614418,
-0.037536587566137314,
-0.03390401229262352,
-0.09067186713218689,
0.01537611149251461,
0.0068377843126654625,
0.010425840504467487,
0.004204614087939262,
0.013524211011826992,
-0.03255070373415947
] |
725,042 | tf_keras.src.engine.training | save_weights | Saves all layer weights.
Either saves in HDF5 or in TensorFlow format based on the `save_format`
argument.
When saving in HDF5 format, the weight file has:
- `layer_names` (attribute), a list of strings
(ordered names of model layers).
- For every layer, a `group` named `layer.name`
- For every such layer group, a group attribute `weight_names`,
a list of strings
(ordered names of weights tensor of the layer).
- For every weight in the layer, a dataset
storing the weight value, named after the weight tensor.
When saving in TensorFlow format, all objects referenced by the network
are saved in the same format as `tf.train.Checkpoint`, including any
`Layer` instances or `Optimizer` instances assigned to object
attributes. For networks constructed from inputs and outputs using
`tf.keras.Model(inputs, outputs)`, `Layer` instances used by the network
are tracked/saved automatically. For user-defined classes which inherit
from `tf.keras.Model`, `Layer` instances must be assigned to object
attributes, typically in the constructor. See the documentation of
`tf.train.Checkpoint` and `tf.keras.Model` for details.
While the formats are the same, do not mix `save_weights` and
`tf.train.Checkpoint`. Checkpoints saved by `Model.save_weights` should
be loaded using `Model.load_weights`. Checkpoints saved using
`tf.train.Checkpoint.save` should be restored using the corresponding
`tf.train.Checkpoint.restore`. Prefer `tf.train.Checkpoint` over
`save_weights` for training checkpoints.
The TensorFlow format matches objects and variables by starting at a
root object, `self` for `save_weights`, and greedily matching attribute
names. For `Model.save` this is the `Model`, and for `Checkpoint.save`
this is the `Checkpoint` even if the `Checkpoint` has a model attached.
This means saving a `tf.keras.Model` using `save_weights` and loading
into a `tf.train.Checkpoint` with a `Model` attached (or vice versa)
will not match the `Model`'s variables. See the
[guide to training checkpoints](
https://www.tensorflow.org/guide/checkpoint) for details on
the TensorFlow format.
Args:
filepath: String or PathLike, path to the file to save the weights
to. When saving in TensorFlow format, this is the prefix used
for checkpoint files (multiple files are generated). Note that
the '.h5' suffix causes weights to be saved in HDF5 format.
overwrite: Whether to silently overwrite any existing file at the
target location, or provide the user with a manual prompt.
save_format: Either 'tf' or 'h5'. A `filepath` ending in '.h5' or
'.keras' will default to HDF5 if `save_format` is `None`.
Otherwise, `None` becomes 'tf'. Defaults to `None`.
options: Optional `tf.train.CheckpointOptions` object that specifies
options for saving weights.
Raises:
ImportError: If `h5py` is not available when attempting to save in
HDF5 format.
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Training-related part of the TF-Keras engine."""
import copy
import itertools
import json
import warnings
import weakref
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow.python.distribute import distribute_utils
from tensorflow.python.distribute import input_ops
from tensorflow.python.eager import context
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util.tf_export import keras_export
from tensorflow.tools.docs import doc_controls
from tf_keras.src import backend
from tf_keras.src import callbacks as callbacks_module
from tf_keras.src import optimizers
from tf_keras.src.dtensor import dtensor_api
from tf_keras.src.dtensor import layout_map as layout_map_lib
from tf_keras.src.engine import base_layer
from tf_keras.src.engine import base_layer_utils
from tf_keras.src.engine import compile_utils
from tf_keras.src.engine import data_adapter
from tf_keras.src.engine import input_layer as input_layer_module
from tf_keras.src.engine import training_utils
from tf_keras.src.metrics import base_metric
from tf_keras.src.mixed_precision import loss_scale_optimizer as lso
from tf_keras.src.optimizers import optimizer
from tf_keras.src.optimizers import optimizer_v1
from tf_keras.src.saving import pickle_utils
from tf_keras.src.saving import saving_api
from tf_keras.src.saving import saving_lib
from tf_keras.src.saving import serialization_lib
from tf_keras.src.saving.legacy import serialization
from tf_keras.src.saving.legacy.saved_model import json_utils
from tf_keras.src.saving.legacy.saved_model import model_serialization
from tf_keras.src.utils import generic_utils
from tf_keras.src.utils import io_utils
from tf_keras.src.utils import layer_utils
from tf_keras.src.utils import steps_per_execution_tuning
from tf_keras.src.utils import tf_inspect
from tf_keras.src.utils import tf_utils
from tf_keras.src.utils import traceback_utils
from tf_keras.src.utils import version_utils
from tf_keras.src.utils.mode_keys import ModeKeys
try:
import h5py
except ImportError:
h5py = None
@keras_export("keras.Model", "keras.models.Model")
class Model(base_layer.Layer, version_utils.ModelVersionSelector):
"""A model grouping layers into an object with training/inference features.
Args:
inputs: The input(s) of the model: a `keras.Input` object or a
combination of `keras.Input` objects in a dict, list or tuple.
outputs: The output(s) of the model: a tensor that originated from
`keras.Input` objects or a combination of such tensors in a dict,
list or tuple. See Functional API example below.
name: String, the name of the model.
There are two ways to instantiate a `Model`:
1 - With the "Functional API", where you start from `Input`,
you chain layer calls to specify the model's forward pass,
and finally you create your model from inputs and outputs:
```python
import tensorflow as tf
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax)(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
```
Note: Only dicts, lists, and tuples of input tensors are supported. Nested
inputs are not supported (e.g. lists of list or dicts of dict).
A new Functional API model can also be created by using the
intermediate tensors. This enables you to quickly extract sub-components
of the model.
Example:
```python
inputs = keras.Input(shape=(None, None, 3))
processed = keras.layers.RandomCrop(width=32, height=32)(inputs)
conv = keras.layers.Conv2D(filters=2, kernel_size=3)(processed)
pooling = keras.layers.GlobalAveragePooling2D()(conv)
feature = keras.layers.Dense(10)(pooling)
full_model = keras.Model(inputs, feature)
backbone = keras.Model(processed, conv)
activations = keras.Model(conv, feature)
```
Note that the `backbone` and `activations` models are not
created with `keras.Input` objects, but with the tensors that are originated
from `keras.Input` objects. Under the hood, the layers and weights will
be shared across these models, so that user can train the `full_model`, and
use `backbone` or `activations` to do feature extraction.
The inputs and outputs of the model can be nested structures of tensors as
well, and the created models are standard Functional API models that support
all the existing APIs.
2 - By subclassing the `Model` class: in that case, you should define your
layers in `__init__()` and you should implement the model's forward pass
in `call()`.
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
def call(self, inputs):
x = self.dense1(inputs)
return self.dense2(x)
model = MyModel()
```
If you subclass `Model`, you can optionally have
a `training` argument (boolean) in `call()`, which you can use to specify
a different behavior in training and inference:
```python
import tensorflow as tf
class MyModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense1 = tf.keras.layers.Dense(4, activation=tf.nn.relu)
self.dense2 = tf.keras.layers.Dense(5, activation=tf.nn.softmax)
self.dropout = tf.keras.layers.Dropout(0.5)
def call(self, inputs, training=False):
x = self.dense1(inputs)
if training:
x = self.dropout(x, training=training)
return self.dense2(x)
model = MyModel()
```
Once the model is created, you can config the model with losses and metrics
with `model.compile()`, train the model with `model.fit()`, or use the model
to do prediction with `model.predict()`.
"""
_TF_MODULE_IGNORED_PROPERTIES = frozenset(
itertools.chain(
(
"_train_counter",
"_test_counter",
"_predict_counter",
"_steps_per_execution",
"_compiled_trainable_state",
),
base_layer.Layer._TF_MODULE_IGNORED_PROPERTIES,
)
)
_SCALAR_UPRANKING_ON = False
def __new__(cls, *args, **kwargs):
# Signature detection
if is_functional_model_init_params(args, kwargs) and cls == Model:
# Functional model
from tf_keras.src.engine import functional
return functional.Functional(skip_init=True, *args, **kwargs)
else:
return super(Model, cls).__new__(cls, *args, **kwargs)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, *args, **kwargs):
self._is_model_for_instrumentation = True
# Special case for Subclassed Functional Model, which we couldn't detect
# when __new__ is called. We only realize it is a functional model when
# it calls super.__init__ with input and output tensor.
from tf_keras.src.engine import functional
if is_functional_model_init_params(args, kwargs) and not isinstance(
self, functional.Functional
):
# Filter the kwargs for multiple inheritance.
support | (self, filepath, overwrite=True, save_format=None, options=None) | [
0.024919170886278152,
-0.08747690916061401,
-0.03955890238285065,
0.04970278963446617,
-0.0026446967385709286,
-0.0020671843085438013,
-0.08697988092899323,
0.0001960930385394022,
-0.009330568835139275,
-0.024422142654657364,
-0.01929371990263462,
0.009805005043745041,
-0.02756245620548725,
0.05083239823579788,
0.0571582093834877,
0.0399203784763813,
0.0009679335635155439,
-0.0077039324678480625,
0.0006749412859790027,
-0.01570156216621399,
0.02753986418247223,
-0.04251847788691521,
-0.04527472332119942,
0.03549230843782425,
0.01845780946314335,
0.05205237492918968,
-0.007127831690013409,
0.0063371057622134686,
0.02025388740003109,
-0.02591322734951973,
-0.05562194064259529,
0.0008761528879404068,
-0.0361022986471653,
-0.009917966090142727,
0.01958741806447506,
-0.03497269004583359,
0.012979205697774887,
0.06425215303897858,
-0.03809041157364845,
-0.03766115754842758,
0.03578600659966469,
-0.0448002852499485,
0.003428362775593996,
-0.019022613763809204,
-0.004555147606879473,
0.01766708306968212,
-0.0064896028488874435,
0.008274384774267673,
0.019632602110505104,
-0.04857318103313446,
-0.04283476620912552,
-0.010465825907886028,
-0.007958094589412212,
0.033255685120821,
-0.026975059881806374,
-0.048121336847543716,
-0.01697802171111107,
-0.04631396383047104,
0.011019334197044373,
-0.00757402740418911,
-0.00974852405488491,
-0.024648064747452736,
0.001783369923941791,
0.017655786126852036,
-0.03262310475111008,
-0.0018539705779403448,
-0.04387400671839714,
-0.04712728038430214,
0.0025656241923570633,
0.044529180973768234,
-0.04952205345034599,
-0.044145114719867706,
0.056570809334516525,
0.02916650101542473,
0.009545194916427135,
0.0004384294443298131,
0.0006661161896772683,
-0.04068851098418236,
0.03806781768798828,
-0.04579434171319008,
-0.041772935539484024,
-0.002706825267523527,
-0.02936982922255993,
-0.03400122746825218,
0.011623675003647804,
-0.028895394876599312,
-0.007415882311761379,
-0.005998223088681698,
-0.013849004171788692,
-0.005800541490316391,
-0.009963150136172771,
0.04211181774735451,
0.023450680077075958,
0.04735320433974266,
0.06642100214958191,
-0.017949484288692474,
-0.05521528050303459,
-0.03777411952614784,
-0.0069922786206007,
-0.02489657886326313,
0.02153034508228302,
0.03298457711935043,
-0.024331774562597275,
0.010222960263490677,
-0.04226996377110481,
-0.045545827597379684,
-0.07229496538639069,
-0.017508937045931816,
-0.05598341301083565,
-0.02835318259894848,
-0.027630232274532318,
-0.009697691537439823,
-0.008929558098316193,
0.0133745688945055,
-0.02742690220475197,
0.03217126056551933,
0.0001353765546809882,
-0.011702748015522957,
-0.030363885685801506,
-0.0023580584675073624,
0.0004285453469492495,
0.05598341301083565,
-0.04938649758696556,
-0.03899409621953964,
-0.017249127849936485,
0.012967909686267376,
0.05051610618829727,
0.021586824208498,
0.04599767178297043,
-0.040439996868371964,
-0.03897150605916977,
-0.017599305137991905,
-0.0033972985111176968,
0.06077295541763306,
0.01336327288299799,
-0.0038434939924627542,
-0.0021589649841189384,
0.02695246785879135,
-0.059824083000421524,
0.06221885606646538,
0.06705357879400253,
0.005698876455426216,
0.059824083000421524,
0.02663617581129074,
-0.03754819929599762,
-0.021519048139452934,
-0.0048940302804112434,
-0.0636647567152977,
-0.009471770375967026,
-0.04199885576963425,
-0.002828258089721203,
0.008505954407155514,
0.017599305137991905,
0.00913853570818901,
-0.0059586865827441216,
0.03235199674963951,
-0.035966746509075165,
-0.06461362540721893,
0.028692064806818962,
-0.009697691537439823,
-0.06090850755572319,
-0.04649470001459122,
0.02347327210009098,
-0.03797744959592819,
0.013837708160281181,
0.0038943265099078417,
-0.041388869285583496,
-0.023292534053325653,
0.005300689488649368,
0.020626656711101532,
0.041976265609264374,
0.017057092860341072,
0.03467899188399315,
0.019824635237455368,
0.011019334197044373,
0.04466473311185837,
0.05196200683712959,
-0.011781820096075535,
0.02040073648095131,
0.04744357243180275,
0.045252129435539246,
-0.017418568953871727,
-0.09032352268695831,
-0.036870431154966354,
-0.05408567190170288,
0.022354958578944206,
-0.049928709864616394,
0.02539360709488392,
0.041366275399923325,
-0.000633639981970191,
0.030025003477931023,
0.028240220621228218,
0.021146276965737343,
0.03915224224328995,
-0.04353512451052666,
-0.0070205191150307655,
-0.00003920536983059719,
0.047895416617393494,
0.04988352581858635,
0.020073149353265762,
-0.011471177451312542,
0.009805005043745041,
0.03865521401166916,
-0.00046914067934267223,
-0.07297272980213165,
0.0061846086755394936,
0.008302625268697739,
-0.018435215577483177,
-0.04907020926475525,
-0.07694895565509796,
-0.0361022986471653,
0.013950669206678867,
0.04622359573841095,
0.07288236171007156,
0.07188830524682999,
-0.06370993703603745,
-0.029663529247045517,
0.02010703831911087,
-0.0041061281226575375,
-0.030160555616021156,
0.03354938328266144,
0.0277657862752676,
-0.04001074656844139,
0.0010505361715331674,
0.02896317094564438,
-0.03725450113415718,
0.04360290244221687,
0.004916622303426266,
-0.017215238884091377,
-0.0555315725505352,
-0.02338290400803089,
-0.07554823905229568,
0.004043999593704939,
0.02500953897833824,
0.016865059733390808,
0.010166479274630547,
-0.042608845978975296,
-0.035966746509075165,
0.04037221893668175,
-0.069764643907547,
-0.013092166744172573,
-0.06520102173089981,
-0.011166183277964592,
-0.03142571821808815,
-0.02480621077120304,
0.04267662391066551,
0.025732489302754402,
0.06953871995210648,
-0.03781930357217789,
-0.05078721418976784,
0.03350419923663139,
0.027155796065926552,
-0.012775875627994537,
0.08286810666322708,
-0.024444734677672386,
-0.03183237835764885,
0.031583864241838455,
-0.07807856053113937,
0.056751549243927,
0.014707507565617561,
-0.012007742188870907,
0.02835318259894848,
-0.02580026537179947,
0.0883805975317955,
0.022298479452729225,
-0.05078721418976784,
0.020841283723711967,
0.02042332850396633,
0.042902544140815735,
-0.015181942842900753,
0.1337456852197647,
0.05639007315039635,
-0.059824083000421524,
0.005907854065299034,
-0.036576732993125916,
-0.019655194133520126,
0.005391058046370745,
-0.0009594614966772497,
0.024919170886278152,
-0.0007314217509701848,
0.003998815547674894,
-0.09027834236621857,
-0.05223311483860016,
-0.0001251394860446453,
0.0026672889944165945,
-0.026048779487609863,
0.0054334187880158424,
-0.04925094544887543,
-0.002537383930757642,
-0.020299071446061134,
0.020073149353265762,
-0.017915597185492516,
0.08860652148723602,
0.0017381856450811028,
-0.02240014262497425,
-0.02184663526713848,
-0.019971484318375587,
0.010398049838840961,
0.019824635237455368,
-0.03323309123516083,
0.007404585834592581,
0.05986927077174187,
0.0778978243470192,
0.002849438227713108,
0.007641803938895464,
-0.08241625875234604,
0.0025670360773801804,
0.009579082950949669,
-0.02356364019215107,
-0.02162071317434311,
-0.013024389743804932,
-0.0007095355540513992,
0.035266388207674026,
-0.03336864709854126,
-0.009708988480269909,
-0.059236686676740646,
0.0063935862854123116,
-0.01866113767027855,
0.05643525719642639,
0.05774560570716858,
0.017723562195897102,
0.06456844508647919,
0.005721468944102526,
0.003487667301669717,
-0.00178478192538023,
-0.055350832641124725,
0.10021889954805374,
-0.015181942842900753,
-0.00022080322378315032,
0.01857076957821846,
-0.0026701129972934723,
-0.0571582093834877,
0.03580860048532486,
0.05286569520831108,
-0.08580508828163147,
-0.018706321716308594,
0.009245848283171654,
-0.00003483696127659641,
-0.010109999217092991,
0.034317515790462494,
0.05123905837535858,
0.05092276632785797,
-0.05087758228182793,
0.02127053402364254,
-0.009048166684806347,
-0.027810970321297646,
0.02683950588107109,
0.03185496851801872,
0.0074384743347764015,
0.004529731348156929,
-0.005453186575323343,
-0.009624266996979713,
-0.03113202005624771,
0.03725450113415718,
0.016469696536660194,
0.0312223881483078,
-0.03415936976671219,
-0.008827893063426018,
0.02077350579202175,
-0.03752560541033745,
0.03639599680900574,
0.006681636441498995,
-0.03336864709854126,
0.026749137789011,
0.08142220228910446,
-0.009307976812124252,
0.00317420088686049,
-0.01572415605187416,
0.016876356676220894,
0.015520825982093811,
0.0020191757939755917,
-0.07188830524682999,
0.07328902184963226,
0.01494472473859787,
-0.04053036496043205,
0.023315126076340675,
0.012866244651377201,
0.030454253777861595,
0.0073255132883787155,
0.01114359125494957,
0.04470991715788841,
0.05304643139243126,
0.0032476254273205996,
0.04848281294107437,
0.05684191733598709,
-0.024670656770467758,
-0.03217126056551933,
-0.022739026695489883,
0.02367660216987133,
-0.01240310538560152,
0.013453640975058079,
-0.018186703324317932,
-0.01448158547282219,
0.021349607035517693,
-0.011104054749011993,
0.026161741465330124,
0.009223256260156631,
0.04888946935534477,
-0.02559693716466427,
-0.046991728246212006,
-0.03702857717871666,
-0.03784189745783806,
0.06551731377840042,
0.05562194064259529,
0.009025574661791325,
-0.01122831180691719,
0.024263998493552208,
0.01790430024266243,
-0.04572656750679016,
0.034136779606342316,
-0.005405178293585777,
0.017983373254537582,
-0.06940316408872604,
0.05277532711625099,
-0.006150720175355673,
0.06881576776504517,
0.012674211524426937,
-0.023654010146856308,
0.03499528393149376,
0.0042021446861326694,
0.019745562225580215,
0.0409822091460228,
0.03332345932722092,
0.015385272912681103,
-0.020694434642791748,
0.02286328375339508,
-0.040552958846092224,
0.1126897782087326,
-0.00742717832326889,
0.017508937045931816,
-0.003239153418689966,
-0.05652562528848648,
-0.015859708189964294,
-0.036260444670915604,
-0.05173608660697937,
-0.00012002093717455864,
0.07143646478652954,
-0.009725932031869888,
0.0029143907595425844,
0.020095741376280785,
-0.025732489302754402,
-0.019417976960539818,
0.053498275578022,
0.025371015071868896,
-0.028646880760788918,
-0.027223573997616768,
-0.02376697026193142,
0.08625692874193192,
-0.03607970476150513,
-0.004204968921840191,
0.04635914787650108,
-0.017339495941996574,
0.04233773797750473,
0.02672654576599598,
-0.017271719872951508,
-0.021654602140188217,
0.038316331803798676,
-0.010268144309520721,
-0.021609418094158173,
-0.005119951907545328,
-0.0013018741738051176,
0.05643525719642639,
0.020231295377016068,
0.0032363294158130884,
-0.012798468582332134,
0.022298479452729225,
0.09154350310564041,
-0.00793550256639719,
-0.054311592131853104,
0.01779134012758732,
0.08011186122894287,
0.009601674973964691,
0.04193108156323433,
0.005936094559729099,
-0.0677313432097435,
0.01709098182618618,
0.01352141797542572,
-0.020739618688821793,
0.014470289461314678,
-0.034520845860242844,
0.04222477972507477,
-0.055667124688625336,
-0.019892411306500435,
0.02631988562643528,
0.008810948580503464,
0.05941742658615112,
0.027810970321297646,
0.001059714355506003,
0.010064815171062946,
0.008952150121331215,
-0.05467306822538376,
0.009336217306554317,
0.06872539967298508,
0.002801429945975542,
-0.058016709983348846,
-0.030341293662786484,
0.030567215755581856,
-0.002814138075336814,
0.009963150136172771,
0.0010152359027415514,
0.042292553931474686,
-0.0018709147116169333,
-0.03797744959592819,
-0.03273606300354004,
0.010047870688140392,
0.04211181774735451,
-0.04021407663822174,
0.005040879361331463,
-0.02147386409342289,
-0.019666489213705063,
-0.03531157225370407,
-0.02509990893304348,
0.04324142634868622,
-0.011928669176995754,
-0.012945317663252354,
-0.010895077139139175,
0.05182645469903946,
0.03275865688920021,
-0.026500623673200607,
0.008370401337742805,
0.010928965173661709,
0.024715840816497803,
0.01845780946314335,
-0.036870431154966354,
0.008630211465060711,
0.0551249124109745,
-0.01055054645985365,
0.00040242314571514726,
0.09642340987920761,
0.012414401397109032,
0.006896262057125568,
-0.006958390586078167,
-0.013397160917520523,
0.05395011976361275,
-0.01653747446835041,
-0.06090850755572319,
0.03160645440220833,
-0.021044611930847168,
-0.06868021935224533,
-0.031199796125292778,
0.019824635237455368,
-0.005408002529293299,
0.02237755060195923,
-0.000868386821821332,
0.009545194916427135,
0.00008463241101708263,
0.015351383946835995,
-0.0016068685799837112,
-0.017057092860341072,
0.00876576453447342,
-0.048302073031663895,
0.004840373992919922,
-0.015193238854408264,
0.028420958667993546,
0.007037463132292032,
-0.0016647609882056713,
-0.006783301010727882,
0.029324645176529884,
-0.02057017758488655,
0.029640935361385345,
-0.011324328370392323,
0.03391085937619209,
0.04477769508957863,
-0.054130855947732925,
0.019610010087490082,
0.04681099206209183,
-0.038813360035419464,
-0.032510142773389816,
-0.08901317417621613,
0.010409345850348473,
-0.011725340038537979,
0.021485161036252975,
0.02826281264424324,
0.00523008918389678,
-0.07166238874197006,
0.0028437902219593525,
-0.02284069173038006,
0.014165295287966728,
0.0021250767167657614,
-0.0162211824208498,
-0.007387641817331314,
-0.0002146256883861497,
-0.021519048139452934,
0.012606434524059296,
0.06375512480735779,
-0.042586252093315125,
0.0382937416434288,
0.031086836010217667,
-0.04206663370132446,
-0.020039260387420654,
0.008364753797650337,
0.029640935361385345,
-0.023947708308696747,
-0.057067837566137314,
-0.006692932453006506,
0.02663617581129074,
-0.06533657759428024,
-0.01964389719069004,
0.02460288070142269,
0.018175406381487846,
-0.08973612636327744,
-0.007331161294132471,
0.014447697438299656,
-0.005941742565482855,
0.01694413274526596,
-0.0066025638952851295,
-0.045455459505319595,
0.03040906973183155,
0.011200071312487125,
-0.0003759479441214353,
-0.014052334241569042,
-0.00504935160279274,
-0.04129850119352341,
-0.03865521401166916,
0.006026463117450476,
-0.011233960278332233,
-0.021259238943457603,
0.047805044800043106,
0.056751549243927,
-0.049928709864616394,
0.07396678626537323,
0.015791932120919228,
-0.039445940405130386,
0.009042519144713879,
-0.06687284260988235,
0.017452456057071686,
0.017655786126852036,
-0.004029879346489906,
0.04509398341178894,
0.015294903889298439,
0.042405515909194946,
0.024761026725172997,
0.02480621077120304,
0.0037333571817725897,
0.08490139991044998,
-0.01819799840450287,
-0.0019372791284695268,
0.0032815136946737766,
0.0011041926918551326,
-0.00020809512352570891,
-0.017870411276817322,
0.016842467710375786,
0.018728915601968765,
-0.006636451929807663,
0.009296680800616741,
-0.05318198353052139,
0.005518139339983463,
0.005515315104275942,
0.0782141163945198,
-0.011917373165488243,
-0.0563448891043663,
0.020705729722976685,
0.03702857717871666,
-0.05946261063218117,
0.02164330519735813,
-0.018502993509173393,
0.008133184164762497,
-0.04857318103313446,
0.048302073031663895,
-0.011499417945742607,
-0.0037898377049714327,
-0.03553749620914459,
0.061676643788814545,
0.023834746330976486,
-0.020988132804632187,
0.013046981766819954,
-0.02765282429754734,
-0.004453483037650585,
0.002939807018265128,
0.029505383223295212,
-0.0547182522714138,
-0.05833300203084946,
-0.01871761865913868,
0.0016492289723828435,
-0.0074384743347764015,
-0.02561952918767929,
0.025371015071868896,
0.021654602140188217,
-0.01056184247136116,
-0.030363885685801506,
-0.006009519100189209,
0.031244980171322823,
-0.03266828879714012,
0.025574345141649246,
0.044122520834207535,
-0.04538768529891968,
-0.06877058744430542,
0.007353753782808781,
-0.006788949016481638,
-0.03628303483128548,
0.010573138482868671,
-0.008415586315095425,
0.023021427914500237,
-0.03513083606958389,
-0.07062314450740814,
-0.0754578709602356,
-0.021394791081547737,
0.018909651786088943,
-0.045342497527599335,
-0.021022019907832146,
0.00035159074468538165,
0.008771413005888462,
-0.03221644461154938,
-0.009545194916427135,
0.05467306822538376,
0.08648285269737244,
-0.10500843822956085,
-0.03467899188399315,
-0.018446512520313263,
-0.08860652148723602,
0.04129850119352341,
0.02602618746459484,
0.007404585834592581,
-0.027698008343577385,
-0.008556786924600601,
-0.03099646605551243,
-0.00620155269280076,
0.024648064747452736,
-0.01819799840450287,
0.012143295258283615,
0.03761597350239754,
0.04394178465008736,
0.03018314763903618,
-0.0032843376975506544,
-0.03725450113415718,
-0.00026722310576587915,
-0.01659395359456539,
-0.010522305965423584,
0.06316772848367691,
0.006670340429991484,
0.05047092214226723,
0.0016958252526819706,
-0.023495864123106003,
-0.00882224552333355,
-0.012278848327696323,
-0.006500898860394955,
0.023450680077075958,
-0.012290144339203835,
-0.011781820096075535,
-0.031561270356178284,
0.05304643139243126,
-0.01714746281504631,
-0.09271829575300217,
0.002537383930757642,
-0.010087407194077969,
0.08291328698396683,
0.033820487558841705,
-0.04206663370132446,
0.023947708308696747,
-0.008178368210792542,
0.008601970970630646,
-0.021338311955332756,
-0.008347809314727783,
0.026907281950116158,
0.05937224254012108,
-0.002305814065039158,
-0.020683137699961662,
-0.02582285739481449,
-0.051464978605508804,
-0.086347296833992,
0.011623675003647804,
-0.07270162552595139,
0.0279691144824028,
-0.009392697364091873,
0.05313679948449135,
0.03680265694856644,
0.013736044056713581,
0.019542232155799866
] |
725,043 | tf_keras.src.engine.base_layer | set_weights | Sets the weights of the layer, from NumPy arrays.
The weights of a layer represent the state of the layer. This function
sets the weight values from numpy arrays. The weight values should be
passed in the order they are created by the layer. Note that the layer's
weights must be instantiated before calling this function, by calling
the layer.
For example, a `Dense` layer returns a list of two values: the kernel
matrix and the bias vector. These can be used to set the weights of
another `Dense` layer:
>>> layer_a = tf.keras.layers.Dense(1,
... kernel_initializer=tf.constant_initializer(1.))
>>> a_out = layer_a(tf.convert_to_tensor([[1., 2., 3.]]))
>>> layer_a.get_weights()
[array([[1.],
[1.],
[1.]], dtype=float32), array([0.], dtype=float32)]
>>> layer_b = tf.keras.layers.Dense(1,
... kernel_initializer=tf.constant_initializer(2.))
>>> b_out = layer_b(tf.convert_to_tensor([[10., 20., 30.]]))
>>> layer_b.get_weights()
[array([[2.],
[2.],
[2.]], dtype=float32), array([0.], dtype=float32)]
>>> layer_b.set_weights(layer_a.get_weights())
>>> layer_b.get_weights()
[array([[1.],
[1.],
[1.]], dtype=float32), array([0.], dtype=float32)]
Args:
weights: a list of NumPy arrays. The number
of arrays and their shape must match
number of the dimensions of the weights
of the layer (i.e. it should match the
output of `get_weights`).
Raises:
ValueError: If the provided weights list does not match the
layer's specifications.
| def set_weights(self, weights):
"""Sets the weights of the layer, from NumPy arrays.
The weights of a layer represent the state of the layer. This function
sets the weight values from numpy arrays. The weight values should be
passed in the order they are created by the layer. Note that the layer's
weights must be instantiated before calling this function, by calling
the layer.
For example, a `Dense` layer returns a list of two values: the kernel
matrix and the bias vector. These can be used to set the weights of
another `Dense` layer:
>>> layer_a = tf.keras.layers.Dense(1,
... kernel_initializer=tf.constant_initializer(1.))
>>> a_out = layer_a(tf.convert_to_tensor([[1., 2., 3.]]))
>>> layer_a.get_weights()
[array([[1.],
[1.],
[1.]], dtype=float32), array([0.], dtype=float32)]
>>> layer_b = tf.keras.layers.Dense(1,
... kernel_initializer=tf.constant_initializer(2.))
>>> b_out = layer_b(tf.convert_to_tensor([[10., 20., 30.]]))
>>> layer_b.get_weights()
[array([[2.],
[2.],
[2.]], dtype=float32), array([0.], dtype=float32)]
>>> layer_b.set_weights(layer_a.get_weights())
>>> layer_b.get_weights()
[array([[1.],
[1.],
[1.]], dtype=float32), array([0.], dtype=float32)]
Args:
weights: a list of NumPy arrays. The number
of arrays and their shape must match
number of the dimensions of the weights
of the layer (i.e. it should match the
output of `get_weights`).
Raises:
ValueError: If the provided weights list does not match the
layer's specifications.
"""
params = self.weights
expected_num_weights = 0
for param in params:
if isinstance(param, base_layer_utils.TrackableWeightHandler):
expected_num_weights += param.num_tensors
else:
expected_num_weights += 1
if expected_num_weights != len(weights):
raise ValueError(
'You called `set_weights(weights)` on layer "%s" '
"with a weight list of length %s, but the layer was "
"expecting %s weights. Provided weights: %s..."
% (
self.name,
len(weights),
expected_num_weights,
str(weights)[:50],
)
)
weight_index = 0
weight_value_tuples = []
for param in params:
if isinstance(param, base_layer_utils.TrackableWeightHandler):
num_tensors = param.num_tensors
tensors = weights[weight_index : weight_index + num_tensors]
param.set_weights(tensors)
weight_index += num_tensors
else:
weight = weights[weight_index]
weight_shape = weight.shape if hasattr(weight, "shape") else ()
ref_shape = param.shape
if not ref_shape.is_compatible_with(weight_shape):
raise ValueError(
f"Layer {self.name} weight shape {ref_shape} "
"is not compatible with provided weight "
f"shape {weight_shape}."
)
weight_value_tuples.append((param, weight))
weight_index += 1
backend.batch_set_value(weight_value_tuples)
# Perform any layer defined finalization of the layer state.
for layer in self._flatten_layers():
layer.finalize_state()
| (self, weights) | [
-0.01917417161166668,
-0.06977375596761703,
-0.02738056145608425,
0.03568418323993683,
-0.0501328743994236,
-0.01607246696949005,
-0.10345496237277985,
0.051182981580495834,
0.04278212785720825,
0.03663705661892891,
-0.007039604242891073,
0.0019300573039799929,
0.020963242277503014,
0.006942372303456068,
-0.006699291989207268,
0.05608347803354263,
0.027030525729060173,
0.014915404841303825,
-0.019990921020507812,
0.002231476828455925,
0.0067819394171237946,
-0.06156736984848976,
0.020632652565836906,
0.06755686551332474,
-0.018289359286427498,
-0.009844751097261906,
-0.021546633914113045,
-0.000046223231038311496,
0.028761256486177444,
0.01264017354696989,
-0.044921234250068665,
-0.04406559094786644,
-0.023491276428103447,
0.015226547606289387,
0.0557723343372345,
-0.021779991686344147,
0.016840601339936256,
0.05658908560872078,
-0.012397093698382378,
-0.039398450404405594,
0.06090619042515755,
-0.04138198494911194,
0.062423013150691986,
0.011463665403425694,
0.012406816706061363,
0.07903025299310684,
-0.01197899505496025,
0.03653982654213905,
-0.020088152959942818,
-0.013486092910170555,
0.03300057724118233,
-0.003906299825757742,
0.029111292213201523,
0.02222725935280323,
0.010919165797531605,
-0.01293187029659748,
0.030472541227936745,
-0.040720805525779724,
0.020807670429348946,
-0.061645153909921646,
-0.0004101979429833591,
-0.04655473306775093,
0.005401243455708027,
-0.030803130939602852,
-0.03459518402814865,
-0.0418098047375679,
-0.05491669476032257,
0.01215401291847229,
0.03193102404475212,
0.05448887124657631,
0.01928112655878067,
-0.025397026911377907,
0.013845851644873619,
-0.02183833159506321,
-0.0630841925740242,
0.05880597606301308,
0.032008808106184006,
0.017715688794851303,
-0.043209947645664215,
-0.026933293789625168,
-0.022927330806851387,
0.03041420318186283,
0.03189213201403618,
-0.009071755222976208,
0.045310162007808685,
-0.038270555436611176,
-0.0493939109146595,
0.044337838888168335,
-0.00009495322592556477,
-0.07097943872213364,
-0.04667140915989876,
0.04962726682424545,
0.014798726886510849,
0.02656381204724312,
0.0459713414311409,
-0.00031630820012651384,
-0.046826981008052826,
-0.08711996674537659,
-0.04519348219037056,
0.01707395724952221,
-0.042276520282030106,
-0.041109733283519745,
0.012231798842549324,
0.04822712391614914,
-0.014643155038356781,
-0.06985154747962952,
-0.03158098831772804,
-0.039184536784887314,
-0.05678354948759079,
-0.019806180149316788,
-0.019164448603987694,
-0.015236270613968372,
0.021585527807474136,
-0.005299149546772242,
0.015333503484725952,
0.033331166952848434,
0.011317817494273186,
0.00913009513169527,
0.02623322233557701,
0.042821019887924194,
0.04013741388916969,
0.06565111875534058,
0.021955009549856186,
-0.004567478317767382,
0.0181532334536314,
0.019806180149316788,
0.043793339282274246,
0.02827509678900242,
0.052894264459609985,
-0.043404411524534225,
-0.018581055104732513,
-0.02201334945857525,
-0.07980811595916748,
0.06082840636372566,
0.05448887124657631,
0.01804627850651741,
-0.0662345141172409,
0.004496985115110874,
0.012397093698382378,
0.015450181439518929,
0.0726129338145256,
0.010228817351162434,
0.03589809313416481,
0.039437342435121536,
0.0032718603033572435,
0.007491733878850937,
0.01834769919514656,
-0.02450249157845974,
-0.036928754299879074,
-0.00835223775357008,
-0.02467750757932663,
0.012144289910793304,
-0.009601670317351818,
0.007175729610025883,
-0.04114862531423569,
0.009203018620610237,
-0.018532440066337585,
-0.02561093680560589,
0.035042449831962585,
0.02205224148929119,
-0.02279120497405529,
0.0023116932716220617,
0.01709340512752533,
-0.012669343501329422,
-0.04013741388916969,
0.05394437164068222,
-0.024405257776379585,
0.02944188192486763,
-0.016694752499461174,
0.01481817290186882,
0.049860622733831406,
-0.04422116279602051,
0.026447132229804993,
0.028566792607307434,
0.06891811639070511,
0.001592175685800612,
0.03185323625802994,
-0.04900498315691948,
-0.02887793630361557,
0.029325203970074654,
0.055150050669908524,
-0.008755750954151154,
-0.025960972532629967,
-0.0075792428106069565,
-0.01906721666455269,
0.038834504783153534,
-0.006485381629317999,
0.015693262219429016,
0.0007097943453118205,
0.03766771778464317,
0.03661761060357094,
0.01753094792366028,
0.008235559798777103,
0.0034055544529110193,
-0.009071755222976208,
0.015527967363595963,
0.03935955464839935,
-0.05810590460896492,
0.04363776743412018,
0.010831656865775585,
0.018085172399878502,
-0.06961818784475327,
0.0792636126279831,
0.03745380789041519,
0.016782261431217194,
-0.035236913710832596,
0.031211506575345993,
-0.04219873249530792,
-0.04499901831150055,
-0.03661761060357094,
-0.008964800275862217,
-0.016296101734042168,
0.040370769798755646,
0.04231541231274605,
0.056122370064258575,
-0.030122505500912666,
-0.05888376384973526,
0.025883186608552933,
0.006261747796088457,
-0.05409994348883629,
0.027691703289747238,
0.03195047006011009,
-0.013641664758324623,
-0.006130484398454428,
0.03624812886118889,
-0.022927330806851387,
0.018765795975923538,
-0.03772605583071709,
0.007350747007876635,
0.033156149089336395,
-0.00229346239939332,
-0.042276520282030106,
-0.0033156147692352533,
-0.004108056426048279,
0.011638683266937733,
-0.05464444309473038,
-0.01510014571249485,
-0.06549554318189621,
0.03366175666451454,
-0.026330454275012016,
-0.026933293789625168,
-0.0379205197095871,
0.013894467614591122,
0.005702663213014603,
-0.06172294169664383,
0.031600434333086014,
0.03856225311756134,
0.029850255697965622,
-0.012523495592176914,
-0.0018729334697127342,
-0.01672392152249813,
0.03434237837791443,
-0.006349256727844477,
-0.004664710257202387,
-0.001487651257775724,
-0.03058922104537487,
0.03442016616463661,
-0.010919165797531605,
-0.025183115154504776,
-0.020943796262145042,
-0.035042449831962585,
-0.0004223519645165652,
-0.007015296258032322,
0.04250987619161606,
-0.0046015093103051186,
-0.03478964790701866,
0.03247552365064621,
0.01197899505496025,
-0.054994478821754456,
0.042082056403160095,
0.030141953378915787,
0.08649767935276031,
0.008478639647364616,
-0.004606370814144611,
-0.024755293503403664,
-0.026680490002036095,
0.04943280294537544,
0.0027832689229398966,
-0.028644578531384468,
0.021332724019885063,
0.028022293001413345,
-0.05199972912669182,
-0.042276520282030106,
0.03990405797958374,
0.003184351371601224,
0.02148829586803913,
0.0057075247168540955,
-0.02885848842561245,
0.0067138769663870335,
-0.04087637737393379,
0.05585012212395668,
0.015712708234786987,
0.06864586472511292,
-0.002487926511093974,
-0.018124064430594444,
-0.061995189636945724,
-0.05468333512544632,
0.008755750954151154,
0.050794053822755814,
0.0019021030748263001,
-0.01215401291847229,
0.05242755264043808,
0.06059504672884941,
0.007729952223598957,
0.008279314264655113,
-0.05448887124657631,
0.0577169768512249,
0.004139657132327557,
-0.023899652063846588,
0.019514484331011772,
0.03860114514827728,
0.032203271985054016,
-0.04352109134197235,
-0.02166331373155117,
0.09606532007455826,
-0.06880144029855728,
0.03196991607546806,
0.02051597461104393,
0.0007784645422361791,
0.08431968092918396,
-0.021527187898755074,
0.01406948547810316,
-0.030803130939602852,
-0.009805858135223389,
-0.04970505088567734,
-0.04235430434346199,
0.1007324606180191,
-0.00958708580583334,
0.0025669275783002377,
0.008143188431859016,
-0.04161534085869789,
-0.04021519795060158,
0.049121659249067307,
0.022907884791493416,
-0.021410509943962097,
0.02072988450527191,
0.02998638153076172,
0.0410708412528038,
0.01986452005803585,
-0.028955720365047455,
-0.0024150023236870766,
0.03148375451564789,
-0.048927195370197296,
0.04822712391614914,
-0.03632591292262077,
0.004149380140006542,
0.01413754839450121,
0.03593698516488075,
0.014545923098921776,
0.029753023758530617,
-0.012766575440764427,
-0.024385811761021614,
0.01977701112627983,
0.05997276306152344,
0.0014961590059101582,
0.05371101573109627,
-0.036014772951602936,
-0.008235559798777103,
0.03706488013267517,
-0.026077650487422943,
-0.03722044825553894,
0.004681725986301899,
0.03018084540963173,
0.014458414167165756,
0.08229725062847137,
0.008614764548838139,
0.03739546611905098,
-0.020418742671608925,
-0.008357099257409573,
-0.027808383107185364,
0.007584104314446449,
-0.0569780133664608,
-0.045699089765548706,
0.05942826345562935,
0.004178549628704786,
0.02658325806260109,
-0.06821804493665695,
0.019057493656873703,
0.06020611897110939,
0.035956431180238724,
0.027283329516649246,
-0.0037069739773869514,
0.0459713414311409,
0.027575025334954262,
0.0250664371997118,
-0.034672968089580536,
0.04830491170287132,
-0.06300640106201172,
-0.005634600762277842,
-0.01607246696949005,
0.00782232265919447,
-0.0009862981969490647,
-0.02563038282096386,
0.01328190602362156,
-0.04919944703578949,
0.0009838673286139965,
0.012552664615213871,
0.061645153909921646,
-0.034653522074222565,
-0.0657677948474884,
-0.022499509155750275,
-0.09170932322740555,
-0.025319240987300873,
0.029286310076713562,
-0.014555646106600761,
0.012747129425406456,
-0.040720805525779724,
0.11263366788625717,
-0.037317682057619095,
-0.0017805629177019,
-0.046438053250312805,
0.01826019026339054,
0.013087441213428974,
0.007934140041470528,
0.0038212216459214687,
0.02125493809580803,
-0.006111037917435169,
-0.0009309974266216159,
0.05433329939842224,
0.037298236042261124,
0.042082056403160095,
0.046826981008052826,
0.08680882304906845,
0.08797560632228851,
0.05795033648610115,
-0.05557787045836449,
0.008318206295371056,
0.004217442590743303,
0.015975235030055046,
0.01310688816010952,
-0.0019106108229607344,
-0.02885848842561245,
-0.020088152959942818,
-0.031114274635910988,
0.031211506575345993,
-0.000845311617013067,
0.05036623030900955,
0.0032499830704182386,
-0.014545923098921776,
0.010510791093111038,
-0.0022375539410859346,
-0.014740386977791786,
0.0018316097557544708,
-0.033895112574100494,
-0.05600569397211075,
-0.051182981580495834,
-0.00925163459032774,
0.019436698406934738,
-0.060672834515571594,
-0.001223909086547792,
0.032592203468084335,
-0.012085950933396816,
0.043209947645664215,
-0.018143510445952415,
0.00035398564068600535,
0.03432293236255646,
-0.008186942897737026,
-0.03974848613142967,
0.013291629031300545,
-0.054022159427404404,
0.07230179756879807,
0.03327282518148422,
-0.009115509688854218,
-0.03469241410493851,
-0.03309780731797218,
-0.0342257022857666,
0.03743436187505722,
-0.03305891528725624,
0.02642768621444702,
0.028722364455461502,
0.11037788540124893,
-0.004394891206175089,
-0.001735593075864017,
-0.025960972532629967,
-0.009805858135223389,
0.013486092910170555,
-0.010938611812889576,
-0.004358428996056318,
-0.05106630176305771,
-0.06137290596961975,
-0.01178453117609024,
-0.003036072477698326,
-0.006470796652138233,
0.0006909556686878204,
0.008478639647364616,
0.002921824809163809,
-0.004273351281881332,
-0.0092613585293293,
0.07031825929880142,
-0.002404063707217574,
-0.06300640106201172,
-0.02146884985268116,
0.08074153959751129,
0.021974455565214157,
-0.050210658460855484,
-0.010394112206995487,
0.002427156548947096,
-0.009246773086488247,
0.03387566655874252,
0.023588508367538452,
0.02434691973030567,
-0.002469695406034589,
-0.019533930346369743,
-0.014477860182523727,
0.022071687504649162,
-0.009611393325030804,
-0.032183825969696045,
-0.006217993330210447,
-0.035217467695474625,
-0.01834769919514656,
-0.027244435623288155,
0.01804627850651741,
-0.023413490504026413,
0.016519734635949135,
-0.0065728905610740185,
-0.03455629199743271,
-0.04367666319012642,
0.045115698128938675,
0.02086601033806801,
-0.008546702563762665,
0.0377843976020813,
0.06954040378332138,
-0.0006025352049618959,
0.015352949500083923,
0.012611004523932934,
-0.01310688816010952,
-0.027283329516649246,
-0.0789913609623909,
0.10306603461503983,
0.04900498315691948,
-0.01910610869526863,
-0.01026771031320095,
-0.03193102404475212,
0.04079859331250191,
0.0024988651275634766,
-0.05238865688443184,
0.02430802583694458,
-0.04363776743412018,
-0.09038696438074112,
0.0022436308208853006,
-0.013865298591554165,
0.024735847488045692,
-0.0032864452805370092,
-0.08641989529132843,
-0.005551953334361315,
0.06366758048534393,
-0.034478504210710526,
-0.01622803881764412,
-0.06362868845462799,
-0.0315420962870121,
-0.05219419300556183,
-0.009951706044375896,
0.00811401940882206,
0.05094962194561958,
0.05052180215716362,
-0.0569780133664608,
-0.0037166972178965807,
0.0003381854039616883,
-0.017258698120713234,
0.033175595104694366,
-0.019796457141637802,
0.025902632623910904,
0.0015119592426344752,
0.008186942897737026,
0.0203020628541708,
0.01452647615224123,
-0.02333570457994938,
0.0003947015793528408,
-0.03766771778464317,
0.0009911598172038794,
-0.014691771008074284,
0.03265054151415825,
0.01834769919514656,
0.0011941317934542894,
-0.04764373227953911,
0.007039604242891073,
0.013087441213428974,
-0.01624748483300209,
0.0035003558732569218,
-0.04916055127978325,
0.011628960259258747,
0.0073993634432554245,
-0.001502236002124846,
-0.019893689081072807,
0.0870421826839447,
-0.00664095301181078,
-0.0192616805434227,
0.038270555436611176,
-0.06911258399486542,
0.046826981008052826,
-0.035392485558986664,
0.005547091830521822,
0.012017888016998768,
-0.024171901866793633,
-0.012144289910793304,
-0.0014171579387038946,
-0.07070718705654144,
-0.01092888880521059,
0.03889284282922745,
0.048538267612457275,
-0.022168919444084167,
-0.01683087833225727,
0.020827116444706917,
0.012222075834870338,
0.008036233484745026,
-0.05853372812271118,
-0.03311725705862045,
0.027049971744418144,
0.002147614024579525,
-0.0045626163482666016,
-0.010860825888812542,
0.015382119454443455,
0.04869383946061134,
-0.05491669476032257,
-0.03566473722457886,
-0.03652038052678108,
-0.03589809313416481,
0.06868475675582886,
0.04426005482673645,
-0.016082189977169037,
0.016889216378331184,
-0.032961685210466385,
-0.03624812886118889,
0.001232416951097548,
-0.047371480613946915,
-0.0036607887595891953,
0.021157706156373024,
-0.06269526481628418,
-0.0036340500228106976,
0.008614764548838139,
0.05168858915567398,
-0.009864197112619877,
0.035800863057374954,
-0.02944188192486763,
0.05977829918265343,
-0.03270887956023216,
0.00024642262724228203,
-0.027108311653137207,
0.020982688292860985,
-0.036753736436367035,
0.04079859331250191,
0.020068706944584846,
0.03440072014927864,
-0.015216824598610401,
0.03126984462141991,
-0.0397290401160717,
-0.014088932424783707,
-0.025960972532629967,
0.04534905403852463,
0.023821866139769554,
-0.0889868214726448,
0.0014815742615610361,
-0.03245607763528824,
0.004681725986301899,
0.06036169081926346,
0.04807155206799507,
0.006718738470226526,
-0.02205224148929119,
0.01579049415886402,
-0.012455432675778866,
-0.053866587579250336,
-0.010394112206995487,
0.01813378743827343,
0.011249754577875137,
-0.03208659589290619,
0.0028805010952055454,
-0.037687163800001144,
-0.011998442001640797,
0.024055222049355507,
-0.0036656504962593317,
-0.05946715548634529,
-0.02504699118435383,
-0.03309780731797218,
-0.009003693237900734,
-0.008673103526234627,
0.006295778788626194,
-0.0031576126348227262,
-0.012056780979037285,
-0.003668081248179078,
-0.03469241410493851,
0.013913914561271667,
0.03813443332910538,
-0.012144289910793304,
0.06471768766641617,
0.047021444886922836,
0.009309974499046803,
-0.1017436757683754,
0.05868929997086525,
0.04499901831150055,
0.004873759113252163,
-0.014837618917226791,
-0.04881051555275917,
0.009460683912038803,
-0.013913914561271667,
-0.05600569397211075,
-0.04313216358423233,
-0.0342257022857666,
-0.06907368451356888,
0.0009553054114803672,
-0.013340245001018047,
-0.009003693237900734,
-0.008887014351785183,
-0.06386204808950424,
-0.00881895236670971,
0.06522329896688461,
0.013174950145184994,
-0.08711996674537659,
-0.007204899098724127,
0.002136675640940666,
0.003164905123412609,
-0.013048548251390457,
-0.014361182227730751,
0.015401565469801426,
-0.07280740141868591,
-0.031055934727191925,
-0.008585594594478607,
0.011522004380822182,
-0.02201334945857525,
-0.02905295230448246,
0.03963180631399155,
-0.014438968151807785,
0.02450249157845974,
0.020924348384141922,
-0.023821866139769554,
-0.017890706658363342,
-0.03548971936106682,
0.026505472138524055,
-0.01413754839450121,
0.010257987305521965,
-0.018989430740475655,
0.03854280710220337,
-0.010608023032546043,
-0.013787512667477131,
0.0005657693254761398,
0.0017100697150453925,
-0.00034122393117286265,
0.03247552365064621,
-0.019728394225239754,
-0.010403835214674473,
0.04371555522084236,
0.027049971744418144,
-0.04499901831150055,
-0.062228549271821976,
0.012688789516687393,
-0.0021233060397207737,
0.01668502949178219,
0.02450249157845974,
-0.018863027915358543,
0.02333570457994938,
-0.054022159427404404,
0.034867431968450546,
0.007535488344728947,
-0.025883186608552933,
-0.02319958060979843,
0.11730081588029861,
-0.03821221739053726,
0.012824914418160915,
-0.05017176643013954,
-0.056122370064258575,
-0.08338625729084015,
0.01293187029659748,
-0.029325203970074654,
0.07059051096439362,
0.0053185960277915,
0.018551886081695557,
0.042665448039770126,
0.03947623446583748,
0.02333570457994938
] |
725,044 | tf_keras.src.engine.training | summary | Prints a string summary of the network.
Args:
line_length: Total length of printed lines
(e.g. set this to adapt the display to different
terminal window sizes).
positions: Relative or absolute positions of log elements
in each line. If not provided, becomes
`[0.3, 0.6, 0.70, 1.]`. Defaults to `None`.
print_fn: Print function to use. By default, prints to `stdout`.
If `stdout` doesn't work in your environment, change to `print`.
It will be called on each line of the summary.
You can set it to a custom function
in order to capture the string summary.
expand_nested: Whether to expand the nested models.
Defaults to `False`.
show_trainable: Whether to show if a layer is trainable.
Defaults to `False`.
layer_range: a list or tuple of 2 strings,
which is the starting layer name and ending layer name
(both inclusive) indicating the range of layers to be printed
in summary. It also accepts regex patterns instead of exact
name. In such case, start predicate will be the first element
it matches to `layer_range[0]` and the end predicate will be
the last element it matches to `layer_range[1]`.
By default `None` which considers all layers of model.
Raises:
ValueError: if `summary()` is called before the model is built.
| def summary(
self,
line_length=None,
positions=None,
print_fn=None,
expand_nested=False,
show_trainable=False,
layer_range=None,
):
"""Prints a string summary of the network.
Args:
line_length: Total length of printed lines
(e.g. set this to adapt the display to different
terminal window sizes).
positions: Relative or absolute positions of log elements
in each line. If not provided, becomes
`[0.3, 0.6, 0.70, 1.]`. Defaults to `None`.
print_fn: Print function to use. By default, prints to `stdout`.
If `stdout` doesn't work in your environment, change to `print`.
It will be called on each line of the summary.
You can set it to a custom function
in order to capture the string summary.
expand_nested: Whether to expand the nested models.
Defaults to `False`.
show_trainable: Whether to show if a layer is trainable.
Defaults to `False`.
layer_range: a list or tuple of 2 strings,
which is the starting layer name and ending layer name
(both inclusive) indicating the range of layers to be printed
in summary. It also accepts regex patterns instead of exact
name. In such case, start predicate will be the first element
it matches to `layer_range[0]` and the end predicate will be
the last element it matches to `layer_range[1]`.
By default `None` which considers all layers of model.
Raises:
ValueError: if `summary()` is called before the model is built.
"""
if not self.built:
raise ValueError(
"This model has not yet been built. "
"Build the model first by calling `build()` or by calling "
"the model on a batch of data."
)
layer_utils.print_summary(
self,
line_length=line_length,
positions=positions,
print_fn=print_fn,
expand_nested=expand_nested,
show_trainable=show_trainable,
layer_range=layer_range,
)
| (self, line_length=None, positions=None, print_fn=None, expand_nested=False, show_trainable=False, layer_range=None) | [
-0.042048078030347824,
-0.017096569761633873,
0.021489253267645836,
-0.025443561375141144,
0.0596545934677124,
-0.005926989950239658,
-0.04974198341369629,
-0.07310997694730759,
0.01562936045229435,
-0.01898426003754139,
-0.0850265845656395,
0.007465770933777094,
0.024244744330644608,
0.051745977252721786,
0.02150714583694935,
0.06892306357622147,
0.039185233414173126,
-0.10592537373304367,
-0.0328332893550396,
0.02533620409667492,
0.026463450863957405,
0.030632473528385162,
-0.0023551397025585175,
0.0066963802091777325,
-0.007608913350850344,
-0.045376140624284744,
0.056076034903526306,
-0.06956720352172852,
-0.0405808687210083,
0.02188289351761341,
-0.024369994178414345,
-0.04709384962916374,
-0.031383972615003586,
-0.0004914928576909006,
-0.029433656483888626,
0.02628452330827713,
0.00024644535733386874,
0.010037860833108425,
0.0063251047395169735,
-0.030721938237547874,
-0.024638384580612183,
0.0306861512362957,
-0.01819697767496109,
0.0024378939997404814,
0.002343956846743822,
0.012444442138075829,
0.021471360698342323,
0.044875141233205795,
-0.030274616554379463,
-0.04269222170114517,
-0.046020280569791794,
0.06734849512577057,
-0.016774499788880348,
-0.032958537340164185,
0.0012245385441929102,
-0.05321318656206131,
0.032099682837724686,
-0.02497834898531437,
0.03147343546152115,
-0.030882973223924637,
-0.02345746010541916,
0.053248971700668335,
0.018894797191023827,
-0.005506508983671665,
-0.06230273097753525,
-0.010637269355356693,
-0.048918914049863815,
0.0038335323333740234,
0.02360060252249241,
-0.007841520011425018,
0.024745741859078407,
-0.011961337178945541,
0.028467444702982903,
0.036859169602394104,
0.014591578394174576,
0.025318311527371407,
-0.052461687475442886,
-0.05067240819334984,
0.022544927895069122,
-0.044946711510419846,
0.0037753807846456766,
0.01689080335199833,
0.043229006230831146,
-0.07110598683357239,
0.002889687195420265,
-0.07765474915504456,
-0.017445480450987816,
0.025032026693224907,
0.0811617374420166,
0.024727849289774895,
-0.018894797191023827,
0.06860099732875824,
-0.01705183833837509,
-0.0021404260769486427,
-0.03778959438204765,
0.017499158158898354,
-0.025819310918450356,
-0.04627078026533127,
-0.010333091951906681,
-0.06684750318527222,
-0.03204600512981415,
0.04576978087425232,
-0.03576770797371864,
0.042334362864494324,
-0.10857351124286652,
0.0020621451549232006,
-0.056720174849033356,
0.0408671535551548,
0.01317804679274559,
0.053749971091747284,
-0.011576641350984573,
-0.0107893580570817,
0.033835284411907196,
-0.048847343772649765,
0.033244822174310684,
0.01072673313319683,
0.018286442384123802,
-0.013419600203633308,
-0.05185333266854286,
-0.033674247562885284,
-0.02172185853123665,
0.015217826701700687,
-0.03220703825354576,
-0.03603610023856163,
-0.012122372165322304,
0.014761559665203094,
-0.03524881601333618,
-0.03399632126092911,
0.06928092241287231,
-0.10563909262418747,
0.02462049201130867,
-0.040330372750759125,
0.03965044394135475,
0.049777768552303314,
0.05986930802464485,
-0.0316881500184536,
-0.014815238304436207,
-0.004063901957124472,
-0.026338201016187668,
0.07665275782346725,
0.01643453724682331,
-0.007837045937776566,
-0.028574801981449127,
-0.011657158844172955,
-0.0149494344368577,
-0.03630449250340462,
-0.02360060252249241,
-0.04505407065153122,
0.014206883497536182,
-0.02930840663611889,
0.017356015741825104,
-0.0589388832449913,
-0.000955587369389832,
0.041761793196201324,
0.03134818375110626,
0.013696938753128052,
0.04641392454504967,
-0.05414361134171486,
0.0202188640832901,
0.0075060296803712845,
-0.024924669414758682,
-0.0037530148401856422,
0.038004305213689804,
-0.005367840174585581,
-0.05077976733446121,
0.018250655382871628,
-0.06835049390792847,
-0.011675052344799042,
-0.0392925888299942,
-0.020701969042420387,
-0.026731843128800392,
-0.015459379181265831,
0.030095688998699188,
0.03256489709019661,
0.01950315199792385,
0.006240114104002714,
0.014528953470289707,
0.06269636750221252,
-0.10141638666391373,
-0.0402945838868618,
-0.023582709953188896,
-0.02685709297657013,
-0.037431735545396805,
-0.011549802497029305,
-0.04576978087425232,
0.005859891884028912,
0.026517128571867943,
-0.025533026084303856,
0.015226772986352444,
-0.01480629201978445,
0.00379998330026865,
0.010172056965529919,
0.023636389523744583,
0.010950393974781036,
0.01978943683207035,
-0.016398750245571136,
-0.003972201608121395,
-0.005949356127530336,
0.09819568693637848,
-0.0404377281665802,
0.0006441408186219633,
0.011549802497029305,
0.0007688312325626612,
0.0325470045208931,
-0.042048078030347824,
0.012963333167135715,
-0.0402945838868618,
0.051960691809654236,
-0.0801597461104393,
0.0013743906747549772,
-0.013714831322431564,
-0.02295646257698536,
0.05711381882429123,
0.06448565423488617,
0.03651920333504677,
-0.05099447816610336,
-0.07006820291280746,
0.03965044394135475,
-0.019950471818447113,
-0.0155220041051507,
0.06130073219537735,
-0.061622802168130875,
0.02816326729953289,
0.034479424357414246,
-0.05385732650756836,
0.02787698246538639,
0.04448150098323822,
-0.016586625948548317,
0.05689910426735878,
-0.022849105298519135,
0.033763714134693146,
-0.057364314794540405,
-0.03184918314218521,
0.07658118009567261,
-0.0016897512832656503,
-0.034246817231178284,
-0.03136608004570007,
0.06230273097753525,
0.035141460597515106,
-0.0427280068397522,
-0.09246999025344849,
-0.05475196614861488,
-0.02209760807454586,
-0.03170604258775711,
0.02123875357210636,
-0.018662190064787865,
0.01802699640393257,
0.0028427185025066137,
-0.0397220142185688,
-0.011057750321924686,
0.010878822766244411,
0.0397220142185688,
0.02317117527127266,
0.022777535021305084,
0.014859970659017563,
0.0028203525580465794,
-0.018447477370500565,
0.010046807117760181,
0.022992247715592384,
-0.004960778634995222,
-0.020898791030049324,
-0.056577034294605255,
-0.018715867772698402,
0.03335217759013176,
0.028986336663365364,
-0.009102961979806423,
-0.0019424870843067765,
-0.04491092637181282,
0.022849105298519135,
0.002106877276673913,
0.0328332893550396,
0.07414776086807251,
0.00435242336243391,
0.015530950389802456,
-0.010574644431471825,
-0.02419106476008892,
0.0013151208404451609,
-0.024423671886324883,
0.004274142440408468,
0.0025564339011907578,
0.024012137204408646,
-0.018429584801197052,
-0.06555921584367752,
0.00198050937615335,
0.034622568637132645,
-0.0061014448292553425,
-0.0018944002222269773,
0.0207198616117239,
-0.008360411040484905,
-0.018536940217018127,
0.07060498744249344,
-0.010690947994589806,
0.012820190750062466,
-0.02939786948263645,
0.022688070312142372,
0.03646552562713623,
-0.020558826625347137,
0.03161657601594925,
-0.012981226667761803,
0.01581723429262638,
-0.012354978360235691,
-0.041690222918987274,
0.06570236384868622,
-0.025032026693224907,
0.028360087424516678,
0.02742966264486313,
0.01274861954152584,
-0.014108472503721714,
0.023994244635105133,
0.012739673256874084,
-0.008888248354196548,
0.013652206398546696,
0.05818738415837288,
0.004665547516196966,
-0.00013077120820526034,
0.03004201129078865,
-0.022294428199529648,
-0.00478185061365366,
0.05518139526247978,
0.03517724573612213,
-0.01386692002415657,
0.027340197935700417,
0.019449474290013313,
0.011567695066332817,
0.015548842959105968,
-0.04677177965641022,
0.0301851537078619,
0.0018295388435944915,
0.029719941318035126,
0.009653165936470032,
-0.011066696606576443,
-0.06616757065057755,
0.09239841997623444,
0.034622568637132645,
-0.06334051489830017,
0.00741656543686986,
0.024208959192037582,
0.03276171535253525,
-0.029719941318035126,
-0.03408578410744667,
0.05002826824784279,
0.0619448721408844,
-0.004383735824376345,
0.012587584555149078,
0.008633275516331196,
-0.0018183557549491525,
0.025067811831831932,
-0.016765553504228592,
0.02369006723165512,
0.04680756479501724,
-0.012864923104643822,
0.049992483109235764,
0.007318155374377966,
0.009653165936470032,
0.021793430671095848,
0.06767056882381439,
0.031294506043195724,
-0.020630398765206337,
0.02614138089120388,
-0.028503229841589928,
0.019234759733080864,
-0.023994244635105133,
-0.016855018213391304,
0.017597569152712822,
0.0218650009483099,
0.011773462407290936,
-0.0013486697571352124,
-0.000390286702895537,
0.11594534665346146,
0.019467366859316826,
-0.035714030265808105,
-0.061837516725063324,
-0.0033504266757518053,
0.0099662896245718,
-0.06491507589817047,
0.029916761443018913,
-0.006016454193741083,
-0.030006226152181625,
0.015504111535847187,
-0.053463686257600784,
0.01454684603959322,
0.02404792234301567,
0.009993128478527069,
-0.011317196302115917,
0.05321318656206131,
-0.023010140284895897,
-0.012533905915915966,
0.011827141046524048,
-0.0785851776599884,
0.013392760418355465,
0.004598449449986219,
0.005296268966048956,
-0.03308378532528877,
0.004200334660708904,
-0.017096569761633873,
-0.00871826708316803,
0.013312242925167084,
0.04448150098323822,
-0.0854560136795044,
-0.05747167393565178,
-0.026874985545873642,
-0.061980657279491425,
-0.025085706263780594,
0.004193624947220087,
-0.028145374730229378,
-0.03342375159263611,
-0.008177009411156178,
-0.02374374493956566,
0.013428546488285065,
-0.0009868997149169445,
0.07246583700180054,
-0.00927741639316082,
-0.060692377388477325,
0.015638306736946106,
-0.007676010951399803,
0.0218650009483099,
0.038004305213689804,
0.0096442187204957,
0.03406789153814316,
-0.024602599442005157,
0.0385768748819828,
0.0400082990527153,
0.06731270998716354,
0.062266942113637924,
0.035928741097450256,
-0.00463870819658041,
-0.03201021999120712,
0.009009025059640408,
0.07246583700180054,
0.010145217180252075,
-0.06759899854660034,
-0.017069730907678604,
-0.02311749756336212,
0.009196898899972439,
0.004354660399258137,
-0.047845348715782166,
0.01743653416633606,
-0.03939994424581528,
-0.016524000093340874,
0.013920598663389683,
0.02440577931702137,
-0.026338201016187668,
0.01927054487168789,
0.008329098112881184,
-0.03247543051838875,
0.0431574322283268,
-0.005900150630623102,
-0.016166144981980324,
-0.07096284627914429,
0.030203046277165413,
0.022992247715592384,
-0.0154862180352211,
0.004162312485277653,
0.010127324610948563,
0.0035204084124416113,
-0.03979358822107315,
0.018859010189771652,
0.006902147550135851,
-0.0310440082103014,
0.016550840809941292,
0.04498250037431717,
0.02816326729953289,
-0.02440577931702137,
0.040401943027973175,
-0.04780955985188484,
-0.0073136817663908005,
0.06376993656158447,
0.0398651584982872,
-0.031294506043195724,
-0.01227446086704731,
0.04283536225557327,
-0.03131239861249924,
-0.02671395055949688,
0.008127803914248943,
-0.0037753807846456766,
0.05604024976491928,
0.04723699018359184,
-0.003113347105681896,
-0.03965044394135475,
-0.006490613333880901,
-0.0407240130007267,
-0.05457304045557976,
-0.019664186984300613,
0.013813241384923458,
0.014385811053216457,
0.09504655003547668,
0.03718123957514763,
-0.015468325465917587,
0.04290693253278732,
-0.030721938237547874,
-0.03446153178811073,
0.006070132367312908,
0.025443561375141144,
-0.0207198616117239,
-0.01733812317252159,
0.009572647511959076,
0.001628244761377573,
0.018733762204647064,
-0.04462464153766632,
-0.003209521062672138,
0.021185075864195824,
0.04670020937919617,
0.06312579661607742,
0.024584706872701645,
0.029576798900961876,
0.04151129722595215,
0.02952311933040619,
0.01144244521856308,
-0.01596037670969963,
-0.024280529469251633,
-0.0023596130777150393,
0.0045268782414495945,
0.018536940217018127,
0.035499315708875656,
-0.036716025322675705,
0.02614138089120388,
0.019521044567227364,
0.005479670129716396,
0.04179758206009865,
-0.017749657854437828,
0.026767628267407417,
0.02007572166621685,
-0.024942563846707344,
-0.001976036000996828,
-0.033817391842603683,
0.046091850847005844,
0.04745170474052429,
0.07275212556123734,
-0.012176049873232841,
0.027823304757475853,
0.04723699018359184,
0.045519281178712845,
-0.04974198341369629,
-0.0035852696746587753,
0.02742966264486313,
0.021793430671095848,
-0.010887769050896168,
-0.01746337302029133,
-0.03746752440929413,
0.008270946331322193,
0.01472577452659607,
-0.005994088016450405,
-0.02333221025764942,
-0.05518139526247978,
0.0005764836678281426,
0.0605134479701519,
0.0817343071103096,
-0.011862926185131073,
0.00239092530682683,
-0.04290693253278732,
-0.002871794393286109,
0.029988331720232964,
-0.0005848708678968251,
-0.0398651584982872,
0.10077224671840668,
0.09089542180299759,
-0.051889121532440186,
0.019449474290013313,
-0.009805254638195038,
-0.01898426003754139,
0.02945154905319214,
-0.0000010309328217772418,
0.018608512356877327,
0.03619713336229324,
0.030220938846468925,
0.027841197326779366,
-0.044087860733270645,
-0.016774499788880348,
-0.028467444702982903,
-0.03261857479810715,
-0.029290514066815376,
0.053893111646175385,
-0.03576770797371864,
0.0096442187204957,
-0.029576798900961876,
0.017168141901493073,
0.007591020315885544,
0.030238831415772438,
-0.0011976993409916759,
0.03846951946616173,
-0.011943443678319454,
-0.03979358822107315,
0.05811581388115883,
-0.0204335767775774,
-0.00945634488016367,
0.028717944398522377,
-0.03804009407758713,
0.0012983463238924742,
-0.02771594747900963,
-0.011818194761872292,
0.03746752440929413,
-0.043658431619405746,
-0.0024692064616829157,
0.00011826022091554478,
-0.001393401762470603,
-0.03979358822107315,
-0.031383972615003586,
-0.008360411040484905,
0.03889894858002663,
0.052461687475442886,
-0.07529290020465851,
0.005546768195927143,
0.0028539015911519527,
0.005985141731798649,
0.004276379011571407,
0.043229006230831146,
0.02404792234301567,
0.06877992302179337,
0.00667848763987422,
-0.010556751862168312,
-0.018644297495484352,
0.027751732617616653,
-0.030668258666992188,
-0.08889143168926239,
-0.053821541368961334,
-0.04752327501773834,
0.05918938294053078,
-0.004406102001667023,
-0.02150714583694935,
-0.06355522572994232,
0.05049348250031471,
0.002856138162314892,
-0.06530871987342834,
-0.02036200650036335,
0.008217268623411655,
0.07980188727378845,
-0.04519721120595932,
-0.0643782913684845,
0.07779789716005325,
-0.030811401084065437,
0.007899670861661434,
0.048704199492931366,
-0.03315535932779312,
-0.007850466296076775,
0.01195238996297121,
-0.07364676147699356,
0.009000078774988651,
0.039900943636894226,
-0.06634650379419327,
-0.014180043712258339,
0.016443483531475067,
0.004428468178957701,
-0.03718123957514763,
-0.017704926431179047,
0.03279750049114227,
0.022831212729215622,
-0.006298265419900417,
0.008745105937123299,
0.09934082627296448,
-0.013813241384923458,
-0.041117653250694275,
0.02309960499405861,
0.007532868534326553,
0.01831328123807907,
0.07110598683357239,
0.04873998835682869,
-0.0011842796811833978,
-0.03374582156538963,
0.0078862514346838,
0.003591979620978236,
-0.06273216009140015,
-0.06677593290805817,
0.043229006230831146,
0.015477271750569344,
0.00041656673420220613,
0.0005186116322875023,
-0.003663550829514861,
-0.01411741878837347,
0.0013676808448508382,
-0.024155279621481895,
-0.03471203148365021,
0.019592616707086563,
0.04759484902024269,
0.03775380924344063,
-0.013330135494470596,
0.031867075711488724,
-0.005421518348157406,
0.03566034883260727,
-0.017329176887869835,
-0.04079558327794075,
0.06706221401691437,
0.03141975775361061,
-0.010225735604763031,
-0.07965874671936035,
0.00639220280572772,
0.037861164659261703,
-0.06971035152673721,
0.0003318555245641619,
-0.017123408615589142,
-0.014985219575464725,
-0.04745170474052429,
-0.05221119150519371,
-0.009035863913595676,
-0.002569853328168392,
0.009769468568265438,
0.022366000339388847,
-0.006020927336066961,
-0.029505226761102676,
0.012480228208005428,
-0.03413946181535721,
0.005748061928898096,
0.032529111951589584,
-0.04519721120595932,
0.027984339743852615,
0.013017011806368828,
0.021041933447122574,
-0.08309416472911835,
0.029362084344029427,
-0.01798226311802864,
0.015387807972729206,
0.017955424264073372,
0.020236756652593613,
0.009375827386975288,
-0.040902942419052124,
-0.01869797520339489,
-0.014698934741318226,
0.04759484902024269,
0.009697897359728813,
-0.05450147017836571,
-0.003260962897911668,
-0.01765124686062336,
0.011737676337361336,
-0.009152167476713657,
-0.02519306167960167,
0.0004562663962133229,
0.031294506043195724,
-0.03277960792183876,
0.021560823544859886,
-0.00159357744269073,
0.009366881102323532,
0.02750123292207718,
0.04873998835682869,
0.0012469044886529446,
-0.0410102978348732,
0.011263517662882805,
0.024137387052178383,
-0.037217024713754654,
0.01762440800666809,
0.0005636232090182602,
-0.04630656540393829,
0.053248971700668335,
-0.014072687365114689,
-0.00011106117017334327,
-0.0155220041051507,
-0.013535902835428715,
-0.002558670472353697,
0.015835128724575043,
0.04355107620358467,
0.0033079313579946756,
-0.04873998835682869,
-0.004947359208017588,
-0.014859970659017563,
0.02152503840625286,
-0.000714034540578723,
0.05926095321774483,
-0.04433835670351982,
-0.03911365941166878,
-0.02649923600256443,
0.03768223524093628,
-0.07879988849163055,
0.02737598307430744,
-0.10105853527784348,
0.04662863537669182,
0.04831055924296379,
-0.005430464632809162,
0.043658431619405746,
-0.0296125840395689,
0.018035942688584328
] |
Subsets and Splits