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
|
---|---|---|---|---|---|---|
10,063 | torch.nn.modules.module | load_state_dict | Copy parameters and buffers from :attr:`state_dict` into this module and its descendants.
If :attr:`strict` is ``True``, then
the keys of :attr:`state_dict` must exactly match the keys returned
by this module's :meth:`~torch.nn.Module.state_dict` function.
.. warning::
If :attr:`assign` is ``True`` the optimizer must be created after
the call to :attr:`load_state_dict` unless
:func:`~torch.__future__.get_swap_module_params_on_conversion` is ``True``.
Args:
state_dict (dict): a dict containing parameters and
persistent buffers.
strict (bool, optional): whether to strictly enforce that the keys
in :attr:`state_dict` match the keys returned by this module's
:meth:`~torch.nn.Module.state_dict` function. Default: ``True``
assign (bool, optional): When ``False``, the properties of the tensors
in the current module are preserved while when ``True``, the
properties of the Tensors in the state dict are preserved. The only
exception is the ``requires_grad`` field of :class:`~torch.nn.Parameter`s
for which the value from the module is preserved.
Default: ``False``
Returns:
``NamedTuple`` with ``missing_keys`` and ``unexpected_keys`` fields:
* **missing_keys** is a list of str containing the missing keys
* **unexpected_keys** is a list of str containing the unexpected keys
Note:
If a parameter or buffer is registered as ``None`` and its corresponding key
exists in :attr:`state_dict`, :meth:`load_state_dict` will raise a
``RuntimeError``.
| def load_state_dict(self, state_dict: Mapping[str, Any],
strict: bool = True, assign: bool = False):
r"""Copy parameters and buffers from :attr:`state_dict` into this module and its descendants.
If :attr:`strict` is ``True``, then
the keys of :attr:`state_dict` must exactly match the keys returned
by this module's :meth:`~torch.nn.Module.state_dict` function.
.. warning::
If :attr:`assign` is ``True`` the optimizer must be created after
the call to :attr:`load_state_dict` unless
:func:`~torch.__future__.get_swap_module_params_on_conversion` is ``True``.
Args:
state_dict (dict): a dict containing parameters and
persistent buffers.
strict (bool, optional): whether to strictly enforce that the keys
in :attr:`state_dict` match the keys returned by this module's
:meth:`~torch.nn.Module.state_dict` function. Default: ``True``
assign (bool, optional): When ``False``, the properties of the tensors
in the current module are preserved while when ``True``, the
properties of the Tensors in the state dict are preserved. The only
exception is the ``requires_grad`` field of :class:`~torch.nn.Parameter`s
for which the value from the module is preserved.
Default: ``False``
Returns:
``NamedTuple`` with ``missing_keys`` and ``unexpected_keys`` fields:
* **missing_keys** is a list of str containing the missing keys
* **unexpected_keys** is a list of str containing the unexpected keys
Note:
If a parameter or buffer is registered as ``None`` and its corresponding key
exists in :attr:`state_dict`, :meth:`load_state_dict` will raise a
``RuntimeError``.
"""
if not isinstance(state_dict, Mapping):
raise TypeError(f"Expected state_dict to be dict-like, got {type(state_dict)}.")
missing_keys: List[str] = []
unexpected_keys: List[str] = []
error_msgs: List[str] = []
# copy state_dict so _load_from_state_dict can modify it
metadata = getattr(state_dict, '_metadata', None)
state_dict = OrderedDict(state_dict)
if metadata is not None:
# mypy isn't aware that "_metadata" exists in state_dict
state_dict._metadata = metadata # type: ignore[attr-defined]
def load(module, local_state_dict, prefix=''):
local_metadata = {} if metadata is None else metadata.get(prefix[:-1], {})
if assign:
local_metadata['assign_to_params_buffers'] = assign
module._load_from_state_dict(
local_state_dict, prefix, local_metadata, True, missing_keys, unexpected_keys, error_msgs)
for name, child in module._modules.items():
if child is not None:
child_prefix = prefix + name + '.'
child_state_dict = {k: v for k, v in local_state_dict.items() if k.startswith(child_prefix)}
load(child, child_state_dict, child_prefix) # noqa: F821
# Note that the hook can modify missing_keys and unexpected_keys.
incompatible_keys = _IncompatibleKeys(missing_keys, unexpected_keys)
for hook in module._load_state_dict_post_hooks.values():
out = hook(module, incompatible_keys)
assert out is None, (
"Hooks registered with ``register_load_state_dict_post_hook`` are not"
"expected to return new values, if incompatible_keys need to be modified,"
"it should be done inplace."
)
load(self, state_dict)
del load
if strict:
if len(unexpected_keys) > 0:
error_msgs.insert(
0, 'Unexpected key(s) in state_dict: {}. '.format(
', '.join(f'"{k}"' for k in unexpected_keys)))
if len(missing_keys) > 0:
error_msgs.insert(
0, 'Missing key(s) in state_dict: {}. '.format(
', '.join(f'"{k}"' for k in missing_keys)))
if len(error_msgs) > 0:
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
self.__class__.__name__, "\n\t".join(error_msgs)))
return _IncompatibleKeys(missing_keys, unexpected_keys)
| (self, state_dict: Mapping[str, Any], strict: bool = True, assign: bool = False) | [
-0.00896518025547266,
0.0008242513868026435,
-0.05283438414335251,
0.025162169709801674,
0.006558006163686514,
0.00907833781093359,
-0.02294016256928444,
0.03326838091015816,
0.008651425130665302,
-0.10089556872844696,
-0.026561211794614792,
0.018290407955646515,
-0.016613615676760674,
0.049254484474658966,
-0.04649754986166954,
0.03680713102221489,
0.002744075609371066,
0.06316260248422623,
-0.10336446762084961,
-0.05287553369998932,
-0.0038679377175867558,
-0.020121505483984947,
0.03939947485923767,
0.08748123049736023,
-0.037630096077919006,
-0.07081618160009384,
0.008656567893922329,
-0.03575785085558891,
0.07727646082639694,
0.00631625996902585,
0.00001821333535190206,
-0.01633586548268795,
0.02382485195994377,
0.046703290194272995,
-0.05439801886677742,
-0.034626271575689316,
0.03993440046906471,
0.01819782517850399,
-0.062092747539281845,
-0.06361523270606995,
-0.01122319232672453,
-0.04262961447238922,
0.056126248091459274,
0.00957211758941412,
0.030573168769478798,
0.019895190373063087,
-0.014710508286952972,
0.003320151474326849,
0.022878440096974373,
-0.01754973828792572,
0.03423536568880081,
-0.04061334580183029,
0.020646147429943085,
0.030902354046702385,
0.009140060283243656,
0.000862827873788774,
0.04040760546922684,
-0.022775569930672646,
-0.01436074823141098,
-0.031087521463632584,
-0.021479399874806404,
-0.019915765151381493,
-0.037774115800857544,
-0.02499757707118988,
-0.014299025759100914,
-0.08361329138278961,
-0.027631066739559174,
-0.025697097182273865,
-0.013712662272155285,
0.015451177023351192,
-0.027445899322628975,
-0.02837173454463482,
0.064602792263031,
0.004101968836039305,
-0.025882264599204063,
0.024256907403469086,
-0.055138688534498215,
0.006604298017919064,
-0.0025807684287428856,
-0.0007831031107343733,
-0.020388970151543617,
-0.011110033839941025,
-0.03546981140971184,
0.020224377512931824,
-0.0676066130399704,
-0.01449447963386774,
-0.015718640759587288,
-0.013280605897307396,
0.04460472986102104,
-0.02047126740217209,
-0.02378370240330696,
0.06299801170825958,
0.004492877051234245,
0.017827490344643593,
0.06661905348300934,
0.019956912845373154,
-0.0007271671784110367,
0.04682673513889313,
-0.024071739986538887,
-0.008934319019317627,
-0.04201238974928856,
-0.0668659433722496,
-0.011521517299115658,
0.021788012236356735,
-0.014977972023189068,
-0.05600280314683914,
0.003621048294007778,
-0.025511929765343666,
0.037506651133298874,
-0.06377982348203659,
-0.0634506419301033,
-0.02940044179558754,
-0.0151940006762743,
0.014977972023189068,
0.000546179071534425,
-0.0060950880870223045,
-0.004292279481887817,
-0.04847266897559166,
-0.0019944054074585438,
0.025326762348413467,
0.023104757070541382,
0.04048990085721016,
-0.04513965919613838,
0.012467927299439907,
0.03279517590999603,
0.020450692623853683,
0.050694674253463745,
-0.008466257713735104,
0.04662099480628967,
-0.0744372308254242,
-0.007946760393679142,
0.011727258563041687,
-0.041045404970645905,
0.00896518025547266,
-0.020903322845697403,
-0.013506921008229256,
-0.006043653003871441,
0.011994722299277782,
0.0014710507821291685,
-0.03635450080037117,
0.060035333037376404,
-0.0021551409736275673,
0.025018151849508286,
0.010137906298041344,
0.035202350467443466,
-0.05098271369934082,
0.020563850179314613,
-0.019545430317521095,
-0.028968386352062225,
0.017374858260154724,
0.026952119544148445,
-0.017539452761411667,
-0.056085098534822464,
0.018259547650814056,
-0.06616642326116562,
0.005709323100745678,
-0.002178286900743842,
-0.03240426629781723,
-0.011079172603785992,
-0.032692305743694305,
-0.025738246738910675,
-0.0509004145860672,
-0.00009603943180991337,
-0.027137286961078644,
-0.00401710020378232,
-0.013794959522783756,
-0.0012151600094512105,
-0.07908698171377182,
-0.025079874321818352,
-0.01819782517850399,
-0.03396790102124214,
-0.023865999653935432,
0.023763129487633705,
0.03232197090983391,
0.005678461864590645,
0.018094953149557114,
-0.026643507182598114,
-0.04509850963950157,
-0.03602531552314758,
-0.01793036051094532,
0.08690515905618668,
0.003765067085623741,
-0.045221954584121704,
0.022384662181138992,
-0.009104055352509022,
0.05345160886645317,
-0.004364288877695799,
0.02333107218146324,
0.021932030096650124,
0.030634891241788864,
-0.011634674854576588,
0.0038473636377602816,
0.042917650192976,
0.021438250318169594,
-0.0235573872923851,
0.0626688227057457,
-0.019308827817440033,
-0.012766252271831036,
0.036148760467767715,
0.07324393093585968,
-0.016737060621380806,
-0.05448031425476074,
0.010605967603623867,
0.026396619156003,
-0.07233867049217224,
-0.00603850930929184,
0.0013746095355600119,
-0.007005493622273207,
0.041580330580472946,
0.0001956150372279808,
-0.005130675621330738,
-0.08044487982988358,
0.015379168093204498,
0.03145785629749298,
0.004209982696920633,
-0.05234060436487198,
0.03503775596618652,
0.04855496436357498,
0.027795659378170967,
-0.03178704157471657,
0.1261606067419052,
0.04262961447238922,
-0.007252383511513472,
-0.038123875856399536,
-0.02491527982056141,
-0.014895675703883171,
-0.031478431075811386,
-0.006444848608225584,
-0.014638498425483704,
0.056537728756666183,
0.03446168079972267,
0.012169602327048779,
0.009891016408801079,
-0.024565519765019417,
0.12566682696342468,
0.0032918620854616165,
0.005457289982587099,
-0.03810330107808113,
0.033782731741666794,
0.016737060621380806,
0.002180858515202999,
0.024832984432578087,
-0.01801265776157379,
-0.047279369086027145,
-0.01312629971653223,
-0.050242044031620026,
0.024524372071027756,
0.01925739273428917,
-0.03898799046874046,
0.045304249972105026,
0.030285129323601723,
0.015708353370428085,
-0.03293919563293457,
0.02473011240363121,
-0.022405235096812248,
-0.005565304309129715,
0.04781429469585419,
0.008003339171409607,
-0.020923897624015808,
-0.0065168580040335655,
0.0022091479040682316,
-0.04534539952874184,
-0.0786343514919281,
0.01113060861825943,
0.038494210690259933,
0.0019661160185933113,
0.02652006223797798,
-0.021438250318169594,
-0.012570798397064209,
0.023619109764695168,
0.011634674854576588,
0.04588032513856888,
-0.029276996850967407,
0.06028222292661667,
-0.02419518493115902,
-0.014864814467728138,
0.04802003502845764,
-0.010595681145787239,
0.041456885635852814,
0.03477029129862785,
0.03765067085623741,
-0.016613615676760674,
-0.0009644126985222101,
0.01933968998491764,
-0.008471401408314705,
0.012550223618745804,
-0.0713922530412674,
-0.0256353747099638,
0.049172189086675644,
-0.028927236795425415,
0.06559035181999207,
0.020749017596244812,
0.013650939799845219,
0.0004896001773886383,
0.02279614470899105,
-0.00301925465464592,
-0.08316066116094589,
0.0334329716861248,
0.04213583469390869,
-0.0053029838018119335,
0.04386406019330025,
-0.05007744953036308,
-0.0020072641782462597,
0.038082730025053024,
0.03693057596683502,
-0.021438250318169594,
0.011922712437808514,
0.00733982352539897,
-0.07344967126846313,
0.021026767790317535,
0.01979232020676136,
0.026417192071676254,
0.025388484820723534,
-0.0004497377958614379,
0.08258458971977234,
-0.07546593248844147,
0.03553153574466705,
-0.009777858853340149,
-0.00508952746167779,
0.02800140157341957,
-0.05818365886807442,
0.04538654536008835,
-0.026910971850156784,
0.02575881965458393,
-0.020008347928524017,
-0.048184629529714584,
0.0923367291688919,
-0.034441106021404266,
0.03962578997015953,
-0.01808466762304306,
-0.07336737215518951,
0.0039965263567864895,
0.01842414028942585,
0.019041365012526512,
-0.006419131066650152,
0.051641084253787994,
-0.009484677575528622,
0.0050329482182860374,
0.043329134583473206,
-0.042341575026512146,
0.08822190016508102,
-0.007303818594664335,
-0.04312339052557945,
-0.008924031630158424,
-0.009813863784074783,
-0.03623105585575104,
-0.012467927299439907,
0.02043011784553528,
0.04695018008351326,
-0.025059299543499947,
-0.06715398281812668,
-0.01240620482712984,
-0.013393763452768326,
0.05970614776015282,
0.05102385953068733,
0.0008364672539755702,
0.005513868760317564,
-0.029194701462984085,
0.013095438480377197,
-0.01584208570420742,
0.03898799046874046,
-0.03625163063406944,
-0.0588831827044487,
0.01196386106312275,
0.04781429469585419,
-0.01603754051029682,
0.00019899048493243754,
-0.0809386596083641,
-0.007782167289406061,
-0.04958366975188255,
0.00820393767207861,
-0.09439413994550705,
-0.025100447237491608,
0.022425809875130653,
-0.0034050196409225464,
0.005591021850705147,
-0.05308127403259277,
0.03575785085558891,
-0.018146390095353127,
0.030861206352710724,
0.08060947060585022,
-0.019236817955970764,
0.015317445620894432,
0.01580093801021576,
-0.0009579832549206913,
-0.0003131126577500254,
0.061064038425683975,
0.007818171754479408,
0.05690806359052658,
-0.03114924393594265,
-0.0018529582303017378,
0.04022243991494179,
0.0009226214606314898,
0.029009534046053886,
0.011716971173882484,
0.032918620854616165,
0.041888944804668427,
0.042835354804992676,
0.001227375934831798,
-0.04999515414237976,
0.04007842019200325,
-0.049254484474658966,
-0.028783218935132027,
0.02468896470963955,
0.0039528063498437405,
0.005529299378395081,
0.030141111463308334,
0.07114537060260773,
-0.0323013961315155,
-0.01456648949533701,
0.05690806359052658,
0.03931717574596405,
-0.06756546348333359,
-0.004559743218123913,
-0.026108579710125923,
-0.0322808213531971,
0.021397102624177933,
-0.017025098204612732,
0.0025370484218001366,
-0.016881080344319344,
0.08369559049606323,
-0.011583239771425724,
0.024606667459011078,
0.0007355253910645843,
0.012858835980296135,
0.022055475041270256,
-0.06443820148706436,
0.014638498425483704,
0.013681801036000252,
0.009649270214140415,
-0.03653966635465622,
0.00811135396361351,
0.014299025759100914,
-0.0020972760394215584,
0.02203490026295185,
-0.026849249377846718,
0.0356961265206337,
0.01200500875711441,
0.014977972023189068,
0.031437281519174576,
0.017529165372252464,
0.01603754051029682,
0.07237981259822845,
0.010302498936653137,
-0.0020201231818646193,
0.011747832410037518,
-0.00907833781093359,
0.05295782908797264,
-0.008574271574616432,
0.02477126196026802,
0.007576426025480032,
-0.014936823397874832,
0.02894781157374382,
-0.027096139267086983,
-0.06538461148738861,
0.011572952382266521,
-0.005493294447660446,
-0.0034281655680388212,
-0.07649464160203934,
0.007972477935254574,
-0.01705596037209034,
0.014082997106015682,
-0.024709539487957954,
0.03649852052330971,
0.0065734367817640305,
0.0323013961315155,
-0.003909085877239704,
-0.034276511520147324,
-0.005176967475563288,
0.010719125159084797,
0.008569127880036831,
0.02058442495763302,
0.01577007584273815,
-0.02195260487496853,
-0.02985307388007641,
-0.030573168769478798,
0.031128669157624245,
-0.0025164741091430187,
-0.0368482805788517,
-0.03450282663106918,
0.053245868533849716,
-0.004109683912247419,
0.006223676726222038,
0.0034770292695611715,
0.002638633130118251,
-0.02711671218276024,
0.01846528798341751,
0.030717186629772186,
0.02909182943403721,
0.027775084599852562,
-0.08410707116127014,
-0.06917025148868561,
0.05645543336868286,
0.014412183314561844,
-0.009808720089495182,
-0.016119835898280144,
-0.026334896683692932,
-0.0027620778419077396,
0.04839036986231804,
-0.06377982348203659,
0.0032275677658617496,
0.01987461745738983,
-0.017261700704693794,
0.0664956122636795,
-0.010065896436572075,
0.01175811979919672,
0.01565691828727722,
0.019154522567987442,
0.031087521463632584,
0.02062557265162468,
-0.010024748742580414,
0.02549135684967041,
0.027404751628637314,
0.010117332451045513,
0.004552027676254511,
-0.04888414964079857,
-0.01259137224406004,
0.055179838091135025,
-0.03361814096570015,
-0.027219584211707115,
0.05752528831362724,
0.026376044377684593,
0.05147649347782135,
-0.054603759199380875,
0.009515538811683655,
-0.0012055158149451017,
0.0038036436308175325,
-0.056702323257923126,
0.05192912369966507,
-0.03129326179623604,
-0.04781429469585419,
-0.02518274448812008,
0.03351527079939842,
0.019349975511431694,
0.015410029329359531,
-0.029318146407604218,
0.06727743148803711,
-0.006208246108144522,
-0.09101998060941696,
0.0008171790395863354,
0.021438250318169594,
0.009752141311764717,
0.03909086063504219,
0.02172628976404667,
0.05007744953036308,
0.02666408196091652,
-0.03820617496967316,
0.015718640759587288,
-0.08838649094104767,
-0.0235573872923851,
-0.05057122930884361,
-0.05044778436422348,
-0.02024495042860508,
-0.027096139267086983,
0.03505833074450493,
-0.0733262225985527,
0.03575785085558891,
0.02388657256960869,
-0.022158345207571983,
-0.0012363770511001348,
-0.012488501146435738,
0.03421479091048241,
-0.04542769491672516,
-0.024977002292871475,
0.017045672982931137,
0.010281925089657307,
-0.007524990942329168,
0.03573727607727051,
-0.025614801794290543,
0.03818560019135475,
0.049213334918022156,
0.05003630369901657,
-0.02207604981958866,
0.007843890227377415,
0.014134432189166546,
-0.03730091080069542,
0.0051718237809836864,
0.011932999826967716,
0.02989422157406807,
-0.00938180647790432,
0.09678073972463608,
0.01979232020676136,
0.04904874414205551,
0.06270997226238251,
-0.0052026850171387196,
0.040736790746450424,
-0.023084182292222977,
0.0881396010518074,
0.06340949237346649,
-0.02495642937719822,
-0.04843151941895485,
0.00966984499245882,
0.05493294820189476,
-0.03822674602270126,
0.008301664143800735,
0.005930494982749224,
0.007705014664679766,
0.019421985372900963,
0.025141596794128418,
-0.039152584969997406,
-0.048678409308195114,
0.006444848608225584,
0.04262961447238922,
-0.04170377552509308,
-0.002403316320851445,
-0.034441106021404266,
0.017107395455241203,
0.09069079905748367,
0.012221037410199642,
0.03991382569074631,
-0.0021847162861377,
-0.072174072265625,
0.03361814096570015,
-0.07723531126976013,
-0.02154112234711647,
-0.058101363480091095,
0.017611460760235786,
0.01959686540067196,
0.06579609215259552,
-0.023310497403144836,
-0.04242387041449547,
-0.019648300483822823,
-0.03119039162993431,
0.0279191043227911,
-0.03867937996983528,
-0.013311467133462429,
-0.0210884902626276,
-0.04851381480693817,
-0.008101066574454308,
-0.05945925787091255,
-0.01873275265097618,
0.009942451491951942,
0.01808466762304306,
-0.013116012327373028,
0.019082512706518173,
-0.005524155683815479,
0.06600183248519897,
0.004603463225066662,
-0.0042357007041573524,
0.057689882814884186,
0.03892626613378525,
-0.02468896470963955,
-0.01987461745738983,
-0.013177734799683094,
-0.010873431339859962,
0.02841288410127163,
0.011974147520959377,
0.02423633448779583,
0.08188506960868835,
0.0019018218154087663,
0.015564334578812122,
0.016232995316386223,
-0.07114537060260773,
-0.02415403723716736,
-0.0024084600154310465,
0.0237425547093153,
-0.006449991837143898,
-0.00003670795922516845,
0.00989616010338068,
0.02010093256831169,
-0.013146873563528061,
0.0018709605792537332,
0.02328992262482643,
0.012365056201815605,
0.0037162036169320345,
0.03207508102059364,
-0.036148760467767715,
0.02275499515235424,
0.04295879974961281,
-0.011315775103867054,
-0.06859417259693146,
-0.055138688534498215,
-0.02248753234744072,
-0.012992567382752895,
-0.0022554397583007812,
0.030367426574230194,
0.008625706657767296,
0.019926052540540695,
0.02396886982023716,
0.004829778801649809,
0.013280605897307396,
0.0455922894179821,
-0.00666602049022913,
0.0007226665620692074,
-0.024586094543337822,
0.03567555546760559,
-0.008075349032878876,
0.02612915448844433,
0.010904292576014996,
-0.031046373769640923,
0.03300091624259949,
0.028824366629123688,
0.029276996850967407,
-0.009407524019479752,
0.0034564551897346973,
-0.07904583215713501,
-0.05131189897656441,
-0.05480950325727463,
-0.014731082133948803,
-0.010364221408963203,
-0.031478431075811386,
-0.005323558114469051,
-0.04137459024786949,
-0.048760704696178436,
-0.002774936845526099,
0.0256353747099638,
-0.07188603281974792,
0.0024521800223737955,
-0.052628643810749054,
-0.02298131212592125,
-0.006254537962377071,
-0.045180805027484894,
0.011686109937727451,
-0.029503313824534416,
0.0026669225189834833,
-0.023454517126083374,
0.029421016573905945,
-0.03886454552412033,
-0.019689450040459633,
0.014216728508472443,
-0.07299704104661942,
0.0033715867903083563,
-0.00033754445030353963,
-0.0017938076052814722,
0.028556901961565018,
-0.03258943185210228,
-0.0005481078987941146,
-0.01386696845293045,
0.021870307624340057,
0.026273174211382866,
0.04604491963982582,
-0.0010499239433556795,
-0.09842666983604431,
-0.045180805027484894,
0.014597350731492043,
-0.023001885041594505,
0.061557818204164505,
0.04904874414205551,
0.025594227015972137,
0.07081618160009384,
0.027713362127542496,
0.046291809529066086,
-0.010019605048000813,
0.031931061297655106,
0.0004246630414854735,
0.04839036986231804,
-0.02168514020740986,
-0.033823881298303604,
-0.027939679101109505,
0.004747482016682625,
0.035428665578365326,
0.06221619248390198,
0.04197124019265175,
-0.014124145731329918,
0.025738246738910675,
-0.07336737215518951,
-0.01960715278983116,
-0.00125373643822968,
-0.045180805027484894,
-0.0809386596083641,
-0.03703344613313675,
-0.06073485314846039,
0.028700921684503555,
0.024030592292547226,
0.030285129323601723,
-0.005146106239408255,
-0.012848548591136932,
0.011912425979971886
] |
10,064 | torch.nn.modules.module | modules | Return an iterator over all modules in the network.
Yields:
Module: a module in the network
Note:
Duplicate modules are returned only once. In the following
example, ``l`` will be returned only once.
Example::
>>> l = nn.Linear(2, 2)
>>> net = nn.Sequential(l, l)
>>> for idx, m in enumerate(net.modules()):
... print(idx, '->', m)
0 -> Sequential(
(0): Linear(in_features=2, out_features=2, bias=True)
(1): Linear(in_features=2, out_features=2, bias=True)
)
1 -> Linear(in_features=2, out_features=2, bias=True)
| def modules(self) -> Iterator['Module']:
r"""Return an iterator over all modules in the network.
Yields:
Module: a module in the network
Note:
Duplicate modules are returned only once. In the following
example, ``l`` will be returned only once.
Example::
>>> l = nn.Linear(2, 2)
>>> net = nn.Sequential(l, l)
>>> for idx, m in enumerate(net.modules()):
... print(idx, '->', m)
0 -> Sequential(
(0): Linear(in_features=2, out_features=2, bias=True)
(1): Linear(in_features=2, out_features=2, bias=True)
)
1 -> Linear(in_features=2, out_features=2, bias=True)
"""
for _, module in self.named_modules():
yield module
| (self) -> Iterator[torch.nn.modules.module.Module] | [
0.0072766924276947975,
-0.02273542806506157,
-0.03131446987390518,
-0.052636194974184036,
-0.017874615266919136,
0.018629882484674454,
-0.057748761028051376,
0.03898331895470619,
0.002783830976113677,
0.03485840559005737,
-0.005054468754678965,
-0.027383213862776756,
0.009629635140299797,
0.09574442356824875,
0.010583399794995785,
-0.027906090021133423,
-0.001348342513665557,
-0.012549025937914848,
-0.03538128361105919,
-0.038731563836336136,
-0.04973132535815239,
0.05968533828854561,
0.006763499230146408,
-0.04922781512141228,
-0.03040427714586258,
0.011125640943646431,
0.039041414856910706,
-0.00791092123836279,
0.014485604129731655,
0.004715567920356989,
-0.04609055817127228,
-0.02368435077369213,
-0.028990574181079865,
-0.05813607573509216,
0.011890589259564877,
-0.004926170688122511,
-0.03224402666091919,
0.05306224152445793,
0.0020600350107997656,
-0.007194387726485729,
0.09752607345581055,
-0.043844129890203476,
-0.008458005264401436,
0.04465749114751816,
-0.03712420165538788,
-0.000847252958919853,
-0.0000836662293295376,
-0.004986688494682312,
0.01932705007493496,
-0.026395559310913086,
0.03532318398356438,
0.02457517571747303,
0.027286386117339134,
-0.004843865986913443,
0.03350280225276947,
0.004734933376312256,
-0.016199475154280663,
-0.03753088414669037,
0.017952078953385353,
0.028719453141093254,
0.017477616667747498,
-0.05705159157514572,
0.012829829938709736,
-0.02815784513950348,
0.008133628405630589,
-0.026473022997379303,
-0.07114987820386887,
-0.04519973322749138,
0.008283712901175022,
0.012713635340332985,
-0.02945535257458687,
-0.06045996770262718,
0.04062940925359726,
0.07541035115718842,
-0.023974837735295296,
0.02964901179075241,
-0.036833714693784714,
0.05736144259572029,
0.04399905353784561,
-0.047872211784124374,
-0.002573228208348155,
0.012287587858736515,
-0.058988168835639954,
-0.015386112965643406,
-0.025930780917406082,
-0.07618498057126999,
-0.03460665047168732,
-0.0002742981305345893,
0.02256113477051258,
0.0009676839108578861,
-0.05503755062818527,
-0.0016013080021366477,
0.015444210730493069,
0.033522166311740875,
-0.003301865654066205,
-0.011377396062016487,
-0.05445657670497894,
0.011958369985222816,
-0.02471073716878891,
-0.003507627174258232,
-0.010273546911776066,
0.04458002746105194,
-0.0024388781748712063,
0.06224162131547928,
-0.004221740178763866,
-0.0028274040669202805,
-0.048956695944070816,
-0.03336724266409874,
0.047020118683576584,
-0.04461875930428505,
-0.08280807733535767,
0.020740751177072525,
0.04117165133357048,
-0.009232636541128159,
0.006463329307734966,
-0.03861536830663681,
0.045625779777765274,
-0.04353427514433861,
0.015076261013746262,
0.016422182321548462,
-0.025853317230939865,
0.06646335870027542,
-0.006913583725690842,
0.006134111434221268,
0.05728398263454437,
-0.011832492426037788,
0.05569598823785782,
-0.06665702164173126,
-0.005243285093456507,
-0.07816029340028763,
0.0008278871537186205,
0.019317366182804108,
0.021960796788334846,
0.053527019917964935,
-0.015773428604006767,
-0.010573716834187508,
-0.03350280225276947,
0.015192455612123013,
-0.013943362049758434,
0.018000492826104164,
-0.05503755062818527,
-0.003967564553022385,
-0.01820383407175541,
0.06491409987211227,
-0.03290246054530144,
-0.05480515956878662,
0.01206488162279129,
-0.026259999722242355,
-0.026937801390886307,
-0.010902934707701206,
0.028061017394065857,
-0.03756961598992348,
0.039893507957458496,
0.06530141085386276,
-0.08513197302818298,
0.05279111862182617,
-0.031508125364780426,
0.03878965973854065,
-0.041287846863269806,
-0.00004391342372400686,
-0.03286373242735863,
0.05170663446187973,
-0.000945292180404067,
0.0408230684697628,
-0.006400390528142452,
-0.014214483089745045,
-0.0323021225631237,
-0.06568872928619385,
0.003640766954049468,
-0.03389011695981026,
0.029300427064299583,
-0.0293778907507658,
0.020566459745168686,
-0.0004311912343837321,
-0.0287000872194767,
-0.00033194158459082246,
0.01010893750935793,
0.022948451340198517,
-0.021805869415402412,
0.02440088428556919,
0.047833479940891266,
-0.018910685554146767,
-0.05592837557196617,
-0.04512226954102516,
0.006715084426105022,
0.02103123813867569,
0.0033067071344703436,
-0.0046865190379321575,
0.0021302360109984875,
-0.03247641399502754,
0.036078449338674545,
0.009174538776278496,
0.03816995397210121,
0.014069240540266037,
-0.04183008894324303,
0.0126652205362916,
-0.05449530854821205,
0.010331644676625729,
0.03460665047168732,
0.05089327320456505,
-0.012994439341127872,
0.013701289892196655,
-0.018136054277420044,
0.07169212400913239,
-0.02219318598508835,
0.0019196330104023218,
-0.008632296696305275,
-0.023936105892062187,
-0.01645123027265072,
-0.021224895492196083,
0.009561854414641857,
0.010893251746892929,
0.0816461369395256,
0.07777297496795654,
0.024633273482322693,
0.0610022097826004,
-0.016615839675068855,
-0.016131695359945297,
0.014543701894581318,
-0.03299929201602936,
0.007087876088917255,
0.021186165511608124,
-0.0253304410725832,
-0.02515614964067936,
0.009097076021134853,
-0.021244261413812637,
0.005620918236672878,
0.0006372552597895265,
-0.052442535758018494,
-0.009145489893853664,
0.056935396045446396,
0.023297034204006195,
-0.05647061765193939,
0.013343023136258125,
0.027867360040545464,
0.013323657214641571,
-0.0011867593275383115,
0.008646821603178978,
-0.04179135710000992,
-0.00410312507301569,
-0.034238699823617935,
0.038809023797512054,
-0.023645618930459023,
-0.02323893830180168,
0.019491659477353096,
-0.007664008066058159,
-0.026395559310913086,
-0.0006614624871872365,
-0.0053836870938539505,
0.024052299559116364,
-0.011687248945236206,
-0.009658683091402054,
0.014088605530560017,
-0.013013805262744427,
0.009431135840713978,
-0.03797629848122597,
-0.04004843533039093,
-0.014437190257012844,
0.0026095390785485506,
0.006763499230146408,
0.008859844878315926,
-0.06080855429172516,
-0.02897120825946331,
0.051009468734264374,
0.07676595449447632,
0.03997097164392471,
0.01022513210773468,
0.01663520559668541,
0.08660377562046051,
-0.010573716834187508,
0.1592641919851303,
-0.0006024573231115937,
-0.010389741510152817,
0.009915280155837536,
0.017148399725556374,
-0.028777550905942917,
-0.0025151309091597795,
0.01257807482033968,
-0.045044805854558945,
0.00023450750450138003,
0.02668604627251625,
-0.013343023136258125,
-0.08311793208122253,
-0.026492388918995857,
-0.0033212315756827593,
0.03127573803067207,
-0.039041414856910706,
0.023606887087225914,
0.03636893630027771,
0.012965390458703041,
0.06921330094337463,
-0.016751401126384735,
-0.037240397185087204,
-0.0349746011197567,
0.025988878682255745,
-0.048724304884672165,
-0.06530141085386276,
0.029126135632395744,
0.04597436636686325,
0.014834188856184483,
0.001862746081314981,
-0.04632294923067093,
-0.005698380991816521,
0.004596952348947525,
-0.021941430866718292,
-0.002549021039158106,
0.04519973322749138,
0.03598162159323692,
-0.049615129828453064,
0.054650235921144485,
0.005378845613449812,
-0.011028812266886234,
0.07378362864255905,
-0.04109418764710426,
0.01610264740884304,
-0.06778023391962051,
0.04353427514433861,
0.05588964372873306,
0.0036456084344536066,
0.013294609263539314,
-0.06111840531229973,
0.08939244598150253,
0.04233359917998314,
0.021534748375415802,
-0.03619464486837387,
0.0596466064453125,
0.03206973522901535,
0.02327766828238964,
-0.009678049013018608,
-0.024904394522309303,
-0.043573006987571716,
-0.049847520887851715,
0.012142345309257507,
0.06797388941049576,
-0.04353427514433861,
0.01356572937220335,
0.03485840559005737,
-0.01161946915090084,
0.043611738830804825,
-0.06398454308509827,
0.020159779116511345,
-0.013798119500279427,
-0.0075720204040408134,
-0.023878008127212524,
-0.04922781512141228,
-0.0037279129028320312,
0.00243766768835485,
0.01347858365625143,
-0.00597434351220727,
0.02788672409951687,
0.04206247627735138,
0.07076256722211838,
0.009547330439090729,
-0.0014366989489644766,
0.00522391963750124,
-0.00022452202392742038,
-0.03650449588894844,
-0.008777540177106857,
-0.02021787501871586,
-0.002149601699784398,
0.027789896354079247,
0.05530866980552673,
-0.0020188826601952314,
-0.016935376450419426,
-0.00522391963750124,
-0.06599858403205872,
-0.0035269928630441427,
0.03387075290083885,
0.1009344533085823,
-0.03084968961775303,
-0.0144662382081151,
0.020082315430045128,
-0.04849191755056381,
0.01879449002444744,
-0.04365047067403793,
-0.005059310235083103,
0.027964187785983086,
0.027383213862776756,
0.00013964543177280575,
0.023510059341788292,
0.03160495683550835,
-0.026124438270926476,
0.026356827467679977,
-0.03571050241589546,
0.01963690295815468,
-0.0390026830136776,
0.0852094367146492,
-0.02126362733542919,
-0.058058612048625946,
0.005877514835447073,
-0.04291457310318947,
-0.04109418764710426,
-0.07595259696245193,
0.060614895075559616,
-0.054417844861745834,
-0.046748995780944824,
0.052946045994758606,
0.006477853748947382,
-0.061544451862573624,
-0.06565000116825104,
0.03772454336285591,
-0.008346651680767536,
-0.025892049074172974,
0.012432831339538097,
-0.016044549643993378,
-0.032089099287986755,
0.042217403650283813,
0.0181651022285223,
0.026298731565475464,
-0.03574923053383827,
-0.01565723493695259,
0.009586061351001263,
-0.04655533656477928,
-0.06026631221175194,
0.038092490285634995,
0.0003022877499461174,
0.0748681128025055,
-0.02515614964067936,
0.05937548354268074,
0.02658921852707863,
0.08815303444862366,
-0.03108207881450653,
0.021960796788334846,
-0.036214012652635574,
0.01654805988073349,
0.009339148178696632,
0.006264830008149147,
0.010157352313399315,
-0.02327766828238964,
0.003168725874274969,
-0.06991046667098999,
-0.000714113179128617,
-0.006003392394632101,
-0.01407892256975174,
0.04512226954102516,
-0.09535710513591766,
-0.03735659271478653,
0.008046481758356094,
-0.018232883885502815,
-0.022096356377005577,
0.07246675342321396,
0.012016466818749905,
0.017477616667747498,
-0.05108693242073059,
0.0345485545694828,
-0.009973376989364624,
0.027247654274106026,
0.047833479940891266,
0.029571548104286194,
0.02215445414185524,
-0.021321725100278854,
0.012897610664367676,
0.09303320944309235,
-0.0403582863509655,
-0.002129025524482131,
0.011919638141989708,
0.03342533856630325,
-0.04512226954102516,
-0.0331929475069046,
0.006811913568526506,
0.04632294923067093,
-0.020508361980319023,
-0.017158081755042076,
0.006042123772203922,
0.032631341367959976,
-0.009426293894648552,
0.08892766386270523,
-0.0024558231234550476,
-0.020779483020305634,
0.03164368495345116,
0.027383213862776756,
0.015899306163191795,
-0.01785525120794773,
-0.056122034788131714,
-0.04547085613012314,
0.023606887087225914,
-0.0448511503636837,
0.00019562465604394674,
0.017158081755042076,
-0.07819902151823044,
-0.023258302360773087,
-0.030462373048067093,
0.044773686677217484,
0.0022113302256911993,
-0.01477609109133482,
-0.009218111634254456,
0.028719453141093254,
-0.011658200062811375,
-0.015579771250486374,
-0.0551537461578846,
0.004187850281596184,
-0.05712905526161194,
0.016828864812850952,
0.02610507234930992,
0.016935376450419426,
0.0033527009654790163,
0.012897610664367676,
-0.007523606065660715,
0.008598406799137592,
0.014795457012951374,
0.0231033768504858,
0.04736870154738426,
0.06735418736934662,
-0.006521426606923342,
-0.023839276283979416,
0.08559675514698029,
0.027053996920585632,
-0.08094896376132965,
-0.0015795215731486678,
0.03164368495345116,
0.006690877489745617,
0.014969748444855213,
-0.012355368584394455,
0.008840478956699371,
-0.019627219066023827,
-0.0287000872194767,
0.012481246143579483,
0.05259746313095093,
0.004221740178763866,
-0.003931253682821989,
0.029668377712368965,
-0.03712420165538788,
-0.02314210869371891,
-0.029765205457806587,
-0.03199227154254913,
-0.0037206506822258234,
-0.06526268273591995,
-0.023878008127212524,
0.0186105165630579,
0.0021205530501902103,
0.05945294722914696,
0.011445176787674427,
-0.030288081616163254,
-0.0038779976312071085,
-0.06898090988397598,
-0.06599858403205872,
0.06917457282543182,
0.02461390756070614,
-0.02546600252389908,
0.053875602781772614,
0.006773182190954685,
-0.007576861884444952,
-0.011425810866057873,
0.0753716230392456,
0.017012838274240494,
0.014998797327280045,
0.01622852496802807,
0.009276209399104118,
-0.005001212935894728,
0.00025190645828843117,
-0.0479884073138237,
-0.053836870938539505,
-0.08420241624116898,
-0.028467698022723198,
0.0672767236828804,
-0.03057856857776642,
0.02641492523252964,
-0.010980398394167423,
-0.06789642572402954,
0.047601088881492615,
0.0050254203379154205,
0.03174051642417908,
-0.062086693942546844,
-0.026473022997379303,
0.07145973294973373,
0.012878244742751122,
0.07095622271299362,
-0.016799814999103546,
0.01762286014854908,
0.035361915826797485,
0.029300427064299583,
-0.011328982189297676,
0.04481241852045059,
0.0069377911277115345,
0.041055455803871155,
0.04566451162099838,
-0.013149365782737732,
0.013313974253833294,
-0.03377392143011093,
-0.038634732365608215,
0.05089327320456505,
-0.018000492826104164,
0.025504734367132187,
0.013246194459497929,
0.0066957189701497555,
-0.04624548554420471,
-0.07053017616271973,
0.029184231534600258,
0.0228709876537323,
0.04310822859406471,
0.030326813459396362,
-0.03756961598992348,
0.014224166050553322,
-0.02256113477051258,
-0.024962492287158966,
-0.03574923053383827,
-0.0708787590265274,
-0.03547811135649681,
-0.0271314587444067,
0.04771728441119194,
0.02722828835248947,
0.03997097164392471,
0.050118640065193176,
0.02798355370759964,
-0.00852094404399395,
-0.013149365782737732,
-0.01435004360973835,
-0.03367709368467331,
0.01610264740884304,
0.03348343446850777,
-0.03981604799628258,
-0.03152749314904213,
-0.029358524829149246,
-0.04853064939379692,
-0.01801985874772072,
-0.02283225581049919,
-0.006753816269338131,
0.02515614964067936,
0.03214719519019127,
-0.01441782433539629,
0.011338665150105953,
-0.03220529481768608,
-0.06022758036851883,
0.010670545510947704,
0.018668612465262413,
0.0003516099532134831,
-0.04550958424806595,
-0.05035103112459183,
0.059491679072380066,
-0.0034931027330458164,
-0.009731304831802845,
-0.041907548904418945,
0.03301865607500076,
-0.013410803861916065,
0.056625545024871826,
-0.007087876088917255,
0.012984756380319595,
-0.012597440741956234,
-0.019791828468441963,
-0.015608820132911205,
-0.027906090021133423,
0.008046481758356094,
-0.005814575590193272,
-0.0529073141515255,
-0.006259988993406296,
0.02771243266761303,
0.010370375588536263,
0.012616806663572788,
0.0542629174888134,
-0.05960787460207939,
0.013100950978696346,
0.02794482186436653,
-0.007973860017955303,
-0.000014344673218147364,
0.019801510497927666,
-0.07188577950000763,
-0.06441058963537216,
0.019356098026037216,
0.009649000130593777,
-0.03636893630027771,
0.03019125387072563,
-0.021011872217059135,
0.07556527853012085,
-0.00431856932118535,
-0.008230457082390785,
0.030384911224246025,
-0.004829341545701027,
0.006903901230543852,
-0.028002919629216194,
-0.012800781056284904,
-0.04086179658770561,
0.029765205457806587,
0.021515382453799248,
-0.022270647808909416,
-0.03290246054530144,
0.031546857208013535,
-0.02045026421546936,
0.0006293879123404622,
0.01230695378035307,
-0.0005967081524431705,
-0.048414453864097595,
0.02740257978439331,
-0.023664984852075577,
0.0408230684697628,
0.004894701298326254,
-0.01186154130846262,
-0.031237004324793816,
-0.011580737307667732,
0.02618253603577614,
-0.01978214643895626,
0.012190759181976318,
0.004691360518336296,
0.057555101811885834,
-0.016896644607186317,
0.0003416244871914387,
0.07072383165359497,
0.03162432089447975,
-0.055541060864925385,
-0.038905855268239975,
-0.006182525772601366,
0.024517079815268517,
-0.02484629675745964,
0.004599372856318951,
0.010525302030146122,
0.01837812550365925,
0.02314210869371891,
-0.010041157715022564,
0.04833699017763138,
-0.00000551281755178934,
0.02215445414185524,
-0.03412250801920891,
0.023355131968855858,
-0.014679262414574623,
-0.005388528574258089,
0.05887197330594063,
-0.046748995780944824,
0.0367756187915802,
0.005533772055059671,
0.0019063190557062626,
0.023568155243992805,
0.052171412855386734,
-0.017971444875001907,
0.0327281691133976,
0.024052299559116364,
-0.01932705007493496,
-0.019888658076524734,
-0.02641492523252964,
0.07335758209228516,
0.020256606861948967,
0.059801533818244934,
0.008022274821996689,
0.02198016084730625,
-0.06882598996162415,
0.012713635340332985,
-0.001067538745701313,
-0.07440333068370819,
0.013343023136258125,
0.038092490285634995,
-0.027557507157325745,
-0.04109418764710426,
0.001267248298972845,
0.020062949508428574,
0.018058590590953827,
0.03712420165538788,
-0.009276209399104118,
-0.013246194459497929,
0.0015420003328472376,
-0.043340619653463364,
0.037337224930524826,
-0.03609781712293625,
0.02399420365691185,
-0.025659659877419472,
0.038905855268239975,
-0.01528928428888321,
0.007475191727280617,
-0.03121764026582241,
0.04492861405014992,
-0.03753088414669037,
-0.06049869954586029,
-0.06750911474227905,
-0.006090538110584021,
0.01856210082769394,
0.07281533628702164,
-0.013875582255423069,
-0.051280587911605835,
-0.005746795795857906,
0.03520699217915535,
-0.025988878682255745
] |
10,065 | torch.nn.modules.module | named_buffers | Return an iterator over module buffers, yielding both the name of the buffer as well as the buffer itself.
Args:
prefix (str): prefix to prepend to all buffer names.
recurse (bool, optional): if True, then yields buffers of this module
and all submodules. Otherwise, yields only buffers that
are direct members of this module. Defaults to True.
remove_duplicate (bool, optional): whether to remove the duplicated buffers in the result. Defaults to True.
Yields:
(str, torch.Tensor): Tuple containing the name and buffer
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for name, buf in self.named_buffers():
>>> if name in ['running_var']:
>>> print(buf.size())
| def named_buffers(self, prefix: str = '', recurse: bool = True, remove_duplicate: bool = True) -> Iterator[Tuple[str, Tensor]]:
r"""Return an iterator over module buffers, yielding both the name of the buffer as well as the buffer itself.
Args:
prefix (str): prefix to prepend to all buffer names.
recurse (bool, optional): if True, then yields buffers of this module
and all submodules. Otherwise, yields only buffers that
are direct members of this module. Defaults to True.
remove_duplicate (bool, optional): whether to remove the duplicated buffers in the result. Defaults to True.
Yields:
(str, torch.Tensor): Tuple containing the name and buffer
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for name, buf in self.named_buffers():
>>> if name in ['running_var']:
>>> print(buf.size())
"""
gen = self._named_members(
lambda module: module._buffers.items(),
prefix=prefix, recurse=recurse, remove_duplicate=remove_duplicate)
yield from gen
| (self, prefix: str = '', recurse: bool = True, remove_duplicate: bool = True) -> Iterator[Tuple[str, torch.Tensor]] | [
-0.0031068322714418173,
-0.07289019972085953,
-0.0818529948592186,
-0.024008771404623985,
-0.022191016003489494,
0.010546581819653511,
-0.028382182121276855,
0.06111977994441986,
0.019455382600426674,
-0.020319268107414246,
0.0016456536250188947,
0.0005281164776533842,
-0.04574984684586525,
0.03658907860517502,
-0.019221415743231773,
-0.031387779861688614,
0.032953567802906036,
-0.007855943404138088,
-0.055720504373311996,
0.030433906242251396,
-0.06025589630007744,
0.08257289230823517,
0.019149424508213997,
0.049565333873033524,
-0.04895341768860817,
0.016062838956713676,
0.014299076981842518,
-0.00001868303479568567,
0.03729098290205002,
-0.005079817026853561,
-0.015711886808276176,
-0.06972262263298035,
0.011230489239096642,
-0.008584845811128616,
-0.04456200823187828,
-0.04531790688633919,
-0.0064611309207975864,
0.04996128007769585,
-0.04549787938594818,
-0.1023702323436737,
0.1101451888680458,
-0.022191016003489494,
0.007194532547146082,
-0.023990772664546967,
0.04222232103347778,
0.01831253618001938,
0.062163639813661575,
0.02921007201075554,
0.008157403208315372,
0.03565320372581482,
0.03307954967021942,
-0.011122504249215126,
-0.03349349647760391,
-0.01725967787206173,
0.016332803294062614,
-0.025214608758687973,
0.03912673890590668,
-0.014776012860238552,
-0.014848003163933754,
0.057088322937488556,
-0.030271928757429123,
-0.032737597823143005,
0.029336053878068924,
0.017151692882180214,
-0.03261161223053932,
-0.10287416726350784,
0.0019223664421588182,
-0.08264488726854324,
-0.03948668763041496,
0.03403342142701149,
-0.006600612308830023,
-0.015540909953415394,
0.03351149335503578,
0.03725498914718628,
-0.08833211660385132,
-0.015459921211004257,
0.017250679433345795,
-0.0021945799235254526,
-0.01725967787206173,
-0.04718965291976929,
0.027410313487052917,
0.01673774980008602,
-0.05680036172270775,
-0.008962794207036495,
0.015819871798157692,
-0.0019932319410145283,
-0.01769161969423294,
0.023396853357553482,
0.035491228103637695,
0.020985176786780357,
-0.06500725448131561,
0.011716424487531185,
0.05179703235626221,
0.058744098991155624,
-0.016746748238801956,
-0.06655504554510117,
-0.020049303770065308,
0.0353112518787384,
-0.027410313487052917,
0.028616150841116905,
-0.03153175860643387,
-0.011221490800380707,
-0.03471733257174492,
0.07386206835508347,
-0.0037929897662252188,
0.06605111807584763,
-0.00041141340625472367,
-0.01927540823817253,
0.06525922566652298,
-0.006191167514771223,
-0.004197935573756695,
-0.005606246180832386,
0.06561917811632156,
0.022874923422932625,
0.011671430431306362,
-0.00977268535643816,
0.03077586181461811,
0.014767013490200043,
0.010303614661097527,
-0.018303537741303444,
0.02134512923657894,
0.04780157282948494,
0.019239412620663643,
-0.002818870823830366,
0.013300211168825626,
-0.008652335964143276,
0.07285419851541519,
0.03316953778266907,
-0.008373374119400978,
-0.01599084958434105,
0.0007992050377652049,
0.04880943521857262,
0.007109044119715691,
0.03219766914844513,
0.05518057942390442,
0.018573502078652382,
0.0633154809474945,
-0.008296884596347809,
-0.03970266133546829,
-0.0122923469170928,
0.02640244923532009,
-0.019473381340503693,
-0.019473381340503693,
0.01837552897632122,
-0.023630822077393532,
-0.08595643937587738,
0.06929068267345428,
-0.05262492224574089,
-0.03833484277129173,
-0.04621778428554535,
-0.03959467634558678,
-0.007545485161244869,
0.026294464245438576,
0.06954264640808105,
-0.040314577519893646,
0.04686569795012474,
-0.019725346937775612,
0.006029189098626375,
-0.04179038107395172,
0.004787356127053499,
0.029318057000637054,
0.03819086402654648,
-0.043518148362636566,
-0.0009043783647939563,
0.01824054680764675,
0.005570251028984785,
-0.04168239235877991,
-0.018555505201220512,
-0.042186327278614044,
-0.037111010402441025,
0.052264969795942307,
0.02019328437745571,
0.060111913830041885,
0.036679066717624664,
0.022658953443169594,
0.02805822715163231,
-0.027302328497171402,
-0.02368481457233429,
-0.008791817352175713,
0.005277790129184723,
0.03651708737015724,
-0.006956064607948065,
0.03306155279278755,
-0.015648895874619484,
-0.04819751903414726,
0.01997731253504753,
0.0423303060233593,
-0.017196686938405037,
0.04524591565132141,
-0.03473532944917679,
0.01115849893540144,
0.06896672397851944,
0.034339383244514465,
0.0034307886380702257,
-0.006299152970314026,
0.007433000486344099,
-0.0007699589477851987,
0.019383393228054047,
0.013498184271156788,
0.015612900257110596,
-0.03036191686987877,
0.022838927805423737,
-0.029749998822808266,
0.03383544832468033,
0.008341877721250057,
0.019491378217935562,
0.04067452996969223,
0.0073655094020068645,
-0.033691469579935074,
-0.027752267196774483,
0.005322784185409546,
-0.006357645150274038,
0.05143708363175392,
0.0564764030277729,
0.009048283100128174,
0.009655700996518135,
-0.03927071765065193,
0.01413709856569767,
0.023396853357553482,
-0.04211433604359627,
0.04301421344280243,
-0.01391212921589613,
-0.04600181430578232,
-0.0015781627735123038,
-0.018663490191102028,
0.008359875530004501,
0.041502419859170914,
0.00045528251212090254,
-0.053632788360118866,
-0.040602538734674454,
0.06680701673030853,
-0.006438633892685175,
-0.012535314075648785,
-0.013381199911236763,
-0.008139405399560928,
0.0022519470658153296,
0.010024651885032654,
-0.010438595898449421,
0.0061461734585464,
-0.0578802153468132,
-0.0045623863115906715,
-0.0027243834920227528,
0.013138232752680779,
-0.018465517088770866,
0.0028773630037903786,
-0.021921051666140556,
-0.0013048244873061776,
-0.004564635921269655,
0.010708560235798359,
0.03007395565509796,
-0.027410313487052917,
0.061011794954538345,
0.01995931565761566,
-0.010402601212263107,
-0.03081185556948185,
-0.06014791131019592,
-0.052300967276096344,
0.0056287432089447975,
-0.02852616272866726,
0.045209918171167374,
-0.023558830842375755,
-0.0048278504982590675,
-0.018717482686042786,
0.01645878702402115,
0.10647367686033249,
0.0432661809027195,
0.01650378108024597,
0.013012249954044819,
-0.013093238696455956,
-0.005970696918666363,
-0.05262492224574089,
-0.0026681411545723677,
0.01103251613676548,
-0.0031923206988722086,
-0.0014735518489032984,
-0.09049183130264282,
0.007905436679720879,
0.08552449941635132,
0.03565320372581482,
-0.02667241357266903,
-0.0070100571028888226,
-0.035743191838264465,
-0.03216167539358139,
0.016026845201849937,
0.019005443900823593,
0.031207803636789322,
0.008400370366871357,
0.02921007201075554,
-0.0152889434248209,
-0.04229431226849556,
0.031189804896712303,
-0.005075317341834307,
-0.004179937765002251,
-0.01424508448690176,
-0.040566544979810715,
0.011041514575481415,
-0.03612114116549492,
0.041970353573560715,
0.03426739200949669,
0.021777071058750153,
-0.025898516178131104,
0.004391409456729889,
0.01640479452908039,
0.02163309045135975,
-0.013606170192360878,
0.02530459687113762,
0.0197613425552845,
-0.013561176136136055,
-0.03012794815003872,
0.05381276085972786,
0.015450921840965748,
-0.0002833212784025818,
0.04600181430578232,
-0.005727729760110378,
0.04247428849339485,
-0.06371143460273743,
0.029480034485459328,
0.04967331886291504,
-0.02228100411593914,
0.030397912487387657,
-0.006029189098626375,
0.024296732619404793,
-0.012346339412033558,
0.019221415743231773,
-0.03680504858493805,
0.06795886158943176,
0.05428069829940796,
0.008535351604223251,
-0.004881843458861113,
-0.04225831478834152,
-0.032071687281131744,
-0.04135843738913536,
-0.047225646674633026,
0.03360148146748543,
-0.0338534452021122,
0.02919207327067852,
-0.011194494552910328,
-0.008184399455785751,
0.007379007525742054,
-0.033403508365154266,
0.06187567859888077,
-0.04323018714785576,
-0.03419540077447891,
0.007738959044218063,
-0.05651240050792694,
-0.021975044161081314,
0.015567906200885773,
0.0016389045631513,
0.057088322937488556,
0.026114488020539284,
0.045641861855983734,
0.03300756216049194,
0.015558907762169838,
0.013183226808905602,
0.08300483971834183,
-0.0357791893184185,
-0.0188254676759243,
0.009529718197882175,
-0.002512912033125758,
0.06140774115920067,
-0.02413475327193737,
0.04733363538980484,
0.03743496537208557,
-0.0218670591711998,
0.015108968131244183,
-0.060795824974775314,
-0.030649878084659576,
-0.0010101140942424536,
0.014362068846821785,
-0.03280958905816078,
-0.011770416982471943,
0.049313366413116455,
-0.04985329508781433,
-0.009934663772583008,
-0.05752026289701462,
-0.032089684158563614,
0.033421505242586136,
0.019005443900823593,
-0.020751209929585457,
0.007302518002688885,
0.031063823029398918,
-0.007441998925060034,
0.05791620910167694,
-0.021939048543572426,
-0.026762399822473526,
0.011041514575481415,
0.025880519300699234,
-0.049061402678489685,
-0.016980716958642006,
-0.016827736049890518,
-0.00977268535643816,
0.008179900236427784,
-0.03981064632534981,
0.04891742020845413,
-0.08156502991914749,
-0.0442020557820797,
0.03583317995071411,
-0.02827419713139534,
-0.06482727825641632,
-0.03930671513080597,
0.0181235633790493,
-0.079045370221138,
-0.05179703235626221,
0.024062763899564743,
0.02532259374856949,
-0.007109044119715691,
0.062415607273578644,
0.0017435154877603054,
-0.008836811408400536,
0.02915607951581478,
-0.018519509583711624,
-0.00857134722173214,
-0.034843314439058304,
-0.010591575875878334,
0.022640954703092575,
0.012247352860867977,
0.004197935573756695,
-0.014758015051484108,
0.016746748238801956,
0.045137930661439896,
-0.0277702659368515,
-0.010168632492423058,
0.000946560176089406,
-0.01449705008417368,
0.006002192851155996,
0.0027041363064199686,
-0.0038694795221090317,
0.011689428240060806,
0.013840138912200928,
-0.0011164123425260186,
-0.07630974054336548,
-0.02346884272992611,
0.023774802684783936,
-0.04826950654387474,
0.02710435539484024,
-0.0753018707036972,
-0.02112915739417076,
-0.011005519889295101,
-0.00810340978205204,
0.020823199301958084,
0.04643375426530838,
0.030721867457032204,
0.031207803636789322,
-0.03099183179438114,
-0.03316953778266907,
0.03869479522109032,
-0.01954537071287632,
0.08343677967786789,
-0.010456593707203865,
-0.004391409456729889,
0.005435268860310316,
-0.026780398562550545,
0.07166635990142822,
-0.09790683537721634,
0.009790683165192604,
-0.042186327278614044,
-0.007280020974576473,
-0.038514818996191025,
-0.013453190214931965,
-0.05842014402151108,
-0.0031990697607398033,
0.046793706715106964,
0.008737824857234955,
-0.006731094792485237,
-0.02001330815255642,
-0.03973865509033203,
0.09473925828933716,
-0.004922337830066681,
0.027752267196774483,
0.001923491363413632,
0.05392074957489967,
-0.0003068024816457182,
-0.013939125463366508,
-0.05406472831964493,
0.033223532140254974,
-0.009457727894186974,
-0.05518057942390442,
0.045641861855983734,
-0.026816394180059433,
-0.022928915917873383,
-0.006537620909512043,
-0.06374742835760117,
0.0574122779071331,
0.007752457167953253,
0.0371829979121685,
0.018699485808610916,
0.03248563036322594,
0.013768148608505726,
-0.0014836754417046905,
-0.026816394180059433,
-0.0418623685836792,
-0.005165305454283953,
-0.04053054749965668,
0.0034375376999378204,
-0.008715327829122543,
0.0319816991686821,
0.042654264718294144,
0.038010887801647186,
-0.012931261211633682,
-0.033421505242586136,
-0.00012865457392763346,
-0.026798395439982414,
0.04556987062096596,
-0.012238354422152042,
-0.02345084585249424,
-0.00915626809000969,
0.014182092621922493,
-0.03336751088500023,
0.009556714445352554,
-0.01195939164608717,
-0.01390312984585762,
0.025358589366078377,
-0.028562158346176147,
0.033691469579935074,
-0.009016787633299828,
-0.014713020995259285,
-0.03579718619585037,
0.006411637645214796,
-0.049277372658252716,
-0.025628553703427315,
0.038262855261564255,
0.01732267066836357,
0.05471264198422432,
-0.06119177117943764,
0.018069569021463394,
-0.04337416589260101,
-0.016746748238801956,
-0.031369779258966446,
0.010582576505839825,
0.021309133619070053,
0.02183106355369091,
0.05521657317876816,
0.012112370692193508,
-0.029821990057826042,
0.010978523641824722,
-0.11871203780174255,
0.08602842688560486,
-0.005669237580150366,
-0.06144373491406441,
0.04488596320152283,
0.04808953404426575,
0.0006299152737483382,
0.00833737850189209,
-0.06223563104867935,
-0.0019966065883636475,
0.08826012909412384,
0.010735556483268738,
0.001496048760600388,
0.0028053727000951767,
-0.0616237111389637,
0.022227009758353233,
-0.0952431932091713,
-0.10589775443077087,
-0.019905323162674904,
-0.04222232103347778,
-0.03037991374731064,
-0.035005293786525726,
-0.029264064505696297,
-0.018573502078652382,
0.008715327829122543,
0.014488051645457745,
0.09308347851037979,
-0.04042256250977516,
0.04765759035944939,
0.018132561817765236,
0.0029696007259190083,
-0.00975468847900629,
0.01927540823817253,
0.0006355395307764411,
0.06392740458250046,
0.043806109577417374,
-0.0002208921650890261,
0.05428069829940796,
0.011239488609135151,
0.011545447632670403,
0.014713020995259285,
-0.023036900907754898,
0.026366453617811203,
-0.01979733817279339,
-0.012355337850749493,
0.04618179053068161,
-0.0013711905339732766,
0.010177630931138992,
0.009763686917722225,
0.05312885344028473,
0.03977464884519577,
-0.029354052618145943,
0.009376739151775837,
0.03381745144724846,
-0.004330667667090893,
-0.016971716657280922,
0.003689503762871027,
0.028796127066016197,
-0.07666968554258347,
0.00943973008543253,
0.040602538734674454,
-0.07494191825389862,
0.027932243421673775,
-0.029803991317749023,
0.0014015615452080965,
0.005642241332679987,
0.02481866255402565,
0.017520643770694733,
0.019671354442834854,
-0.028904112055897713,
-0.015279944986104965,
0.010744554921984673,
0.016611766070127487,
0.03381745144724846,
0.058276161551475525,
-0.04305021092295647,
-0.01516296062618494,
0.004971831105649471,
0.030937839299440384,
-0.02823820151388645,
-0.008962794207036495,
0.0109335295855999,
-0.008044918067753315,
0.0574122779071331,
-0.02026527374982834,
-0.012409331277012825,
0.028886115178465843,
0.011788414791226387,
0.0037457463331520557,
-0.0064161368645727634,
-0.026564426720142365,
0.0024589193053543568,
-0.03984664008021355,
0.025592558085918427,
0.006110178306698799,
-0.02663641795516014,
-0.032503627240657806,
0.03216167539358139,
-0.0152889434248209,
0.026510434225201607,
-0.016566772013902664,
-0.012346339412033558,
-0.06500725448131561,
-0.05795220658183098,
0.03559921309351921,
-0.00008302789501613006,
-0.033907439559698105,
-0.014740017242729664,
0.001949362806044519,
-0.043338172137737274,
0.022029036656022072,
0.05773623660206795,
-0.030199937522411346,
0.08264488726854324,
0.003271060064435005,
-0.006155172362923622,
0.016062838956713676,
-0.011788414791226387,
0.027752267196774483,
0.06281155347824097,
0.05953599140048027,
-0.004004461225122213,
-0.007221528794616461,
0.009511720389127731,
-0.007203530985862017,
0.029803991317749023,
-0.08538051694631577,
0.058240167796611786,
-0.004263176582753658,
-0.10733756422996521,
0.00015269820869434625,
-0.010762552730739117,
-0.013993117958307266,
0.03381745144724846,
0.0032395643647760153,
-0.016386795789003372,
0.04225831478834152,
-0.03797489404678345,
-0.07940532267093658,
-0.03815487027168274,
0.03797489404678345,
-0.02530459687113762,
0.03973865509033203,
-0.014299076981842518,
-0.02550256997346878,
-0.03909074142575264,
0.008274387568235397,
0.012697292491793633,
0.026780398562550545,
-0.0028413678519427776,
-0.006528622005134821,
-0.008553349412977695,
0.010393601842224598,
0.04207834228873253,
0.00449039600789547,
0.03153175860643387,
0.015342936851084232,
0.0821409523487091,
0.010951527394354343,
-0.06313551217317581,
0.08084512501955032,
0.07753357291221619,
-0.029498033225536346,
-0.01000665407627821,
-0.07494191825389862,
-0.03703901916742325,
-0.03594116494059563,
-0.00022328247723635286,
-0.02024727687239647,
0.0059302025474607944,
0.03703901916742325,
-0.030721867457032204,
-0.013462189584970474,
-0.03772292658686638,
0.04107047617435455,
-0.00556575134396553,
-0.017313672229647636,
-0.005723230075091124,
-0.010960525833070278,
-0.030487898737192154,
-0.03937870264053345,
0.007554484065622091,
-0.003358798334375024,
0.07861343026161194,
0.07055050879716873,
-0.027248336002230644,
0.04067452996969223,
0.042870234698057175,
0.08178099989891052,
0.013525180518627167,
-0.018933454528450966,
-0.038730792701244354,
0.024476708844304085,
-0.041502419859170914,
0.0015601651975885034,
0.05194101482629776,
-0.015117966569960117,
-0.08199696987867355,
-0.018681487068533897,
0.03399742767214775,
-0.01710669882595539,
0.037578944116830826,
0.00181213126052171,
-0.008242891170084476,
0.02757229097187519,
-0.00967369880527258,
0.01769161969423294,
-0.02042725309729576,
0.10107440501451492,
-0.03358348459005356,
-0.0007913310546427965,
0.012490320019423962,
0.013021248392760754,
0.0010545456316322088,
-0.0413944311439991,
0.04801754280924797,
-0.012967255897819996,
-0.01275128498673439,
-0.036193132400512695,
0.014506049454212189,
-0.006762590259313583,
-0.029300060123205185,
-0.043518148362636566,
-0.02870613895356655,
-0.048629458993673325,
-0.021417120471596718,
-0.005898706614971161,
0.04690169170498848,
0.01288626715540886,
-0.041934359818696976,
0.010528584010899067,
0.0002386085398029536,
0.014794010668992996
] |
10,066 | torch.nn.modules.module | named_children | Return an iterator over immediate children modules, yielding both the name of the module as well as the module itself.
Yields:
(str, Module): Tuple containing a name and child module
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for name, module in model.named_children():
>>> if name in ['conv4', 'conv5']:
>>> print(module)
| def named_children(self) -> Iterator[Tuple[str, 'Module']]:
r"""Return an iterator over immediate children modules, yielding both the name of the module as well as the module itself.
Yields:
(str, Module): Tuple containing a name and child module
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for name, module in model.named_children():
>>> if name in ['conv4', 'conv5']:
>>> print(module)
"""
memo = set()
for name, module in self._modules.items():
if module is not None and module not in memo:
memo.add(module)
yield name, module
| (self) -> Iterator[Tuple[str, torch.nn.modules.module.Module]] | [
0.03018839843571186,
-0.04018877446651459,
-0.0453200526535511,
-0.054908428341150284,
-0.022510208189487457,
0.048016782850027084,
0.0035605267621576786,
0.05438406392931938,
0.04599423706531525,
-0.019017567858099937,
0.03887786343693733,
0.025319302454590797,
0.02473875693976879,
0.04224877804517746,
-0.000014502680642181076,
-0.030881308019161224,
0.04561968892812729,
0.037679318338632584,
-0.06273643672466278,
0.0007204156136140227,
-0.051088061183691025,
0.03914004564285278,
0.007266190368682146,
-0.06880407780408859,
-0.053447697311639786,
0.03528222441673279,
0.013483651913702488,
0.028222033753991127,
-0.025075847283005714,
-0.024083301424980164,
-0.08524664491415024,
-0.0026475712656974792,
-0.03724858909845352,
-0.04644368961453438,
-0.047829508781433105,
0.015824563801288605,
-0.032847676426172256,
0.04749241843819618,
0.03176148980855942,
-0.0140454713255167,
0.11625904589891434,
-0.004546050913631916,
-0.03973931819200516,
0.0036167087964713573,
-0.012051014229655266,
0.0009691374725662172,
0.040038954466581345,
0.024008391425013542,
0.04262332245707512,
0.0035652087535709143,
0.036124952137470245,
0.0048456876538693905,
0.00305020809173584,
-0.0075845541432499886,
0.035319678485393524,
0.017201019451022148,
0.003853140864521265,
-0.009316829033195972,
0.028409305959939957,
0.020656205713748932,
0.023821119219064713,
-0.010815012268722057,
0.03046930767595768,
-0.009991011582314968,
-0.014111016876995564,
-0.0060020978562533855,
0.011002285405993462,
-0.05670624598860741,
-0.0679800808429718,
0.028128396719694138,
-0.05247388035058975,
-0.06371025741100311,
0.04108768329024315,
0.052810970693826675,
-0.039776772260665894,
-0.018446385860443115,
-0.02655530348420143,
0.055620063096284866,
0.05033896863460541,
-0.013202742673456669,
-0.04007640853524208,
-0.0031227762810885906,
-0.08262482285499573,
0.005023596808314323,
-0.04288550466299057,
-0.01469156239181757,
-0.025094574317336082,
-0.0025117984041571617,
0.011639013886451721,
0.0393647737801075,
-0.05532042682170868,
0.008736282587051392,
0.038390953093767166,
0.05187460407614708,
0.010786921717226505,
-0.012528560124337673,
-0.044570960104465485,
0.03754822537302971,
-0.03245440125465393,
0.01654556393623352,
-0.03779168054461479,
0.04831641912460327,
0.008118282072246075,
0.03502004221081734,
0.006268961820751429,
0.00005870567838428542,
-0.052099332213401794,
-0.041125137358903885,
0.06947826594114304,
-0.05449642613530159,
-0.11723286658525467,
-0.0006180007476359606,
0.03608749806880951,
0.01088055782020092,
-0.007373872213065624,
-0.06550807505846024,
0.004735664464533329,
-0.040750592947006226,
-0.00021609541727229953,
-0.020075660198926926,
-0.014120380394160748,
0.04164950177073479,
0.021630024537444115,
-0.00836641900241375,
-0.008244691416621208,
0.04142477363348007,
0.05202442407608032,
-0.02556275762617588,
-0.027173304930329323,
-0.042660776525735855,
0.04543241485953331,
0.017472565174102783,
0.029083488509058952,
0.0026382075157016516,
-0.005782052408903837,
-0.004754391964524984,
0.06367280334234238,
-0.0029472080059349537,
-0.039851684123277664,
-0.011152103543281555,
-0.03556313365697861,
-0.023783663287758827,
-0.03483276814222336,
0.06648189574480057,
-0.0314805805683136,
-0.05902843177318573,
0.038128770887851715,
-0.015244017355144024,
-0.0600397065281868,
-0.0025094575248658657,
-0.022547662258148193,
-0.029944943264126778,
0.020375296473503113,
0.044645871967077255,
-0.051724787801504135,
0.04775460064411163,
-0.007111690007150173,
0.019476385787129402,
-0.07127608358860016,
0.0029612535145133734,
-0.02258511632680893,
-0.006952507887035608,
-0.04273568466305733,
0.02601221203804016,
-0.010852467268705368,
-0.03464549407362938,
-0.025806210935115814,
-0.0983557477593422,
-0.01183565054088831,
0.034233495593070984,
0.025094574317336082,
0.015805836766958237,
-0.0024837073870003223,
0.006395371165126562,
-0.014672835357487202,
-0.0013120811199769378,
0.018746022135019302,
-0.0034013448748737574,
-0.010805648751556873,
0.012949923984706402,
0.039214953780174255,
-0.030338216572999954,
-0.034851495176553726,
-0.04741751030087471,
0.02393348328769207,
0.01423274353146553,
0.01578710973262787,
0.03910259157419205,
0.04696805402636528,
-0.03198621794581413,
0.020169295370578766,
0.002567980205640197,
0.04000150039792061,
0.02730439603328705,
-0.005510506220161915,
0.02258511632680893,
-0.04535750672221184,
0.002055320655927062,
0.04326004907488823,
0.0044079371728003025,
-0.028802579268813133,
-0.005978688597679138,
-0.019626203924417496,
-0.0024602983612567186,
-0.012528560124337673,
0.03811004385352135,
-0.016039928421378136,
-0.010318739339709282,
-0.05097569525241852,
-0.006624780595302582,
-0.038952771574258804,
0.030675308778882027,
0.009644556790590286,
0.031124763190746307,
-0.0006250234437175095,
0.03355931118130684,
-0.043484777212142944,
-0.045844417065382004,
0.007781190797686577,
-0.043372415006160736,
-0.009148282930254936,
0.036499496549367905,
0.03854077309370041,
-0.006217462010681629,
-0.01628338173031807,
-0.04850369319319725,
0.033690404146909714,
0.008497510105371475,
-0.030169671401381493,
0.007626690901815891,
0.04988951236009598,
-0.007668827194720507,
-0.04370950534939766,
-0.02685493975877762,
0.01687329262495041,
0.001631615567021072,
-0.0275665782392025,
0.00988801196217537,
-0.00993482954800129,
0.010889921337366104,
-0.041200049221515656,
0.028502942994236946,
-0.026686394587159157,
0.020562568679451942,
0.030974945053458214,
-0.04663096368312836,
0.0033966631162911654,
-0.015777746215462685,
0.010899285785853863,
0.01975729502737522,
0.016845202073454857,
-0.03899022564291954,
-0.010992921888828278,
-0.03655567765235901,
0.022060753777623177,
-0.05423424392938614,
-0.05266115069389343,
0.009644556790590286,
-0.004290891345590353,
-0.0169669296592474,
0.017425747588276863,
-0.02103075198829174,
-0.003946777433156967,
0.053073152899742126,
0.042922958731651306,
0.052548788487911224,
0.017069928348064423,
-0.030225852504372597,
-0.005159369669854641,
-0.02058129757642746,
0.04925278574228287,
-0.027266940101981163,
-0.02266002632677555,
0.006517098285257816,
0.020693659782409668,
-0.0610884353518486,
-0.011554740369319916,
0.01699502021074295,
-0.0620247982442379,
0.008010600693523884,
0.009574329480528831,
-0.04640623554587364,
-0.060976069420576096,
0.013773924671113491,
0.012706469744443893,
0.022173115983605385,
-0.05404697358608246,
0.02548784762620926,
0.00008932041964726523,
0.002130229724571109,
0.002659275894984603,
-0.015459381975233555,
-0.04749241843819618,
-0.054983336478471756,
-0.00348093593493104,
-0.039214953780174255,
-0.06562043726444244,
0.0015625585801899433,
0.012650287710130215,
0.032416947185993195,
0.0005682563642039895,
-0.030600398778915405,
-0.0026850258000195026,
0.0028020713943988085,
-0.0467807799577713,
0.05224915221333504,
0.029326943680644035,
0.020375296473503113,
-0.043297503143548965,
0.04288550466299057,
0.008019964210689068,
-0.009185737930238247,
0.05449642613530159,
-0.0282969418913126,
0.04472078010439873,
-0.05636915564537048,
0.06539571285247803,
0.011676467955112457,
0.018680475652217865,
0.022641299292445183,
-0.05505824461579323,
0.0477171465754509,
-0.040376048535108566,
-0.007996554486453533,
-0.00025077018653973937,
0.06666916608810425,
0.029214579612016678,
0.011180195026099682,
0.05206187814474106,
-0.027360577136278152,
-0.04146223142743111,
-0.02374620921909809,
-0.006292371079325676,
0.0339900404214859,
-0.0039350725710392,
0.003860163502395153,
0.021349115297198296,
0.009504102170467377,
0.04269823059439659,
-0.08502192050218582,
0.020337842404842377,
-0.025412939488887787,
-0.030600398778915405,
0.0064328256994485855,
-0.06221207231283188,
0.021985843777656555,
0.044196415692567825,
0.005688415840268135,
0.04835387319326401,
0.004646710120141506,
0.03226712718605995,
0.02721075899899006,
-0.02473875693976879,
-0.009494738653302193,
0.01478519942611456,
0.027978578582406044,
-0.012350650504231453,
0.012622196227312088,
-0.045844417065382004,
0.03825986385345459,
0.10157684236764908,
0.009195101447403431,
-0.011854377575218678,
-0.011086557991802692,
-0.028971124440431595,
-0.11056594550609589,
0.0019944568630307913,
0.04299786686897278,
0.07603281736373901,
-0.0324731282889843,
-0.022379117086529732,
0.03865313529968262,
-0.025075847283005714,
-0.015066108666360378,
-0.040750592947006226,
-0.016442565247416496,
0.045282598584890366,
0.040750592947006226,
0.020806023851037025,
0.0099722845479846,
-0.00013738225970882922,
-0.0404135026037693,
0.038316044956445694,
-0.03634968027472496,
-0.04172441363334656,
-0.047829508781433105,
0.11094049364328384,
-0.004635005258023739,
-0.013773924671113491,
0.001949979574419558,
-0.008876737207174301,
-0.023352935910224915,
-0.05030151456594467,
0.036499496549367905,
-0.026780031621456146,
-0.03129331022500992,
0.03891531750559807,
-0.020824750885367393,
-0.10861831158399582,
-0.024720028042793274,
0.021723661571741104,
-0.02556275762617588,
-0.041200049221515656,
-0.01119892206043005,
-0.00850687362253666,
-0.04213641211390495,
0.04108768329024315,
0.02322184480726719,
0.013820743188261986,
-0.012753287330269814,
0.004803550895303488,
-0.022528935223817825,
-0.049102965742349625,
-0.04715532809495926,
0.024813665077090263,
-0.026236940175294876,
0.06805498898029327,
-0.0020436160266399384,
0.0413498654961586,
-0.01532829087227583,
0.04258586838841438,
-0.03556313365697861,
0.019195476546883583,
-0.008937601000070572,
0.00509850587695837,
0.016348928213119507,
-0.013511743396520615,
0.03125585615634918,
-0.019438931718468666,
-0.02421439252793789,
-0.08966628462076187,
0.02086220681667328,
-0.0036050041671842337,
-0.011086557991802692,
0.053372789174318314,
-0.04576950892806053,
-0.022603845223784447,
0.03207985684275627,
-0.044383689761161804,
0.01690138317644596,
0.027978578582406044,
0.04408404976129532,
0.002539889421314001,
-0.06824225932359695,
0.08741901069879532,
0.029252033680677414,
0.0305442176759243,
0.08015281707048416,
0.025094574317336082,
-0.011648377403616905,
-0.019008204340934753,
-0.022641299292445183,
0.07453463226556778,
-0.07217499613761902,
-0.0013272969517856836,
0.004400914069265127,
0.01314656063914299,
-0.004906550981104374,
0.000115801980427932,
-0.011470467783510685,
0.015197199769318104,
0.02031911537051201,
0.04015132039785385,
0.0003918101137969643,
-0.002103309379890561,
-0.02129293419420719,
0.05449642613530159,
-0.046818237751722336,
0.01772538386285305,
-0.00859114620834589,
0.0871942862868309,
0.043484777212142944,
0.03891531750559807,
-0.057530250400304794,
-0.03219221904873848,
-0.02310948073863983,
-0.06490880250930786,
-0.012350650504231453,
0.015290835872292519,
-0.04659350961446762,
0.0029542306438088417,
-0.01706056483089924,
0.0821753665804863,
-0.01677965559065342,
-0.015524927526712418,
-0.040750592947006226,
0.02020675130188465,
-0.009981648065149784,
0.0012348309392109513,
-0.060077160596847534,
-0.0005823018145747483,
-0.03706131502985954,
0.006685643922537565,
0.012612832710146904,
0.025806210935115814,
0.015290835872292519,
0.019551295787096024,
0.0140454713255167,
0.00326557201333344,
-0.01360537949949503,
-0.0029682761523872614,
0.013745834119617939,
0.07895427197217941,
0.005688415840268135,
-0.01803438551723957,
0.04659350961446762,
0.03101239912211895,
-0.06176261603832245,
-0.0009006658219732344,
0.00853028241544962,
0.009031238034367561,
-0.024626392871141434,
-0.015749653801321983,
-0.019251659512519836,
-0.005782052408903837,
-0.011732649989426136,
-0.012051014229655266,
0.06524589657783508,
0.003246844746172428,
0.0077484180219471455,
0.022603845223784447,
-0.03955204784870148,
-0.022603845223784447,
-0.006456234958022833,
-0.004670118913054466,
-0.013024833053350449,
-0.061612799763679504,
-0.014504289254546165,
-0.0077437362633645535,
0.009738192893564701,
0.06232443451881409,
-0.030413126572966576,
-0.013202742673456669,
0.0064468709751963615,
-0.04734260216355324,
-0.07678190618753433,
0.04018877446651459,
0.027060940861701965,
-0.0016995019977912307,
0.06569535285234451,
0.030900035053491592,
0.021255480125546455,
0.00444305082783103,
0.035506948828697205,
0.003420072142034769,
-0.002757594222202897,
0.020019477233290672,
0.007837372832000256,
0.02322184480726719,
0.011404922232031822,
-0.0006870576180517673,
-0.04505787044763565,
-0.11640886217355728,
-0.05846661329269409,
0.0384284071624279,
-0.028802579268813133,
0.005070414859801531,
-0.038297317922115326,
-0.06277389079332352,
0.025319302454590797,
0.057455338537693024,
0.0803026407957077,
0.002118525095283985,
-0.04288550466299057,
0.07224990427494049,
-0.004925278481096029,
0.006826099008321762,
-0.0038203680887818336,
0.022416571155190468,
0.06030188873410225,
0.03155549243092537,
0.02039402350783348,
0.07348590344190598,
0.029308216646313667,
0.044833142310380936,
0.040937867015600204,
0.01364283449947834,
0.005632233805954456,
0.00048105738824233413,
-0.04307277873158455,
0.055620063096284866,
-0.0275665782392025,
0.015197199769318104,
-0.006381325423717499,
0.019008204340934753,
0.004651391878724098,
-0.00566968834027648,
0.057792432606220245,
0.041836775839328766,
0.016039928421378136,
-0.0032117310911417007,
-0.01527210883796215,
0.018062476068735123,
-0.020899660885334015,
0.009663283824920654,
-0.022828571498394012,
-0.07460954040288925,
0.008380464278161526,
-0.030974945053458214,
0.024083301424980164,
-0.007640736177563667,
0.009916102513670921,
0.050900787115097046,
0.05655642971396446,
-0.029401851817965508,
-0.011639013886451721,
0.03537585958838463,
-0.04269823059439659,
-0.0018715589540079236,
0.07880445569753647,
-0.01687329262495041,
-0.04127495735883713,
0.03138694539666176,
-0.02801603265106678,
-0.04060077294707298,
-0.034308403730392456,
-0.010580921545624733,
0.020637478679418564,
0.03880295529961586,
-0.002391241490840912,
-0.027716396376490593,
-0.02166748046875,
-0.05547024682164192,
0.014850744977593422,
-0.031405672430992126,
-0.0241207554936409,
0.004639687016606331,
-0.05138769745826721,
0.0482415109872818,
0.019055021926760674,
-0.020712386816740036,
-0.007200644817203283,
0.006737144198268652,
-0.040113866329193115,
-0.004230027552694082,
-0.0029003897216171026,
0.020075660198926926,
-0.06577026098966599,
-0.019982023164629936,
-0.002184070646762848,
-0.03625604137778282,
-0.016620473936200142,
-0.033128585666418076,
0.013661561533808708,
-0.03955204784870148,
0.017893929034471512,
0.038765501230955124,
-0.00016547320410609245,
0.02530057542026043,
-0.05359751731157303,
0.028896216303110123,
0.025862393900752068,
-0.014738380908966064,
-0.0057352338917553425,
0.043559685349464417,
-0.02048766054213047,
-0.07045207917690277,
-0.0006654041935689747,
-0.009508783929049969,
0.0021501274313777685,
0.10030338913202286,
-0.05831679701805115,
0.060976069420576096,
0.004958051256835461,
0.021648751571774483,
0.02766021341085434,
0.024607665836811066,
0.01808120310306549,
-0.04449605196714401,
-0.013699015602469444,
-0.0319487638771534,
0.02548784762620926,
0.0329413115978241,
-0.0649462565779686,
-0.06352297961711884,
0.030300762504339218,
-0.012491105124354362,
0.10637103021144867,
0.03063785471022129,
0.02528184838593006,
-0.044009141623973846,
0.014223380014300346,
0.004728641826659441,
0.0861455574631691,
0.060526616871356964,
0.015066108666360378,
-0.03932731971144676,
-0.025974757969379425,
0.03460804000496864,
-0.02711712196469307,
0.03011349029839039,
0.03384022042155266,
0.05479606240987778,
0.0029612535145133734,
-0.026611486449837685,
0.09386119991540909,
0.018343385308980942,
-0.0275665782392025,
-0.044645871967077255,
0.004962733015418053,
0.031405672430992126,
-0.030525490641593933,
-0.0018060135189443827,
-0.03307240083813667,
0.027622759342193604,
-0.01628338173031807,
-0.008043373003602028,
0.0946102887392044,
0.037585679441690445,
0.04198659583926201,
-0.05284842476248741,
0.02112438902258873,
-0.03488894924521446,
0.0030010489281266928,
-0.01949511282145977,
-0.05415933579206467,
0.06846699118614197,
0.016892019659280777,
0.04026368260383606,
0.006203416269272566,
0.054346609860658646,
0.0015098880976438522,
0.058878615498542786,
0.04415896162390709,
-0.028971124440431595,
0.023446572944521904,
0.004520300775766373,
0.04179932177066803,
0.007486235816031694,
0.05378479138016701,
-0.021985843777656555,
0.016068018972873688,
-0.09146410971879959,
0.0008403873653151095,
0.024607665836811066,
-0.05846661329269409,
0.03820367902517319,
0.02685493975877762,
-0.07558336108922958,
-0.032791491597890854,
-0.0022191843017935753,
-0.002130229724571109,
0.009021874517202377,
0.016208473592996597,
0.018680475652217865,
-0.027959851548075676,
0.009841193445026875,
-0.007818645797669888,
0.03245440125465393,
-0.013024833053350449,
0.025675121694803238,
0.044383689761161804,
0.020656205713748932,
0.00704614445567131,
-0.029944943264126778,
0.015262745320796967,
0.0045928689651191235,
-0.034327130764722824,
-0.037211135029792786,
-0.03663058951497078,
-0.0013378311414271593,
0.007467508781701326,
0.028315668925642967,
-0.005463688168674707,
-0.0008930578478612006,
-0.005894416011869907,
0.04734260216355324,
0.011582831852138042
] |
10,067 | torch.nn.modules.module | named_modules | Return an iterator over all modules in the network, yielding both the name of the module as well as the module itself.
Args:
memo: a memo to store the set of modules already added to the result
prefix: a prefix that will be added to the name of the module
remove_duplicate: whether to remove the duplicated module instances in the result
or not
Yields:
(str, Module): Tuple of name and module
Note:
Duplicate modules are returned only once. In the following
example, ``l`` will be returned only once.
Example::
>>> l = nn.Linear(2, 2)
>>> net = nn.Sequential(l, l)
>>> for idx, m in enumerate(net.named_modules()):
... print(idx, '->', m)
0 -> ('', Sequential(
(0): Linear(in_features=2, out_features=2, bias=True)
(1): Linear(in_features=2, out_features=2, bias=True)
))
1 -> ('0', Linear(in_features=2, out_features=2, bias=True))
| def named_modules(self, memo: Optional[Set['Module']] = None, prefix: str = '', remove_duplicate: bool = True):
r"""Return an iterator over all modules in the network, yielding both the name of the module as well as the module itself.
Args:
memo: a memo to store the set of modules already added to the result
prefix: a prefix that will be added to the name of the module
remove_duplicate: whether to remove the duplicated module instances in the result
or not
Yields:
(str, Module): Tuple of name and module
Note:
Duplicate modules are returned only once. In the following
example, ``l`` will be returned only once.
Example::
>>> l = nn.Linear(2, 2)
>>> net = nn.Sequential(l, l)
>>> for idx, m in enumerate(net.named_modules()):
... print(idx, '->', m)
0 -> ('', Sequential(
(0): Linear(in_features=2, out_features=2, bias=True)
(1): Linear(in_features=2, out_features=2, bias=True)
))
1 -> ('0', Linear(in_features=2, out_features=2, bias=True))
"""
if memo is None:
memo = set()
if self not in memo:
if remove_duplicate:
memo.add(self)
yield prefix, self
for name, module in self._modules.items():
if module is None:
continue
submodule_prefix = prefix + ('.' if prefix else '') + name
yield from module.named_modules(memo, submodule_prefix, remove_duplicate)
| (self, memo: Optional[Set[torch.nn.modules.module.Module]] = None, prefix: str = '', remove_duplicate: bool = True) | [
-0.030579715967178345,
-0.019318435341119766,
0.0009081866592168808,
-0.039461325854063034,
-0.019056109711527824,
0.015027531422674656,
-0.04508259519934654,
0.0728142037987709,
0.033821314573287964,
-0.0010768247302621603,
0.013106931000947952,
0.030991941690444946,
-0.020236575976014137,
0.060222551226615906,
0.0021056344266980886,
-0.05512593314051628,
0.028293732553720474,
0.01578640379011631,
-0.07832304388284683,
-0.011804669164121151,
-0.042609237134456635,
0.0652816966176033,
-0.008595860563218594,
0.0015774692874401808,
-0.05531330779194832,
-0.010624202899634838,
0.04107275605201721,
-0.0008800802752375603,
-0.008207055740058422,
0.00468439282849431,
-0.014915106818079948,
-0.0061412388458848,
-0.027637917548418045,
-0.009275097399950027,
0.012638491578400135,
-0.04114770516753197,
-0.008511541411280632,
0.057749193161726,
-0.00781356729567051,
-0.06370773911476135,
0.09533675760030746,
-0.05141589418053627,
0.020742490887641907,
0.01375337690114975,
-0.008319481275975704,
0.019018635153770447,
0.013537894934415817,
0.03665068745613098,
0.03837454319000244,
-0.01984308660030365,
0.02400282770395279,
0.01655464433133602,
-0.012170052155852318,
-0.015289857983589172,
0.019505811855196953,
-0.012601016089320183,
0.0025951536372303963,
-0.0327720120549202,
0.006117817014455795,
0.03205998241901398,
-0.02745054103434086,
-0.05156579613685608,
0.05167822167277336,
-0.0021595051512122154,
-0.03949879854917526,
-0.051340945065021515,
-0.041335079818964005,
-0.065956249833107,
-0.01569271646440029,
0.007724563591182232,
-0.04328379034996033,
-0.0518655963242054,
0.050479017198085785,
0.04883011057972908,
-0.019412122666835785,
0.026026485487818718,
-0.018259761855006218,
0.008099314756691456,
0.008310113102197647,
-0.05467623099684715,
-0.04609442502260208,
-0.006792369298636913,
-0.06606867164373398,
0.016179893165826797,
-0.049542136490345,
-0.014887000434100628,
-0.008698916994035244,
0.0348331443965435,
0.03241599723696709,
0.02222275920212269,
-0.05797404423356056,
-0.003473477205261588,
0.025464357808232307,
0.051940545439720154,
-0.01467151753604412,
-0.027694130316376686,
-0.051490843296051025,
0.032565899193286896,
-0.018503351137042046,
-0.013669057749211788,
-0.024246416985988617,
0.01602999120950699,
-0.016001885756850243,
0.08094630390405655,
-0.021098503842949867,
-0.007499712519347668,
-0.011814038269221783,
-0.03730650246143341,
0.06663080304861069,
-0.045494820922613144,
-0.09998367726802826,
-0.02441505528986454,
0.05411410331726074,
-0.028912071138620377,
0.007757354527711868,
-0.05688726529479027,
0.046806450933218,
-0.04785575717687607,
0.0019088899716734886,
0.008422537706792355,
-0.03183513134717941,
0.05610028654336929,
0.01872820220887661,
0.0068064224906265736,
-0.00712964590638876,
-0.013669057749211788,
0.08544332534074783,
-0.005129409953951836,
0.023215850815176964,
-0.06419491767883301,
0.03241599723696709,
0.03325918689370155,
0.05381430312991142,
0.047218676656484604,
0.0023410252761095762,
0.007124961353838444,
-0.004998247139155865,
0.037325240671634674,
-0.024958444759249687,
0.01720109023153782,
-0.028874596580863,
-0.02329079993069172,
-0.057936567813158035,
0.07386350631713867,
-0.011242542415857315,
-0.06606867164373398,
0.03157280758023262,
-0.024939706549048424,
-0.05958547443151474,
-0.0030401707626879215,
-0.02111724205315113,
-0.0518655963242054,
0.012516696937382221,
0.06580635160207748,
-0.09855962544679642,
0.05943557620048523,
-0.005588480271399021,
0.04710625484585762,
-0.04883011057972908,
0.010427458211779594,
0.010333769954741001,
0.026307549327611923,
-0.02111724205315113,
0.019711924716830254,
-0.01726667210459709,
-0.0241527296602726,
-0.021548205986618996,
-0.0617215596139431,
-0.029680311679840088,
-0.01645158790051937,
0.003866966115310788,
0.0064691463485360146,
0.05842374637722969,
0.01304134912788868,
-0.00011776856263168156,
-0.040173351764678955,
0.02192295715212822,
0.003368078265339136,
-0.05385177955031395,
0.020536378026008606,
0.03355899080634117,
-0.010792841203510761,
-0.0491299107670784,
-0.03273453563451767,
-0.029268085956573486,
0.051640745252370834,
0.028087617829442024,
0.014324872754514217,
0.024939706549048424,
-0.04036072641611099,
0.014933844096958637,
0.03700670227408409,
0.042047109454870224,
0.0026982103008776903,
0.0027544228360056877,
0.018465876579284668,
-0.012020152062177658,
0.016226736828684807,
0.040735479444265366,
0.010755365714430809,
-0.03972364962100983,
0.03217240795493126,
-0.01528048887848854,
0.053626928478479385,
0.00288090156391263,
-0.01456846110522747,
-0.01517743244767189,
0.00723270233720541,
-0.019805612042546272,
-0.021997908130288124,
0.02136083133518696,
-0.0054338956251740456,
0.013893908821046352,
0.07674908638000488,
-0.005579111631959677,
0.03333413973450661,
-0.027581704780459404,
0.025539308786392212,
0.04013587534427643,
-0.05681231617927551,
-0.028293732553720474,
-0.003902099095284939,
-0.00048307800898328424,
0.006286454852670431,
0.00018313048349227756,
-0.005672799423336983,
0.005630639847368002,
0.007368549704551697,
-0.02898702211678028,
-0.015561552718281746,
0.05954800173640251,
-0.03721281513571739,
-0.01608620397746563,
0.0018772704061120749,
0.03241599723696709,
0.01624547317624092,
0.010137026198208332,
-0.002761449432000518,
-0.006675259675830603,
0.007729248143732548,
-0.050778817385435104,
0.03269705921411514,
0.02070501632988453,
0.01139244344085455,
0.0070546953938901424,
-0.01093337219208479,
-0.010108919814229012,
0.010895897634327412,
-0.008207055740058422,
0.02872469648718834,
0.014502880163490772,
0.052765000611543655,
0.04523249715566635,
-0.009659217670559883,
0.014343610033392906,
-0.027488015592098236,
-0.03391500189900398,
0.027075789868831635,
-0.01584261655807495,
-0.010043337941169739,
0.021435780450701714,
-0.07543745636940002,
0.006352036725729704,
0.02197916992008686,
0.07232702523469925,
0.025558046996593475,
0.012619754299521446,
0.021848008036613464,
0.009790380485355854,
-0.019805612042546272,
0.03367141634225845,
-0.025539308786392212,
0.010474301874637604,
-0.002179413801059127,
0.02289731241762638,
-0.03367141634225845,
-0.013359887525439262,
0.003019091207534075,
-0.062058836221694946,
0.01644221879541874,
-0.0018163733184337616,
-0.052052970975637436,
-0.048342932015657425,
-0.027431802824139595,
0.0043799071572721004,
0.07502523064613342,
-0.012910186313092709,
0.04294651374220848,
0.011954570189118385,
-0.0011254253331571817,
0.05782414227724075,
-0.019149797037243843,
-0.0562501884996891,
-0.04571967199444771,
-0.022616248577833176,
-0.016910657286643982,
-0.08791667968034744,
0.02055511437356472,
0.011261279694736004,
0.03282822296023369,
-0.04264670982956886,
-0.008633336052298546,
-0.001968615921214223,
-0.027694130316376686,
-0.02364681474864483,
0.0028855858836323023,
0.06044740229845047,
0.026026485487818718,
-0.012713441625237465,
0.07517513632774353,
0.0075980848632752895,
0.00545731745660305,
0.026363762095570564,
-0.05445137992501259,
0.062358636409044266,
-0.048642732203006744,
0.040735479444265366,
0.028968283906579018,
0.037531353533267975,
0.017397833988070488,
-0.046056948602199554,
0.06070972979068756,
-0.04414571821689606,
0.0034851881209760904,
-0.008183633908629417,
0.02705705165863037,
0.005007615778595209,
0.024433791637420654,
0.018447138369083405,
-0.02964283712208271,
-0.04845535755157471,
-0.051903072744607925,
-0.011729719117283821,
0.0585736446082592,
-0.03816843032836914,
0.012732178904116154,
0.041185181587934494,
-0.010080813430249691,
0.033128026872873306,
-0.08117115497589111,
0.022297710180282593,
-0.009837225079536438,
-0.05490108206868172,
-0.027075789868831635,
-0.045607246458530426,
0.01007144432514906,
0.010567990131676197,
0.04373348876833916,
0.0136503204703331,
0.07037831842899323,
0.03176018223166466,
0.040735479444265366,
0.037381455302238464,
-0.018184812739491463,
0.08724212646484375,
0.02076122909784317,
-0.04320883750915527,
-0.011767194606363773,
0.014278029091656208,
-0.038187168538570404,
0.01706055738031864,
0.003766251727938652,
0.007621506694704294,
-0.013509788550436497,
0.037831153720617294,
-0.07959719747304916,
-0.040023449808359146,
0.016835708171129227,
0.07442563027143478,
-0.06618110090494156,
-0.016001885756850243,
0.012188789434731007,
-0.05654998868703842,
-0.0216231569647789,
-0.030073801055550575,
0.01382832694798708,
0.03228483349084854,
0.02471485547721386,
-0.028143830597400665,
0.01101769134402275,
0.04493269324302673,
-0.016882551833987236,
0.04538239538669586,
-0.005846122279763222,
0.0011617293348535895,
-0.04373348876833916,
0.11429918557405472,
-0.03269705921411514,
-0.0015997200971469283,
-0.0001534138573333621,
-0.01514932606369257,
-0.026513662189245224,
-0.021398305892944336,
0.062246210873126984,
-0.03361520171165466,
-0.07019094377756119,
0.03567633405327797,
-0.016976239159703255,
-0.10380614548921585,
-0.06648090481758118,
0.03445839136838913,
-0.05711211636662483,
-0.0017753848806023598,
0.020873654633760452,
-0.01872820220887661,
-0.01969318650662899,
0.028649745509028435,
-0.021135980263352394,
0.018053648993372917,
-0.017903748899698257,
-0.004665655083954334,
-0.02379671484231949,
-0.059360623359680176,
-0.0632205605506897,
0.0028762170113623142,
0.05355197563767433,
0.0665183737874031,
-0.030542239546775818,
0.047031302005052567,
0.01609557308256626,
0.07139014452695847,
-0.04811808094382286,
-0.0020529350731521845,
-0.010952110402286053,
0.0375688299536705,
0.002185269258916378,
-0.0026443395763635635,
-0.0016336819389835,
-0.03041107766330242,
-0.02827499434351921,
-0.06127185747027397,
0.01801617443561554,
0.013762746006250381,
-0.01449351105839014,
0.06243358552455902,
-0.11534848809242249,
-0.0562501884996891,
-0.014221816323697567,
-0.041035279631614685,
-0.01217942126095295,
0.05272752419114113,
0.009827855974435806,
-0.013078824616968632,
-0.04706877842545509,
0.03522663190960884,
0.017472784966230392,
0.006028813309967518,
0.0739009827375412,
-0.006117817014455795,
-0.010952110402286053,
-0.018109861761331558,
-0.012938292697072029,
0.08079640567302704,
-0.05516340956091881,
0.030748354271054268,
-0.013050718232989311,
0.007996258325874805,
-0.03447712957859039,
-0.024527480825781822,
0.016629593446850777,
0.04500764608383179,
0.02010541409254074,
0.004016866907477379,
0.03290317580103874,
-0.005298048257827759,
-0.009232938289642334,
0.12411767244338989,
-0.016976239159703255,
0.023178374394774437,
0.006525359116494656,
0.06292076408863068,
-0.03273453563451767,
0.022616248577833176,
-0.04294651374220848,
-0.05126599222421646,
0.0013174854684621096,
-0.04021082818508148,
0.020236575976014137,
0.004080106038600206,
-0.04335873946547508,
0.0000843922607600689,
-0.0335964635014534,
0.07603706419467926,
-0.006661206483840942,
0.013313043862581253,
-0.007818251848220825,
0.04841788113117218,
0.004412698093801737,
0.0005372412852011621,
-0.04414571821689606,
-0.0034617662895470858,
-0.03425227850675583,
-0.0021138321608304977,
0.045195020735263824,
0.02147325687110424,
0.017135508358478546,
0.02040521427989006,
0.039049096405506134,
-0.016479693353176117,
-0.045757148414850235,
-0.022016646340489388,
0.02685093879699707,
0.10163258761167526,
0.03226609528064728,
0.004595389124006033,
0.05782414227724075,
0.014915106818079948,
-0.06059730425477028,
-0.018615776672959328,
-0.0163860060274601,
-0.03453334420919418,
-0.008061840198934078,
0.006305192597210407,
0.03498304635286331,
-0.018381556496024132,
-0.025145819410681725,
-0.04594452306628227,
0.02765665389597416,
-0.01857830211520195,
-0.040473151952028275,
0.04114770516753197,
-0.04429561644792557,
0.0023703027982264757,
-0.020311526954174042,
-0.021810531616210938,
-0.019299697130918503,
-0.020779965445399284,
-0.007673035375773907,
0.020592590793967247,
0.012394903227686882,
0.03211619704961777,
0.01588946022093296,
-0.026738513261079788,
-0.02233518473803997,
-0.02857479639351368,
-0.09098964184522629,
0.05055396631360054,
-0.003679590532556176,
0.005696221720427275,
0.053477026522159576,
0.036669425666332245,
0.007616822607815266,
-0.022859835997223854,
-0.01726667210459709,
0.011514237150549889,
0.08057155460119247,
0.02842489443719387,
0.037437666207551956,
0.003276732750236988,
-0.013069455511868,
-0.018868733197450638,
-0.060222551226615906,
-0.10028348118066788,
-0.04508259519934654,
0.026738513261079788,
-0.05853617191314697,
-0.018437769263982773,
-0.010408720932900906,
-0.05958547443151474,
0.0263450238853693,
0.017903748899698257,
0.05100366845726967,
-0.019618237391114235,
-0.014081284403800964,
0.05699969083070755,
-0.00237967143766582,
0.011233173310756683,
-0.04380844160914421,
0.020798703655600548,
0.0483054593205452,
0.017791323363780975,
-0.0036350886803120375,
0.04793070629239082,
0.0463942252099514,
0.00694226985797286,
0.075137659907341,
0.026270074769854546,
-0.00582269998267293,
-0.0008929623872973025,
-0.01796933077275753,
0.05617523565888405,
-0.013050718232989311,
0.02923060953617096,
0.02385292761027813,
0.030186226591467857,
-0.0006809936021454632,
-0.049167387187480927,
0.029680311679840088,
0.009659217670559883,
-0.014034440740942955,
-0.024396317079663277,
-0.013744007796049118,
0.037437666207551956,
-0.0346270315349102,
-0.033521514385938644,
-0.0136503204703331,
-0.07277672737836838,
-0.005630639847368002,
-0.0031596228946000338,
0.03419606760144234,
0.0014170288341119885,
0.005054459907114506,
0.04141003265976906,
0.0061318702064454556,
0.0015177432214841247,
-0.019955512136220932,
0.0019662738777697086,
-0.01873757131397724,
0.018765676766633987,
0.05467623099684715,
-0.0216231569647789,
-0.027132002636790276,
-0.0033821314573287964,
0.01357537042349577,
-0.030392339453101158,
-0.017482154071331024,
0.022466346621513367,
-0.02304721251130104,
0.02014288865029812,
-0.03796231746673584,
-0.036463312804698944,
-0.030542239546775818,
-0.05141589418053627,
-0.009649848565459251,
0.013584738597273827,
-0.011383074335753918,
-0.005213729105889797,
-0.00724675552919507,
0.052765000611543655,
-0.009125197306275368,
-0.03934890031814575,
0.005555689800530672,
0.04099780321121216,
0.019918037578463554,
0.046056948602199554,
-0.02019910141825676,
0.04126013070344925,
-0.024527480825781822,
-0.036463312804698944,
0.001134794089011848,
-0.010849053040146828,
-0.03537653386592865,
-0.019009266048669815,
0.013509788550436497,
-0.030223701149225235,
0.03224736079573631,
0.04793070629239082,
0.004201900213956833,
0.07506270706653595,
-0.025801634415984154,
0.006136554293334484,
0.011664138175547123,
-0.04392086714506149,
0.024639906361699104,
0.08379441499710083,
0.003909125924110413,
-0.05598786100745201,
-0.0029511672910302877,
-0.010820947587490082,
-0.014793312177062035,
0.03146038204431534,
-0.07997195422649384,
0.04931728541851044,
-0.00812273658812046,
-0.02029278874397278,
0.058086469769477844,
0.026513662189245224,
-0.005541636608541012,
-0.00006957055302336812,
-0.013256831094622612,
-0.04658159986138344,
0.0227848868817091,
-0.006544096395373344,
-0.052277822047472,
-0.05231529846787453,
0.04856778308749199,
-0.02670103870332241,
0.05613776296377182,
-0.016161154955625534,
0.02492096833884716,
-0.05167822167277336,
0.030785828828811646,
0.005157516337931156,
0.03994850069284439,
0.013031980954110622,
0.036163512617349625,
0.0054151578806340694,
-0.02848110720515251,
0.022709935903549194,
-0.005892965942621231,
0.013537894934415817,
0.00542921107262373,
0.040435679256916046,
0.05328965187072754,
-0.018400294706225395,
0.08079640567302704,
0.007883832789957523,
-0.05602533742785454,
-0.03526410833001137,
-0.03183513134717941,
0.007270177360624075,
-0.030991941690444946,
0.02239139750599861,
-0.015964411199092865,
0.021229667589068413,
0.012319953180849552,
-0.04437056928873062,
0.03275327384471893,
-0.006286454852670431,
0.05171569436788559,
-0.017435310408473015,
-0.010062075220048428,
-0.003962996415793896,
0.04305893927812576,
0.011720350943505764,
-0.06265843659639359,
0.07154004275798798,
-0.0034805038012564182,
0.04238438606262207,
0.048342932015657425,
0.022972261533141136,
-0.04586957395076752,
0.026775987818837166,
0.03625719994306564,
-0.016976239159703255,
-0.034027427434921265,
-0.03138543292880058,
0.04538239538669586,
0.007851041853427887,
0.04624432325363159,
0.006380142644047737,
0.03029865212738514,
-0.06367026269435883,
0.011617293581366539,
0.016994977369904518,
-0.0786978006362915,
0.06509432196617126,
0.06591877341270447,
-0.028087617829442024,
0.011898357421159744,
-0.009743536822497845,
-0.013088192790746689,
0.02308468706905842,
0.08476877212524414,
-0.02284109964966774,
-0.034589555114507675,
0.0048905061557888985,
-0.01832534372806549,
0.031853869557380676,
-0.04564472287893295,
0.0227848868817091,
-0.011205066926777363,
0.02486475557088852,
0.013284937478601933,
0.032453473657369614,
-0.013547264039516449,
-0.02070501632988453,
-0.0184752456843853,
-0.045457348227500916,
-0.0732264295220375,
0.010867791250348091,
-0.002122029894962907,
0.04320883750915527,
-0.016207998618483543,
-0.0107085220515728,
-0.009078352712094784,
0.036313410848379135,
-0.016835708171129227
] |
10,068 | torch.nn.modules.module | named_parameters | Return an iterator over module parameters, yielding both the name of the parameter as well as the parameter itself.
Args:
prefix (str): prefix to prepend to all parameter names.
recurse (bool): if True, then yields parameters of this module
and all submodules. Otherwise, yields only parameters that
are direct members of this module.
remove_duplicate (bool, optional): whether to remove the duplicated
parameters in the result. Defaults to True.
Yields:
(str, Parameter): Tuple containing the name and parameter
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for name, param in self.named_parameters():
>>> if name in ['bias']:
>>> print(param.size())
| def named_parameters(
self,
prefix: str = '',
recurse: bool = True,
remove_duplicate: bool = True
) -> Iterator[Tuple[str, Parameter]]:
r"""Return an iterator over module parameters, yielding both the name of the parameter as well as the parameter itself.
Args:
prefix (str): prefix to prepend to all parameter names.
recurse (bool): if True, then yields parameters of this module
and all submodules. Otherwise, yields only parameters that
are direct members of this module.
remove_duplicate (bool, optional): whether to remove the duplicated
parameters in the result. Defaults to True.
Yields:
(str, Parameter): Tuple containing the name and parameter
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for name, param in self.named_parameters():
>>> if name in ['bias']:
>>> print(param.size())
"""
gen = self._named_members(
lambda module: module._parameters.items(),
prefix=prefix, recurse=recurse, remove_duplicate=remove_duplicate)
yield from gen
| (self, prefix: str = '', recurse: bool = True, remove_duplicate: bool = True) -> Iterator[Tuple[str, torch.nn.parameter.Parameter]] | [
-0.00750708719715476,
-0.007128310389816761,
-0.0016851015388965607,
-0.043664321303367615,
-0.0002616927376948297,
0.017943991348147392,
-0.011454583145678043,
0.018181297928094864,
0.04954221099615097,
-0.001167135313153267,
0.01787097565829754,
0.032547444105148315,
-0.023730609565973282,
0.04841044545173645,
-0.027618778869509697,
-0.02814815379679203,
0.025519533082842827,
0.059107474982738495,
-0.10164003074169159,
0.0070963650941848755,
-0.01599990762770176,
0.07579191774129868,
-0.0419849269092083,
0.03355143219232559,
-0.023219488561153412,
-0.013791135512292385,
0.03440938517451286,
0.011372438631951809,
0.043262727558612823,
0.008775762282311916,
-0.01595427095890045,
0.010003364644944668,
-0.02854974940419197,
0.0048693385906517506,
-0.01821780763566494,
-0.020846428349614143,
-0.012732384726405144,
0.03274824097752571,
-0.05998368188738823,
-0.0365268848836422,
0.05253592133522034,
-0.01708604022860527,
0.021412312984466553,
0.009775185957551003,
0.0451611764729023,
0.004652568604797125,
0.056040748953819275,
0.040378544479608536,
0.011116878129541874,
0.0174693800508976,
0.05987415462732315,
0.004504252225160599,
-0.008383294567465782,
-0.041802383959293365,
-0.02729020267724991,
-0.008757507428526878,
0.03862613067030907,
-0.00879401620477438,
0.035103049129247665,
0.024479037150740623,
0.013690737076103687,
-0.030210891738533974,
0.02588461898267269,
0.026925114914774895,
-0.042021434754133224,
-0.08732864260673523,
-0.026432249695062637,
-0.06900130957365036,
-0.043664321303367615,
0.017040403559803963,
0.01027718000113964,
-0.046621523797512054,
0.02814815379679203,
0.02508142963051796,
-0.055529627948999405,
0.01730509102344513,
-0.01964164339005947,
-0.03616179898381233,
-0.008848779834806919,
-0.0548359639942646,
-0.032711733132600784,
-0.004237283021211624,
-0.05476294830441475,
-0.004399289842694998,
-0.003438656684011221,
0.021722635254263878,
-0.05129462853074074,
-0.017843592911958694,
0.08995726704597473,
0.04811837524175644,
-0.05943605303764343,
0.04008647799491882,
0.045489754527807236,
0.053777214139699936,
0.02298218384385109,
-0.01120814960449934,
-0.007548159454017878,
0.021631363779306412,
-0.02179565280675888,
-0.03733007609844208,
-0.04680406674742699,
-0.017396362498402596,
0.00808666180819273,
0.06009320542216301,
0.027618778869509697,
-0.019002743065357208,
0.005599511321634054,
-0.038005486130714417,
0.07024260610342026,
-0.0005151139921508729,
-0.011217276565730572,
-0.02491714060306549,
0.02451554499566555,
0.021375803276896477,
0.005330259911715984,
-0.0414372980594635,
0.03921027109026909,
-0.004819139372557402,
-0.036070529371500015,
-0.02844022400677204,
0.008250950835645199,
0.07392998039722443,
0.028641020879149437,
0.01753327064216137,
-0.00260352180339396,
-0.03285776823759079,
0.06020273268222809,
0.044577039778232574,
-0.006603498477488756,
-0.03753087297081947,
0.025263972580432892,
-0.006306866183876991,
0.017898356541991234,
0.00848369300365448,
-0.0025054048746824265,
-0.015917763113975525,
0.08667149394750595,
0.024606816470623016,
-0.02911563403904438,
0.005544748157262802,
0.022671859711408615,
0.03495701402425766,
-0.027673542499542236,
0.02876880206167698,
0.00090815220028162,
-0.10667821764945984,
0.06093290448188782,
-0.01611855998635292,
-0.0013382695615291595,
-0.023566320538520813,
-0.04939617961645126,
-0.017688430845737457,
0.012020466849207878,
0.015634821727871895,
-0.05038191005587578,
-0.026231450960040092,
0.01370899099856615,
-0.018820200115442276,
-0.056040748953819275,
-0.0026103670243173838,
0.024789361283183098,
0.02497190423309803,
-0.05954557657241821,
0.018199551850557327,
0.01867416501045227,
-0.013946296647191048,
0.013015327043831348,
-0.03231013938784599,
-0.0012641113717108965,
-0.062174197286367416,
0.044284969568252563,
0.007561850361526012,
0.055237557739019394,
-0.0005379318608902395,
0.02206946723163128,
-0.005102081224322319,
0.004714176990091801,
-0.02247106283903122,
-0.011262912303209305,
-0.01964164339005947,
0.05249940976500511,
-0.03548638895153999,
0.041510313749313354,
-0.0827285572886467,
-0.012485952116549015,
0.031762510538101196,
0.010624011978507042,
0.06604411453008652,
-0.01577172800898552,
-0.024661580100655556,
0.03603401780128479,
0.021813906729221344,
0.02418696880340576,
0.04998031631112099,
-0.02020752802491188,
0.038808673620224,
0.013471684418618679,
0.03625307232141495,
0.034135568886995316,
0.040780141949653625,
-0.01725032739341259,
-0.0032173232175409794,
-0.041400786489248276,
0.017907483503222466,
0.020189272239804268,
0.0023354114964604378,
-0.0004289764037821442,
0.0011620012810453773,
-0.018601147457957268,
-0.044796090573072433,
0.011701016686856747,
-0.015479659661650658,
0.07476967573165894,
0.0254830252379179,
-0.030557723715901375,
0.015260607935488224,
-0.03689197078347206,
-0.025866365060210228,
0.021813906729221344,
-0.057464584708213806,
0.03767690807580948,
0.0010188189335167408,
0.027545761317014694,
-0.019167032092809677,
0.05896143987774849,
-0.01765192300081253,
0.023748865351080894,
-0.03574195131659508,
-0.08491907268762589,
-0.010633138939738274,
0.06253928691148758,
-0.03862613067030907,
-0.01171927060931921,
-0.0008396985358558595,
-0.003032498061656952,
-0.004791758023202419,
-0.017378108575940132,
-0.03610703721642494,
-0.012832784093916416,
-0.03559591621160507,
-0.023858390748500824,
0.016784843057394028,
-0.02354806661605835,
0.02508142963051796,
-0.028421970084309578,
-0.04910410940647125,
-0.0264505036175251,
0.04589134827256203,
0.04943268746137619,
0.01758803240954876,
-0.0033428214956074953,
0.06202816590666771,
-0.011682761833071709,
0.04388337582349777,
-0.04786281660199165,
0.01742374338209629,
-0.02212423086166382,
0.059618595987558365,
-0.03559591621160507,
0.016930878162384033,
0.012586350552737713,
-0.028914835304021835,
-0.0359792560338974,
0.023128217086195946,
0.0879857987165451,
0.0254830252379179,
0.022160738706588745,
0.006535044871270657,
-0.01680309697985649,
-0.036910224705934525,
-0.027107657864689827,
-0.01872892864048481,
-0.0015105445636436343,
0.000606385525316,
0.03506654128432274,
-0.02849498577415943,
-0.007119182962924242,
0.022105976939201355,
-0.013234378769993782,
-0.009017632342875004,
0.020682139322161674,
-0.05465342104434967,
-0.02265360578894615,
0.012011339887976646,
0.027490999549627304,
0.07020609825849533,
0.020627375692129135,
0.07666812837123871,
-0.00788586400449276,
-0.018573766574263573,
-0.007164818700402975,
-0.029699770733714104,
-0.014904648996889591,
-0.023803627118468285,
-0.02984580583870411,
0.027618778869509697,
-0.039538849145174026,
-0.012951436452567577,
0.01765192300081253,
0.0338435024023056,
0.010788300074636936,
0.0008522483403794467,
-0.02360283024609089,
-0.0191305223852396,
0.004750685766339302,
0.05374070629477501,
0.039356306195259094,
0.02502666600048542,
-0.03174425661563873,
0.03559591621160507,
-0.0022190401796251535,
0.03815152123570442,
0.018592020496726036,
-0.029188649728894234,
0.04501514136791229,
-0.08221744000911713,
0.030046602711081505,
0.027217185124754906,
0.010012492537498474,
0.030740266665816307,
-0.0077489567920565605,
0.04318971186876297,
-0.020408324897289276,
-0.025738585740327835,
-0.0020216654520481825,
0.05724553391337395,
-0.042313504964113235,
0.028896581381559372,
0.0025236590299755335,
-0.04614691063761711,
-0.04614691063761711,
-0.010012492537498474,
-0.05458040535449982,
0.03678244724869728,
-0.025172701105475426,
0.011865304782986641,
-0.002077569253742695,
0.028914835304021835,
0.007288035470992327,
-0.02332901582121849,
0.054288335144519806,
-0.027892593294382095,
-0.03218235820531845,
-0.012951436452567577,
-0.04362781345844269,
-0.003785488661378622,
0.0038539422675967216,
0.022087721154093742,
0.0629773885011673,
-0.0365268848836422,
0.028641020879149437,
0.05863286182284355,
0.0349387601017952,
-0.0068864403292536736,
0.08119519799947739,
-0.0066902064718306065,
-0.008292023092508316,
0.0009132862323895097,
-0.008104915730655193,
0.019386082887649536,
0.03767690807580948,
-0.02015276439487934,
0.03136091306805611,
-0.010341069661080837,
0.06856320798397064,
-0.039684880524873734,
-0.05279147997498512,
-0.003358794143423438,
0.05947256088256836,
-0.026541775092482567,
-0.009948601946234703,
-0.001680537941865623,
-0.030557723715901375,
-0.045489754527807236,
-0.020700393244624138,
-0.033569686114788055,
0.02938944846391678,
0.029352938756346703,
-0.02031705342233181,
-0.01633761264383793,
0.03837057203054428,
-0.04413893446326256,
0.07060769200325012,
-0.009209302254021168,
-0.05158669501543045,
-0.04169285669922829,
0.06706635653972626,
-0.04063410684466362,
0.006352501921355724,
0.006786041893064976,
-0.06363454461097717,
-0.012522460892796516,
-0.02508142963051796,
0.030101366341114044,
-0.007561850361526012,
-0.06111544743180275,
0.029498973861336708,
-0.03499352186918259,
-0.12120865285396576,
-0.033679213374853134,
0.02150358445942402,
-0.10974494367837906,
-0.04147380590438843,
0.02190517820417881,
0.050308894366025925,
-0.08681752532720566,
0.04859298840165138,
0.011710143648087978,
0.028841817751526833,
0.026359232142567635,
-0.004810011945664883,
-0.04786281660199165,
-0.0382610447704792,
0.005809436086565256,
0.012631986290216446,
0.011609744280576706,
-0.00038334063719958067,
0.017323344945907593,
0.014192730188369751,
0.019258303567767143,
0.04399289935827255,
-0.06232023239135742,
-0.028111645951867104,
0.017907483503222466,
0.026030654087662697,
0.01623721420764923,
-0.005211607087403536,
0.0021711227018386126,
0.001955493586137891,
-0.016301102936267853,
-0.09068743884563446,
-0.020700393244624138,
-0.0012173346476629376,
-0.001802613609470427,
0.055931221693754196,
-0.06469329446554184,
-0.039356306195259094,
0.01106211543083191,
-0.007160255219787359,
0.0008619459695182741,
0.008118607103824615,
-0.00351167400367558,
0.013973678462207317,
-0.05403277277946472,
-0.05067398026585579,
0.029991840943694115,
-0.004189365543425083,
0.06830764561891556,
0.006676516029983759,
-0.024259984493255615,
0.027052896097302437,
-0.008812271058559418,
0.10324640572071075,
-0.11098624020814896,
0.05487247183918953,
-0.04012298583984375,
-0.04749773070216179,
-0.01189268659800291,
-0.009501371532678604,
-0.04260557144880295,
0.061151955276727676,
0.007922372780740261,
0.00551736680790782,
0.00602848781272769,
-0.025848111137747765,
-0.017159055918455124,
0.07878562808036804,
-0.010368451476097107,
0.022087721154093742,
0.005115772131830454,
0.056551869958639145,
-0.002273803111165762,
-0.012841911055147648,
-0.04859298840165138,
0.0024871504865586758,
0.01758803240954876,
-0.04939617961645126,
0.06998704373836517,
-0.025501279160380363,
0.011783160269260406,
0.01747850701212883,
-0.030740266665816307,
0.08966519683599472,
0.038954708725214005,
0.035267338156700134,
-0.029042616486549377,
-0.0013519602362066507,
0.018856707960367203,
-0.06020273268222809,
-0.02984580583870411,
0.009400972165167332,
-0.009355336427688599,
0.011491091921925545,
0.04789932444691658,
-0.005864198785275221,
-0.048994582146406174,
0.0084608756005764,
0.04424846172332764,
0.0002278937172377482,
0.00019737478578463197,
-0.029827551916241646,
-0.005193352699279785,
0.09411925077438354,
0.029298176988959312,
0.022452808916568756,
0.01741461642086506,
0.019678153097629547,
-0.03282126039266586,
-0.018592020496726036,
-0.016419757157564163,
-0.04103570058941841,
-0.013097471557557583,
-0.0030484707094728947,
0.026633046567440033,
-0.005193352699279785,
-0.010779173113405704,
-0.01662968099117279,
0.060859888792037964,
-0.006261230446398258,
-0.05969161167740822,
0.05038191005587578,
-0.021649617701768875,
0.04092617705464363,
-0.014959411695599556,
-0.01484075840562582,
0.009711296297609806,
-0.007137437351047993,
-0.055821698158979416,
0.0024164149072021246,
0.01501417439430952,
0.039027728140354156,
0.005531057715415955,
-0.020006729289889336,
-0.0553835928440094,
-0.012604604475200176,
-0.0731998085975647,
0.036800701171159744,
-0.013444303534924984,
-0.032036323100328445,
0.09265890717506409,
0.0585598461329937,
0.0453072115778923,
-0.0414372980594635,
-0.017670176923274994,
0.003908705431967974,
0.08302062749862671,
0.022452808916568756,
0.0060923779383301735,
-0.029699770733714104,
-0.042423028498888016,
0.016310231760144234,
-0.07506174594163895,
-0.13917089998722076,
-0.008369604125618935,
-0.037220548838377,
-0.008839651942253113,
-0.021430566906929016,
-0.03734833002090454,
-0.04581833258271217,
0.04731518775224686,
0.016757462173700333,
0.02247106283903122,
-0.011454583145678043,
0.012239518575370312,
-0.010049000382423401,
-0.008410675451159477,
-0.02729020267724991,
-0.0021140780299901962,
-0.0421309620141983,
0.08389683067798615,
0.04359130561351776,
0.012905800715088844,
-0.0013508193660527468,
0.03928328678011894,
-0.0073519255965948105,
-0.001739864470437169,
0.025099683552980423,
0.00034654675982892513,
-0.05162320286035538,
0.008004517294466496,
0.05658837780356407,
-0.01401931419968605,
0.01069702859967947,
0.01673920825123787,
-0.016647934913635254,
0.06016622483730316,
-0.0004709042841568589,
0.012987945228815079,
0.012139120139181614,
0.000016302315998473205,
-0.03711102530360222,
-0.029937077313661575,
0.018062645569443703,
-0.054507385939359665,
-0.028020374476909637,
0.007844791747629642,
-0.030429944396018982,
0.012376425787806511,
0.006535044871270657,
-0.019550371915102005,
-0.019933711737394333,
0.009811694733798504,
0.04118173569440842,
0.025501279160380363,
-0.046621523797512054,
-0.021667873486876488,
0.039684880524873734,
0.017168182879686356,
0.01866503804922104,
0.04373734071850777,
-0.0027176111470907927,
-0.04008647799491882,
0.003858505981042981,
-0.004723303951323032,
-0.033679213374853134,
0.0375673808157444,
-0.003664553863927722,
-0.015242353081703186,
0.06480281800031662,
-0.07659510523080826,
-0.06783303618431091,
0.012020466849207878,
-0.035376861691474915,
0.014064949937164783,
-0.01986069604754448,
-0.02389489859342575,
-0.002452923683449626,
-0.07710622996091843,
0.03013787418603897,
0.005458040162920952,
-0.01918528601527214,
-0.011481964029371738,
0.012668495066463947,
-0.030210891738533974,
-0.00476437620818615,
-0.009473989717662334,
0.019732914865016937,
-0.0765220895409584,
-0.10090985894203186,
0.016209831461310387,
0.03240140900015831,
-0.006042178254574537,
-0.03694673627614975,
0.052864499390125275,
-0.0014443726977333426,
0.06253928691148758,
0.027253692969679832,
-0.06294088065624237,
0.08389683067798615,
-0.00826007779687643,
0.01535187941044569,
0.04249604791402817,
-0.01743287220597267,
0.02384013682603836,
0.060531310737133026,
-0.03446414694190025,
-0.024533800780773163,
-0.003876760369166732,
0.02820291742682457,
-0.011171640828251839,
0.050308894366025925,
-0.09200175106525421,
0.03154345601797104,
-0.020353561267256737,
-0.044175442308187485,
0.029024362564086914,
-0.030174383893609047,
0.008488256484270096,
0.03110535442829132,
-0.011810542084276676,
-0.02150358445942402,
0.028513241559267044,
-0.0061288862489163876,
-0.02497190423309803,
-0.031415678560733795,
0.022032959386706352,
-0.04786281660199165,
0.009464862756431103,
-0.005964597687125206,
0.03837057203054428,
-0.04362781345844269,
-0.04085315763950348,
0.03201806917786598,
0.03132440522313118,
0.0184368584305048,
-0.021832160651683807,
0.009337082505226135,
-0.03457367420196533,
0.03415382280945778,
0.042642079293727875,
0.02462507225573063,
-0.0169217512011528,
0.03451891243457794,
0.004604651127010584,
0.002560167806223035,
0.043153200298547745,
0.04373734071850777,
-0.03081328421831131,
0.020974207669496536,
-0.047972340136766434,
-0.045708805322647095,
-0.007785465568304062,
0.012038720771670341,
0.008871597237884998,
-0.006566990166902542,
0.02718067541718483,
0.010979970917105675,
0.021120242774486542,
0.042751606553792953,
0.020645631477236748,
-0.03194505348801613,
-0.010204162448644638,
-0.019386082887649536,
-0.02133929543197155,
-0.013216124847531319,
0.004187083803117275,
0.028111645951867104,
-0.0021448819898068905,
0.05629630759358406,
0.04096268489956856,
0.013453430496156216,
-0.006786041893064976,
0.004054740071296692,
0.060531310737133026,
-0.004527070093899965,
-0.009273191913962364,
-0.04574531316757202,
0.023529812693595886,
-0.025391753762960434,
-0.009017632342875004,
0.016985639929771423,
0.020353561267256737,
-0.06454726308584213,
0.0004911551950499415,
0.02542826160788536,
-0.013252632692456245,
0.06429170072078705,
0.07243312150239944,
-0.033168092370033264,
0.007434070110321045,
-0.0028887453954666853,
0.07188549637794495,
0.020006729289889336,
0.03492050617933273,
0.01714080199599266,
0.03218235820531845,
-0.004063867032527924,
-0.03298554942011833,
0.04136427864432335,
-0.05063747242093086,
0.020463088527321815,
0.01822693459689617,
0.005489985458552837,
-0.0276917964220047,
-0.02343854121863842,
-0.018820200115442276,
-0.020572613924741745,
-0.022325027734041214,
-0.019404336810112,
-0.06465678662061691,
-0.0816332995891571,
-0.030010094866156578,
0.082874596118927,
-0.005553875584155321,
-0.0030096801929175854,
0.0433722548186779,
0.03512130305171013,
0.01571696624159813
] |
10,069 | torch.nn.modules.module | parameters | Return an iterator over module parameters.
This is typically passed to an optimizer.
Args:
recurse (bool): if True, then yields parameters of this module
and all submodules. Otherwise, yields only parameters that
are direct members of this module.
Yields:
Parameter: module parameter
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for param in model.parameters():
>>> print(type(param), param.size())
<class 'torch.Tensor'> (20L,)
<class 'torch.Tensor'> (20L, 1L, 5L, 5L)
| def parameters(self, recurse: bool = True) -> Iterator[Parameter]:
r"""Return an iterator over module parameters.
This is typically passed to an optimizer.
Args:
recurse (bool): if True, then yields parameters of this module
and all submodules. Otherwise, yields only parameters that
are direct members of this module.
Yields:
Parameter: module parameter
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for param in model.parameters():
>>> print(type(param), param.size())
<class 'torch.Tensor'> (20L,)
<class 'torch.Tensor'> (20L, 1L, 5L, 5L)
"""
for name, param in self.named_parameters(recurse=recurse):
yield param
| (self, recurse: bool = True) -> Iterator[torch.nn.parameter.Parameter] | [
0.036940958350896835,
-0.041631873697042465,
-0.001980125205591321,
-0.018113164231181145,
-0.004722982179373503,
0.01829640194773674,
-0.030729159712791443,
-0.04254806786775589,
0.008007539436221123,
0.03133384883403778,
0.00814954936504364,
0.006642409600317478,
-0.0048237633891403675,
0.06512309610843658,
-0.021842075511813164,
-0.008209101855754852,
0.009482611902058125,
0.04980432987213135,
-0.04511341452598572,
0.006775257643312216,
-0.01127835363149643,
0.08055181056261063,
-0.024389095604419708,
-0.0138528598472476,
-0.026826173067092896,
-0.02884179912507534,
0.05779354274272919,
0.019148463383316994,
0.0223917905241251,
-0.0007043244550004601,
-0.07637396454811096,
0.006775257643312216,
-0.014155203476548195,
0.0008033879566937685,
-0.04910802096128464,
0.009106972254812717,
-0.02574506215751171,
0.05398217588663101,
-0.0711333304643631,
-0.0076777092181146145,
0.034852035343647,
0.020705994218587875,
0.004599296022206545,
0.016940435394644737,
0.005144431721419096,
-0.01258851122111082,
0.05563132464885712,
0.017022892832756042,
-0.006532466039061546,
-0.008648875169456005,
0.06021229550242424,
-0.0006882910383865237,
0.010444615967571735,
-0.055338140577077866,
-0.0032341661863029003,
0.016839653253555298,
0.03369763121008873,
-0.034778740257024765,
0.04973103106021881,
0.00038852368015795946,
0.021200738847255707,
-0.045956309884786606,
0.011516563594341278,
0.02431580051779747,
-0.018589584156870842,
-0.06761514395475388,
-0.047788701951503754,
-0.03673939406871796,
-0.02627645619213581,
0.030417654663324356,
0.00132848194334656,
-0.06270434707403183,
0.007366203237324953,
0.042034998536109924,
-0.07388191670179367,
-0.0013926154933869839,
-0.02590997703373432,
-0.00014988367911428213,
0.019203435629606247,
-0.030490949749946594,
-0.01966153271496296,
0.039066530764102936,
-0.06032223999500275,
-0.03340444713830948,
-0.026001596823334694,
-0.01573105715215206,
-0.057866837829351425,
-0.04650602862238884,
0.06827481091022491,
0.039506301283836365,
-0.06083530932664871,
0.037179168313741684,
0.028933418914675713,
0.04108215868473053,
0.021035823971033096,
0.004635943565517664,
0.01450335793197155,
0.012496891431510448,
-0.06351059675216675,
-0.02418753318488598,
-0.03617135435342789,
0.006257607601583004,
0.03565828502178192,
0.03725246340036392,
0.02215358056128025,
-0.0680549219250679,
-0.041265394538640976,
-0.027156002819538116,
0.07051032036542892,
-0.0076227374374866486,
-0.0421815924346447,
0.047385573387145996,
0.005451356526464224,
0.013266495428979397,
0.020779289305210114,
-0.010591207072138786,
0.01548368576914072,
-0.01913013868033886,
-0.007608994375914335,
-0.002521825022995472,
0.023912673816084862,
0.08414329588413239,
0.018305564299225807,
0.011351648718118668,
0.01427430845797062,
0.0138528598472476,
0.04482023045420647,
0.020266219973564148,
-0.04258471727371216,
-0.05149012431502342,
0.02092587947845459,
-0.02525031752884388,
-0.006917267572134733,
0.020999176427721977,
-0.009239820763468742,
-0.024993782863020897,
0.05449524521827698,
-0.009949871338903904,
-0.023692786693572998,
-0.022611677646636963,
-0.0019457679009065032,
0.05379893630743027,
-0.012432757765054703,
0.02418753318488598,
0.019844770431518555,
-0.08766148239374161,
0.0421815924346447,
-0.00470007723197341,
-0.01849796436727047,
-0.014640786685049534,
-0.027852309867739677,
-0.019844770431518555,
0.03199350833892822,
0.012579348869621754,
-0.08253078907728195,
0.015648599714040756,
0.02475557290017605,
-0.0052177272737026215,
-0.056437574326992035,
-0.020577726885676384,
-0.0261115413159132,
0.038773346692323685,
-0.03285473212599754,
0.03307461738586426,
-0.004397733137011528,
-0.01969818025827408,
-0.03998272493481636,
-0.0622645728290081,
-0.0067477719858288765,
-0.025158697739243507,
0.060762014240026474,
-0.02561679482460022,
0.04830176755785942,
-0.023930998519062996,
0.012222032994031906,
0.05053728446364403,
0.004377118777483702,
-0.03397248685359955,
0.00733413640409708,
0.01676635816693306,
0.06094525381922722,
-0.03705090284347534,
0.03439393639564514,
-0.05797678232192993,
0.009445964358747005,
0.009139039553701878,
-0.034045785665512085,
0.03142546862363815,
-0.03752732276916504,
-0.017783332616090775,
0.06658901274204254,
0.010123948566615582,
0.03924977034330368,
0.02761409990489483,
-0.05306598171591759,
0.050683874636888504,
0.019240083172917366,
0.028255434706807137,
0.04368415102362633,
0.060029055923223495,
0.005052812397480011,
-0.015676086768507957,
-0.01760009489953518,
0.021677160635590553,
-0.03230501338839531,
0.0026157349348068237,
0.01470492035150528,
-0.036043088883161545,
-0.022996479645371437,
-0.02475557290017605,
-0.004688624758273363,
-0.009702499024569988,
0.09059330075979233,
0.04012931510806084,
-0.0011103131109848619,
0.03327618166804314,
-0.029354868456721306,
-0.04331767186522484,
0.028017224743962288,
-0.03990942984819412,
0.07300236821174622,
0.00907948613166809,
0.03609805926680565,
-0.027156002819538116,
0.05947934091091156,
-0.022410115227103233,
-0.013385600410401821,
-0.06043218448758125,
-0.08582909405231476,
-0.005991911515593529,
0.05024410039186478,
-0.001912555773742497,
-0.01360548660159111,
0.004787115845829248,
0.03419237583875656,
0.002890593372285366,
-0.0373990572988987,
-0.02198866568505764,
-0.030545921996235847,
-0.042328182607889175,
-0.02235514298081398,
0.015960106626152992,
-0.05409211665391922,
0.0027623260393738747,
-0.055338140577077866,
-0.04023925960063934,
-0.028200464323163033,
0.04394068568944931,
0.028383702039718628,
0.01709618791937828,
0.012826722115278244,
0.00672944774851203,
-0.03093072399497032,
0.022831564769148827,
-0.029684698209166527,
-0.0018438412807881832,
-0.013202361762523651,
0.04357420653104782,
-0.01507139764726162,
0.038736701011657715,
0.021365653723478317,
-0.024297475814819336,
-0.05214978754520416,
0.05324921756982803,
0.05471513047814369,
0.021512243896722794,
-0.011892203241586685,
0.019643208011984825,
-0.0239859689027071,
-0.011745612137019634,
0.0642801970243454,
0.010921037755906582,
-0.00429237075150013,
0.004887897055596113,
0.03127887845039368,
-0.015795191749930382,
0.02691779099404812,
0.010261377319693565,
-0.047825347632169724,
-0.0020774707663804293,
0.024022618308663368,
-0.026587961241602898,
-0.02843867428600788,
0.016161669045686722,
0.0007844914798624814,
0.028585266321897507,
-0.017710037529468536,
0.08150465786457062,
-0.03140714392066002,
0.014265147037804127,
0.0029364030342549086,
-0.003474667202681303,
0.02219022810459137,
-0.008593903854489326,
0.02508540265262127,
-0.005419290158897638,
-0.0290067158639431,
-0.02594662643969059,
0.05020745471119881,
0.0022698715329170227,
0.013321466743946075,
-0.01548368576914072,
0.0005133551894687116,
0.002069454174488783,
0.019844770431518555,
0.030655864626169205,
0.04023925960063934,
0.023527871817350388,
-0.030564244836568832,
0.05475177615880966,
-0.012295329011976719,
0.043097786605358124,
0.045186709612607956,
-0.0010919892229139805,
0.02644137106835842,
-0.1333979070186615,
0.033917516469955444,
0.001362839131616056,
-0.016051726415753365,
0.02708270587027073,
-0.019973037764430046,
0.07333219796419144,
0.044160570949316025,
-0.055374789983034134,
-0.008355692960321903,
0.0516367182135582,
0.008827533572912216,
0.007494470104575157,
-0.013779563829302788,
-0.03133384883403778,
-0.018223106861114502,
-0.004709239117801189,
-0.0013914703158661723,
0.043830741196870804,
-0.016757195815443993,
0.02970302291214466,
0.011406620033085346,
0.04826512187719345,
0.016280774027109146,
-0.017957409843802452,
0.07769328355789185,
-0.03708754852414131,
-0.00835111178457737,
-0.029648050665855408,
-0.05266285315155983,
0.003996897954493761,
0.0076777092181146145,
0.004828344564884901,
0.055704619735479355,
-0.030032852664589882,
0.03076580911874771,
0.054202061146497726,
0.017710037529468536,
-0.024938812479376793,
0.0076777092181146145,
-0.013358114287257195,
-0.0007650223560631275,
0.0040404172614216805,
-0.038406871259212494,
0.012506053782999516,
0.029959557577967644,
0.04767875745892525,
0.0015437875408679247,
0.0007100506918504834,
0.03611638396978378,
-0.035181865096092224,
-0.04408727586269379,
0.002315681427717209,
0.11903198063373566,
-0.02317971922457218,
-0.0010490425629541278,
0.004585552960634232,
-0.02211693301796913,
-0.04155857861042023,
0.001795741030946374,
-0.016940435394644737,
0.004910802002996206,
0.04965773597359657,
0.002141604432836175,
0.01650066114962101,
0.0005041932454332709,
-0.0321950726211071,
0.08275067806243896,
-0.04910802096128464,
-0.033184561878442764,
-0.04045914486050606,
0.06838475167751312,
-0.053542401641607285,
0.004688624758273363,
-0.0002668416127562523,
-0.07036373019218445,
-0.0036235488951206207,
-0.06556287407875061,
0.05306598171591759,
-0.03994607552886009,
-0.05775689706206322,
0.0864887535572052,
0.0018346792785450816,
-0.11140923947095871,
-0.052076488733291626,
0.03924977034330368,
-0.10613196343183517,
-0.05438530072569847,
0.010756121948361397,
0.04866824671626091,
-0.08487624675035477,
0.03972619026899338,
0.018314726650714874,
0.00713715422898531,
0.009702499024569988,
0.007434917613863945,
-0.036208003759384155,
-0.055374789983034134,
0.02109079621732235,
0.035511694848537445,
-0.03179194778203964,
0.017581770196557045,
0.023399604484438896,
0.029299898073077202,
0.01309241820126772,
0.07622737437486649,
-0.07138986885547638,
-0.015208827331662178,
0.022465087473392487,
0.02288653701543808,
0.03741737827658653,
0.03470544517040253,
0.015611953102052212,
-0.00045322993537411094,
-0.011397458612918854,
-0.08641545474529266,
0.0074532413855195045,
0.0017350431298837066,
-0.0052406322211027145,
0.04108215868473053,
-0.06054212525486946,
-0.012570187449455261,
0.004418347496539354,
-0.04225488752126694,
0.024077588692307472,
0.030490949749946594,
-0.01289085578173399,
0.010481264442205429,
-0.06369383633136749,
-0.014411738142371178,
0.008465636521577835,
0.017810819670557976,
0.06387707591056824,
-0.0274125374853611,
-0.010133109986782074,
0.01813148707151413,
0.013330629095435143,
0.10495923459529877,
-0.1059853658080101,
0.026697905734181404,
-0.020101305097341537,
-0.0004346197238191962,
-0.009913223795592785,
-0.001878198585473001,
-0.022171905264258385,
0.03666609898209572,
0.007764747831970453,
0.030820779502391815,
-0.02590997703373432,
0.010710312984883785,
-0.05837990716099739,
0.05090375989675522,
-0.018736176192760468,
0.018946900963783264,
-0.020376164466142654,
0.037014253437519073,
0.04474693536758423,
-0.014008612371981144,
-0.06541628390550613,
0.0011853264877572656,
0.008612227626144886,
-0.0554114393889904,
0.043830741196870804,
-0.02109079621732235,
-0.027852309867739677,
0.011021818965673447,
-0.05445859581232071,
0.08465636521577835,
0.017710037529468536,
0.012670968659222126,
-0.05618103966116905,
-0.005359737202525139,
-0.003902988275513053,
-0.06556287407875061,
-0.026129864156246185,
0.0035983535926789045,
-0.009368088096380234,
0.018479641526937485,
0.03505359962582588,
-0.016390718519687653,
-0.03556666523218155,
-0.00045408884761855006,
0.01982644759118557,
0.02308809943497181,
0.026166511699557304,
-0.012121251784265041,
0.0002698478929232806,
0.0892006903886795,
-0.0003158007748425007,
-0.008451892994344234,
0.040532439947128296,
0.015419552102684975,
-0.03347774222493172,
0.013669620268046856,
-0.0051398505456745625,
-0.01209376659244299,
-0.01856209896504879,
-0.03377092629671097,
0.02284988947212696,
0.009574231691658497,
-0.03576822951436043,
0.006060625892132521,
0.060395535081624985,
0.013138228096067905,
-0.05522819980978966,
0.01533709466457367,
-0.022978154942393303,
0.027852309867739677,
-0.02970302291214466,
0.009065743535757065,
0.022098608314990997,
-0.05903956666588783,
-0.05306598171591759,
0.012707616202533245,
0.028731856495141983,
0.05574126914143562,
0.016280774027109146,
-0.025067079812288284,
-0.013779563829302788,
-0.026496341452002525,
-0.08297056704759598,
0.04042249917984009,
0.0142376609146595,
-0.057463712990283966,
0.07996544986963272,
0.005538395140320063,
0.03760061785578728,
0.012469406239688396,
0.018672041594982147,
0.013742916285991669,
0.013266495428979397,
0.03164535388350487,
0.004897058941423893,
-0.034613825380802155,
-0.03523683547973633,
-0.014952292665839195,
-0.06684554368257523,
-0.1233564168214798,
-0.03221339359879494,
0.006161407567560673,
-0.021274033933877945,
0.0248105451464653,
-0.03728911280632019,
-0.04012931510806084,
0.04566312953829765,
0.016454851254820824,
0.018039867281913757,
-0.020797614008188248,
-0.0019595108460634947,
-0.018039867281913757,
-0.020797614008188248,
-0.006275931838899851,
0.02186039835214615,
-0.05185660347342491,
0.05797678232192993,
0.07413845509290695,
0.015795191749930382,
-0.004038126673549414,
0.02664293348789215,
0.03210345283150673,
0.008822952397167683,
-0.0032914283219724894,
0.04214494302868843,
-0.07296572625637054,
0.010389644652605057,
0.04976768046617508,
-0.03672107309103012,
-0.005932359024882317,
0.016848815605044365,
-0.022098608314990997,
0.038370221853256226,
0.00008560691640013829,
0.02704605832695961,
0.0043313088826835155,
0.03230501338839531,
-0.003412824124097824,
-0.012478567659854889,
0.01753596030175686,
-0.01849796436727047,
-0.011095114052295685,
-0.011122600175440311,
-0.05042733997106552,
0.011864718049764633,
0.017737524583935738,
-0.03250657767057419,
-0.017984896898269653,
0.005451356526464224,
0.04067903012037277,
0.02418753318488598,
-0.06164155900478363,
-0.02664293348789215,
0.007925081998109818,
0.043830741196870804,
0.022208552807569504,
0.033312827348709106,
-0.02325301431119442,
-0.0343206413090229,
0.020302867516875267,
-0.058929625898599625,
-0.02365613915026188,
0.03124222904443741,
-0.04214494302868843,
0.0011498240055516362,
0.06988731026649475,
-0.06570946425199509,
-0.04075232893228531,
0.028493646532297134,
-0.041302043944597244,
-0.0031860661692917347,
-0.05035404488444328,
-0.0016239546239376068,
-0.037307437509298325,
-0.09697001427412033,
0.023472901433706284,
-0.002368362620472908,
-0.0061476645059883595,
-0.023692786693572998,
0.004031255375593901,
0.009537584148347378,
0.010078138671815395,
-0.006065207067877054,
-0.0037747209426015615,
-0.0812847688794136,
-0.03413740545511246,
0.02006465755403042,
0.05574126914143562,
0.053579047322273254,
-0.026826173067092896,
-0.000480715767480433,
-0.0007341007585637271,
0.047385573387145996,
-0.016711385920643806,
-0.039836134761571884,
0.08348363637924194,
-0.04328102245926857,
-0.020944204181432724,
0.025671767070889473,
0.010096462443470955,
0.003609806066378951,
0.03433896601200104,
-0.05178330838680267,
-0.026496341452002525,
-0.002402719808742404,
0.03611638396978378,
-0.02814549207687378,
0.026881143450737,
-0.05053728446364403,
0.03193853795528412,
-0.04115545377135277,
-0.024169208481907845,
-0.004988678731024265,
-0.06922765076160431,
0.0101605961099267,
0.019844770431518555,
-0.01762758009135723,
-0.019899742677807808,
0.029684698209166527,
0.011956336908042431,
0.0026157349348068237,
-0.03010614775121212,
0.030619217082858086,
-0.06021229550242424,
-0.012396110221743584,
-0.014210175722837448,
0.04280460253357887,
-0.04207164794206619,
-0.019276730716228485,
0.008154130540788174,
0.07505464553833008,
-0.007870109751820564,
-0.030490949749946594,
-0.043390966951847076,
-0.0013823083136230707,
0.03014279529452324,
0.05401882156729698,
-0.006468332372605801,
-0.006908105686306953,
0.04610290378332138,
-0.021878723055124283,
0.03556666523218155,
0.030710836872458458,
0.026972763240337372,
-0.0347970649600029,
0.02798057720065117,
-0.008264073170721531,
-0.026386398822069168,
-0.011067628860473633,
-0.004361085593700409,
0.027430860325694084,
-0.009464288130402565,
0.0062621887773275375,
0.044160570949316025,
0.03164535388350487,
0.02754080481827259,
0.004306113813072443,
-0.019404998049139977,
0.013523029163479805,
-0.03226836770772934,
-0.04621284455060959,
0.008177035488188267,
0.02607489377260208,
0.04826512187719345,
0.01427430845797062,
0.03968954086303711,
0.02517702244222164,
0.025323612615466118,
-0.014045259915292263,
0.030894074589014053,
0.05709723383188248,
0.00123113626614213,
0.027357565239071846,
-0.035804878920316696,
0.045956309884786606,
0.05192989856004715,
-0.005946101620793343,
0.02508540265262127,
-0.028218787163496017,
-0.048778191208839417,
-0.035914819687604904,
0.024865515530109406,
-0.005103203002363443,
0.043097786605358124,
0.059296101331710815,
-0.04789864271879196,
-0.03741737827658653,
0.014933968894183636,
0.09799615293741226,
-0.02790728211402893,
0.008790885098278522,
0.011489077471196651,
0.03342277184128761,
-0.0347420908510685,
-0.02754080481827259,
0.03891993686556816,
-0.05632763355970383,
0.025525176897644997,
0.005918615963310003,
0.02231849543750286,
-0.02578171156346798,
0.008140387013554573,
0.005849901121109724,
-0.001492251642048359,
-0.04137533903121948,
-0.02618483640253544,
-0.03520018979907036,
-0.046615973114967346,
-0.03728911280632019,
0.06523304432630539,
-0.005657500587403774,
-0.034210700541734695,
0.023362956941127777,
0.03270814195275307,
-0.009821604005992413
] |
10,070 | torch.nn.modules.container | pop | null | def pop(self, key: Union[int, slice]) -> Module:
v = self[key]
del self[key]
return v
| (self, key: Union[int, slice]) -> torch.nn.modules.module.Module | [
0.04859203100204468,
-0.007011063862591982,
-0.09164612740278244,
-0.011827212758362293,
-0.03765122592449188,
0.0005819689249619842,
-0.017559317871928215,
0.03364972770214081,
0.06179528683423996,
-0.0590263195335865,
-0.01831909455358982,
-0.020817920565605164,
-0.018251558765769005,
0.015718964859843254,
-0.040656574070453644,
0.03788760304450989,
0.03525370731949806,
0.008788100443780422,
-0.021358206868171692,
-0.03738108277320862,
0.009125779382884502,
0.03464588150382042,
0.03751615434885025,
0.002093610819429159,
-0.02172965556383133,
0.021763423457741737,
0.08023256808519363,
-0.018774962052702904,
0.05480533093214035,
-0.06621888279914856,
-0.010316099040210247,
-0.02358688972890377,
-0.031505465507507324,
0.038090210407972336,
-0.03687456622719765,
-0.020311402156949043,
-0.03846165910363197,
-0.006449672393500805,
0.029952142387628555,
0.011346019804477692,
0.03903571143746376,
-0.04011628404259682,
0.056426189839839935,
-0.05095578730106354,
0.02936120331287384,
0.028922220692038536,
0.053961131721735,
0.032670460641384125,
0.028618309646844864,
0.006517208181321621,
0.024566160514950752,
0.04281771928071976,
0.0061964127235114574,
-0.007120809517800808,
-0.03616543859243393,
0.003412670223042369,
0.04315539821982384,
0.04119686037302017,
-0.005858733784407377,
0.06672540307044983,
-0.0062892744317650795,
-0.018048951402306557,
-0.05129346624016762,
-0.028601426631212234,
0.04876087233424187,
0.0015068933134898543,
-0.013709774240851402,
0.02735201269388199,
0.013439631089568138,
-0.009792695753276348,
-0.00568989384919405,
0.013608470559120178,
0.026777958497405052,
0.009961535222828388,
0.015735849738121033,
-0.05841849744319916,
0.011996052227914333,
-0.00859815627336502,
0.03241720050573349,
-0.04160207509994507,
-0.008627702482044697,
0.028584541752934456,
-0.02174653857946396,
0.045249007642269135,
-0.015440380200743675,
-0.012916228733956814,
0.0562911182641983,
-0.03832658752799034,
0.0018213570583611727,
-0.007082820404320955,
-0.03359907865524292,
0.024177828803658485,
-0.06193035840988159,
0.006973074749112129,
0.06878525018692017,
-0.04822058603167534,
0.015009839087724686,
-0.018758077174425125,
-0.017255404964089394,
-0.03714470937848091,
0.021003644913434982,
-0.00010921810462605208,
-0.039947446435689926,
0.020801037549972534,
0.027250709012150764,
0.08070532232522964,
0.019602276384830475,
0.035726457834243774,
-0.03429131954908371,
0.034038059413433075,
-0.011481092311441898,
0.07523491978645325,
-0.02785853110253811,
0.03407182916998863,
-0.012359057553112507,
0.04376322031021118,
-0.06253818422555923,
-0.027740344405174255,
-0.00813806802034378,
0.022101102396845818,
-0.031505465507507324,
0.0013327774358913302,
-0.05061810836195946,
0.00951411109417677,
0.04700494185090065,
0.04943623021245003,
-0.00967450812458992,
-0.024734999984502792,
0.040150053799152374,
-0.010797291062772274,
-0.010062838904559612,
0.004427818115800619,
-0.043830756098032,
0.026845494285225868,
-0.02157769910991192,
0.008045205846428871,
0.008104300126433372,
0.004896347876638174,
-0.009750486351549625,
0.011329135857522488,
0.004892127122730017,
0.05223896726965904,
0.04241250455379486,
0.09076815843582153,
0.0074584889225661755,
-0.11818771064281464,
-0.004267420619726181,
0.02156081423163414,
-0.04291902109980583,
0.011194064281880856,
-0.03378480300307274,
0.006166866049170494,
0.0624031126499176,
-0.016352113336324692,
0.03802267462015152,
0.023316746577620506,
-0.02409340813755989,
0.01112652849406004,
-0.041129324585199356,
-0.06777220964431763,
0.00041049125138670206,
0.04197352007031441,
0.02407652512192726,
-0.046228278428316116,
-0.03228212893009186,
-0.04977390915155411,
0.10744950920343399,
-0.0261363685131073,
-0.04646465554833412,
0.052509110420942307,
-0.021847842261195183,
-0.009480343200266361,
0.00012254060129635036,
0.024481739848852158,
-0.07455956190824509,
0.029310552403330803,
-0.03734731674194336,
0.01399680133908987,
0.032147057354450226,
-0.020665965974330902,
-0.00899915024638176,
-0.010341424494981766,
-0.026187019422650337,
-0.04781537130475044,
0.02784164808690548,
0.021189367398619652,
-0.004079586360603571,
0.01153174415230751,
0.022624503821134567,
-0.0037609017454087734,
-0.029259899631142616,
-0.006745141465216875,
0.04325670376420021,
-0.018403515219688416,
0.0034274435602128506,
-0.01852170191705227,
-0.0607147142291069,
0.04494509845972061,
-0.009606972336769104,
0.03812398016452789,
-0.0172891728579998,
-0.02934432029724121,
0.0247687678784132,
0.04096048325300217,
-0.08333922177553177,
0.014292270876467228,
0.03417313098907471,
-0.0029082619585096836,
-0.020024374127388,
0.02189849503338337,
-0.015398169867694378,
-0.008150731213390827,
0.07016973197460175,
-0.015347518026828766,
0.009860231541097164,
-0.07320884615182877,
-0.06679294258356094,
-0.019939955323934555,
0.06341614574193954,
0.012494129128754139,
0.02985083870589733,
-0.025528544560074806,
0.00839976966381073,
0.01831909455358982,
-0.012426593340933323,
0.006538312882184982,
-0.045215241611003876,
-0.010949247516691685,
-0.027942951768636703,
-0.012072030454874039,
0.10650400817394257,
0.02086857333779335,
0.021172484382987022,
-0.06621888279914856,
-0.009784254245460033,
-0.028955988585948944,
-0.032991256564855576,
0.037583690136671066,
0.05494040250778198,
0.02068284898996353,
0.030813224613666534,
0.06270702183246613,
0.02426224760711193,
0.09671131521463394,
-0.019264597445726395,
0.10197910666465759,
0.009117337875068188,
0.039812374860048294,
0.012190218083560467,
0.010898595675826073,
0.054400116205215454,
-0.016428092494606972,
0.0256129652261734,
0.05379229038953781,
0.04281771928071976,
-0.013177929446101189,
-0.05325200408697128,
-0.0484907291829586,
-0.022827111184597015,
-0.02850012294948101,
-0.04055526852607727,
-0.05537938326597214,
0.02022698149085045,
-0.01818402297794819,
0.039609767496585846,
0.02831439860165119,
0.03883310407400131,
0.02411029301583767,
0.03461211547255516,
0.024481739848852158,
-0.06888654828071594,
-0.020075026899576187,
0.002211798680946231,
-0.05129346624016762,
0.024211596697568893,
0.04632958397269249,
0.01852170191705227,
0.010054397396743298,
0.0784091055393219,
-0.015339076519012451,
0.03971106931567192,
-0.04187221825122833,
-0.0327717624604702,
0.021594582125544548,
-0.008940055966377258,
0.05514300987124443,
0.015339076519012451,
-0.03138728067278862,
0.08631079643964767,
0.04136569797992706,
0.039609767496585846,
-0.011025224812328815,
-0.03954223170876503,
-0.017373593524098396,
0.0034232225734740496,
0.03135351091623306,
-0.08246125280857086,
0.014368249103426933,
0.052171431481838226,
0.04058903828263283,
-0.0039234100840985775,
-0.06794104725122452,
-0.06949437409639359,
0.006179528776556253,
-0.012046704068779945,
-0.011649931780993938,
0.07834156602621078,
0.011413555592298508,
-0.04602567106485367,
0.03309255838394165,
0.008429315872490406,
0.0014140314888209105,
-0.015018281526863575,
0.022033566609025,
-0.0039719510823488235,
-0.0529143251478672,
0.015778059139847755,
0.04096048325300217,
0.02068284898996353,
0.05078694596886635,
-0.028229977935552597,
-0.0767207071185112,
-0.04092671722173691,
0.029614463448524475,
0.030678153038024902,
-0.007238997146487236,
-0.049841444939374924,
-0.04025135561823845,
0.024008989334106445,
0.0002386178239248693,
-0.05173245072364807,
-0.0002686923835426569,
0.00010433758870931342,
-0.0043645030818879604,
0.0015216667670756578,
0.018437283113598824,
-0.01818402297794819,
0.030104098841547966,
0.004854138009250164,
-0.028601426631212234,
-0.006652279756963253,
-0.06949437409639359,
-0.022860879078507423,
0.0062470645643770695,
0.045080170035362244,
0.01104210875928402,
0.025528544560074806,
-0.004980767611414194,
0.027774112299084663,
-0.006369473412632942,
0.05274548754096031,
0.010645335540175438,
0.04075787588953972,
0.039981212466955185,
0.03207952156662941,
-0.015558567829430103,
0.0327717624604702,
0.03410559520125389,
-0.02904040925204754,
-0.03788760304450989,
0.0657799020409584,
-0.024920722469687462,
-0.05450141802430153,
-0.0016419650055468082,
-0.022303709760308266,
-0.02140885964035988,
-0.058452263474464417,
-0.0017485449789091945,
-0.0022012460976839066,
-0.028213094919919968,
-0.0006199578638188541,
-0.020986760035157204,
-0.025089561939239502,
0.054568953812122345,
-0.04835565760731697,
0.011776560917496681,
0.01681642234325409,
0.05723661929368973,
-0.02495449036359787,
-0.0664214938879013,
0.025697385892271996,
-0.00043608099804259837,
-0.011151854880154133,
0.03653688728809357,
-0.02345181815326214,
0.06564483046531677,
-0.018403515219688416,
-0.06162644922733307,
0.025883108377456665,
0.010206352919340134,
-0.00848418939858675,
-0.04288525506854057,
-0.05284678936004639,
0.014477994292974472,
-0.03714470937848091,
0.016352113336324692,
-0.013760426081717014,
-0.05362345278263092,
-0.03636804595589638,
-0.009632298722863197,
0.09671131521463394,
0.015820268541574478,
-0.021341323852539062,
0.03525370731949806,
-0.00030707698897458613,
-0.04690363630652428,
0.019095757976174355,
0.022489432245492935,
-0.024853186681866646,
-0.046228278428316116,
0.04700494185090065,
0.0014372470322996378,
-0.06003935635089874,
-0.04666726291179657,
0.08374443650245667,
-0.041804682463407516,
0.05662879720330238,
0.017745040357112885,
0.026051947847008705,
-0.00839976966381073,
0.012114239856600761,
-0.02593376114964485,
-0.016495628282427788,
-0.05960037559270859,
-0.05416373908519745,
0.025579197332262993,
-0.03890063986182213,
0.01750866509974003,
-0.06388889998197556,
0.053049396723508835,
-0.03020540252327919,
-0.045586686581373215,
0.018285326659679413,
0.012274637818336487,
-0.0008463084232062101,
-0.009986861608922482,
-0.03005344606935978,
0.008340675383806229,
0.009117337875068188,
0.04815305024385452,
0.034190017729997635,
0.03104959987103939,
-0.00568989384919405,
0.004984988830983639,
0.00033530485234223306,
0.0061964127235114574,
-0.00496388366445899,
0.06429411470890045,
0.01153174415230751,
-0.04805174469947815,
0.028601426631212234,
0.0001708181807771325,
0.05808081850409508,
0.0004007302050013095,
0.056088510900735855,
-0.07935460656881332,
-0.07901692390441895,
-0.008982266299426556,
0.02934432029724121,
-0.06041080504655838,
-0.02102052792906761,
0.0505843386054039,
-0.02768969163298607,
-0.027216941118240356,
-0.0026191240176558495,
0.05561576038599014,
0.027959834784269333,
-0.028770266100764275,
-0.012992206029593945,
0.02763904072344303,
-0.042378734797239304,
-0.03839412331581116,
-0.0256129652261734,
-0.03292372077703476,
-0.03957599774003029,
0.03883310407400131,
0.04052150249481201,
0.0029525822028517723,
-0.0232829786837101,
-0.03977860510349274,
0.0035287472419440746,
-0.04690363630652428,
-0.03314321115612984,
0.03407182916998863,
-0.03494979441165924,
0.051496073603630066,
0.008264698088169098,
0.03984614089131355,
0.0022856658324599266,
0.020969877019524574,
-0.032011985778808594,
-0.016428092494606972,
-0.015229330398142338,
0.04210859164595604,
0.006069783121347427,
-0.007656875066459179,
-0.006500324234366417,
-0.014317597262561321,
0.02377261407673359,
-0.008074752986431122,
0.0007782449829392135,
0.03950846195220947,
-0.015567010268568993,
-0.018420398235321045,
0.006424346473067999,
-0.017390476539731026,
0.012460361234843731,
0.028567658737301826,
-0.01078884955495596,
-0.04595813527703285,
0.000714402471203357,
0.041331931948661804,
0.004206215962767601,
0.01203826256096363,
0.014064337126910686,
0.021510163322091103,
-0.030306706205010414,
0.024988258257508278,
-0.025038911029696465,
0.004159785341471434,
0.05551445484161377,
-0.010552474297583103,
-0.0008104300359264016,
-0.007306532934308052,
-0.01796453259885311,
-0.003615277586504817,
-0.07584274560213089,
-0.03417313098907471,
0.007905913516879082,
0.01640276610851288,
-0.021797191351652145,
-0.008256255649030209,
-0.024177828803658485,
0.01002062950283289,
0.009522552601993084,
-0.025359705090522766,
-0.002017633058130741,
0.0005445076385512948,
0.0026402289513498545,
-0.0075429086573421955,
-0.024734999984502792,
0.017019029706716537,
0.049469999969005585,
-0.027740344405174255,
-0.014790347777307034,
0.011362903751432896,
-0.033176977187395096,
0.033531542867422104,
-0.028635194525122643,
0.04801797866821289,
-0.0746270939707756,
-0.020919224247336388,
0.03788760304450989,
-0.06726568937301636,
0.07138537615537643,
0.03903571143746376,
-0.02714940533041954,
-0.02326609566807747,
0.010240120813250542,
-0.006808456499129534,
0.0024713894817978144,
0.007348742801696062,
0.04497886449098587,
0.034038059413433075,
-0.004334956407546997,
0.03734731674194336,
-0.024650579318404198,
-0.021104948595166206,
0.04612697660923004,
-0.03229901194572449,
0.006719815544784069,
-0.0461607426404953,
0.03191068023443222,
0.007787725888192654,
0.020429590716958046,
0.032011985778808594,
0.006111992988735437,
0.00908356998115778,
-0.011244716122746468,
0.012350616045296192,
-0.009615414775907993,
0.023181675001978874,
0.06395643204450607,
-0.009286177344620228,
-0.03451080992817879,
0.04494509845972061,
0.013591586612164974,
0.01382796186953783,
0.020834805443882942,
0.027419548481702805,
0.07753113657236099,
-0.004702182486653328,
0.026254555210471153,
-0.004440481308847666,
0.05007782205939293,
-0.008796542882919312,
-0.025528544560074806,
0.0156007781624794,
-0.05142853781580925,
0.05750676244497299,
0.05044926702976227,
-0.02716629020869732,
0.06679294258356094,
-0.013456515036523342,
-0.007838377729058266,
0.04869333654642105,
-0.021138716489076614,
0.016605373471975327,
0.03219771012663841,
-0.062335576862096786,
-0.03687456622719765,
-0.06736699491739273,
-0.06750206649303436,
-0.0227595753967762,
0.027959834784269333,
-0.02124002017080784,
0.04055526852607727,
0.010670661926269531,
-0.023485586047172546,
-0.05109085887670517,
-0.030931411311030388,
0.0406903401017189,
-0.051833752542734146,
0.04190598428249359,
0.009733602404594421,
-0.019315248355269432,
-0.009260850958526134,
0.024042757228016853,
0.024701232090592384,
0.02085168845951557,
-0.025849340483546257,
-0.04359438270330429,
0.02021009847521782,
0.024549275636672974,
0.0062386225908994675,
-0.009708276018500328,
0.04440481215715408,
0.010940805077552795,
0.027200058102607727,
0.025258401408791542,
0.023029720410704613,
-0.05308316648006439,
-0.019467204809188843,
0.011692141182720661,
-0.04220989719033241,
-0.027875415980815887,
0.020936109125614166,
0.04886217787861824,
0.023468703031539917,
-0.07726099342107773,
-0.010214795358479023,
-0.012755830772221088,
-0.005537938326597214,
-0.04406713321805,
-0.005250911228358746,
-0.05477156117558479,
0.07482970505952835,
-0.01601443439722061,
-0.047410156577825546,
-0.033818569034338,
-0.008864078670740128,
-0.011118086986243725,
-0.0025494778528809547,
-0.0040331557393074036,
0.0356251522898674,
-0.023384282365441322,
0.006002247333526611,
0.020936109125614166,
0.015085817314684391,
0.01593845710158348,
-0.003898083930835128,
-0.097791887819767,
-0.08212357759475708,
-0.015043606981635094,
-0.0345783457159996,
-0.016073528677225113,
0.025427240878343582,
0.05176621675491333,
0.0003176294849254191,
0.03126909211277962,
0.04497886449098587,
0.03461211547255516,
0.007243218366056681,
-0.0023320966865867376,
-0.014714369550347328,
0.0830690786242485,
-0.05318446829915047,
0.020649081096053123,
-0.030154749751091003,
-0.08286646753549576,
0.03260292485356331,
-0.04170337691903114,
0.016858631744980812,
-0.08158329129219055,
-0.03954223170876503,
0.0227595753967762,
-0.013194813393056393,
-0.04690363630652428,
-0.009573204442858696,
0.042378734797239304,
-0.03305879235267639,
-0.02208421751856804,
-0.008712122216820717,
-0.0455191507935524,
-0.003184736706316471,
0.02801048755645752,
-0.006550976075232029,
0.03052619658410549,
-0.06098485738039017,
-0.04322293400764465,
0.0155416838824749,
0.0025178203359246254,
-0.0022096880711615086,
-0.007006842643022537,
0.06949437409639359,
0.023198559880256653,
-0.0767207071185112,
0.0015807605814188719,
-0.045249007642269135,
0.05757429823279381,
0.011886307038366795,
-0.008437758311629295,
0.04987521469593048,
0.04258134216070175,
0.050145357847213745,
-0.024903839454054832,
0.041838448494672775,
-0.03883310407400131,
-0.06534092128276825,
0.07185813039541245,
0.02088545635342598,
0.009750486351549625,
-0.0016472411807626486,
-0.016909284517169,
0.04781537130475044,
-0.029749535024166107,
-0.018943801522254944,
0.004491133149713278,
0.07354652136564255,
-0.0057532088831067085,
-0.038630496710538864,
0.02426224760711193,
-0.004904789850115776,
0.026187019422650337,
-0.04714001342654228,
-0.002216019667685032,
-0.05071941018104553,
0.006183749996125698,
-0.014030569233000278,
-0.021797191351652145,
-0.02785853110253811,
0.046093206852674484,
0.012696736492216587,
0.067873515188694,
0.01391238160431385,
-0.05912762135267258,
-0.02206733450293541,
0.024498624727129936,
-0.0010847942903637886,
-0.03196133300662041,
-0.05713531747460365,
0.009969977661967278,
-0.018555469810962677,
0.027368897572159767,
-0.04663349315524101,
-0.0022350139915943146,
-0.009522552601993084,
-0.014494878239929676
] |
10,071 | sentence_transformers.SentenceTransformer | push_to_hub |
Uploads all elements of this Sentence Transformer to a new HuggingFace Hub repository.
:param repo_id: Repository name for your model in the Hub, including the user or organization.
:param token: An authentication token (See https://huggingface.co/settings/token)
:param private: Set to true, for hosting a private model
:param safe_serialization: If true, save the model using safetensors. If false, save the model the traditional PyTorch way
:param commit_message: Message to commit while pushing.
:param local_model_path: Path of the model locally. If set, this file path will be uploaded. Otherwise, the current model will be uploaded
:param exist_ok: If true, saving to an existing repository is OK. If false, saving only to a new repository is possible
:param replace_model_card: If true, replace an existing model card in the hub with the automatically created model card
:param train_datasets: Datasets used to train the model. If set, the datasets will be added to the model card in the Hub.
:return: The url of the commit of your model in the repository on the Hugging Face Hub.
| def push_to_hub(
self,
repo_id: str,
token: Optional[str] = None,
private: Optional[bool] = None,
safe_serialization: bool = True,
commit_message: str = "Add new SentenceTransformer model.",
local_model_path: Optional[str] = None,
exist_ok: bool = False,
replace_model_card: bool = False,
train_datasets: Optional[List[str]] = None,
) -> str:
"""
Uploads all elements of this Sentence Transformer to a new HuggingFace Hub repository.
:param repo_id: Repository name for your model in the Hub, including the user or organization.
:param token: An authentication token (See https://huggingface.co/settings/token)
:param private: Set to true, for hosting a private model
:param safe_serialization: If true, save the model using safetensors. If false, save the model the traditional PyTorch way
:param commit_message: Message to commit while pushing.
:param local_model_path: Path of the model locally. If set, this file path will be uploaded. Otherwise, the current model will be uploaded
:param exist_ok: If true, saving to an existing repository is OK. If false, saving only to a new repository is possible
:param replace_model_card: If true, replace an existing model card in the hub with the automatically created model card
:param train_datasets: Datasets used to train the model. If set, the datasets will be added to the model card in the Hub.
:return: The url of the commit of your model in the repository on the Hugging Face Hub.
"""
api = HfApi(token=token)
repo_url = api.create_repo(
repo_id=repo_id,
private=private,
repo_type=None,
exist_ok=exist_ok,
)
repo_id = repo_url.repo_id # Update the repo_id in case the old repo_id didn't contain a user or organization
if local_model_path:
folder_url = api.upload_folder(
repo_id=repo_id, folder_path=local_model_path, commit_message=commit_message
)
else:
with tempfile.TemporaryDirectory() as tmp_dir:
create_model_card = replace_model_card or not os.path.exists(os.path.join(tmp_dir, "README.md"))
self.save(
tmp_dir,
model_name=repo_url.repo_id,
create_model_card=create_model_card,
train_datasets=train_datasets,
safe_serialization=safe_serialization,
)
folder_url = api.upload_folder(repo_id=repo_id, folder_path=tmp_dir, commit_message=commit_message)
refs = api.list_repo_refs(repo_id=repo_id)
for branch in refs.branches:
if branch.name == "main":
return f"https://huggingface.co/{repo_id}/commit/{branch.target_commit}"
# This isn't expected to ever be reached.
return folder_url
| (self, repo_id: str, token: Optional[str] = None, private: Optional[bool] = None, safe_serialization: bool = True, commit_message: str = 'Add new SentenceTransformer model.', local_model_path: Optional[str] = None, exist_ok: bool = False, replace_model_card: bool = False, train_datasets: Optional[List[str]] = None) -> str | [
-0.03424229472875595,
-0.06503930687904358,
-0.0966210812330246,
-0.004316175356507301,
0.012336031533777714,
-0.017982469871640205,
-0.03144778683781624,
0.06362291425466537,
0.00944103579968214,
0.0005903638084419072,
0.045822277665138245,
-0.017580518499016762,
-0.0017752783605828881,
0.014699879102408886,
-0.07326970994472504,
0.02032717689871788,
0.051794104278087616,
-0.014661598019301891,
0.03202200308442116,
-0.016460802406072617,
-0.01709243655204773,
-0.0418027825653553,
-0.013273914344608784,
0.012125486508011818,
0.028672419488430023,
-0.012326461263000965,
0.05037771165370941,
-0.0028997808694839478,
0.033782925456762314,
-0.010785653255879879,
-0.025973614305257797,
-0.022758016362786293,
-0.021073654294013977,
0.022911138832569122,
0.012690129689872265,
-0.02243262715637684,
0.023313090205192566,
0.022317785769701004,
-0.09187424182891846,
-0.050722237676382065,
-0.014326639473438263,
0.014355350285768509,
0.0829165056347847,
-0.0054358928464353085,
-0.007096328306943178,
0.010613389313220978,
-0.034720808267593384,
0.06477133929729462,
-0.02449979819357395,
0.01868109591305256,
-0.06695335358381271,
0.022298645228147507,
-0.019360583275556564,
0.02293027937412262,
-0.02543768100440502,
-0.03684540092945099,
0.016700057312846184,
0.02069084532558918,
-0.00858449935913086,
0.04651133716106415,
0.017637940123677254,
0.02551424317061901,
0.07024551182985306,
0.0641588494181633,
0.018987344577908516,
0.03973561152815819,
0.00868498720228672,
-0.019848665222525597,
-0.022681454196572304,
-0.005923974793404341,
-0.015886588022112846,
-0.029820848256349564,
0.05753624439239502,
0.07395876944065094,
0.02337050996720791,
0.025207996368408203,
0.03969733044505119,
0.011245024390518665,
0.019571127369999886,
0.051947228610515594,
0.054894860833883286,
-0.02603103592991829,
0.02178185246884823,
-0.03684540092945099,
-0.00868498720228672,
-0.018154732882976532,
0.06297213584184647,
-0.023772461339831352,
-0.03424229472875595,
-0.033706363290548325,
0.011752246879041195,
0.035065338015556335,
-0.0001601518742972985,
-0.0100965965539217,
0.06389088183641434,
-0.04413791745901108,
-0.018346138298511505,
0.0201740525662899,
-0.041994184255599976,
-0.025418540462851524,
-0.0605604387819767,
0.10427726805210114,
-0.0489995963871479,
0.0006370187038555741,
-0.03807038813829422,
-0.05466517433524132,
-0.01825043559074402,
-0.013331335969269276,
-0.04295120760798454,
-0.01614498347043991,
-0.020595142617821693,
0.03466338664293289,
0.0093740439042449,
0.009718572720885277,
0.020729126408696175,
-0.03156263008713722,
-0.014709449373185635,
-0.017331693321466446,
-0.015398506075143814,
-0.030012253671884537,
-0.03056732565164566,
0.017838915809988976,
-0.07342283427715302,
-0.06959474086761475,
0.013427037745714188,
0.019217029213905334,
0.09753981977701187,
-0.042415276169776917,
-0.012594427913427353,
-0.07675327360630035,
-0.03634774684906006,
0.01825043559074402,
0.009680291637778282,
0.002512186300009489,
-0.01959983818233013,
-0.02444237656891346,
-0.030261078849434853,
-0.03070130944252014,
0.019561557099223137,
0.04440588504076004,
0.013895979151129723,
-0.022624032571911812,
0.024404095485806465,
0.00636420538648963,
0.03230910748243332,
0.02134162187576294,
-0.009508026763796806,
-0.0749923512339592,
0.00868498720228672,
-0.0015192745486274362,
0.02126505970954895,
-0.04716211184859276,
-0.014623316936194897,
0.038816869258880615,
-0.007536558900028467,
0.013675863854587078,
-0.0007907405379228294,
0.009857340715825558,
-0.01601100154221058,
0.0908789411187172,
0.02025061473250389,
-0.020154912024736404,
0.08375868201255798,
0.08804614841938019,
-0.007737534120678902,
0.003598407842218876,
0.02090139128267765,
0.028710700571537018,
-0.0382043719291687,
0.04907615855336189,
0.028442734852433205,
0.033342693001031876,
-0.07606421411037445,
0.006790081039071083,
0.0367879793047905,
0.024404095485806465,
0.043295737355947495,
0.05730655789375305,
-0.020154912024736404,
0.009101292118430138,
-0.045171502977609634,
-0.006077098194509745,
0.017580518499016762,
-0.0009307052241638303,
-0.013953400775790215,
0.02394472435116768,
0.009493672288954258,
0.015197531320154667,
-0.005967040546238422,
-0.0037156431935727596,
-0.02227950468659401,
-0.039123114198446274,
0.030758731067180634,
-0.004158266354352236,
0.009244846180081367,
0.023676758632063866,
0.01070909108966589,
-0.004897566977888346,
-0.017494387924671173,
0.028002504259347916,
0.04390823096036911,
-0.037170786410570145,
0.07648530602455139,
-0.03830007463693619,
-0.04463557153940201,
0.01679576002061367,
-0.015140109695494175,
0.01866195537149906,
-0.005431107711046934,
-0.018212154507637024,
0.008206475526094437,
0.009799919091165066,
-0.03257707506418228,
0.07449469715356827,
0.043295737355947495,
-0.045822277665138245,
-0.0382043719291687,
0.018145162612199783,
0.01845141127705574,
-0.004340101033449173,
0.06324010342359543,
-0.016345959156751633,
-0.016259826719760895,
0.017331693321466446,
0.03741961345076561,
-0.052942533046007156,
0.048195697367191315,
-0.022528329864144325,
-0.003237131517380476,
-0.08858208358287811,
0.01903519406914711,
0.012383881956338882,
0.027447430416941643,
0.014297929592430592,
-0.043793387711048126,
0.015379365533590317,
0.0019104578532278538,
0.009924332611262798,
0.016116272658109665,
0.011924510821700096,
0.025629086419939995,
-0.03843405842781067,
-0.020863110199570656,
0.05703859403729439,
0.016259826719760895,
-0.01607799343764782,
0.005325835198163986,
0.010575108230113983,
-0.010402844287455082,
-0.0526362843811512,
-0.027715396136045456,
0.0468558631837368,
-0.05891435965895653,
0.004041031002998352,
0.03900827094912529,
-0.08184463530778885,
0.024691203609108925,
-0.04785116761922836,
0.024901747703552246,
-0.030624747276306152,
-0.06258932501077652,
-0.050722237676382065,
-0.018135592341423035,
0.06959474086761475,
-0.050722237676382065,
-0.047123830765485764,
-0.026949778199195862,
0.03906569257378578,
0.014977416023612022,
0.028653278946876526,
0.032194267958402634,
0.012632708065211773,
-0.023466212674975395,
-0.018489692360162735,
0.03508447855710983,
-0.050071462988853455,
-0.03776414319872856,
0.020059209316968918,
-0.002448783488944173,
0.04605196416378021,
0.003143821842968464,
-0.08153839409351349,
0.0627424493432045,
0.02926577441394329,
0.006191940978169441,
0.057421401143074036,
-0.017102006822824478,
-0.04306605085730553,
0.01743696630001068,
-0.06951817870140076,
-0.06733616441488266,
0.053899556398391724,
-0.028002504259347916,
0.024480657652020454,
-0.025322837755084038,
-0.033266130834817886,
-0.018834220245480537,
0.06718304008245468,
0.09195080399513245,
-0.03663485497236252,
-0.024978309869766235,
0.09401797503232956,
-0.018575822934508324,
-0.02582048997282982,
-0.014020392671227455,
-0.049918338656425476,
0.0008194512338377535,
-0.03357237949967384,
0.011340727098286152,
-0.02610759809613228,
-0.03973561152815819,
0.034491121768951416,
0.0691736489534378,
0.03251965343952179,
0.019264880567789078,
0.029725145548582077,
0.04647305607795715,
0.011063190177083015,
0.00933097768574953,
0.007857161574065685,
0.0346251055598259,
-0.001842270023189485,
0.010316711850464344,
0.006895353551954031,
0.0205568615347147,
-0.04046294838190079,
0.023389650508761406,
-0.029878269881010056,
-0.01888207159936428,
-0.009364473633468151,
0.03265363723039627,
0.035505566745996475,
0.08957738429307938,
-0.011618264019489288,
-0.028863824903964996,
0.013360045850276947,
-0.020212333649396896,
-0.0017609229544177651,
0.031543489545583725,
-0.016700057312846184,
-0.001624547177925706,
-0.013494029641151428,
-0.0040147132240235806,
0.060598719865083694,
0.05466517433524132,
0.05558391660451889,
-0.007378650363534689,
-0.006995840929448605,
0.004648740869015455,
0.014192656613886356,
0.005383256357163191,
0.03454854339361191,
0.022872857749462128,
0.006536469794809818,
0.013962971046566963,
0.023389650508761406,
-0.02863413840532303,
0.03722820803523064,
0.004466906655579805,
-0.05420580506324768,
-0.03711336478590965,
-0.041496533900499344,
-0.03650087118148804,
0.02076740749180317,
-0.02913179062306881,
-0.017781494185328484,
-0.005148785654455423,
0.05960341542959213,
-0.017934618517756462,
0.021513884887099266,
0.03791726753115654,
-0.005038728006184101,
-0.012852824293076992,
0.014891283586621284,
-0.038185231387615204,
0.04478869214653969,
-0.03250051289796829,
-0.005158355925232172,
-0.03056732565164566,
-0.013781136833131313,
0.021437322720885277,
0.03981217369437218,
0.03996529430150986,
0.012814543209969997,
0.05355502665042877,
-0.004715732764452696,
0.0922570526599884,
0.003761101746931672,
0.0158578772097826,
-0.00008575826359447092,
0.032117705792188644,
-0.042568400502204895,
-0.0016508653061464429,
0.00038729538209736347,
0.0010898103937506676,
-0.07235096395015717,
0.0016484727384522557,
0.013953400775790215,
-0.028308751061558723,
0.011331156827509403,
0.022088099271059036,
-0.025705648586153984,
0.026988059282302856,
0.011675684712827206,
-0.014824291691184044,
0.011905370280146599,
-0.022356066852808,
0.03271105885505676,
-0.011560842394828796,
0.0054215374402701855,
0.02134162187576294,
0.015341084450483322,
-0.07614077627658844,
-0.0007458800682798028,
-0.010450695641338825,
0.06209167465567589,
0.0035385938826948404,
-0.019054334610700607,
-0.07962434738874435,
0.014125664718449116,
-0.029686864465475082,
0.02978256717324257,
-0.0030433342326432467,
0.03418487310409546,
-0.052942533046007156,
0.08398836851119995,
-0.04520978406071663,
-0.001659239293076098,
0.024384954944252968,
-0.01052725687623024,
0.03439541906118393,
-0.03020365722477436,
-0.028806403279304504,
0.02076740749180317,
0.011484280228614807,
0.017972899600863457,
-0.0032969454769045115,
-0.009091721847653389,
-0.037515316158533096,
0.04727695509791374,
-0.03479737043380737,
-0.03627118468284607,
0.013695004396140575,
-0.04505665972828865,
0.05053083226084709,
-0.004883211571723223,
-0.031045837327837944,
0.0075700548477470875,
-0.049650371074676514,
0.020939670503139496,
0.06825491040945053,
0.05370815098285675,
-0.009594159200787544,
0.01146513968706131,
0.01399168185889721,
-0.08184463530778885,
0.058799516409635544,
0.015570770017802715,
-0.020365457981824875,
-0.0019463462522253394,
0.011599123477935791,
0.05646437779068947,
0.0227197352796793,
0.049650371074676514,
0.028136486187577248,
-0.0461285263299942,
0.03596493974328041,
-0.06810178607702255,
-0.06519243121147156,
-0.02329394966363907,
0.03856804221868515,
-0.022394346073269844,
0.030663028359413147,
0.023810740560293198,
-0.02394472435116768,
-0.016671346500515938,
0.01910218596458435,
-0.023045122623443604,
-0.08513680100440979,
-0.04268324375152588,
-0.007235096767544746,
-0.010843074880540371,
-0.01135986763983965,
0.04796601086854935,
-0.0131590710952878,
0.01560905110090971,
0.014230937696993351,
-0.024116989225149155,
0.05003318190574646,
-0.025590805336833,
-0.03927623853087425,
-0.00781888049095869,
-0.03049076534807682,
-0.0028926031664013863,
-0.027715396136045456,
0.0017788672121241689,
-0.046894144266843796,
0.04563087597489357,
-0.06691507250070572,
-0.08115558326244354,
0.027083761990070343,
-0.03006967343389988,
0.02666267193853855,
-0.01666177622973919,
0.02386816218495369,
-0.008417020551860332,
0.028366172686219215,
0.005282768979668617,
-0.07028379291296005,
-0.0030816153157502413,
-0.03452940285205841,
-0.027485711500048637,
-0.04723867401480675,
-0.004859286360442638,
0.035065338015556335,
0.006120164413005114,
0.007321228738874197,
0.0031892803963273764,
-0.019657259806990623,
0.03588837757706642,
0.022145520895719528,
-0.027447430416941643,
0.056349534541368484,
0.015015697106719017,
0.004141518846154213,
-0.008622780442237854,
-0.037247348576784134,
-0.012192477472126484,
0.04800429195165634,
0.059871383011341095,
-0.01305379904806614,
-0.0038185231387615204,
-0.04283636435866356,
0.044673852622509,
0.012058494612574577,
-0.0021879947744309902,
-0.015877017751336098,
-0.0324430912733078,
-0.042491838335990906,
-0.03330441191792488,
-0.09861169010400772,
-0.06978614628314972,
-0.11047878116369247,
-0.022164661437273026,
-0.02327480912208557,
0.03295988589525223,
0.031620051711797714,
0.03049076534807682,
-0.009943473152816296,
-0.03885515034198761,
-0.06350807100534439,
0.037094224244356155,
0.008885961957275867,
0.00692406389862299,
0.05183238536119461,
-0.010680381208658218,
-0.04283636435866356,
-0.011627834290266037,
-0.008225616067647934,
0.005976610817015171,
-0.03332355245947838,
0.017130717635154724,
-0.000791936821769923,
0.018212154507637024,
0.02430839277803898,
0.052598003298044205,
-0.013178211636841297,
-0.022183801978826523,
-0.04172622039914131,
-0.0230642631649971,
-0.0033280488569289446,
0.06530727446079254,
0.0005769056733697653,
-0.00015028257621452212,
-0.009464961476624012,
-0.023179106414318085,
-0.026509547606110573,
0.01564733125269413,
-0.0030840078834444284,
0.036156341433525085,
-0.005196637008339167,
0.030261078849434853,
-0.012422163039445877,
0.0627041682600975,
-0.004088882356882095,
-0.000073496405093465,
0.045094940811395645,
0.05083708092570305,
-0.050415992736816406,
0.02853843756020069,
-0.010804793797433376,
0.020308036357164383,
0.01008702628314495,
-0.012383881956338882,
0.043640267103910446,
-0.04662618041038513,
-0.032845042645931244,
-0.04815741628408432,
0.00009667431731941178,
-0.052598003298044205,
0.0006932438118383288,
0.009101292118430138,
-0.02155216597020626,
0.015168820507824421,
0.02999311313033104,
-0.03843405842781067,
-0.051870666444301605,
0.02566736750304699,
0.014116094447672367,
0.010431555099785328,
-0.024557219818234444,
0.01614498347043991,
-0.01722642034292221,
-0.0497269332408905,
-0.028442734852433205,
-0.00755091430619359,
0.029591161757707596,
0.00434249360114336,
0.05650265887379646,
-0.017647510394454002,
0.06618773937225342,
-0.03728562965989113,
-0.05948857218027115,
0.0016233508940786123,
-0.03843405842781067,
-0.0027897232212126255,
0.014872143045067787,
-0.053019095212221146,
-0.019226599484682083,
0.0067374445497989655,
-0.01153213158249855,
-0.030624747276306152,
0.04984177649021149,
0.0026677027344703674,
0.07583453506231308,
0.014049103483557701,
-0.005603371653705835,
0.01592486910521984,
0.0227005947381258,
-0.03554384782910347,
-0.010441125370562077,
-0.012508295476436615,
-0.022758016362786293,
-0.029744286090135574,
0.0008116754470393062,
0.029016949236392975,
-0.009005590341985226,
-0.003103148192167282,
0.0034309288021177053,
-0.03629032522439957,
0.01988694630563259,
0.051373016089200974,
0.047698043286800385,
-0.016546934843063354,
0.025035731494426727,
0.02407870814204216,
0.02775367721915245,
-0.005713429301977158,
0.03397433087229729,
-0.019150037318468094,
0.011914940550923347,
-0.009551092982292175,
0.08536648750305176,
0.038606323301792145,
-0.029112650081515312,
0.05206207185983658,
0.025935333222150803,
-0.03093099594116211,
-0.048119135200977325,
0.007421716116368771,
-0.03202200308442116,
-0.026069317013025284,
0.004612852819263935,
-0.04275980591773987,
0.008091632276773453,
-0.020805688574910164,
0.07648530602455139,
0.023198246955871582,
-0.009110862389206886,
0.031026696786284447,
-0.013101650401949883,
0.023179106414318085,
-0.011780957691371441,
0.027217743918299675,
0.008560573682188988,
0.023159965872764587,
0.009412324987351894,
0.023408791050314903,
0.015972720459103584,
-0.03473994880914688,
-0.0131590710952878,
0.0025504673831164837,
-0.01817387342453003,
-0.06457993388175964,
0.001297962968237698,
-0.03906569257378578,
-0.019848665222525597,
-0.08888833224773407,
-0.03958248719573021,
-0.049573808908462524,
0.0691736489534378,
0.023255668580532074,
-0.04291292652487755,
-0.0028997808694839478,
-0.0070245517417788506,
0.01817387342453003,
-0.03872116655111313,
0.02515057474374771,
-0.03345753625035286,
-0.07326970994472504,
-0.026566969230771065,
-0.05278940871357918,
-0.004864071495831013,
-0.011905370280146599,
0.05470345541834831,
-0.00620151124894619,
0.001303944387473166,
0.0800071507692337,
-0.0022430235985666513,
-0.004306605085730553,
0.01961897872388363,
-0.057344838976860046,
0.051143329590559006,
0.018929922953248024,
0.03236652910709381,
-0.06591977179050446,
0.06339322775602341,
0.023255668580532074,
0.04383166879415512,
-0.026432985439896584,
0.014508474618196487,
0.03257707506418228,
-0.02191583439707756,
0.00940753985196352,
0.023198246955871582,
-0.04245355725288391,
0.016164124011993408,
0.014623316936194897,
-0.009359688498079777,
-0.03540986403822899,
0.05091364309191704,
-0.07702124118804932,
-0.03372550383210182,
-0.0929461121559143,
0.08689772337675095,
-0.015484638512134552,
0.07085800915956497,
-0.030797012150287628,
-0.040769197046756744,
-0.011312016285955906,
0.03833835572004318,
0.005789991468191147,
-0.011618264019489288,
-0.010154018178582191,
0.005531595088541508,
-0.03981217369437218,
-0.017570948228240013,
0.02040373906493187,
-0.06178542971611023,
0.0015420039417222142,
0.029533741995692253,
-0.04658789932727814,
0.06392916291952133,
-0.0649244636297226,
0.037515316158533096,
0.05340190231800079,
0.04850194603204727,
0.031409505754709244
] |
10,072 | torch.nn.modules.module | register_backward_hook | Register a backward hook on the module.
This function is deprecated in favor of :meth:`~torch.nn.Module.register_full_backward_hook` and
the behavior of this function will change in future versions.
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
| def register_backward_hook(
self, hook: Callable[['Module', _grad_t, _grad_t], Union[None, _grad_t]]
) -> RemovableHandle:
r"""Register a backward hook on the module.
This function is deprecated in favor of :meth:`~torch.nn.Module.register_full_backward_hook` and
the behavior of this function will change in future versions.
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
"""
if self._is_full_backward_hook is True:
raise RuntimeError("Cannot use both regular backward hooks and full backward hooks on a "
"single Module. Please use only one of them.")
self._is_full_backward_hook = False
handle = hooks.RemovableHandle(self._backward_hooks)
self._backward_hooks[handle.id] = hook
return handle
| (self, hook: Callable[[torch.nn.modules.module.Module, Union[Tuple[torch.Tensor, ...], torch.Tensor], Union[Tuple[torch.Tensor, ...], torch.Tensor]], Union[NoneType, Tuple[torch.Tensor, ...], torch.Tensor]]) -> torch.utils.hooks.RemovableHandle | [
-0.012102481909096241,
0.02561812847852707,
-0.0739918202161789,
0.04757652431726456,
-0.024494843557476997,
0.03185054287314415,
-0.02375202625989914,
0.08645665645599365,
-0.01397764217108488,
-0.0597514770925045,
0.02804587222635746,
-0.05982394516468048,
-0.01803595945239067,
-0.04036576300859451,
-0.006671764887869358,
0.05047532171010971,
-0.0360356830060482,
0.02194027788937092,
0.005498657468706369,
-0.020762640982866287,
0.009248977527022362,
0.006440767087042332,
0.015825625509023666,
-0.012600713409483433,
-0.024784723296761513,
0.013551881536841393,
-0.032031718641519547,
0.048953454941511154,
-0.013479411602020264,
0.02563624642789364,
-0.0009211610304191709,
-0.07855743169784546,
0.041489049792289734,
-0.016568442806601524,
0.014684224501252174,
-0.006250533275306225,
0.01156801637262106,
0.04869980737566948,
-0.03250277414917946,
-0.004823781084269285,
0.07359323650598526,
-0.02422308176755905,
0.02503836899995804,
0.022284509614109993,
0.04971438646316528,
0.037793081253767014,
-0.026668943464756012,
-0.007962635718286037,
0.00840198528021574,
0.005163484252989292,
0.014874457381665707,
-0.09892148524522781,
-0.017030438408255577,
0.018824070692062378,
-0.0027017705142498016,
-0.03418770059943199,
0.023824496194720268,
0.012093422934412956,
-0.010118616744875908,
0.03668791428208351,
0.05170731246471405,
-0.010861434042453766,
0.016423502936959267,
-0.008397456258535385,
0.04181516170501709,
-0.008990803733468056,
0.010698377154767513,
-0.037104614078998566,
0.025763068348169327,
0.02690446935594082,
-0.0724337175488472,
-0.001388252479955554,
0.05543951317667961,
0.022085217759013176,
0.028208930045366287,
-0.02371579222381115,
0.029096685349941254,
-0.024186845868825912,
-0.026632707566022873,
0.021360518410801888,
-0.0033721174113452435,
-0.000009244518878404051,
-0.004282521083950996,
0.061345815658569336,
-0.025382600724697113,
-0.03491239994764328,
0.048373691737651825,
-0.053301651030778885,
-0.02498401701450348,
-0.02065393701195717,
-0.07493393123149872,
-0.06721588224172592,
0.021432988345623016,
-0.011287195608019829,
0.043228328227996826,
-0.0883408710360527,
-0.002034820383414626,
0.04543866217136383,
0.0016554854810237885,
-0.01878783479332924,
-0.0206358190625906,
-0.0001916490582516417,
0.009556975215673447,
0.03183242678642273,
0.05109131708741188,
-0.04369938001036644,
-0.030038796365261078,
-0.03663356229662895,
-0.06380979716777802,
-0.052613187581300735,
0.023480264469981194,
-0.05685267969965935,
0.05725126340985298,
0.017256908118724823,
-0.004841898567974567,
0.03676038235425949,
-0.012999298050999641,
-0.012039070948958397,
0.027737874537706375,
0.001359943998977542,
0.0026270358357578516,
-0.04812004789710045,
-0.06286768615245819,
-0.03569145128130913,
-0.0011731074191629887,
0.0037367320619523525,
0.053953878581523895,
0.07015091180801392,
0.028353869915008545,
0.005254071671515703,
-0.01673150062561035,
0.060766056180000305,
-0.10153040289878845,
-0.046417005360126495,
0.019838649779558182,
-0.00747799314558506,
-0.00007204532448668033,
0.010009911842644215,
-0.0015830155462026596,
-0.027230584993958473,
-0.016495972871780396,
-0.028897393494844437,
-0.008112105540931225,
0.04243115708231926,
-0.01432187482714653,
-0.009611327201128006,
-0.05435246601700783,
0.07913719117641449,
0.015046574175357819,
-0.02938656508922577,
-0.0023462148383259773,
-0.010825199075043201,
0.03112584538757801,
0.017836667597293854,
-0.03938741981983185,
0.08464490622282028,
-0.06047617644071579,
0.08522466570138931,
-0.009221801534295082,
-0.011604251340031624,
0.03232159838080406,
-0.004164757672697306,
-0.027103763073682785,
-0.0033472059294581413,
0.023878850042819977,
-0.019095832481980324,
0.08645665645599365,
-0.032702066004276276,
0.013986701145768166,
0.08174610882997513,
0.010172969661653042,
0.001656617852859199,
0.04627206549048424,
0.09268906712532043,
-0.03313688561320305,
0.08863075077533722,
0.0336441770195961,
-0.05109131708741188,
0.0005367305711843073,
0.02119746059179306,
0.0808039978146553,
-0.0011040344834327698,
0.013542822562158108,
-0.08623924106359482,
-0.025201426818966866,
-0.04235868901014328,
-0.025201426818966866,
-0.00038895983016118407,
0.004074170254170895,
0.04112669825553894,
0.008347632363438606,
0.01741090603172779,
0.08536960184574127,
-0.04688806086778641,
0.021722868084907532,
-0.0024458609987050295,
-0.02692258730530739,
0.04069187864661217,
0.017854785546660423,
-0.027810344472527504,
0.05659903213381767,
0.01675867661833763,
-0.00037820255965925753,
0.024784723296761513,
-0.01339788269251585,
-0.013388823717832565,
0.04543866217136383,
0.010807082056999207,
-0.03735826164484024,
-0.01307176798582077,
0.06228792294859886,
0.004887192510068417,
-0.04822875186800957,
0.05489598959684372,
-0.0224294513463974,
-0.020980050787329674,
-0.0047060176730155945,
0.03855401650071144,
0.026614589616656303,
0.004801134578883648,
0.022067099809646606,
-0.003886201186105609,
-0.014521166682243347,
0.001819675206206739,
-0.035202279686927795,
0.017972547560930252,
0.0018683660309761763,
-0.01811748743057251,
0.053301651030778885,
-0.0012512389803305268,
0.04123540222644806,
0.050910141319036484,
-0.07323088496923447,
-0.037140849977731705,
0.09841419756412506,
0.013243883848190308,
-0.01748337596654892,
0.014557401649653912,
0.06605636328458786,
0.04188763350248337,
0.06438955664634705,
0.01860666088759899,
0.029477152973413467,
0.03917000815272331,
0.04326456040143967,
0.047648992389440536,
-0.017275024205446243,
-0.023951319977641106,
0.013841761276125908,
0.0127547113224864,
-0.022085217759013176,
-0.006372826639562845,
0.010417555458843708,
0.03166937083005905,
-0.0460546538233757,
-0.029531504958868027,
-0.013162354938685894,
-0.008270633406937122,
-0.04797510802745819,
-0.0064815315417945385,
-0.013669644482433796,
0.021414870396256447,
0.03136137127876282,
0.000704883539583534,
-0.006472472567111254,
-0.04688806086778641,
0.04170645773410797,
-0.004128522705286741,
0.04355444014072418,
0.05815713852643967,
0.044605255126953125,
-0.08051411807537079,
-0.04369938001036644,
-0.006300356704741716,
-0.009729091078042984,
0.0001312102540396154,
0.03507545590400696,
-0.013660586439073086,
0.026034830138087273,
-0.001319179660640657,
0.030999021604657173,
-0.03982223942875862,
0.009117625653743744,
0.019766179844737053,
0.001306723803281784,
0.02005605958402157,
-0.02935033105313778,
0.06449826061725616,
0.024639783427119255,
-0.024639783427119255,
0.030165618285536766,
-0.009855913929641247,
0.017066674306988716,
0.054461169987916946,
0.03496675193309784,
0.026668943464756012,
-0.020780758932232857,
0.022628743201494217,
0.075006403028965,
-0.03945988789200783,
0.007188113406300545,
-0.00547148147597909,
-0.013488469645380974,
0.07725296914577484,
0.0016430297400802374,
-0.07000597566366196,
0.040909286588430405,
-0.03668791428208351,
-0.04554736614227295,
0.007260583341121674,
-0.006667235866189003,
-0.02369767427444458,
-0.0037707022856920958,
-0.006608353927731514,
0.00373899657279253,
-0.015771273523569107,
-0.0002714792499318719,
-0.002457184251397848,
-0.012328950688242912,
0.009538857266306877,
-0.017818549647927284,
-0.012184010818600655,
0.01992923766374588,
0.03815542906522751,
-0.0156716275960207,
0.02920539118349552,
-0.00391564192250371,
-0.006223357282578945,
0.012600713409483433,
-0.006726117338985205,
-0.06359238177537918,
-0.030401146039366722,
0.012781888246536255,
-0.005888183601200581,
-0.033934056758880615,
-0.03252089023590088,
0.00418740464374423,
-0.051997192203998566,
0.02567248046398163,
0.01559915766119957,
-0.006187122315168381,
0.006386414635926485,
-0.022936740890145302,
0.018950892612338066,
-0.008270633406937122,
0.041525281965732574,
-0.031071491539478302,
0.044025495648384094,
0.03661544248461723,
0.05739620327949524,
0.01522774901241064,
-0.04931580275297165,
-0.08906557410955429,
0.02752046473324299,
0.006775940768420696,
-0.09935630857944489,
-0.010009911842644215,
0.036561090499162674,
0.02685011737048626,
-0.05540327727794647,
-0.06500554829835892,
-0.010634965263307095,
-0.04721417278051376,
0.07018715143203735,
0.024132493883371353,
0.009602269157767296,
-0.028208930045366287,
-0.0032249127980321646,
-0.014901634305715561,
-0.022139569744467735,
0.027284936979413033,
-0.0005596605478785932,
0.04851863533258438,
0.05620044842362404,
-0.04116293415427208,
-0.01622421108186245,
0.06116463989019394,
0.013153296895325184,
0.03181431069970131,
-0.01179448515176773,
-0.008030576631426811,
-0.00963850412517786,
-0.010037088766694069,
-0.03348111733794212,
0.0446777269244194,
-0.0011617839336395264,
-0.059570301324129105,
-0.009135743603110313,
0.027647286653518677,
-0.04098175838589668,
0.04424290731549263,
0.014285639859735966,
-0.041416577994823456,
0.006871057208627462,
-0.07011467963457108,
0.004531636834144592,
-0.00019858466112054884,
-0.0161789171397686,
0.04663441330194473,
-0.003451381577178836,
0.005575656890869141,
0.029603974893689156,
-0.026958823204040527,
-0.003795613767579198,
-0.03306441754102707,
0.05678020790219307,
-0.012618830427527428,
0.06054864451289177,
0.023552734404802322,
-0.00902703870087862,
-0.02607106603682041,
0.009883089922368526,
-0.06598389148712158,
-0.02806399017572403,
0.056345388293266296,
0.01876971870660782,
0.005643597804009914,
0.04235868901014328,
-0.051200021058321,
-0.0050819553434848785,
0.011477428488433361,
-0.003403823124244809,
-0.03476746007800102,
0.011685780249536037,
-0.08964533358812332,
0.03974976763129234,
-0.028172694146633148,
0.01940383017063141,
-0.06862904876470566,
0.061490755528211594,
0.038445308804512024,
-0.017157262191176414,
0.05366399884223938,
-0.018950892612338066,
-0.0323578342795372,
0.004508989863097668,
-0.005906301084905863,
0.019041480496525764,
-0.010988256894052029,
0.012972121126949787,
-0.006060299929231405,
-0.012265539728105068,
0.010182028636336327,
-0.023552734404802322,
0.01873348280787468,
-0.009710974059998989,
-0.026288475841283798,
-0.026687059551477432,
0.010490025393664837,
-0.021559810265898705,
-0.018507014960050583,
0.005385423544794321,
0.0373220257461071,
0.051489900797605515,
0.024114375934004784,
-0.10732799768447876,
-0.09732715040445328,
-0.07594851404428482,
0.030962787568569183,
0.060113824903964996,
-0.040329527109861374,
0.011957542039453983,
-0.001844586804509163,
0.006313944701105356,
-0.022139569744467735,
-0.02306356281042099,
0.06511425226926804,
-0.06036747246980667,
-0.03556463122367859,
0.0057070087641477585,
0.009108567610383034,
-0.013660586439073086,
0.045148782432079315,
-0.030835965648293495,
-0.023824496194720268,
0.014493990689516068,
0.019802413880825043,
0.01873348280787468,
0.032176658511161804,
-0.04993179813027382,
-0.02369767427444458,
-0.038952600210905075,
-0.0273936428129673,
0.02987573854625225,
-0.006400002632290125,
0.023534616455435753,
-0.018488897010684013,
0.024820959195494652,
0.01462987158447504,
0.050692733377218246,
-0.0446777269244194,
-0.025237660855054855,
-0.01152272243052721,
0.0028648278675973415,
0.019023362547159195,
-0.03121643140912056,
-0.0020178351551294327,
0.007654638960957527,
0.035184163600206375,
0.011359665542840958,
-0.017338436096906662,
-0.052721891552209854,
-0.05351905897259712,
-0.04098175838589668,
0.01397764217108488,
-0.04619959369301796,
-0.02561812847852707,
0.04308338835835457,
-0.040836818516254425,
0.011287195608019829,
-0.006966174114495516,
0.012700359337031841,
0.03349923714995384,
0.03735826164484024,
-0.04373561590909958,
0.007636521477252245,
0.01747431792318821,
0.017284084111452103,
0.015082809142768383,
-0.00902703870087862,
-0.0015909419162198901,
-0.005897242575883865,
0.0054533639922738075,
-0.08073152601718903,
0.05366399884223938,
-0.010952021926641464,
0.0025930656120181084,
-0.02237509749829769,
0.007396464701741934,
-0.047721464186906815,
0.009502622298896313,
0.040909286588430405,
-0.007505169603973627,
-0.06920880824327469,
0.0007037511677481234,
0.002670064801350236,
0.05482351779937744,
0.026578355580568314,
-0.04721417278051376,
-0.05572939291596413,
-0.01878783479332924,
0.024078141897916794,
-0.03686909005045891,
-0.03482181206345558,
-0.013823643326759338,
-0.040329527109861374,
-0.038916364312171936,
0.011232842691242695,
-0.007881107740104198,
-0.044025495648384094,
-0.08587689697742462,
0.047141704708337784,
0.020961934700608253,
0.001693985192105174,
-0.0049913679249584675,
0.03159689903259277,
0.01241953857243061,
0.03610815480351448,
0.017628315836191177,
-0.023915084078907967,
-0.08413761854171753,
0.023915084078907967,
-0.016378208994865417,
0.02877057157456875,
-0.012374244630336761,
-0.007188113406300545,
0.07862989604473114,
-0.023933202028274536,
-0.02483907714486122,
0.023444030433893204,
0.03322747349739075,
-0.0256000105291605,
0.005584715865552425,
-0.042684800922870636,
-0.006993350572884083,
0.009285212494432926,
0.07645580172538757,
-0.030908435583114624,
0.014149758033454418,
-0.03804672509431839,
-0.04435161128640175,
0.021505458280444145,
-0.025128956884145737,
-0.008211751468479633,
0.004316491540521383,
-0.008365750312805176,
0.008986273780465126,
0.09138461202383041,
0.015997741371393204,
-0.022828035056591034,
-0.017320318147540092,
0.01808125339448452,
0.02126993052661419,
-0.1006607636809349,
0.04424290731549263,
0.0194400642067194,
-0.11305312812328339,
0.035782039165496826,
0.017211614176630974,
0.05493222549557686,
0.05670773983001709,
-0.010082381777465343,
0.0013203119160607457,
-0.040873054414987564,
-0.02491154707968235,
-0.010499084368348122,
0.01184883713722229,
-0.04554736614227295,
-0.033897820860147476,
-0.05431623011827469,
-0.060258764773607254,
-0.02936844900250435,
0.027828462421894073,
0.03255712613463402,
-0.009271624498069286,
-0.00909497868269682,
0.008664689026772976,
-0.029078569263219833,
0.02108875662088394,
0.04199633747339249,
0.004311962053179741,
-0.006997880060225725,
0.0510188452899456,
0.020943816751241684,
0.007980753667652607,
-0.0549684576690197,
-0.007772402372211218,
-0.0043617854826152325,
0.01559915766119957,
0.021378636360168457,
-0.07319465279579163,
0.006159945856779814,
0.054569873958826065,
-0.016024919226765633,
-0.02424119971692562,
-0.008909274823963642,
-0.0022092012222856283,
-0.00700240908190608,
0.03949612379074097,
-0.07623839378356934,
-0.011767308227717876,
0.030238088220357895,
0.03288324177265167,
-0.014385285787284374,
-0.03598133102059364,
0.028353869915008545,
0.06058488041162491,
-0.02108875662088394,
0.031433843076229095,
-0.03757566958665848,
-0.03848154470324516,
0.012899651192128658,
-0.022791801020503044,
0.011577075347304344,
0.014611754566431046,
0.0025500364135950804,
0.05297553539276123,
0.017148202285170555,
0.007351170759648085,
0.012365185655653477,
0.019005244597792625,
0.0008169854991137981,
0.004773958120495081,
0.027284936979413033,
-0.05420752614736557,
0.044496551156044006,
0.042829740792512894,
0.006608353927731514,
-0.0397135354578495,
-0.04927956685423851,
-0.00007607929728692397,
-0.02993009053170681,
-0.07587604224681854,
-0.03114396147429943,
0.027049409225583076,
-0.042612332850694656,
-0.01610644720494747,
0.021487340331077576,
0.02752046473324299,
0.02369767427444458,
-0.025201426818966866,
0.024603549391031265,
-0.04757652431726456,
0.00996461883187294,
-0.010100499726831913,
0.08515219390392303,
0.002694976283237338,
0.03797425702214241,
-0.000708280538674444,
-0.040909286588430405,
0.021650398150086403,
0.0050185443833470345,
0.07652827352285385,
-0.01467516552656889,
-0.028824923560023308,
-0.032031718641519547,
0.019421948119997978,
-0.005435246508568525,
0.0323578342795372,
-0.022646861150860786,
0.027647286653518677,
0.0028670926112681627,
-0.019693709909915924,
-0.02126993052661419,
0.025328248739242554,
-0.00486001605167985,
0.005068367347121239,
-0.07214383780956268,
-0.0256000105291605,
0.020255351439118385,
0.014747635461390018,
-0.026324709877371788,
0.05112755298614502,
-0.018860304728150368,
0.02552754059433937,
-0.08283315598964691,
-0.0732671245932579,
-0.04877227917313576,
0.005965183023363352,
0.0026089183520525694,
-0.0011889601591974497,
0.022121453657746315,
0.037140849977731705,
0.02061770111322403,
0.021034404635429382,
-0.03782931715250015,
0.017338436096906662,
0.025128956884145737,
-0.04000341519713402,
-0.020255351439118385,
0.038952600210905075,
-0.016994204372167587,
-0.015091868117451668,
0.051453664898872375,
0.04355444014072418,
-0.010390379466116428,
0.031035257503390312,
0.0674695298075676,
0.04739534854888916,
-0.006576648447662592,
0.006101064383983612,
0.003802407765761018,
0.03194113075733185,
0.0211431086063385,
0.08536960184574127,
0.017320318147540092,
-0.03801048919558525,
-0.017954431474208832,
-0.03054608590900898,
0.011042608879506588,
0.04482266679406166,
0.024603549391031265,
-0.01628762111067772,
0.03500298783183098,
0.0385177806019783,
-0.033897820860147476,
-0.0055122459307312965,
0.0023733910638839006,
-0.035818275064229965,
-0.07609345018863678,
0.010372262448072433,
0.030799729749560356,
0.007500640116631985,
-0.06899139285087585,
-0.02675952948629856,
-0.008669218048453331,
-0.012727535329759121,
-0.036488622426986694
] |
10,073 | torch.nn.modules.module | register_buffer | Add a buffer to the module.
This is typically used to register a buffer that should not to be
considered a model parameter. For example, BatchNorm's ``running_mean``
is not a parameter, but is part of the module's state. Buffers, by
default, are persistent and will be saved alongside parameters. This
behavior can be changed by setting :attr:`persistent` to ``False``. The
only difference between a persistent buffer and a non-persistent buffer
is that the latter will not be a part of this module's
:attr:`state_dict`.
Buffers can be accessed as attributes using given names.
Args:
name (str): name of the buffer. The buffer can be accessed
from this module using the given name
tensor (Tensor or None): buffer to be registered. If ``None``, then operations
that run on buffers, such as :attr:`cuda`, are ignored. If ``None``,
the buffer is **not** included in the module's :attr:`state_dict`.
persistent (bool): whether the buffer is part of this module's
:attr:`state_dict`.
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> self.register_buffer('running_mean', torch.zeros(num_features))
| def register_buffer(self, name: str, tensor: Optional[Tensor], persistent: bool = True) -> None:
r"""Add a buffer to the module.
This is typically used to register a buffer that should not to be
considered a model parameter. For example, BatchNorm's ``running_mean``
is not a parameter, but is part of the module's state. Buffers, by
default, are persistent and will be saved alongside parameters. This
behavior can be changed by setting :attr:`persistent` to ``False``. The
only difference between a persistent buffer and a non-persistent buffer
is that the latter will not be a part of this module's
:attr:`state_dict`.
Buffers can be accessed as attributes using given names.
Args:
name (str): name of the buffer. The buffer can be accessed
from this module using the given name
tensor (Tensor or None): buffer to be registered. If ``None``, then operations
that run on buffers, such as :attr:`cuda`, are ignored. If ``None``,
the buffer is **not** included in the module's :attr:`state_dict`.
persistent (bool): whether the buffer is part of this module's
:attr:`state_dict`.
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> self.register_buffer('running_mean', torch.zeros(num_features))
"""
if persistent is False and isinstance(self, torch.jit.ScriptModule):
raise RuntimeError("ScriptModule does not support non-persistent buffers")
if '_buffers' not in self.__dict__:
raise AttributeError(
"cannot assign buffer before Module.__init__() call")
elif not isinstance(name, str):
raise TypeError(f"buffer name should be a string. Got {torch.typename(name)}")
elif '.' in name:
raise KeyError("buffer name can't contain \".\"")
elif name == '':
raise KeyError("buffer name can't be empty string \"\"")
elif hasattr(self, name) and name not in self._buffers:
raise KeyError(f"attribute '{name}' already exists")
elif tensor is not None and not isinstance(tensor, torch.Tensor):
raise TypeError(f"cannot assign '{torch.typename(tensor)}' object to buffer '{name}' "
"(torch Tensor or None required)"
)
else:
for hook in _global_buffer_registration_hooks.values():
output = hook(self, name, tensor)
if output is not None:
tensor = output
self._buffers[name] = tensor
if persistent:
self._non_persistent_buffers_set.discard(name)
else:
self._non_persistent_buffers_set.add(name)
| (self, name: str, tensor: Optional[torch.Tensor], persistent: bool = True) -> NoneType | [
0.04349932074546814,
-0.07478765398263931,
-0.054002996534109116,
0.018557731062173843,
-0.006583354901522398,
0.021526968106627464,
-0.047322213649749756,
0.028987174853682518,
-0.030713044106960297,
-0.031807951629161835,
0.028133520856499672,
-0.046171635389328,
-0.03960219770669937,
0.012517189607024193,
-0.013064642436802387,
-0.04906664043664932,
0.07226380705833435,
-0.005864243023097515,
-0.07987247407436371,
-0.027057170867919922,
0.008016939274966717,
0.030100639909505844,
0.015430753119289875,
0.023939473554491997,
-0.047507792711257935,
-0.010958340018987656,
0.020265042781829834,
0.0036581926979124546,
-0.02752111479640007,
0.007868478074669838,
0.02319716289639473,
-0.1151321604847908,
0.08039209246635437,
0.009348456747829914,
-0.04216316342353821,
-0.028578905388712883,
-0.003312554908916354,
0.08766672015190125,
-0.03507411107420921,
-0.0744907334446907,
0.054374150931835175,
-0.020283600315451622,
-0.01226666010916233,
-0.010197472758591175,
0.024607550352811813,
0.0371711365878582,
0.04936356469988823,
0.07575266063213348,
-0.03481430187821388,
0.06717898696660995,
0.01695248670876026,
0.020172253251075745,
-0.01651638001203537,
-0.023160047829151154,
-0.00401774886995554,
-0.013064642436802387,
0.0771259292960167,
0.008912350051105022,
-0.04342509061098099,
0.005813209339976311,
-0.00956651009619236,
0.021174371242523193,
0.00733030354604125,
-0.0566381961107254,
-0.03221622109413147,
-0.024867359548807144,
0.02364254929125309,
-0.04513240233063698,
0.030787276104092598,
0.035872094333171844,
0.012916180305182934,
-0.012739881873130798,
0.025405533611774445,
0.014901857823133469,
-0.04572624713182449,
-0.00398991210386157,
0.032884299755096436,
0.022584758698940277,
-0.020060906186699867,
0.010986176319420338,
0.03347814828157425,
0.039045464247465134,
0.010485118255019188,
-0.011088244616985321,
-0.018381431698799133,
-0.0013280375860631466,
-0.0651005208492279,
-0.007167923729866743,
0.010160357691347599,
-0.038748543709516525,
-0.024310627952218056,
-0.002605041489005089,
0.05622992292046547,
0.0030202707275748253,
0.043350860476493835,
-0.07007399201393127,
0.01150579284876585,
0.013695605099201202,
-0.029933620244264603,
0.041198164224624634,
-0.07211533933877945,
0.012665651738643646,
-0.028671694919466972,
0.0019497215980663896,
-0.00911184586584568,
0.027057170867919922,
-0.0032684803009033203,
0.019003115594387054,
0.036948442459106445,
0.007928790524601936,
0.015031762421131134,
0.07200399786233902,
0.009863434359431267,
-0.011830553412437439,
0.0011581183644011617,
0.03147391229867935,
0.012712045572698116,
-0.010132521390914917,
-0.004282196518033743,
0.022529086098074913,
-0.007302467245608568,
0.0220094695687294,
-0.005483809392899275,
-0.011663533747196198,
0.02959958091378212,
0.01634936034679413,
0.04572624713182449,
0.020803216844797134,
-0.010763484053313732,
-0.009956222958862782,
-0.014113154262304306,
0.041457969695329666,
-0.0021109418012201786,
0.0584939680993557,
0.05890223756432533,
0.007659703493118286,
-0.00744165014475584,
-0.007028740365058184,
-0.05723204091191292,
0.025312744081020355,
0.03542670980095863,
-0.027001498267054558,
-0.00383449112996459,
-0.01191406324505806,
0.04179200902581215,
-0.07378553599119186,
-0.010141800157725811,
-0.04490970820188522,
-0.030564581975340843,
-0.0512564517557621,
-0.002614320255815983,
-0.012609978206455708,
0.022955913096666336,
0.04825010150671005,
-0.02870880998671055,
0.07092764973640442,
0.025758130475878716,
-0.014094596728682518,
-0.02011658065021038,
0.002646796405315399,
0.019875328987836838,
0.0344802625477314,
-0.0025308106560260057,
0.008768527768552303,
-0.023234279826283455,
-0.001187694724649191,
-0.05485665425658226,
0.0030620256438851357,
-0.014521424658596516,
-0.01740715093910694,
0.05181318521499634,
-0.004126775544136763,
0.08685018122196198,
0.05251837894320488,
0.008833480067551136,
0.04439009353518486,
-0.0312512181699276,
-0.0335523784160614,
-0.009900549426674843,
-0.00847624335438013,
0.07608669996261597,
0.019986676052212715,
0.011023292317986488,
0.01439152006059885,
-0.02922842651605606,
-0.04439009353518486,
0.002113261492922902,
-0.05641550198197365,
0.026110727339982986,
0.0366329625248909,
0.04060431569814682,
0.07397111505270004,
0.03086150623857975,
-0.017110228538513184,
-0.017472103238105774,
0.020153695717453957,
-0.0038066545967012644,
0.007135447580367327,
0.021526968106627464,
0.04004758223891258,
0.0008536556269973516,
-0.0007405694341287017,
0.007372058462351561,
0.04995741322636604,
-0.01434512622654438,
-0.00816540140658617,
0.040121812373399734,
-0.01533796451985836,
-0.011078964918851852,
-0.03856296464800835,
0.0011627578642219305,
-0.02291879802942276,
0.023939473554491997,
0.06584282964468002,
0.01578335091471672,
0.007571554277092218,
-0.011867668479681015,
0.029915062710642815,
0.027446884661912918,
-0.029543908312916756,
0.10563060641288757,
-0.004210285376757383,
0.010986176319420338,
0.05604434758424759,
-0.026017937809228897,
0.023791011422872543,
0.0371711365878582,
-0.04721086844801903,
-0.0008716334123164415,
0.048955295234918594,
0.007488044444471598,
0.09969212859869003,
-0.029321214184165,
-0.05738050490617752,
0.025739572942256927,
0.007135447580367327,
0.018381431698799133,
0.0050801788456737995,
-0.03967642784118652,
-0.030991410836577415,
0.0438704751431942,
0.04168066382408142,
0.018251528963446617,
-0.0480274073779583,
-0.02445909008383751,
-0.0141224330291152,
-0.007251433562487364,
0.025553995743393898,
-0.02651899680495262,
-0.026871593669056892,
-0.045355092734098434,
0.029989292845129967,
-0.009000499732792377,
-0.0350184366106987,
-0.04446432366967201,
-0.06888629496097565,
-0.040196046233177185,
0.019652636721730232,
-0.019522732123732567,
0.069257453083992,
-0.04728509858250618,
0.011153195984661579,
-0.020617639645934105,
0.000595587189309299,
0.060795124620199203,
-0.011607860215008259,
-0.017537055537104607,
0.0023115973453968763,
-0.019559849053621292,
0.04349932074546814,
0.028449000790715218,
0.05188741534948349,
0.026481881737709045,
-0.06584282964468002,
-0.0012584461364895105,
-0.08618210256099701,
0.06339320540428162,
0.049660488963127136,
0.031548142433166504,
0.022083699703216553,
-0.003256881842389703,
-0.04394470527768135,
0.032531701028347015,
0.014400798827409744,
-0.0016284409211948514,
-0.00595703162252903,
-0.02111869864165783,
0.045169517397880554,
-0.0026282386388629675,
-0.05036568269133568,
-0.012071804143488407,
0.04053008556365967,
-0.016284408047795296,
0.036670077592134476,
-0.011811995878815651,
-0.01325949840247631,
-0.02401370368897915,
0.06205705180764198,
0.04053008556365967,
-0.03934238851070404,
0.04591182619333267,
0.015746233984827995,
0.05801146849989891,
0.03542670980095863,
-0.009042254649102688,
-0.06951726227998734,
0.009724250994622707,
-0.004068782553076744,
-0.02202802710235119,
0.0449468232691288,
0.05107087641954422,
0.022900240495800972,
0.032791510224342346,
0.028003616258502007,
0.06810687482357025,
-0.043536435812711716,
0.09308557957410812,
-0.008054055273532867,
-0.033069875091314316,
-0.004449216183274984,
0.0340905524790287,
-0.010791320353746414,
-0.011700649745762348,
-0.013510027900338173,
-0.052110109478235245,
0.016015321016311646,
0.05322357267141342,
-0.016117388382554054,
-0.0277809239923954,
0.023846684023737907,
-0.04194047302007675,
-0.022157929837703705,
-0.0004682927392423153,
-0.00043030738015659153,
-0.05823415890336037,
-0.02833765558898449,
-0.05300087854266167,
-0.01913302019238472,
-0.0063792201690375805,
-0.02128571644425392,
0.03284718468785286,
-0.024292070418596268,
-0.0555618479847908,
0.023605434224009514,
-0.018474221229553223,
-0.009237110614776611,
-0.010884108953177929,
0.010577906854450703,
0.03414622321724892,
0.021861007437109947,
0.040641430765390396,
-0.0014335847226902843,
-0.04375912994146347,
-0.007107610814273357,
0.04153219982981682,
-0.01226666010916233,
-0.0018627322278916836,
0.035872094333171844,
-0.04980894923210144,
-0.006369940936565399,
-0.04594894126057625,
0.03492565080523491,
0.02191668003797531,
-0.020803216844797134,
-0.05767742916941643,
-0.0004459654737729579,
0.03915681317448616,
0.02273322083055973,
0.0088891526684165,
-0.0360947847366333,
0.004987390246242285,
-0.019429944455623627,
-0.006323546636849642,
0.08150555193424225,
-0.016265850514173508,
-0.009714972227811813,
0.023865241557359695,
-0.009807760827243328,
0.004959553480148315,
-0.03871142491698265,
0.002830053912475705,
0.024310627952218056,
0.061314743012189865,
-0.060943588614463806,
-0.00938093289732933,
0.03900834918022156,
0.0034192618913948536,
-0.0407898910343647,
0.0022582439705729485,
-0.04253431782126427,
0.03319977968931198,
-0.009311341680586338,
-0.02191668003797531,
0.04134662449359894,
-0.1111236959695816,
0.031065640971064568,
0.02174966037273407,
-0.00006132750422693789,
-0.04717375338077545,
-0.0014892579056322575,
0.001943922252394259,
-0.07530727237462997,
0.013148152269423008,
-0.01331517193466425,
0.004567521624267101,
0.06799552589654922,
0.024125050753355026,
0.007010182831436396,
-0.02798505872488022,
0.05240703374147415,
-0.0523327998816967,
0.014502867124974728,
-0.06940591335296631,
0.005154409911483526,
0.012071804143488407,
-0.008063334040343761,
0.009696414694190025,
-0.0503285676240921,
-0.012173871509730816,
0.00997478049248457,
-0.03733815625309944,
0.025572553277015686,
-0.045169517397880554,
0.020710427314043045,
0.0007892834837548435,
0.048324331641197205,
0.021063024178147316,
0.028003616258502007,
-0.029933620244264603,
-0.013120315968990326,
-0.048138752579689026,
-0.00834633968770504,
0.02364254929125309,
-0.07007399201393127,
0.005799290724098682,
-0.033700838685035706,
0.04286835715174675,
-0.03804334998130798,
-0.03214199095964432,
0.03269872069358826,
0.043462205678224564,
0.006448811385780573,
0.04216316342353821,
0.020339272916316986,
-0.029803715646266937,
0.004521127324551344,
-0.01589469611644745,
0.06651090830564499,
0.013816230930387974,
-0.015848301351070404,
0.04698817431926727,
-0.01713806390762329,
0.05470819026231766,
-0.036317478865385056,
-0.005056981462985277,
-0.07200399786233902,
0.00911184586584568,
-0.06740167737007141,
-0.009487640112638474,
-0.0319378562271595,
-0.05407722666859627,
0.07675477117300034,
0.011385167948901653,
-0.02039494551718235,
-0.000010067206858366262,
-0.03900834918022156,
0.06072089448571205,
-0.023698221892118454,
0.017462825402617455,
-0.0185113362967968,
0.02121148630976677,
0.014707001857459545,
-0.004848207347095013,
-0.04194047302007675,
-0.06046108528971672,
-0.0566381961107254,
-0.0023359544575214386,
0.03242035582661629,
-0.009009778499603271,
-0.008824201300740242,
0.010763484053313732,
-0.013927577063441277,
-0.014836905524134636,
0.03761652112007141,
0.038117580115795135,
0.056081462651491165,
0.046505674719810486,
0.003904082579538226,
0.03728248178958893,
0.03635459393262863,
-0.08113440126180649,
-0.047247983515262604,
-0.023939473554491997,
-0.016850419342517853,
-0.05975589156150818,
0.052666839212179184,
0.039305273443460464,
0.02941400371491909,
0.014697723090648651,
0.017397873103618622,
-0.024756012484431267,
-0.046617019921541214,
0.0054327757097780704,
-0.015681281685829163,
-0.006587994284927845,
-0.028189193457365036,
-0.005752896424382925,
-0.004272917751222849,
-0.004646392073482275,
0.019467059522867203,
-0.02915419451892376,
0.032717280089855194,
-0.03167804703116417,
0.014586376026272774,
-0.005627631675451994,
-0.022046584635972977,
-0.018353596329689026,
-0.0658799409866333,
-0.06691917777061462,
-0.05441126599907875,
0.03245747089385986,
0.09753943234682083,
0.06491494178771973,
-0.09382788836956024,
0.024217838421463966,
-0.04928933456540108,
-0.043350860476493835,
-0.045986056327819824,
0.017908209934830666,
-0.00919999461621046,
0.012545025907456875,
-0.0018116984283551574,
-0.011153195984661579,
-0.0025540078058838844,
0.032364681363105774,
-0.035148341208696365,
0.05968166142702103,
-0.007307106629014015,
-0.05630415678024292,
0.0036465940065681934,
-0.022770335897803307,
-0.021712545305490494,
0.0900421068072319,
-0.07705169916152954,
-0.00030504268943332136,
0.03113987296819687,
-0.004272917751222849,
0.03574218973517418,
-0.028449000790715218,
-0.04735932871699333,
-0.01948561705648899,
-0.06780994683504105,
-0.03058314137160778,
-0.06944303214550018,
0.012823391705751419,
-0.05259260907769203,
0.04739644378423691,
0.005859603639692068,
0.00008329231786774471,
0.008443767204880714,
-0.0032244056928902864,
0.07148437947034836,
-0.04906664043664932,
0.08566248416900635,
0.0030202707275748253,
-0.028541790321469307,
-0.027483999729156494,
-0.005966310389339924,
0.014642049558460712,
0.02184244990348816,
0.07289476692676544,
0.0021724144462496042,
-0.008453045971691608,
-0.006244676653295755,
0.02317860536277294,
0.04383336007595062,
0.030341889709234238,
0.042719896882772446,
-0.03013775497674942,
0.01331517193466425,
-0.02598082274198532,
0.025869477540254593,
-0.09026480466127396,
-0.00440050195902586,
0.035519495606422424,
0.041829124093055725,
-0.006003425922244787,
0.07103899121284485,
-0.00009409349149791524,
-0.027224190533161163,
0.0008820721413940191,
0.027112845331430435,
0.07148437947034836,
-0.037950560450553894,
0.03160381689667702,
0.04531797766685486,
-0.060683779418468475,
-0.025294186547398567,
0.029209868982434273,
0.0010751885129138827,
-0.009445885196328163,
-0.02607361227273941,
-0.021990910172462463,
-0.029543908312916756,
0.015597772784531116,
-0.006555518601089716,
-0.05979301035404205,
0.04654278978705406,
-0.006671504117548466,
-0.031084198504686356,
-0.05622992292046547,
-0.028727367520332336,
-0.008879873901605606,
0.017026718705892563,
-0.027020055800676346,
-0.03329256922006607,
0.021693987771868706,
0.03778354078531265,
0.06224263086915016,
0.01132021564990282,
0.05314934253692627,
0.0480274073779583,
0.007167923729866743,
-0.015681281685829163,
-0.04253431782126427,
-0.05444838106632233,
-0.02607361227273941,
-0.05348338186740875,
0.017017439007759094,
-0.02959958091378212,
-0.040641430765390396,
0.011876948177814484,
-0.010364492423832417,
0.0030017129611223936,
0.05712069571018219,
-0.03175227716565132,
-0.02815207839012146,
-0.012582141906023026,
0.05908781662583351,
0.008879873901605606,
-0.012767719104886055,
0.0023579916451126337,
0.022324949502944946,
-0.055821653455495834,
-0.016646284610033035,
0.01884537562727928,
0.030453236773610115,
0.0027836596127599478,
0.11379600316286087,
-0.0162380151450634,
-0.023494087159633636,
-0.012220265343785286,
0.02499726414680481,
0.0013384763151407242,
0.05251837894320488,
0.06799552589654922,
-0.018604125827550888,
0.026389094069600105,
0.01922580972313881,
0.030713044106960297,
0.0049688322469592094,
-0.032438915222883224,
0.047507792711257935,
0.010410887189209461,
-0.08343555778265,
-0.03449882194399834,
-0.052666839212179184,
-0.0940505787730217,
-0.0011053448542952538,
0.04836144670844078,
-0.05886512249708176,
0.0020274322014302015,
-0.014280173927545547,
-0.021489853039383888,
0.02978515811264515,
0.021155813708901405,
-0.026686016470193863,
0.054893769323825836,
-0.024384858086705208,
0.022250719368457794,
-0.04375912994146347,
-0.005029145162552595,
0.02553543820977211,
0.017203016206622124,
-0.03765363618731499,
0.043276626616716385,
-0.017360758036375046,
-0.00952011626213789,
0.011969736777245998,
0.016850419342517853,
0.02382812649011612,
0.0007428891840390861,
0.05118222162127495,
-0.0059013585560023785,
-0.011245984584093094,
0.05118222162127495,
0.02022792585194111,
-0.03679997846484184,
-0.017629845067858696,
-0.01950417459011078,
-0.04361066594719887,
-0.009770645759999752,
-0.01841854862868786,
-0.010884108953177929,
-0.016089553013443947,
0.039750657975673676,
-0.0700368732213974,
-0.0324760302901268,
-0.05069972202181816,
-0.01622873544692993,
0.010067569091916084,
-0.015170944854617119,
0.046691250056028366,
-0.024756012484431267,
-0.05240703374147415,
0.0033705478999763727,
0.031548142433166504,
-0.031158430501818657,
0.026741690933704376,
0.052295684814453125,
-0.047099519520998,
0.028560347855091095,
0.0629478245973587,
0.006778211332857609,
-0.010178915224969387,
-0.03076871857047081,
-0.01380695216357708,
-0.008722133934497833,
0.028987174853682518,
-0.04424162954092026,
0.012378006242215633,
0.001895208260975778,
-0.03511122614145279,
-0.005599795375019312,
0.046691250056028366,
-0.03256881609559059,
0.04305393621325493,
-0.030638813972473145,
-0.004194047302007675,
0.01993100345134735,
0.021693987771868706,
0.01659988984465599,
-0.041272394359111786,
0.02380956895649433,
0.01218315027654171,
0.005706502124667168,
-0.0020668671932071447,
0.01830720156431198,
-0.05029144883155823,
0.026222074404358864,
0.035872094333171844,
-0.015829743817448616,
-0.02453332021832466,
0.020728984847664833,
0.04130950942635536,
-0.031065640971064568,
-0.02941400371491909,
0.03201208636164665,
-0.0271685179322958,
-0.0397135429084301,
-0.0012201707577332854,
0.025405533611774445,
0.015096713788807392,
-0.044983938336372375,
-0.03427612781524658,
-0.0055626798421144485,
-0.042200278490781784,
-0.006430253852158785
] |
10,074 | torch.nn.modules.module | register_forward_hook | Register a forward hook on the module.
The hook will be called every time after :func:`forward` has computed an output.
If ``with_kwargs`` is ``False`` or not specified, the input contains only
the positional arguments given to the module. Keyword arguments won't be
passed to the hooks and only to the ``forward``. The hook can modify the
output. It can modify the input inplace but it will not have effect on
forward since this is called after :func:`forward` is called. The hook
should have the following signature::
hook(module, args, output) -> None or modified output
If ``with_kwargs`` is ``True``, the forward hook will be passed the
``kwargs`` given to the forward function and be expected to return the
output possibly modified. The hook should have the following signature::
hook(module, args, kwargs, output) -> None or modified output
Args:
hook (Callable): The user defined hook to be registered.
prepend (bool): If ``True``, the provided ``hook`` will be fired
before all existing ``forward`` hooks on this
:class:`torch.nn.modules.Module`. Otherwise, the provided
``hook`` will be fired after all existing ``forward`` hooks on
this :class:`torch.nn.modules.Module`. Note that global
``forward`` hooks registered with
:func:`register_module_forward_hook` will fire before all hooks
registered by this method.
Default: ``False``
with_kwargs (bool): If ``True``, the ``hook`` will be passed the
kwargs given to the forward function.
Default: ``False``
always_call (bool): If ``True`` the ``hook`` will be run regardless of
whether an exception is raised while calling the Module.
Default: ``False``
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
| def register_forward_hook(
self,
hook: Union[
Callable[[T, Tuple[Any, ...], Any], Optional[Any]],
Callable[[T, Tuple[Any, ...], Dict[str, Any], Any], Optional[Any]],
],
*,
prepend: bool = False,
with_kwargs: bool = False,
always_call: bool = False,
) -> RemovableHandle:
r"""Register a forward hook on the module.
The hook will be called every time after :func:`forward` has computed an output.
If ``with_kwargs`` is ``False`` or not specified, the input contains only
the positional arguments given to the module. Keyword arguments won't be
passed to the hooks and only to the ``forward``. The hook can modify the
output. It can modify the input inplace but it will not have effect on
forward since this is called after :func:`forward` is called. The hook
should have the following signature::
hook(module, args, output) -> None or modified output
If ``with_kwargs`` is ``True``, the forward hook will be passed the
``kwargs`` given to the forward function and be expected to return the
output possibly modified. The hook should have the following signature::
hook(module, args, kwargs, output) -> None or modified output
Args:
hook (Callable): The user defined hook to be registered.
prepend (bool): If ``True``, the provided ``hook`` will be fired
before all existing ``forward`` hooks on this
:class:`torch.nn.modules.Module`. Otherwise, the provided
``hook`` will be fired after all existing ``forward`` hooks on
this :class:`torch.nn.modules.Module`. Note that global
``forward`` hooks registered with
:func:`register_module_forward_hook` will fire before all hooks
registered by this method.
Default: ``False``
with_kwargs (bool): If ``True``, the ``hook`` will be passed the
kwargs given to the forward function.
Default: ``False``
always_call (bool): If ``True`` the ``hook`` will be run regardless of
whether an exception is raised while calling the Module.
Default: ``False``
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
"""
handle = hooks.RemovableHandle(
self._forward_hooks,
extra_dict=[self._forward_hooks_with_kwargs, self._forward_hooks_always_called],
)
self._forward_hooks[handle.id] = hook
if with_kwargs:
self._forward_hooks_with_kwargs[handle.id] = True
if always_call:
self._forward_hooks_always_called[handle.id] = True
if prepend:
self._forward_hooks.move_to_end(handle.id, last=False) # type: ignore[attr-defined]
return handle
| (self, hook: Union[Callable[[~T, Tuple[Any, ...], Any], Optional[Any]], Callable[[~T, Tuple[Any, ...], Dict[str, Any], Any], Optional[Any]]], *, prepend: bool = False, with_kwargs: bool = False, always_call: bool = False) -> torch.utils.hooks.RemovableHandle | [
-0.0706513375043869,
0.04480701684951782,
-0.043430693447589874,
0.009409665130078793,
0.02056840807199478,
0.07405392080545425,
-0.04301014915108681,
0.07000140845775604,
0.007651027757674456,
-0.03834593668580055,
0.03861355409026146,
-0.047024428844451904,
0.005596098490059376,
-0.017834875732660294,
-0.0045781913213431835,
0.016907768324017525,
-0.045495178550481796,
0.014183791354298592,
-0.034025806933641434,
-0.05073285847902298,
0.0648784190416336,
0.020950721576809883,
0.008931774646043777,
-0.009376212023198605,
-0.018695078790187836,
-0.016812188550829887,
-0.0189818125218153,
0.046756811439991,
-0.026570715010166168,
0.05035054683685303,
0.060099516063928604,
-0.04736851155757904,
0.02504146471619606,
-0.03828858956694603,
-0.008138475939631462,
-0.02305343933403492,
-0.009882776066660881,
0.044310010969638824,
-0.057385098189115524,
0.0016009333776310086,
0.04843898490071297,
-0.017509909346699715,
0.015464537777006626,
-0.0019868300296366215,
0.00808112882077694,
0.046795040369033813,
-0.03270682692527771,
0.041519131511449814,
0.013065527193248272,
0.020434599369764328,
0.02441064827144146,
-0.0802091509103775,
-0.003266381798312068,
-0.0077848369255661964,
0.0028960166964679956,
-0.04859191179275513,
0.03740927204489708,
-0.006915076170116663,
-0.0036654204595834017,
-0.004470665939152241,
0.0743979960680008,
0.026054592803120613,
0.01591375470161438,
-0.014661681838333607,
0.051076941192150116,
-0.02335928939282894,
0.01707025058567524,
-0.02345486730337143,
0.011574508622288704,
-0.020836027339100838,
-0.06422848999500275,
-0.004341635387390852,
0.06747814267873764,
-0.011498046107590199,
0.032496556639671326,
0.012195766903460026,
0.06522250175476074,
-0.040869198739528656,
0.010150395333766937,
0.003077615052461624,
0.009022573009133339,
0.002621229737997055,
-0.023626908659934998,
0.0741686150431633,
-0.05776740983128548,
-0.058570265769958496,
0.021333033218979836,
-0.06575773656368256,
-0.003684536088258028,
0.0029318584129214287,
-0.07527732104063034,
-0.02456357330083847,
0.021256571635603905,
-0.023149017244577408,
0.027794113382697105,
-0.036797571927309036,
0.0019533776212483644,
0.016382087022066116,
0.012587636709213257,
0.002413347130641341,
-0.0336817242205143,
0.05956427752971649,
-0.0015101340832188725,
0.04216906055808067,
0.02704860456287861,
0.0017060692189261317,
-0.04392769932746887,
-0.017834875732660294,
-0.042551372200250626,
0.0026618503034114838,
-0.01725184917449951,
-0.07959745079278946,
0.06239338964223862,
0.015779945999383926,
0.034408118575811386,
-0.010647401213645935,
0.011316448450088501,
-0.013008181005716324,
0.0059736319817602634,
0.012836139649152756,
0.00827228557318449,
-0.05795856565237045,
0.00037126120878383517,
-0.07906220853328705,
-0.008778849616646767,
0.02089337445795536,
0.0641137957572937,
0.05700278282165527,
0.036969613283872604,
-0.022231468930840492,
0.022919630631804466,
0.05061816796660423,
-0.07145419716835022,
-0.03379641845822334,
0.008903101086616516,
0.0014444241533055902,
0.0045256232842803,
0.006284260656684637,
-0.028616085648536682,
-0.018895791843533516,
0.0018410732736811042,
-0.012625868432223797,
0.014298484660685062,
0.0804385393857956,
-0.024697383865714073,
-0.02297697775065899,
0.0015184972435235977,
0.0610935278236866,
0.007889972999691963,
-0.03717988356947899,
0.0178539901971817,
-0.018924465402960777,
0.04905068501830101,
0.056505776941776276,
-0.05860849469900131,
0.055702921003103256,
-0.06315801292657852,
0.05486183613538742,
-0.014212464913725853,
0.02033902145922184,
0.018570827320218086,
-0.018561268225312233,
0.019650859758257866,
-0.023798948153853416,
0.008668933995068073,
-0.02632221020758152,
0.06346386671066284,
-0.03811654821038246,
0.017911337316036224,
0.07695949077606201,
0.05134455859661102,
0.011593624949455261,
0.11094706505537033,
0.05447952076792717,
0.010828999802470207,
0.06292862445116043,
0.00659966841340065,
-0.06464903056621552,
-0.04591572284698486,
0.01005481742322445,
0.06893093138933182,
-0.021581536158919334,
-0.0006051288801245391,
-0.07753296196460724,
-0.034006692469120026,
-0.008291400969028473,
-0.015072667971253395,
-0.008817080408334732,
0.009806313551962376,
0.034905124455690384,
0.042551372200250626,
0.015302055515348911,
0.04331599920988083,
-0.03945464268326759,
0.01594242826104164,
0.02353133074939251,
-0.028616085648536682,
0.01845613308250904,
0.011670087464153767,
-0.020205212756991386,
0.009538695216178894,
0.04132797569036484,
0.020549293607473373,
0.02465915121138096,
-0.042551372200250626,
-0.002017892897129059,
0.021906502544879913,
0.05814972147345543,
-0.04067804291844368,
-0.028501391410827637,
0.060328900814056396,
-0.04316307231783867,
-0.018293650820851326,
0.06116998940706253,
-0.039531104266643524,
-0.024200377985835075,
-0.020052287727594376,
0.00889832153916359,
0.0371989980340004,
-0.017557699233293533,
0.026895679533481598,
0.03559328615665436,
-0.051803335547447205,
-0.029132207855582237,
-0.002996373688802123,
0.010628285817801952,
0.0032926658168435097,
-0.046374499797821045,
0.02983948588371277,
-0.003156467108055949,
0.057155709713697433,
0.039836954325437546,
-0.06881623715162277,
0.005696455482393503,
0.09817783534526825,
0.019469261169433594,
0.011230427771806717,
0.028902819380164146,
0.023263711482286453,
0.01679307408630848,
0.04006634280085564,
0.06805161386728287,
0.055320609360933304,
-0.01097236666828394,
0.0263986736536026,
0.04331599920988083,
-0.03379641845822334,
-0.007455092389136553,
-0.008315295912325382,
0.024850308895111084,
-0.03117757849395275,
0.045495178550481796,
0.0013070306740701199,
0.035765327513217926,
-0.06392263621091843,
0.015244708396494389,
-0.031789280474185944,
-0.007521997205913067,
-0.06136114522814751,
-0.005768138915300369,
-0.012941275723278522,
-0.022441739216446877,
0.0377151221036911,
-0.01767239160835743,
0.004234110005199909,
-0.04457762837409973,
0.003507716581225395,
-0.02257554978132248,
0.03565063327550888,
0.05876142159104347,
0.0917549878358841,
-0.059946589171886444,
-0.024620920419692993,
-0.005013071931898594,
-0.004695274401456118,
-0.02702948823571205,
0.025710511952638626,
-0.022766705602407455,
0.01591375470161438,
0.028654316440224648,
0.009653388522565365,
-0.05149748548865318,
-0.013858825899660587,
-0.07990329712629318,
-0.007732268888503313,
0.04729204997420311,
0.014336716383695602,
0.10368312895298004,
0.02160065248608589,
-0.03735192492604256,
0.07523908466100693,
-0.0025614933110773563,
-0.01961262710392475,
0.0110010402277112,
0.019880246371030807,
0.019650859758257866,
-0.10016585886478424,
0.009108593687415123,
0.04920361191034317,
-0.02878812700510025,
-0.011813454329967499,
-0.044233549386262894,
-0.0422455258667469,
0.005696455482393503,
0.02376071736216545,
-0.027392685413360596,
0.02001405507326126,
-0.006556658074259758,
-0.08663199841976166,
0.004833862651139498,
0.03310825675725937,
0.0255193542689085,
-0.06415202468633652,
-0.0749332383275032,
0.028616085648536682,
-0.012549405917525291,
0.038728248327970505,
0.04369831085205078,
-0.003103899070993066,
-0.0015244708629325032,
-0.010226857848465443,
0.04331599920988083,
0.0011463399277999997,
0.040792737156152725,
-0.013533860445022583,
-0.005667781922966242,
-0.0026068929582834244,
0.009997470304369926,
-0.003729935735464096,
-0.012472943402826786,
-0.07611840218305588,
0.013734574429690838,
-0.04010457545518875,
0.003402580739930272,
-0.02951451949775219,
-0.03173193335533142,
-0.009901892393827438,
-0.04083096981048584,
0.02026255987584591,
0.013180221430957317,
-0.025939898565411568,
0.019822899252176285,
-0.015541000291705132,
0.006833834573626518,
0.00701543316245079,
0.028367582708597183,
-0.013667669147253036,
0.07336575537919998,
0.060405366122722626,
0.012167093344032764,
0.05073285847902298,
-0.019239872694015503,
-0.04843898490071297,
-0.029782138764858246,
0.014728586189448833,
-0.07577432692050934,
-0.015263823792338371,
0.010953251272439957,
0.017586372792720795,
-0.06464903056621552,
-0.011545835062861443,
-0.03899586945772171,
-0.04633626714348793,
0.05990836024284363,
0.01048491895198822,
0.0053237006068229675,
-0.02982036955654621,
-0.004731116350740194,
-0.02202119678258896,
0.035535939037799835,
0.010312877595424652,
0.012989064678549767,
-0.013419166207313538,
0.010637843050062656,
-0.023244595155119896,
0.011192196980118752,
0.09733674675226212,
-0.0005313545698300004,
-0.03261125087738037,
0.00616478780284524,
0.020434599369764328,
0.013954403810203075,
-0.018589941784739494,
-0.07133950293064117,
0.01686953566968441,
-0.007780057843774557,
-0.015216034837067127,
0.029858600348234177,
0.006418069824576378,
-0.05669693276286125,
0.03909144550561905,
-0.003918702248483896,
-0.0004468276456464082,
-0.036644645035266876,
-0.04553341120481491,
-0.001761026680469513,
-0.003426475217565894,
0.027736766263842583,
-0.01336182001978159,
-0.026666292920708656,
0.0771888792514801,
0.0036439152900129557,
0.026838332414627075,
0.005156438797712326,
0.013103758916258812,
0.06694290786981583,
-0.013572091236710548,
0.016057122498750687,
0.03614763915538788,
0.027870576828718185,
-0.01968909054994583,
0.03758131340146065,
-0.05853203311562538,
-0.028042616322636604,
0.028214657679200172,
0.02096983790397644,
-0.005089534446597099,
0.04606864973902702,
-0.08732015639543533,
0.009027352556586266,
0.020472830161452293,
0.0033954123500734568,
-0.05925842747092247,
0.051076941192150116,
-0.00590194808319211,
0.0475214347243309,
0.0031086779199540615,
0.024907656013965607,
-0.04113681614398956,
0.07890928536653519,
0.005815927870571613,
-0.020702218636870384,
0.028654316440224648,
0.03588002175092697,
-0.022288814187049866,
-0.010561381466686726,
0.002014308702200651,
0.015560115687549114,
-0.018159840255975723,
0.029380710795521736,
0.008305737748742104,
-0.035210974514484406,
0.05038877949118614,
-0.01870463602244854,
0.02632221020758152,
0.046374499797821045,
-0.030011525377631187,
-0.002003556117415428,
-0.0067669302225112915,
0.015980659052729607,
0.016334298998117447,
-0.021313918754458427,
0.029399827122688293,
0.061858151108026505,
-0.005490962415933609,
-0.09771905839443207,
-0.10154218226671219,
-0.053944285959005356,
-0.01444185245782137,
0.004857757594436407,
-0.017232732847332954,
0.0018088157521560788,
-0.004437213763594627,
-0.02161976881325245,
-0.013380935415625572,
0.01968909054994583,
0.024831192567944527,
-0.044080622494220734,
-0.06671351939439774,
-0.015368959866464138,
0.03438900411128998,
-0.046680349856615067,
0.0018291260348632932,
-0.033203836530447006,
0.008616366423666477,
0.05218564718961716,
0.031234925612807274,
0.003065667813643813,
0.02345486730337143,
-0.030030641704797745,
0.02343575283885002,
-0.04767436161637306,
-0.0009420417482033372,
0.020759565755724907,
-0.013141989707946777,
0.05360020324587822,
-0.010542265139520168,
0.024984117597341537,
0.02257554978132248,
0.06174345687031746,
-0.022671127691864967,
-0.012587636709213257,
-0.014852837659418583,
-0.028769010677933693,
0.014537430368363857,
-0.052109185606241226,
-0.001190544804558158,
0.0049366094172000885,
0.030087988823652267,
0.015493211336433887,
-0.03691226616501808,
-0.02056840807199478,
0.0021636495366692543,
0.028673432767391205,
0.004434824455529451,
-0.005161217879503965,
-0.00377772469073534,
0.008984342217445374,
-0.043354231864213943,
0.02519438974559307,
-0.03136873617768288,
0.005796812474727631,
0.0018052315572276711,
0.0036917044781148434,
-0.04905068501830101,
0.004809968173503876,
0.0427425317466259,
0.04025749862194061,
-0.04698619991540909,
-0.08357349783182144,
0.03643437474966049,
-0.009118151850998402,
-0.016076236963272095,
-0.039989881217479706,
0.027851460501551628,
0.007799173705279827,
0.025557586923241615,
-0.012511174194514751,
-0.0005812343442812562,
-0.049968235194683075,
0.016582801938056946,
0.03706518933176994,
-0.035918254405260086,
-0.05597054213285446,
0.016678379848599434,
0.02217412181198597,
0.015971101820468903,
0.017347427085042,
-0.046374499797821045,
-0.01674528419971466,
-0.01140246819704771,
0.008019003085792065,
-0.04706266149878502,
0.000850645184982568,
0.010026143863797188,
-0.03140696510672569,
-0.011555393226444721,
0.002927079563960433,
-0.054517753422260284,
-0.05417367070913315,
-0.115152508020401,
-0.049891773611307144,
0.027927923947572708,
0.0377151221036911,
0.01731875352561474,
0.02160065248608589,
0.04771259054541588,
0.033930227160453796,
-0.003426475217565894,
-0.001212647301144898,
-0.02616928704082966,
0.03964579850435257,
-0.03549771010875702,
0.014422737061977386,
0.00370843056589365,
-0.026456020772457123,
0.03509628027677536,
-0.014537430368363857,
-0.04140443727374077,
0.03259213641285896,
0.04687150567770004,
0.010073932819068432,
-0.03668287768959999,
-0.007392966654151678,
-0.01895313896238804,
0.020052287727594376,
0.06147583946585655,
-0.044310010969638824,
0.03435077145695686,
-0.06533719599246979,
-0.005027408711612225,
-0.016678379848599434,
0.0016618643421679735,
-0.022709358483552933,
0.01711803860962391,
0.0003288484294898808,
0.021715346723794937,
0.11079414188861847,
-0.016009332612156868,
-0.0402192696928978,
-0.04763612896203995,
0.003486211411654949,
-0.0015077446587383747,
-0.035937368869781494,
0.04740674048662186,
0.004903156775981188,
-0.0633491724729538,
0.021581536158919334,
0.04817136749625206,
0.052759114652872086,
0.016955556347966194,
-0.0007610407192260027,
-0.014059539884328842,
-0.013533860445022583,
-0.055320609360933304,
-0.04266606643795967,
0.007999887689948082,
0.00931408628821373,
-0.010188626125454903,
-0.04507463425397873,
-0.015894640237092972,
-0.041901443153619766,
0.005400163121521473,
0.011880358681082726,
-0.028826357796788216,
-0.030489416792988777,
0.0445011667907238,
-0.0377151221036911,
0.06529896706342697,
0.010112163610756397,
0.03700784221291542,
-0.05252972990274429,
0.0022652011830359697,
0.010800326243042946,
0.025939898565411568,
-0.02081691287457943,
-0.021581536158919334,
-0.004183931741863489,
0.03949287533760071,
-0.004367919638752937,
-0.011096618138253689,
0.022709358483552933,
0.023321058601140976,
0.021982964128255844,
-0.02161976881325245,
0.0001222354476340115,
-0.03565063327550888,
0.005557867232710123,
0.008468220010399818,
-0.11920502036809921,
-0.020205212756991386,
0.00784218404442072,
0.01674528419971466,
-0.031636353582143784,
-0.015263823792338371,
-0.001984440488740802,
0.042627837508916855,
-0.06262277811765671,
0.08433812111616135,
-0.036644645035266876,
0.005529193673282862,
0.016057122498750687,
-0.030489416792988777,
0.042551372200250626,
0.0336817242205143,
-0.014183791354298592,
0.04920361191034317,
0.003218592843040824,
0.015894640237092972,
-0.000014654065125796478,
-0.021275686100125313,
-0.010953251272439957,
0.052109185606241226,
0.0017813369631767273,
-0.046947967261075974,
-0.003137351479381323,
0.01431760098785162,
-0.028826357796788216,
-0.027966154739260674,
-0.05073285847902298,
-0.0746656209230423,
-0.030260028317570686,
-0.05493829771876335,
0.0003557297750376165,
0.047827284783124924,
-0.046259805560112,
-0.018016474321484566,
0.03205689787864685,
0.020625755190849304,
0.025614934042096138,
-0.058035027235746384,
0.023416636511683464,
-0.02670452371239662,
-0.01048491895198822,
-0.04442470520734787,
0.013457397930324078,
-0.006910297088325024,
0.005137323401868343,
-0.005749023053795099,
0.002719197189435363,
0.0344463512301445,
0.012969949282705784,
0.04354538768529892,
-0.032018665224313736,
-0.025538470596075058,
-0.017940010875463486,
-0.011306890286505222,
-0.026035476475954056,
0.02702948823571205,
-0.016305625438690186,
-0.006934191565960646,
0.015722598880529404,
0.011182638816535473,
-0.0371989980340004,
-0.011593624949455261,
-0.04301014915108681,
-0.04943299666047096,
-0.02368425577878952,
-0.009161161258816719,
0.04228375479578972,
0.026054592803120613,
-0.019077390432357788,
0.031139347702264786,
0.010647401213645935,
0.008477778173983097,
-0.06610181927680969,
-0.03047030046582222,
0.02408568374812603,
0.0034933798015117645,
-0.01192814763635397,
-0.001866162521764636,
-0.0014217243297025561,
0.019115621224045753,
0.029457172378897667,
0.059946589171886444,
-0.07883282750844955,
0.03652995452284813,
0.0030035420786589384,
-0.03603294864296913,
-0.013629438355565071,
0.06086413934826851,
0.0369504950940609,
-0.030489416792988777,
0.011211312375962734,
0.07952098548412323,
-0.050197623670101166,
-0.0016893430147320032,
0.025959014892578125,
0.029858600348234177,
-0.04186321049928665,
0.011985494755208492,
-0.010647401213645935,
0.046298034489154816,
-0.016611475497484207,
0.13013915717601776,
-0.00043816588004119694,
0.013552975840866566,
-0.05000646784901619,
-0.00947656948119402,
0.025939898565411568,
0.0055913194082677364,
0.021180108189582825,
-0.0053428164683282375,
-0.004831473343074322,
0.03582267463207245,
0.004771736916154623,
-0.04729204997420311,
0.028176426887512207,
-0.027067720890045166,
-0.07795350253582001,
-0.023263711482286453,
-0.03714165464043617,
0.0075411126017570496,
-0.05990836024284363,
0.021333033218979836,
-0.010656959377229214,
0.012836139649152756,
-0.0033547915518283844
] |
10,075 | torch.nn.modules.module | register_forward_pre_hook | Register a forward pre-hook on the module.
The hook will be called every time before :func:`forward` is invoked.
If ``with_kwargs`` is false or not specified, the input contains only
the positional arguments given to the module. Keyword arguments won't be
passed to the hooks and only to the ``forward``. The hook can modify the
input. User can either return a tuple or a single modified value in the
hook. We will wrap the value into a tuple if a single value is returned
(unless that value is already a tuple). The hook should have the
following signature::
hook(module, args) -> None or modified input
If ``with_kwargs`` is true, the forward pre-hook will be passed the
kwargs given to the forward function. And if the hook modifies the
input, both the args and kwargs should be returned. The hook should have
the following signature::
hook(module, args, kwargs) -> None or a tuple of modified input and kwargs
Args:
hook (Callable): The user defined hook to be registered.
prepend (bool): If true, the provided ``hook`` will be fired before
all existing ``forward_pre`` hooks on this
:class:`torch.nn.modules.Module`. Otherwise, the provided
``hook`` will be fired after all existing ``forward_pre`` hooks
on this :class:`torch.nn.modules.Module`. Note that global
``forward_pre`` hooks registered with
:func:`register_module_forward_pre_hook` will fire before all
hooks registered by this method.
Default: ``False``
with_kwargs (bool): If true, the ``hook`` will be passed the kwargs
given to the forward function.
Default: ``False``
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
| def register_forward_pre_hook(
self,
hook: Union[
Callable[[T, Tuple[Any, ...]], Optional[Any]],
Callable[[T, Tuple[Any, ...], Dict[str, Any]], Optional[Tuple[Any, Dict[str, Any]]]],
],
*,
prepend: bool = False,
with_kwargs: bool = False,
) -> RemovableHandle:
r"""Register a forward pre-hook on the module.
The hook will be called every time before :func:`forward` is invoked.
If ``with_kwargs`` is false or not specified, the input contains only
the positional arguments given to the module. Keyword arguments won't be
passed to the hooks and only to the ``forward``. The hook can modify the
input. User can either return a tuple or a single modified value in the
hook. We will wrap the value into a tuple if a single value is returned
(unless that value is already a tuple). The hook should have the
following signature::
hook(module, args) -> None or modified input
If ``with_kwargs`` is true, the forward pre-hook will be passed the
kwargs given to the forward function. And if the hook modifies the
input, both the args and kwargs should be returned. The hook should have
the following signature::
hook(module, args, kwargs) -> None or a tuple of modified input and kwargs
Args:
hook (Callable): The user defined hook to be registered.
prepend (bool): If true, the provided ``hook`` will be fired before
all existing ``forward_pre`` hooks on this
:class:`torch.nn.modules.Module`. Otherwise, the provided
``hook`` will be fired after all existing ``forward_pre`` hooks
on this :class:`torch.nn.modules.Module`. Note that global
``forward_pre`` hooks registered with
:func:`register_module_forward_pre_hook` will fire before all
hooks registered by this method.
Default: ``False``
with_kwargs (bool): If true, the ``hook`` will be passed the kwargs
given to the forward function.
Default: ``False``
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
"""
handle = hooks.RemovableHandle(
self._forward_pre_hooks,
extra_dict=self._forward_pre_hooks_with_kwargs
)
self._forward_pre_hooks[handle.id] = hook
if with_kwargs:
self._forward_pre_hooks_with_kwargs[handle.id] = True
if prepend:
self._forward_pre_hooks.move_to_end(handle.id, last=False) # type: ignore[attr-defined]
return handle
| (self, hook: Union[Callable[[~T, Tuple[Any, ...]], Optional[Any]], Callable[[~T, Tuple[Any, ...], Dict[str, Any]], Optional[Tuple[Any, Dict[str, Any]]]]], *, prepend: bool = False, with_kwargs: bool = False) -> torch.utils.hooks.RemovableHandle | [
-0.07860871404409409,
0.03660264611244202,
-0.027257682755589485,
0.009946371428668499,
0.027979373931884766,
0.0739084780216217,
-0.0039068423211574554,
0.055329579859972,
0.03236502781510353,
-0.027313198894262314,
0.045299939811229706,
-0.06154721975326538,
-0.0008841861272230744,
-0.017033739015460014,
-0.01423950307071209,
-0.002433391287922859,
-0.04256121814250946,
0.03232802078127861,
-0.033549342304468155,
-0.05373816192150116,
0.05070336163043976,
0.025610748678445816,
-0.012074432335793972,
-0.002005466027185321,
0.002170853316783905,
-0.0121762091293931,
-0.02607337199151516,
0.027239179238677025,
-0.004653976298868656,
0.02764628641307354,
0.08948958665132523,
-0.00953001156449318,
0.027831334620714188,
-0.046928368508815765,
0.0015601924387738109,
-0.01884721778333187,
-0.008391961455345154,
0.029108170419931412,
-0.0729462206363678,
-0.0022992310114204884,
0.04270925745368004,
-0.033512331545352936,
0.021595191210508347,
-0.007013348396867514,
0.027775820344686508,
0.04052567854523659,
-0.00871117040514946,
0.011186198331415653,
0.030218463391065598,
0.03626955673098564,
0.03475216031074524,
-0.07224304229021072,
0.027294693514704704,
-0.007628635503351688,
-0.019504141062498093,
-0.048593807965517044,
0.03264260292053223,
-0.013989686965942383,
-0.010196187533438206,
0.02039237506687641,
0.09674349427223206,
0.04252420738339424,
0.012268733233213425,
-0.020799482241272926,
0.045447979122400284,
-0.0598817802965641,
0.029367240145802498,
-0.039193328469991684,
-0.007536110933870077,
-0.028775082901120186,
-0.06806093454360962,
-0.00984459463506937,
0.042191118001937866,
-0.0031365766189992428,
0.04418964684009552,
-0.00013372664398048073,
0.06395285576581955,
-0.045336946845054626,
0.029108170419931412,
0.006712643895298243,
0.012638830579817295,
-0.007836814969778061,
-0.028553025797009468,
0.07209499925374985,
-0.02294604666531086,
-0.052479829639196396,
0.00729092163965106,
-0.05862344801425934,
0.010732828639447689,
0.018403099849820137,
-0.08001508563756943,
-0.009576274082064629,
0.013767627999186516,
0.0019511079881340265,
0.04056268930435181,
-0.013425287790596485,
0.030459027737379074,
0.015433067455887794,
0.02216884307563305,
-0.007184518501162529,
-0.007859946228563786,
0.06376780569553375,
-0.00019993941532447934,
0.012777617201209068,
0.029700327664613724,
-0.002953840885311365,
-0.0316433385014534,
-0.01592344604432583,
-0.026202905923128128,
0.008757432922720909,
-0.005491322372108698,
-0.11798709630966187,
0.032087456434965134,
0.02124359831213951,
0.046817339956760406,
-0.04522591829299927,
0.020984530448913574,
-0.011195450089871883,
0.01649709790945053,
0.013554822653532028,
0.009733565151691437,
-0.05107346177101135,
0.004908418748527765,
-0.05695801228284836,
-0.039933525025844574,
0.015266523696482182,
0.09933418035507202,
0.04966709017753601,
0.031106697395443916,
-0.036695171147584915,
0.0363805890083313,
0.05199870467185974,
-0.07860871404409409,
-0.030607067048549652,
-0.014646610245108604,
-0.023297639563679695,
0.04022960364818573,
0.04030362144112587,
-0.0198002178221941,
-0.04267224669456482,
0.00608810456469655,
-0.0035991985350847244,
-0.00029781286139041185,
0.07594401389360428,
-0.05355311185121536,
-0.03417850658297539,
0.006731148809194565,
0.05825335159897804,
0.02612888626754284,
-0.010029642842710018,
0.03403046727180481,
-0.02359371818602085,
0.04407861828804016,
0.0365656353533268,
-0.041413914412260056,
0.0411178357899189,
-0.06883814185857773,
0.015627369284629822,
-0.006023337598890066,
0.011241712607443333,
0.02196528948843479,
-0.006097356788814068,
0.020780976861715317,
-0.036787696182727814,
0.0030209210235625505,
-0.022723989561200142,
0.05155458673834801,
-0.03617703542113304,
-0.0012895585969090462,
0.0657663345336914,
0.08119940012693405,
0.02609187550842762,
0.09022977948188782,
0.0634717270731926,
0.0033540090080350637,
0.04441170394420624,
-0.00009028355998452753,
-0.06413790583610535,
-0.048445768654346466,
0.015164746902883053,
0.06961534917354584,
0.010566284880042076,
-0.009992633014917374,
-0.062065355479717255,
-0.026313934475183487,
-0.0064674546010792255,
-0.0019187243888154626,
-0.019374605268239975,
0.022279871627688408,
0.027313198894262314,
0.04333842173218727,
0.012583316303789616,
0.04078475013375282,
0.0004860421468038112,
0.002180105773732066,
0.029811356216669083,
-0.03336429223418236,
0.014359784312546253,
0.016136253252625465,
-0.026239914819598198,
-0.007994106970727444,
0.04011857137084007,
0.011732092127203941,
0.038305096328258514,
-0.02908966690301895,
-0.0010622956324368715,
0.014905678108334541,
0.05673595145344734,
-0.04988914728164673,
-0.025906827300786972,
0.046188171952962875,
-0.05425629764795303,
0.003966982942074537,
0.04337543249130249,
-0.06376780569553375,
-0.04078475013375282,
0.01545157190412283,
0.020873501896858215,
0.056402865797281265,
-0.024926068261265755,
0.026684032753109932,
0.047705572098493576,
-0.030977163463830948,
-0.030496036633849144,
0.021632200106978416,
0.005981701426208019,
-0.0025721779093146324,
-0.035233285278081894,
-0.0022795693948864937,
0.01424875482916832,
0.03414149582386017,
0.023075580596923828,
-0.0744636207818985,
-0.008637151680886745,
0.09119202941656113,
0.01801449805498123,
0.024722514674067497,
0.02211332693696022,
0.022353891283273697,
0.00862789899110794,
0.03963744640350342,
0.0672837346792221,
0.06287956982851028,
-0.022446416318416595,
0.010927129536867142,
0.04807566851377487,
-0.019559655338525772,
-0.012037422508001328,
-0.015109231695532799,
0.03871220350265503,
-0.023279134184122086,
0.057106051594018936,
-0.003969295881688595,
0.04337543249130249,
-0.06073300540447235,
0.033512331545352936,
-0.0018678359920158982,
0.006957833655178547,
-0.055625658482313156,
0.00832719448953867,
-0.034400567412376404,
-0.04104381799697876,
0.047816600650548935,
0.0073140524327754974,
0.020114801824092865,
-0.035307303071022034,
0.015312785282731056,
0.012287238612771034,
0.02524065226316452,
0.04367150738835335,
0.08245772868394852,
-0.07120676338672638,
-0.0158216692507267,
-0.0016087677795439959,
0.018467867746949196,
-0.054774437099695206,
-0.012953413650393486,
-0.009557768702507019,
0.02912667579948902,
0.02914518117904663,
0.015627369284629822,
-0.05037027597427368,
-0.02696160599589348,
-0.07942292839288712,
-0.017209535464644432,
0.0307921152561903,
0.0003550623368937522,
0.07994106411933899,
0.01138975191861391,
-0.03084762953221798,
0.06232442334294319,
-0.003936912398785353,
-0.012842384167015553,
-0.0213176179677248,
0.016154756769537926,
0.017237292602658272,
-0.0886753723025322,
0.006620119791477919,
0.023279134184122086,
-0.01820879802107811,
0.007795179262757301,
-0.048519786447286606,
-0.030366502702236176,
-0.022242862731218338,
0.00706886313855648,
-0.026554498821496964,
0.011676576919853687,
0.014443056657910347,
-0.08615870773792267,
-0.03179137781262398,
0.009631788358092308,
0.02670253813266754,
-0.06624745577573776,
-0.08097734302282333,
0.009659545496106148,
-0.044559743255376816,
0.046188171952962875,
0.0460401326417923,
0.005977075081318617,
0.0017429280560463667,
-0.009201549924910069,
0.03945239633321762,
-0.006009458564221859,
0.06213937699794769,
-0.0020586675964295864,
0.01067731436342001,
0.00001670679557719268,
-0.011250965297222137,
-0.00452906871214509,
-0.0025721779093146324,
-0.08453027904033661,
0.03408598154783249,
-0.05207272246479988,
0.023908300325274467,
-0.054811444133520126,
-0.031032677739858627,
-0.007397324312478304,
-0.0314582921564579,
0.012268733233213425,
0.0009073172113858163,
-0.01346229761838913,
-0.008974865078926086,
-0.0029769721440970898,
0.015062970109283924,
-0.014702124521136284,
0.006610867101699114,
-0.019966762512922287,
0.075795978307724,
0.07113274931907654,
0.03575142100453377,
0.03926734998822212,
-0.03852715343236923,
-0.038379114121198654,
-0.03364186733961105,
0.037472374737262726,
-0.09652143716812134,
-0.023279134184122086,
-0.016256533563137054,
0.04030362144112587,
-0.03684321045875549,
0.025684768334031105,
-0.03527029603719711,
-0.040673717856407166,
0.05444134771823883,
0.005176739301532507,
-0.005116598214954138,
-0.047779593616724014,
-0.006495211739093065,
-0.03878622129559517,
0.03423402085900307,
0.009789079427719116,
0.023057077080011368,
-0.007753543555736542,
-0.0051721129566431046,
-0.03636208176612854,
-0.010853109881281853,
0.0964474156498909,
-0.009354215115308762,
-0.04322739318013191,
0.025573739781975746,
0.018514128401875496,
0.02383428066968918,
-0.027886848896741867,
-0.05292394757270813,
-0.003025547368451953,
-0.013369773514568806,
-0.025888321921229362,
0.027942363172769547,
0.020669948309659958,
-0.05544061213731766,
0.016968971118330956,
-0.02612888626754284,
0.006749653723090887,
-0.04574405401945114,
-0.041450925171375275,
-0.015183251351118088,
0.006300910376012325,
0.012629578821361065,
0.016996730118989944,
-0.0394153892993927,
0.0818655714392662,
-0.0023732504341751337,
0.02516663260757923,
0.006374930031597614,
0.02611038088798523,
0.05284992977976799,
-0.007522232364863157,
0.023408669978380203,
0.02995939552783966,
0.03499272093176842,
-0.033512331545352936,
0.04326440021395683,
-0.04274626448750496,
-0.038305096328258514,
0.0047326222993433475,
0.007235406897962093,
-0.010131419636309147,
0.031162211671471596,
-0.0809033215045929,
-0.0030047292821109295,
0.014674367383122444,
0.0091414088383317,
-0.06683961302042007,
0.0411178357899189,
0.017514865845441818,
0.04666930064558983,
0.015275775454938412,
0.02059592865407467,
-0.030644075945019722,
0.08201361447572708,
0.01807001233100891,
-0.022372396662831306,
0.053220026195049286,
0.0237787663936615,
-0.03841612488031387,
0.016802428290247917,
0.0038073784671723843,
0.024926068261265755,
-0.001264114398509264,
0.027035625651478767,
0.010862362571060658,
-0.0037588030099868774,
0.04270925745368004,
-0.016423078253865242,
0.029459763318300247,
0.03158782422542572,
-0.046891357749700546,
0.006245396099984646,
0.01572914607822895,
0.002037849510088563,
-0.0012294177431613207,
-0.0058799246326088905,
0.022279871627688408,
0.05310899764299393,
0.0032198484987020493,
-0.07653617113828659,
-0.11176945269107819,
-0.035843946039676666,
-0.034326545894145966,
0.01661738008260727,
-0.0018088517244905233,
0.013610336929559708,
-0.003027860540896654,
-0.01191714033484459,
0.009613283909857273,
0.0330682136118412,
0.009742817841470242,
-0.026591507717967033,
-0.07331632077693939,
-0.01260182075202465,
0.04733547568321228,
-0.059733740985393524,
0.008877715095877647,
-0.008937855251133442,
-0.003018608083948493,
0.05396021902561188,
0.034474585205316544,
-0.007961723022162914,
0.032735127955675125,
-0.025906827300786972,
0.032698117196559906,
-0.04015558212995529,
0.012999676167964935,
0.014729881659150124,
-0.013943424448370934,
0.023852786049246788,
-0.03684321045875549,
0.02461148612201214,
0.012416772544384003,
0.05199870467185974,
-0.0037541768979281187,
-0.005394171457737684,
0.00453600799664855,
-0.007105872500687838,
0.020743966102600098,
-0.037453871220350266,
0.007152135018259287,
-0.00017550718621350825,
0.05140654742717743,
0.01417473517358303,
-0.03614002466201782,
-0.025018593296408653,
-0.006448949687182903,
0.03327176719903946,
0.008577010594308376,
-0.01220396626740694,
-0.01649709790945053,
0.01827356591820717,
-0.042265139520168304,
0.025795798748731613,
-0.031254738569259644,
-0.01340678334236145,
0.03075510449707508,
0.009035006165504456,
-0.04267224669456482,
0.013212482444941998,
0.0521097332239151,
0.04914895445108414,
-0.061362169682979584,
-0.06302761286497116,
0.03378990665078163,
-0.009807584807276726,
0.004688673187047243,
-0.06635849177837372,
0.015470077283680439,
0.0060742259956896305,
0.025851313024759293,
-0.03460412099957466,
0.0023709372617304325,
-0.03849014267325401,
0.011843121610581875,
0.02142864651978016,
-0.0067542800679802895,
-0.040599700063467026,
0.004413412883877754,
0.007716533727943897,
0.017181778326630592,
0.0329756923019886,
-0.019892742857336998,
-0.012000412680208683,
0.013869404792785645,
0.006208386272192001,
-0.02751675248146057,
0.02673954702913761,
0.03240203857421875,
-0.02055891789495945,
-0.018708430230617523,
0.02603636123239994,
-0.09504104405641556,
-0.04803866147994995,
-0.10340525209903717,
-0.05825335159897804,
0.0016295857494696975,
0.02751675248146057,
-0.0029515279456973076,
0.011334236711263657,
0.054959483444690704,
0.021632200106978416,
0.00869729183614254,
0.00861402042210102,
-0.0253886915743351,
0.016922710463404655,
-0.030681084841489792,
0.005870671942830086,
-0.02601785585284233,
-0.03545534238219261,
0.024981584399938583,
-0.001143832691013813,
-0.04670630767941475,
0.018615905195474625,
0.06683961302042007,
-0.010760585777461529,
-0.013860153034329414,
0.011519285850226879,
-0.04818670079112053,
0.010297964327037334,
0.02751675248146057,
-0.04363450035452843,
0.009381972253322601,
-0.05921560525894165,
-0.0006846804171800613,
-0.027146654203534126,
0.004034063313156366,
-0.008137519471347332,
0.013702861033380032,
-0.009150661528110504,
0.0013473863946273923,
0.10666210949420929,
-0.01260182075202465,
-0.031254738569259644,
-0.0642489343881607,
-0.01380463782697916,
-0.013240239582955837,
-0.014119220897555351,
0.06169525906443596,
-0.018689924851059914,
-0.01651560328900814,
0.004480493254959583,
0.013129210099577904,
0.047779593616724014,
0.020355364307761192,
-0.004415726289153099,
0.0038073784671723843,
-0.0268135666847229,
-0.04022960364818573,
-0.06891216337680817,
0.0053294044919312,
0.00434170663356781,
-0.00452212942764163,
-0.039970532059669495,
-0.0037217934150248766,
-0.01728355512022972,
-0.012426024302840233,
0.02294604666531086,
-0.01884721778333187,
-0.021558182314038277,
0.030644075945019722,
-0.061140112578868866,
0.07631411403417587,
0.007425081916153431,
0.028978636488318443,
-0.04874184727668762,
0.019522644579410553,
0.008900845423340797,
0.03578843176364899,
-0.03575142100453377,
-0.0038721454329788685,
-0.04951905086636543,
0.03478916734457016,
-0.03769443556666374,
0.0046192798763513565,
0.024111853912472725,
0.04259822517633438,
0.010371983051300049,
-0.02698010951280594,
0.016330553218722343,
-0.023445678874850273,
-0.012009665369987488,
-0.0054126763716340065,
-0.11598856747150421,
-0.028830597177147865,
-0.002005466027185321,
-0.004695612471550703,
-0.028090402483940125,
-0.005116598214954138,
-0.0022668472956866026,
0.0071012466214597225,
-0.06854206323623657,
0.0981498658657074,
-0.019985266029834747,
0.014942687936127186,
0.005125850904732943,
-0.026406459510326385,
0.061880309134721756,
0.008831452578306198,
0.015164746902883053,
0.04518890753388405,
0.01658962294459343,
0.019171051681041718,
-0.013665851205587387,
-0.035177771002054214,
-0.006384182721376419,
0.041487932205200195,
0.02137313224375248,
-0.043042343109846115,
0.005125850904732943,
0.018514128401875496,
-0.03874921053647995,
-0.01649709790945053,
-0.03551086038351059,
-0.07190994918346405,
-0.02753525599837303,
-0.050185225903987885,
-0.021687716245651245,
0.08290185034275055,
-0.03564039245247841,
-0.026535993441939354,
0.013869404792785645,
0.009233933873474598,
0.01752411760389805,
-0.06450799852609634,
0.01505371741950512,
-0.013647346757352352,
-0.020966025069355965,
-0.0473724864423275,
-0.004135840106755495,
-0.01565512642264366,
-0.0016851003747433424,
-0.008206913247704506,
0.015553348697721958,
0.05743913725018501,
0.026535993441939354,
0.04752052202820778,
-0.013693609274923801,
-0.04966709017753601,
-0.016164010390639305,
-0.02296455204486847,
-0.016015971079468727,
-0.0030926275067031384,
-0.01259256899356842,
0.013712113723158836,
0.00872504897415638,
0.00825780164450407,
-0.05544061213731766,
-0.01981872320175171,
-0.030199958011507988,
-0.02992238663136959,
-0.0473724864423275,
-0.024019330739974976,
0.05743913725018501,
0.019892742857336998,
-0.013961929827928543,
0.041487932205200195,
0.003266110783442855,
0.013980434276163578,
-0.0252036415040493,
-0.0316433385014534,
0.017977487295866013,
0.0032337273005396128,
0.0021003035362809896,
-0.01348080299794674,
0.007351062260568142,
-0.012092936784029007,
0.041450925171375275,
0.03871220350265503,
-0.06336069852113724,
0.03084762953221798,
-0.03221699222922325,
-0.060399916023015976,
-0.027220673859119415,
0.07831263542175293,
0.031032677739858627,
-0.04045166075229645,
0.0008182625169865787,
0.08290185034275055,
-0.05218375101685524,
-0.0018770884489640594,
0.024741020053625107,
0.024907564744353294,
-0.03484468162059784,
0.019226567819714546,
-0.005981701426208019,
0.02694310061633587,
-0.013665851205587387,
0.10681015253067017,
0.012481539510190487,
0.029071161523461342,
-0.052553851157426834,
0.009284822270274162,
0.024037834256887436,
-0.0077350386418402195,
0.014156230725347996,
-0.01260182075202465,
-0.035177771002054214,
0.010177682153880596,
0.003788873553276062,
-0.04056268930435181,
0.047927629202604294,
-0.037527889013290405,
-0.07235407084226608,
-0.027849840000271797,
-0.0380830354988575,
0.007859946228563786,
-0.036047499626874924,
0.04715042561292648,
-0.01968918927013874,
0.019282082095742226,
0.0017117011593654752
] |
10,076 | torch.nn.modules.module | register_full_backward_hook | Register a backward hook on the module.
The hook will be called every time the gradients with respect to a module
are computed, i.e. the hook will execute if and only if the gradients with
respect to module outputs are computed. The hook should have the following
signature::
hook(module, grad_input, grad_output) -> tuple(Tensor) or None
The :attr:`grad_input` and :attr:`grad_output` are tuples that contain the gradients
with respect to the inputs and outputs respectively. The hook should
not modify its arguments, but it can optionally return a new gradient with
respect to the input that will be used in place of :attr:`grad_input` in
subsequent computations. :attr:`grad_input` will only correspond to the inputs given
as positional arguments and all kwarg arguments are ignored. Entries
in :attr:`grad_input` and :attr:`grad_output` will be ``None`` for all non-Tensor
arguments.
For technical reasons, when this hook is applied to a Module, its forward function will
receive a view of each Tensor passed to the Module. Similarly the caller will receive a view
of each Tensor returned by the Module's forward function.
.. warning ::
Modifying inputs or outputs inplace is not allowed when using backward hooks and
will raise an error.
Args:
hook (Callable): The user-defined hook to be registered.
prepend (bool): If true, the provided ``hook`` will be fired before
all existing ``backward`` hooks on this
:class:`torch.nn.modules.Module`. Otherwise, the provided
``hook`` will be fired after all existing ``backward`` hooks on
this :class:`torch.nn.modules.Module`. Note that global
``backward`` hooks registered with
:func:`register_module_full_backward_hook` will fire before
all hooks registered by this method.
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
| def register_full_backward_hook(
self,
hook: Callable[["Module", _grad_t, _grad_t], Union[None, _grad_t]],
prepend: bool = False,
) -> RemovableHandle:
r"""Register a backward hook on the module.
The hook will be called every time the gradients with respect to a module
are computed, i.e. the hook will execute if and only if the gradients with
respect to module outputs are computed. The hook should have the following
signature::
hook(module, grad_input, grad_output) -> tuple(Tensor) or None
The :attr:`grad_input` and :attr:`grad_output` are tuples that contain the gradients
with respect to the inputs and outputs respectively. The hook should
not modify its arguments, but it can optionally return a new gradient with
respect to the input that will be used in place of :attr:`grad_input` in
subsequent computations. :attr:`grad_input` will only correspond to the inputs given
as positional arguments and all kwarg arguments are ignored. Entries
in :attr:`grad_input` and :attr:`grad_output` will be ``None`` for all non-Tensor
arguments.
For technical reasons, when this hook is applied to a Module, its forward function will
receive a view of each Tensor passed to the Module. Similarly the caller will receive a view
of each Tensor returned by the Module's forward function.
.. warning ::
Modifying inputs or outputs inplace is not allowed when using backward hooks and
will raise an error.
Args:
hook (Callable): The user-defined hook to be registered.
prepend (bool): If true, the provided ``hook`` will be fired before
all existing ``backward`` hooks on this
:class:`torch.nn.modules.Module`. Otherwise, the provided
``hook`` will be fired after all existing ``backward`` hooks on
this :class:`torch.nn.modules.Module`. Note that global
``backward`` hooks registered with
:func:`register_module_full_backward_hook` will fire before
all hooks registered by this method.
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
"""
if self._is_full_backward_hook is False:
raise RuntimeError("Cannot use both regular backward hooks and full backward hooks on a "
"single Module. Please use only one of them.")
self._is_full_backward_hook = True
handle = hooks.RemovableHandle(self._backward_hooks)
self._backward_hooks[handle.id] = hook
if prepend:
self._backward_hooks.move_to_end(handle.id, last=False) # type: ignore[attr-defined]
return handle
| (self, hook: Callable[[torch.nn.modules.module.Module, Union[Tuple[torch.Tensor, ...], torch.Tensor], Union[Tuple[torch.Tensor, ...], torch.Tensor]], Union[NoneType, Tuple[torch.Tensor, ...], torch.Tensor]], prepend: bool = False) -> torch.utils.hooks.RemovableHandle | [
-0.061845798045396805,
0.008447297848761082,
-0.04968242347240448,
0.02996746636927128,
-0.033035870641469955,
0.0441703200340271,
-0.06478558480739594,
0.061184342950582504,
0.010087148286402225,
-0.07592003047466278,
0.035883791744709015,
-0.0457504540681839,
0.004616386257112026,
-0.031308744102716446,
-0.006412413436919451,
0.05118906497955322,
-0.040973298251628876,
0.01956796646118164,
-0.010224951431155205,
-0.042185962200164795,
0.02908552996814251,
0.020835749804973602,
0.008837739005684853,
0.005424828268587589,
-0.029985841363668442,
-0.03593891113996506,
0.0037183729000389576,
0.033127740025520325,
-0.0021589070092886686,
0.025135189294815063,
0.008387583307921886,
-0.06599824875593185,
0.045787204056978226,
-0.004887397866696119,
0.021883049979805946,
-0.05802407115697861,
0.02508006989955902,
0.06989346444606781,
-0.0665862038731575,
0.015314459800720215,
0.059273481369018555,
-0.049094464629888535,
0.018015390262007713,
0.017638729885220528,
0.06092711165547371,
0.05368788540363312,
-0.01633419841527939,
-0.001337833353318274,
-0.017703037708997726,
0.012319550849497318,
0.020376408472657204,
-0.09458769112825394,
0.00919602531939745,
0.014009928330779076,
0.0015950648812577128,
-0.030040962621569633,
0.04159800335764885,
-0.02026616595685482,
-0.036912716925144196,
0.022066786885261536,
0.0522179901599884,
-0.029342761263251305,
0.020431527867913246,
-0.022636370733380318,
0.01645362749695778,
0.0026871501468122005,
-0.012034757994115353,
-0.029434630647301674,
0.01687622256577015,
0.03090452402830124,
-0.07761041074991226,
0.0232059545814991,
0.0406058244407177,
0.0007751394878141582,
0.02987559884786606,
-0.025392422452569008,
0.050454117357730865,
-0.03592053800821304,
-0.035130470991134644,
-0.020670386031270027,
-0.018768711015582085,
0.01505722850561142,
-0.013265795074403286,
0.07841885089874268,
-0.017675478011369705,
-0.05280594900250435,
0.01445089653134346,
-0.048543255776166916,
0.02180955372750759,
0.00017469347221776843,
-0.06996696442365646,
-0.043545614928007126,
0.012429792433977127,
-0.004060582723468542,
0.04497876018285751,
-0.05795057862997055,
-0.01875033788383007,
0.029857225716114044,
-0.022728238254785538,
-0.007661823183298111,
-0.015112348832190037,
-0.005695839878171682,
0.011060953140258789,
0.05453307181596756,
0.07797788828611374,
-0.026696952059864998,
-0.03818050026893616,
-0.011915329843759537,
-0.03558981046080589,
-0.04413357377052307,
0.012319550849497318,
-0.08128514885902405,
0.06456509977579117,
0.016187209635972977,
0.004402792546898127,
0.02708279900252819,
0.015433888882398605,
-0.0005133146187290549,
0.020835749804973602,
-0.014110984280705452,
0.023371316492557526,
-0.05302643030881882,
-0.06779886782169342,
-0.05060110613703728,
0.02035803347826004,
-0.01363326795399189,
0.05140954628586769,
0.0863562822341919,
0.03705970570445061,
-0.022856853902339935,
-0.012484913691878319,
0.06563077121973038,
-0.11237341165542603,
-0.02620086260139942,
0.013201487250626087,
-0.007560768164694309,
-0.006949843373149633,
0.004809309728443623,
-0.021864674985408783,
-0.0013745806645601988,
-0.006816633976995945,
-0.017611170187592506,
0.012172561138868332,
0.08657676726579666,
-0.02508006989955902,
-0.017399871721863747,
-0.0291406512260437,
0.0742296576499939,
-0.000814757717307657,
-0.01111607439815998,
-0.025906885042786598,
0.0027973924297839403,
0.037886522710323334,
0.023610174655914307,
-0.04428056254982948,
0.04119378328323364,
-0.07279650866985321,
0.07731643319129944,
-0.017308004200458527,
-0.0012608935358002782,
0.01980682462453842,
-0.00228752288967371,
0.0012344814604148269,
-0.012154187075793743,
0.018134819343686104,
-0.01310043130069971,
0.04986615851521492,
-0.04670588672161102,
0.008759650401771069,
0.06269098818302155,
0.009168464690446854,
-0.02511681616306305,
0.07301699370145798,
0.0701506957411766,
-0.005581004545092583,
0.0652633011341095,
0.024308374151587486,
-0.07044468075037003,
-0.054974041879177094,
0.01043624896556139,
0.061478324234485626,
-0.0033026684541255236,
0.01498373318463564,
-0.09377924352884293,
-0.04222270846366882,
-0.014395776204764843,
-0.04214921593666077,
-0.01727125607430935,
0.008213033899664879,
0.031400613486766815,
-0.013614894822239876,
0.01827262155711651,
0.06008192524313927,
-0.03389943391084671,
0.042884163558483124,
0.010978272184729576,
-0.006449160631746054,
0.05438608303666115,
0.051813770085573196,
-0.03446901962161064,
-0.00037924418575130403,
0.0048368703573942184,
0.033458467572927475,
0.008745870552957058,
-0.03366057574748993,
0.015792176127433777,
0.04464803636074066,
0.036728981882333755,
-0.04762456938624382,
-0.011557042598724365,
0.05993493273854256,
0.01260434277355671,
-0.03152922913432121,
0.07404591888189316,
-0.026623457670211792,
-0.03371569886803627,
0.012898321263492107,
0.032705146819353104,
-0.006026566028594971,
0.013991555199027061,
-0.016738420352339745,
-0.03171296790242195,
0.0031878328882157803,
-0.005603971425443888,
-0.026274358853697777,
0.017923522740602493,
-0.02581501565873623,
-0.031308744102716446,
0.04850650578737259,
0.003174052806571126,
0.04328838363289833,
0.03825399652123451,
-0.07062841206789017,
-0.0006511171814054251,
0.11068303138017654,
0.041818488389253616,
-0.014579513110220432,
0.012659463100135326,
0.06364641338586807,
0.03950340673327446,
0.033219609409570694,
0.0345425121486187,
0.02708279900252819,
0.008865298703312874,
0.05280594900250435,
0.047698065638542175,
-0.001899378839880228,
-0.026770446449518204,
0.002496523316949606,
0.01623314432799816,
-0.04262693226337433,
0.03263165056705475,
0.029030408710241318,
0.03983413055539131,
-0.032337673008441925,
-0.008851518854498863,
0.004846057388931513,
-0.006168961990624666,
-0.043031152337789536,
-0.01751011423766613,
0.007955801673233509,
-0.016067780554294586,
0.008819364942610264,
0.006821227725595236,
-0.00978398323059082,
-0.047551076859235764,
0.05453307181596756,
-0.020008934661746025,
0.026219237595796585,
0.07430315017700195,
0.04281066730618477,
-0.045823950320482254,
-0.043031152337789536,
-0.016214769333600998,
-0.006026566028594971,
0.027431899681687355,
0.05034387484192848,
-0.014349841512739658,
0.060486145317554474,
0.011823461391031742,
0.04428056254982948,
-0.06563077121973038,
-0.012356298044323921,
-0.0013114211615175009,
0.026586711406707764,
0.02520868554711342,
-0.01440496277064085,
0.046154677867889404,
0.025502663105726242,
-0.017657103016972542,
0.07636100053787231,
0.00030000769766047597,
0.027854494750499725,
0.030481930822134018,
0.013697575777769089,
0.02671532705426216,
-0.020045680925250053,
0.017675478011369705,
0.04971916973590851,
-0.04435405507683754,
0.004942519124597311,
-0.04446429759263992,
-0.030481930822134018,
0.02044990286231041,
0.004294847138226032,
-0.09326478093862534,
0.028497572988271713,
-0.04729384556412697,
-0.03147410973906517,
0.00028694517095573246,
-0.008961761370301247,
-0.013578147627413273,
-0.009228179231286049,
-0.0205050241202116,
-0.010583237744867802,
-0.02899366244673729,
0.01808888465166092,
-0.014423336833715439,
0.021956544369459152,
0.007317316718399525,
-0.013826192356646061,
0.032337673008441925,
0.02596200630068779,
0.0694892480969429,
-0.038584720343351364,
0.010629172436892986,
0.007661823183298111,
0.024822836741805077,
-0.0035461196675896645,
-0.006871755234897137,
-0.07386218011379242,
-0.03862147033214569,
0.013679202646017075,
0.023555053398013115,
-0.051519788801670074,
-0.012622715905308723,
0.015645185485482216,
-0.06636571884155273,
0.027101173996925354,
-0.01178671419620514,
0.009108750149607658,
0.025851763784885406,
-0.019035128876566887,
0.015700306743383408,
0.015792176127433777,
0.03558981046080589,
0.008970947936177254,
0.04810228571295738,
0.06247050315141678,
0.05177702009677887,
0.048763737082481384,
-0.04016485810279846,
-0.08628278970718384,
0.013330102898180485,
0.02890179306268692,
-0.08172611147165298,
-0.015884043648838997,
0.009756422601640224,
0.04049558565020561,
-0.05251196771860123,
-0.05420234799385071,
-0.035369329154491425,
-0.058207809925079346,
0.07386218011379242,
0.04479502514004707,
0.007744504604488611,
-0.020964365452528,
0.00761129567399621,
-0.038364239037036896,
-0.02372041717171669,
0.021864674985408783,
0.0018959337612614036,
0.05523127317428589,
0.03626963868737221,
-0.07140010595321655,
-0.032337673008441925,
0.04556671902537346,
0.007312723435461521,
0.01942097581923008,
-0.009453256614506245,
0.012595155276358128,
-0.015645185485482216,
-0.03110663592815399,
-0.04086305573582649,
0.024161385372281075,
0.005208937451243401,
-0.033090993762016296,
-0.0003433580859564245,
0.01720694825053215,
-0.04894747585058212,
0.06247050315141678,
-0.010463808663189411,
-0.029544873163104057,
-0.016949716955423355,
-0.06394039839506149,
0.014414149336516857,
0.032153934240341187,
0.00811657216399908,
0.007602108642458916,
-0.04170824587345123,
0.025668026879429817,
0.010684292763471603,
0.012108253315091133,
0.0015296086203306913,
-0.01389050018042326,
0.007615888956934214,
0.008107384666800499,
0.041340772062540054,
0.026788821443915367,
0.015975913032889366,
0.004313220735639334,
0.02875480428338051,
-0.09826242178678513,
-0.008038483560085297,
0.06625548005104065,
0.011051766574382782,
-0.022654743865132332,
0.036673858761787415,
-0.06541029363870621,
0.018557414412498474,
0.019071877002716064,
0.011410053819417953,
-0.02166256494820118,
0.00539267435669899,
-0.05434933677315712,
0.03847447782754898,
-0.042369697242975235,
0.0235366802662611,
-0.07433989644050598,
0.06155181676149368,
0.01851147972047329,
-0.02348155900835991,
0.013670016080141068,
-0.008222220465540886,
-0.0448317714035511,
0.007744504604488611,
0.018943261355161667,
0.020945992320775986,
-0.012190934270620346,
0.0014503721613436937,
-0.00597603851929307,
-0.026127368211746216,
0.025282179936766624,
-0.011189569719135761,
0.0037068892270326614,
0.006242456845939159,
-0.028552694246172905,
-0.03461600840091705,
-0.014212039299309254,
0.020100802183151245,
-0.018364490941166878,
0.0014503721613436937,
0.0367841012775898,
0.06743139773607254,
0.003513965755701065,
-0.11016856878995895,
-0.08466590195894241,
-0.06316870450973511,
0.014046676456928253,
0.027284910902380943,
-0.03378919139504433,
0.02175443433225155,
-0.003132711863145232,
-0.014506017789244652,
-0.019365856423974037,
-0.03592053800821304,
0.08010923117399216,
-0.06496932357549667,
-0.05883251503109932,
-0.004531408194452524,
0.005640718620270491,
-0.038364239037036896,
0.02223214879631996,
-0.021276718005537987,
0.005374300293624401,
0.029195772483944893,
0.01723450981080532,
0.020284539088606834,
0.018465545028448105,
-0.0614415742456913,
-0.0009864367311820388,
-0.07783089578151703,
-0.030334940180182457,
0.01705995947122574,
0.01681191474199295,
0.021956544369459152,
-0.04071606695652008,
0.014735688455402851,
-0.009591059759259224,
0.0675048902630806,
-0.029618367552757263,
-0.055966220796108246,
-0.02175443433225155,
0.020854122936725616,
-0.008295714855194092,
-0.055451758205890656,
0.021442081779241562,
-0.0024781497195363045,
0.03898894414305687,
0.01118038222193718,
-0.0036012406926602125,
-0.00948081724345684,
-0.012062318623065948,
-0.008213033899664879,
-0.012494100257754326,
-0.049425192177295685,
-0.009384355507791042,
0.03796001523733139,
-0.02666020579636097,
0.012944255024194717,
-0.004519924521446228,
0.019549591466784477,
0.029765356332063675,
0.02447373792529106,
-0.036306384950876236,
0.005208937451243401,
0.04843301326036453,
0.017914334312081337,
0.017675478011369705,
-0.03928292170166969,
-0.005309992469847202,
0.02754214219748974,
-0.016352573409676552,
-0.028074977919459343,
0.031639471650123596,
0.0034335809759795666,
-0.0016685595037415624,
-0.007652636617422104,
-0.0042535061948001385,
-0.02768913097679615,
0.02983885072171688,
0.046999864280223846,
0.010877217166125774,
-0.03735368698835373,
-0.009127124212682247,
0.009839103557169437,
0.03450576588511467,
0.0017719115130603313,
-0.08363697677850723,
-0.042002227157354355,
-0.007648042868822813,
0.04898422211408615,
-0.012209308333694935,
-0.015020481310784817,
-0.019163744524121284,
-0.02035803347826004,
0.013008562847971916,
0.024639101698994637,
-0.042700424790382385,
-0.03437715023756027,
-0.09833592176437378,
0.0006189632695168257,
0.02441861666738987,
0.041120290756225586,
0.0080109229311347,
0.024032769724726677,
0.010748600587248802,
0.05714213475584984,
-0.010270885191857815,
-0.00978398323059082,
-0.07176758348941803,
0.027009304612874985,
-0.02469422109425068,
0.04505225643515587,
-0.0027147107757627964,
0.010261698625981808,
0.05864877626299858,
-0.02199329063296318,
-0.01590241678059101,
0.04464803636074066,
0.019182119518518448,
0.006021972745656967,
-0.04005461558699608,
-0.016279077157378197,
-0.014956173487007618,
0.017987830564379692,
0.06213977560400963,
-0.06162531301379204,
0.014037488959729671,
-0.06379340589046478,
-0.003757416969165206,
-0.016407692804932594,
0.0026572931092232466,
-0.018833018839359283,
0.024216506630182266,
0.040458835661411285,
0.013761883601546288,
0.09723349660634995,
-0.00027172945556230843,
-0.03035331517457962,
-0.010234137997031212,
0.004519924521446228,
0.01705995947122574,
-0.09399972856044769,
0.03621451556682587,
0.02908552996814251,
-0.10958060622215271,
0.03263165056705475,
0.02511681616306305,
0.035608187317848206,
0.019549591466784477,
0.00772613100707531,
0.026605084538459778,
-0.03147410973906517,
-0.04611792787909508,
-0.041634753346443176,
0.014542764984071255,
0.006155181676149368,
-0.016729233786463737,
-0.05677466094493866,
-0.015819735825061798,
-0.02759726345539093,
0.029250893741846085,
0.0005222143372520804,
-0.00864940881729126,
-0.029250893741846085,
0.020854122936725616,
-0.014928612858057022,
0.03351358696818352,
0.04222270846366882,
0.03189670294523239,
-0.0102525120601058,
0.03735368698835373,
0.03246628865599632,
-0.0017213838873431087,
-0.0009433734812773764,
-0.009875851683318615,
-0.0187227763235569,
0.02489633299410343,
0.01358733419328928,
-0.05475355684757233,
0.017161013558506966,
0.026366226375102997,
0.01260434277355671,
-0.0050986954011023045,
-0.02759726345539093,
0.028497572988271713,
-0.008718309924006462,
0.03290725499391556,
-0.10090823471546173,
-0.030243072658777237,
0.015580877661705017,
0.048910729587078094,
-0.0059301042929291725,
-0.032888881862163544,
0.02959999442100525,
0.042884163558483124,
-0.026641830801963806,
0.04214921593666077,
-0.04913121089339256,
-0.018336929380893707,
0.03029819391667843,
-0.024400243535637856,
0.019494472071528435,
0.006926876027137041,
0.005934697575867176,
0.0672476589679718,
-0.006035753060132265,
0.015038854442536831,
0.015038854442536831,
-0.0008670078823342919,
-0.014460084028542042,
0.028277087956666946,
0.022213775664567947,
-0.041157037019729614,
0.027891241014003754,
0.04119378328323364,
0.002758348360657692,
-0.011410053819417953,
-0.05071134865283966,
-0.04402333125472069,
-0.03299912437796593,
-0.06335243582725525,
-0.012099065817892551,
0.03880520537495613,
-0.05188726261258125,
-0.004343078006058931,
0.022471006959676743,
0.027009304612874985,
0.020615264773368835,
0.01681191474199295,
0.030187951400876045,
-0.04053233191370964,
0.011694845743477345,
-0.004095033276826143,
0.06691693514585495,
-0.017914334312081337,
0.03356870636343956,
-0.01942097581923008,
-0.017822466790676117,
0.0350753478705883,
-0.027652384713292122,
0.06559402495622635,
-0.04523599147796631,
-0.005705026909708977,
-0.028185220435261726,
-0.007978769019246101,
-0.00432470440864563,
0.016288263723254204,
-0.026862315833568573,
0.004212165251374245,
0.007955801673233509,
-0.020578518509864807,
-0.01491942536085844,
0.01310043130069971,
0.007009557913988829,
-0.011823461391031742,
-0.05611320957541466,
-0.05504753440618515,
0.033090993762016296,
0.0257782693952322,
-0.009016881696879864,
0.02530055306851864,
-0.027303284034132957,
0.029453003779053688,
-0.07345796376466751,
-0.06055963784456253,
-0.04986615851521492,
0.0072576021775603294,
0.01830018311738968,
0.0028938541654497385,
0.020321287214756012,
0.024822836741805077,
-0.001070840866304934,
0.046338412910699844,
-0.06636571884155273,
0.017886774614453316,
0.009274112991988659,
-0.06258074194192886,
-0.03792326897382736,
0.047551076859235764,
0.0028754803352057934,
-0.0021037859842181206,
0.02254450134932995,
0.06305845826864243,
-0.009875851683318615,
0.022948723286390305,
0.05883251503109932,
0.005502916406840086,
-0.019273987039923668,
-0.015286899171769619,
-0.009145497344434261,
0.022562874481081963,
0.022820107638835907,
0.03369732201099396,
0.017657103016972542,
-0.03928292170166969,
-0.05508428439497948,
-0.03408316895365715,
0.004627869930118322,
0.04196547716856003,
0.04431730881333351,
-0.00898013450205326,
0.023518307134509087,
0.06033915653824806,
-0.020064055919647217,
-0.014414149336516857,
-0.0063664792105555534,
-0.04887397959828377,
-0.08819364756345749,
0.025318926200270653,
0.004901178181171417,
0.036435000598430634,
-0.04247993975877762,
-0.023040590807795525,
0.007827186025679111,
-0.020707134157419205,
-0.041157037019729614
] |
10,077 | torch.nn.modules.module | register_full_backward_pre_hook | Register a backward pre-hook on the module.
The hook will be called every time the gradients for the module are computed.
The hook should have the following signature::
hook(module, grad_output) -> tuple[Tensor] or None
The :attr:`grad_output` is a tuple. The hook should
not modify its arguments, but it can optionally return a new gradient with
respect to the output that will be used in place of :attr:`grad_output` in
subsequent computations. Entries in :attr:`grad_output` will be ``None`` for
all non-Tensor arguments.
For technical reasons, when this hook is applied to a Module, its forward function will
receive a view of each Tensor passed to the Module. Similarly the caller will receive a view
of each Tensor returned by the Module's forward function.
.. warning ::
Modifying inputs inplace is not allowed when using backward hooks and
will raise an error.
Args:
hook (Callable): The user-defined hook to be registered.
prepend (bool): If true, the provided ``hook`` will be fired before
all existing ``backward_pre`` hooks on this
:class:`torch.nn.modules.Module`. Otherwise, the provided
``hook`` will be fired after all existing ``backward_pre`` hooks
on this :class:`torch.nn.modules.Module`. Note that global
``backward_pre`` hooks registered with
:func:`register_module_full_backward_pre_hook` will fire before
all hooks registered by this method.
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
| def register_full_backward_pre_hook(
self,
hook: Callable[["Module", _grad_t], Union[None, _grad_t]],
prepend: bool = False,
) -> RemovableHandle:
r"""Register a backward pre-hook on the module.
The hook will be called every time the gradients for the module are computed.
The hook should have the following signature::
hook(module, grad_output) -> tuple[Tensor] or None
The :attr:`grad_output` is a tuple. The hook should
not modify its arguments, but it can optionally return a new gradient with
respect to the output that will be used in place of :attr:`grad_output` in
subsequent computations. Entries in :attr:`grad_output` will be ``None`` for
all non-Tensor arguments.
For technical reasons, when this hook is applied to a Module, its forward function will
receive a view of each Tensor passed to the Module. Similarly the caller will receive a view
of each Tensor returned by the Module's forward function.
.. warning ::
Modifying inputs inplace is not allowed when using backward hooks and
will raise an error.
Args:
hook (Callable): The user-defined hook to be registered.
prepend (bool): If true, the provided ``hook`` will be fired before
all existing ``backward_pre`` hooks on this
:class:`torch.nn.modules.Module`. Otherwise, the provided
``hook`` will be fired after all existing ``backward_pre`` hooks
on this :class:`torch.nn.modules.Module`. Note that global
``backward_pre`` hooks registered with
:func:`register_module_full_backward_pre_hook` will fire before
all hooks registered by this method.
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
"""
handle = hooks.RemovableHandle(self._backward_pre_hooks)
self._backward_pre_hooks[handle.id] = hook
if prepend:
self._backward_pre_hooks.move_to_end(handle.id, last=False) # type: ignore[attr-defined]
return handle
| (self, hook: Callable[[torch.nn.modules.module.Module, Union[Tuple[torch.Tensor, ...], torch.Tensor]], Union[NoneType, Tuple[torch.Tensor, ...], torch.Tensor]], prepend: bool = False) -> torch.utils.hooks.RemovableHandle | [
-0.08324505388736725,
0.005412534810602665,
-0.038481205701828,
0.033376555889844894,
-0.013921772129833698,
0.057686109095811844,
-0.039873383939266205,
0.05033256113529205,
0.036267999559640884,
-0.0661819577217102,
0.05018977075815201,
-0.052617158740758896,
0.006095237098634243,
-0.03018168732523918,
-0.016090355813503265,
0.009450741112232208,
-0.04069440811872482,
0.02902153879404068,
-0.014760647900402546,
-0.05629393458366394,
0.018490968272089958,
0.019776055589318275,
0.0011824581306427717,
0.00748741440474987,
-0.01745576038956642,
-0.03036017157137394,
-0.009245484136044979,
0.02812911756336689,
0.0014457224169746041,
0.03134183585643768,
0.04040883481502533,
-0.03441176563501358,
0.051938917487859726,
-0.020579233765602112,
0.022953074425458908,
-0.056365326046943665,
0.030306626111268997,
0.0455491803586483,
-0.08660055696964264,
0.0029739937745034695,
0.05251006782054901,
-0.05568708851933479,
0.03744599595665932,
0.006693159695714712,
0.05565138906240463,
0.049047473818063736,
-0.006559296511113644,
-0.01583155244588852,
0.009053613990545273,
0.015242555178701878,
0.027754301205277443,
-0.09673846513032913,
0.019811751320958138,
0.012761624529957771,
-0.007938086986541748,
-0.03530418500304222,
0.04683426767587662,
-0.03533988073468208,
-0.03526848927140236,
0.03619660809636116,
0.07114382088184357,
-0.02343498170375824,
0.009566755965352058,
-0.027807846665382385,
0.029878264293074608,
-0.025112735107541084,
-0.0026103320997208357,
-0.05029686167836189,
0.0019488249672576785,
0.008745728060603142,
-0.07774773985147476,
0.008321828208863735,
0.03666066378355026,
0.013877150602638721,
0.04390712454915047,
-0.025344764813780785,
0.036517877131700516,
-0.05022547021508217,
-0.016813216730952263,
-0.01765209250152111,
-0.009745240211486816,
0.007755140773952007,
-0.0019878684543073177,
0.07789053022861481,
-0.0036566960625350475,
-0.060184888541698456,
0.012886563315987587,
-0.04583475738763809,
0.03880247846245766,
0.022721044719219208,
-0.06957316398620605,
-0.02727239392697811,
0.00880819745361805,
0.0093882717192173,
0.054116424173116684,
-0.02814696729183197,
0.0040136645548045635,
0.03289464861154556,
-0.0073580131866037846,
-0.004080596379935741,
0.010387783870100975,
0.019311996176838875,
0.013984241522848606,
0.03683914989233017,
0.06800249963998795,
-0.016233142465353012,
-0.02927141822874546,
-0.010887539014220238,
-0.024184616282582283,
-0.03548267111182213,
0.016286687925457954,
-0.11908469349145889,
0.047476813197135925,
0.016090355813503265,
0.02388119325041771,
-0.004069440998136997,
0.021614443510770798,
-0.004167607519775629,
0.03289464861154556,
-0.007349089253693819,
0.008027329109609127,
-0.058150168508291245,
-0.06139858439564705,
-0.03528633713722229,
-0.018865784630179405,
-0.021132536232471466,
0.08852818608283997,
0.09195508807897568,
0.023613465949892998,
-0.04801226407289505,
0.009468589909374714,
0.06621766090393066,
-0.10673358291387558,
-0.03623230382800102,
0.0002663319755811244,
-0.021328868344426155,
0.028432542458176613,
0.017357593402266502,
-0.004903854802250862,
-0.03505430743098259,
-0.00006229518476175144,
-0.01218155026435852,
-0.002746426500380039,
0.09523919969797134,
-0.04526360705494881,
-0.02520197629928589,
-0.016500869765877724,
0.0772479847073555,
0.0127348517999053,
0.003848566673696041,
-0.00262148748151958,
0.001627553254365921,
0.04312179610133171,
0.014760647900402546,
-0.024505887180566788,
0.03858829662203789,
-0.07810471206903458,
0.059292469173669815,
-0.013332773931324482,
-0.003491598181426525,
0.03143107518553734,
-0.006920726969838142,
0.006693159695714712,
-0.016848914325237274,
0.009352575056254864,
-0.009209787473082542,
0.04483524337410927,
-0.04308610036969185,
-0.007282157428562641,
0.05511593818664551,
0.03976629301905632,
-0.015804780647158623,
0.062005430459976196,
0.06122009828686714,
0.0032528755255043507,
0.05315260961651802,
0.02213204652070999,
-0.06361179053783417,
-0.0735355094075203,
0.03082423098385334,
0.06746704876422882,
0.01800013706088066,
0.010994629934430122,
-0.08046070486307144,
-0.045192211866378784,
-0.020918354392051697,
-0.021846473217010498,
-0.03232349827885628,
0.025790974497795105,
0.030967017635703087,
0.0039757369086146355,
0.02571958117187023,
0.052153099328279495,
-0.016572263091802597,
0.0356968492269516,
0.006688697263598442,
-0.020454294979572296,
0.042943309992551804,
0.04137264937162399,
-0.03296604007482529,
0.00020093422790523618,
0.012966880574822426,
0.029842566698789597,
0.016795368865132332,
-0.014323361217975616,
0.02745087817311287,
0.041194166988134384,
0.04736972227692604,
-0.052581459283828735,
-0.006715469993650913,
0.054830361157655716,
-0.006385274231433868,
-0.021971412003040314,
0.055901266634464264,
-0.04772669076919556,
-0.05565138906240463,
0.022613955661654472,
0.04576336219906807,
0.005363451782613993,
0.003977967891842127,
-0.008018405176699162,
-0.006349577102810144,
0.004067210014909506,
-0.0183124840259552,
-0.006581606809049845,
0.010798296891152859,
-0.028950145468115807,
-0.037874359637498856,
0.023381436243653297,
0.009531059302389622,
0.022703196853399277,
0.02766506001353264,
-0.08574383705854416,
-0.017268352210521698,
0.10744751989841461,
0.044728152453899384,
0.012770548462867737,
0.010271769016981125,
0.054830361157655716,
0.038052842020988464,
0.026415670290589333,
0.05600835755467415,
0.04337167367339134,
-0.016304535791277885,
0.03514355048537254,
0.060434769839048386,
0.004720908589661121,
-0.027397332713007927,
-0.013341697864234447,
0.03712472319602966,
-0.037874359637498856,
0.03416188433766365,
0.027058212086558342,
0.050368256866931915,
-0.039373625069856644,
0.01451076939702034,
0.023542072623968124,
0.008125495165586472,
-0.03819562867283821,
-0.0037459381856024265,
-0.017839500680565834,
-0.021471654996275902,
0.015510281547904015,
0.0050466423854231834,
0.011922747828066349,
-0.04351446032524109,
0.05600835755467415,
0.006536985747516155,
0.029164327308535576,
0.06982304155826569,
0.04940444231033325,
-0.05026116594672203,
-0.03446530923247337,
-0.01683998852968216,
0.011994142085313797,
-0.0055463979952037334,
0.013957468792796135,
-0.008558319881558418,
0.06036337465047836,
0.019704662263393402,
0.042943309992551804,
-0.07075116038322449,
-0.017643168568611145,
-0.019704662263393402,
0.008589554578065872,
0.0075721945613622665,
-0.016697201877832413,
0.05033256113529205,
0.011663946323096752,
-0.018669452518224716,
0.061327189207077026,
0.004540193360298872,
0.029574841260910034,
0.002947221277281642,
0.009620301425457,
0.017036322504281998,
-0.022721044719219208,
0.011396219953894615,
0.026219336315989494,
-0.026005156338214874,
0.023078013211488724,
-0.04222937300801277,
-0.024184616282582283,
0.006719931960105896,
-0.005591019056737423,
-0.08195997029542923,
0.015153313055634499,
-0.031145501881837845,
-0.05008267983794212,
-0.026397820562124252,
-0.023577770218253136,
-0.0012114618439227343,
-0.02764721028506756,
-0.03589318320155144,
-0.013323849067091942,
-0.054402001202106476,
0.030449412763118744,
0.001165725290775299,
0.03034232370555401,
0.007170605007559061,
-0.006327266804873943,
0.03865968808531761,
0.009218711405992508,
0.09680985659360886,
-0.034286826848983765,
0.02229268290102482,
0.0038619530387222767,
0.021560898050665855,
-0.0057828896678984165,
-0.003719165688380599,
-0.06957316398620605,
-0.008245972916483879,
-0.009772012941539288,
0.04222937300801277,
-0.056186843663454056,
-0.024702221155166626,
0.011735339649021626,
-0.07132230699062347,
0.01417164970189333,
-0.020418599247932434,
0.008683258667588234,
0.0018740847008302808,
-0.013377394527196884,
0.01872299797832966,
-0.007353551220148802,
0.023363588377833366,
-0.004147527739405632,
0.05008267983794212,
0.06782401353120804,
0.07689101994037628,
0.041872404515743256,
-0.04640590399503708,
-0.07439223676919937,
0.00376601773314178,
0.04337167367339134,
-0.09680985659360886,
-0.028004178777337074,
-0.0074784900061786175,
0.049011774361133575,
-0.042336463928222656,
-0.017464684322476387,
-0.04169392213225365,
-0.04865480586886406,
0.06939467787742615,
0.04044453054666519,
0.0004325454356148839,
-0.04172961786389351,
0.0006509097875095904,
-0.0481550507247448,
-0.010646585375070572,
0.019151359796524048,
0.00698319636285305,
0.044763851910829544,
0.021792927756905556,
-0.07582011073827744,
-0.037624482065439224,
0.060613252222537994,
0.004729832522571087,
0.00936149898916483,
0.027290241792798042,
0.017973363399505615,
0.008683258667588234,
-0.024291707202792168,
-0.045870453119277954,
0.0031257055234164,
-0.002920448547229171,
-0.03264477103948593,
0.008696645498275757,
0.032698314636945724,
-0.07014431059360504,
0.05654381215572357,
-0.023756254464387894,
-0.014234119094908237,
-0.03187728673219681,
-0.06718147546052933,
-0.00888405367732048,
0.03933792933821678,
-0.004502265248447657,
0.02989611215889454,
-0.04347876459360123,
0.04305040091276169,
0.005653488915413618,
0.01565306819975376,
0.006733318325132132,
-0.00034804429742507637,
0.008210275322198868,
0.002994073322042823,
0.047690991312265396,
0.0335550382733345,
0.03191298618912697,
-0.01195844542235136,
0.03257337585091591,
-0.07582011073827744,
-0.025737429037690163,
0.043193187564611435,
-0.00292937271296978,
-0.024398798123002052,
0.022863833233714104,
-0.07078685611486435,
0.011342674493789673,
0.009236560203135014,
0.017027398571372032,
-0.029217872768640518,
0.014876662753522396,
-0.03328731283545494,
0.041658226400613785,
-0.024898553267121315,
0.01941908709704876,
-0.06475408375263214,
0.07135800272226334,
0.024380948394536972,
-0.020489992573857307,
0.030467262491583824,
0.0007423829520121217,
-0.054116424173116684,
0.021328868344426155,
0.0281648151576519,
0.03280540555715561,
-0.009843406267464161,
-0.0025188589934259653,
0.0032171786297112703,
-0.008370911702513695,
0.028843054547905922,
-0.024862855672836304,
0.008067488670349121,
0.010637661442160606,
-0.039623502641916275,
-0.020025933161377907,
-0.004424178507179022,
0.01775025948882103,
-0.015840478241443634,
0.00972739141434431,
0.032751861959695816,
0.06464699655771255,
0.00222101341933012,
-0.08724310249090195,
-0.07617708295583725,
-0.05329539626836777,
-0.009914800524711609,
0.03880247846245766,
-0.015224706381559372,
0.03530418500304222,
-0.001077040913514793,
-0.008665410801768303,
0.006041692104190588,
-0.017250502482056618,
0.055508602410554886,
-0.035625457763671875,
-0.07021570205688477,
-0.004774453584104776,
0.02411322295665741,
-0.05268855020403862,
0.024898553267121315,
-0.007683746982365847,
-0.009013454429805279,
0.034947216510772705,
0.025630338117480278,
0.015902947634458542,
0.02391689084470272,
-0.05497315153479576,
-0.0010190334869548678,
-0.07389248162508011,
-0.024880705401301384,
0.025737429037690163,
0.02859317697584629,
0.008112109266221523,
-0.059935010969638824,
0.01773240976035595,
-0.014091331511735916,
0.06682450324296951,
-0.021792927756905556,
-0.044728152453899384,
-0.011655021458864212,
0.022667499259114265,
-0.0036254613660275936,
-0.04215798154473305,
0.022167744114995003,
-0.004198842216283083,
0.05243867263197899,
0.008995606563985348,
-0.020222265273332596,
-0.01656333915889263,
-0.017428986728191376,
0.006813636515289545,
-0.00819688942283392,
-0.04487094283103943,
-0.012966880574822426,
0.05176043510437012,
-0.03550051897764206,
0.026023004204034805,
-0.007839920930564404,
0.0036834687925875187,
0.047262631356716156,
0.01783057674765587,
-0.04662008583545685,
0.008638638071715832,
0.04351446032524109,
0.0380171462893486,
-0.015055146999657154,
-0.0366249680519104,
0.0012694692704826593,
0.018455272540450096,
-0.005773965734988451,
-0.05600835755467415,
0.038481205701828,
0.013529106043279171,
0.008009481243789196,
-0.02386334538459778,
-0.00398242985829711,
-0.025558944791555405,
0.02482715994119644,
0.037196118384599686,
0.026897577568888664,
-0.034072645008563995,
-0.008598478510975838,
-0.006117547862231731,
0.044335488229990005,
0.01757177524268627,
-0.062398094683885574,
-0.040979985147714615,
0.00885728094726801,
0.03780296444892883,
0.001888586557470262,
0.014332285150885582,
0.01128912903368473,
-0.013100744225084782,
0.00609077513217926,
0.0406230166554451,
-0.08445874601602554,
-0.03748169168829918,
-0.10030815005302429,
-0.014662481844425201,
0.009236560203135014,
0.029146479442715645,
-0.006072926800698042,
0.024505887180566788,
0.03551836684346199,
0.05272424966096878,
0.0003129052056465298,
-0.004413023125380278,
-0.05875701457262039,
0.015206858515739441,
-0.02213204652070999,
0.035197094082832336,
-0.018151847645640373,
0.005363451782613993,
0.04394282400608063,
-0.013082895427942276,
-0.030734987929463387,
0.030681442469358444,
0.053473882377147675,
-0.004201073199510574,
-0.020900506526231766,
0.011208810843527317,
-0.042086586356163025,
0.016804292798042297,
0.0410870760679245,
-0.05329539626836777,
-0.0005114689120091498,
-0.06543232500553131,
0.0056936475448310375,
-0.025844519957900047,
0.01114634145051241,
-0.008473539724946022,
0.01285086665302515,
0.026023004204034805,
-0.0000700690143276006,
0.1080186665058136,
-0.004560272675007582,
-0.03102056309580803,
-0.04194379970431328,
-0.012395731173455715,
-0.006893954239785671,
-0.07460641860961914,
0.04708414524793625,
0.005238512996584177,
-0.0673956573009491,
0.021757230162620544,
0.011619324795901775,
0.02812911756336689,
0.021275322884321213,
-0.0005025447462685406,
0.038731083273887634,
-0.03862399235367775,
-0.040979985147714615,
-0.07178636640310287,
0.009183014743030071,
0.01016467809677124,
-0.010967857204377651,
-0.055258724838495255,
-0.012467125430703163,
-0.013609424233436584,
0.010343162342905998,
0.019490480422973633,
-0.010459177196025848,
-0.021507352590560913,
0.019758207723498344,
-0.04686996340751648,
0.059042591601610184,
0.026915425434708595,
0.034036945551633835,
-0.018794391304254532,
0.04597754403948784,
0.022364076226949692,
0.016500869765877724,
-0.01260991208255291,
-0.0016599035589024425,
-0.05511593818664551,
0.029324963688850403,
-0.01733974553644657,
-0.0321628637611866,
0.021471654996275902,
0.04087289422750473,
0.005171581171452999,
-0.011556855402886868,
-0.014805268496274948,
0.025416158139705658,
-0.015153313055634499,
0.005037717986851931,
-0.11394434422254562,
-0.037660177797079086,
-0.0013743287418037653,
0.016090355813503265,
-0.014153800904750824,
-0.029092933982610703,
0.02588021755218506,
0.015144389122724533,
-0.04126555845141411,
0.07582011073827744,
-0.03533988073468208,
-0.005055566318333149,
0.020668476819992065,
-0.02277459017932415,
0.04444257915019989,
0.0015427732141688466,
0.025541096925735474,
0.0598636195063591,
0.0029026002157479525,
0.017393290996551514,
0.0013274765806272626,
-0.007224150002002716,
-0.009236560203135014,
0.027986330911517143,
0.025077037513256073,
-0.04112277179956436,
0.0254697035998106,
0.040301743894815445,
-0.01943693496286869,
-0.01644732430577278,
-0.04626311734318733,
-0.056151144206523895,
-0.03268046677112579,
-0.07617708295583725,
-0.0410870760679245,
0.07196485251188278,
-0.05090370774269104,
-0.014876662753522396,
0.011440840549767017,
0.01850881613790989,
0.019722510129213333,
-0.0038374115247279406,
0.026219336315989494,
-0.023399285972118378,
0.003085546428337693,
-0.01897287555038929,
0.04087289422750473,
-0.021596593782305717,
0.026290729641914368,
-0.02073987014591694,
0.0055463979952037334,
0.0540093332529068,
-0.007018893025815487,
0.0700015276670456,
-0.0352327898144722,
-0.021757230162620544,
-0.01856236159801483,
-0.021757230162620544,
0.0007128214929252863,
-0.004230076912790537,
-0.030877776443958282,
0.016233142465353012,
0.008254896849393845,
-0.013457712717354298,
-0.03376922011375427,
-0.005202815867960453,
0.007331240922212601,
-0.009870178997516632,
-0.06889492273330688,
-0.06179124861955643,
0.04197949543595314,
0.02234622836112976,
-0.008437843061983585,
0.029824718832969666,
-0.019347693771123886,
0.03152031823992729,
-0.05465187877416611,
-0.06143428012728691,
-0.04526360705494881,
0.008986681699752808,
0.022649651393294334,
-0.003192637115716934,
0.012217246927320957,
-0.010004042647778988,
0.009539983235299587,
0.038516901433467865,
-0.06393305957317352,
0.024398798123002052,
-0.025326915085315704,
-0.07332132756710052,
-0.05286703631281853,
0.06097022071480751,
0.014225195161998272,
-0.0052831340581178665,
0.0014959211694076657,
0.07050128281116486,
-0.02300661988556385,
0.010860767215490341,
0.045656271278858185,
0.01318998634815216,
-0.020472144708037376,
-0.005541936028748751,
-0.005939063616096973,
0.00799163244664669,
0.010459177196025848,
0.050118379294872284,
0.02637997269630432,
-0.01798228919506073,
-0.060399070382118225,
-0.013564803637564182,
0.011556855402886868,
0.019740357995033264,
0.04347876459360123,
-0.01730404794216156,
-0.009013454429805279,
0.037624482065439224,
-0.018919330090284348,
-0.017643168568611145,
0.015760159119963646,
-0.05272424966096878,
-0.08438735455274582,
0.01966896466910839,
-0.008705569431185722,
0.03303743526339531,
-0.034501004964113235,
0.006635152269154787,
-0.004256849642843008,
-0.007839920930564404,
-0.03526848927140236
] |
10,078 | torch.nn.modules.module | register_load_state_dict_post_hook | Register a post hook to be run after module's ``load_state_dict`` is called.
It should have the following signature::
hook(module, incompatible_keys) -> None
The ``module`` argument is the current module that this hook is registered
on, and the ``incompatible_keys`` argument is a ``NamedTuple`` consisting
of attributes ``missing_keys`` and ``unexpected_keys``. ``missing_keys``
is a ``list`` of ``str`` containing the missing keys and
``unexpected_keys`` is a ``list`` of ``str`` containing the unexpected keys.
The given incompatible_keys can be modified inplace if needed.
Note that the checks performed when calling :func:`load_state_dict` with
``strict=True`` are affected by modifications the hook makes to
``missing_keys`` or ``unexpected_keys``, as expected. Additions to either
set of keys will result in an error being thrown when ``strict=True``, and
clearing out both missing and unexpected keys will avoid an error.
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
| def register_load_state_dict_post_hook(self, hook):
r"""Register a post hook to be run after module's ``load_state_dict`` is called.
It should have the following signature::
hook(module, incompatible_keys) -> None
The ``module`` argument is the current module that this hook is registered
on, and the ``incompatible_keys`` argument is a ``NamedTuple`` consisting
of attributes ``missing_keys`` and ``unexpected_keys``. ``missing_keys``
is a ``list`` of ``str`` containing the missing keys and
``unexpected_keys`` is a ``list`` of ``str`` containing the unexpected keys.
The given incompatible_keys can be modified inplace if needed.
Note that the checks performed when calling :func:`load_state_dict` with
``strict=True`` are affected by modifications the hook makes to
``missing_keys`` or ``unexpected_keys``, as expected. Additions to either
set of keys will result in an error being thrown when ``strict=True``, and
clearing out both missing and unexpected keys will avoid an error.
Returns:
:class:`torch.utils.hooks.RemovableHandle`:
a handle that can be used to remove the added hook by calling
``handle.remove()``
"""
handle = hooks.RemovableHandle(self._load_state_dict_post_hooks)
self._load_state_dict_post_hooks[handle.id] = hook
return handle
| (self, hook) | [
-0.020464656874537468,
0.054017819464206696,
-0.07705210894346237,
0.04030076786875725,
0.012922126799821854,
0.042593106627464294,
-0.016037117689847946,
0.041151151061058044,
0.03588247299194336,
-0.08533410727977753,
0.016305172815918922,
0.01539008691906929,
-0.023496456444263458,
-0.02292337268590927,
-0.025936687365174294,
0.0012478448916226625,
-0.0522061325609684,
0.08866169303655624,
-0.07061877846717834,
-0.06999023258686066,
0.0037666428834199905,
0.010287787765264511,
0.022146936506032944,
0.026971936225891113,
0.0015332315815612674,
-0.08052758872509003,
-0.016850527375936508,
-0.010038218460977077,
0.07668238133192062,
0.053611114621162415,
0.0040901582688093185,
-0.044109005481004715,
0.03647404536604881,
0.016869014129042625,
-0.019022701308131218,
-0.03628917783498764,
0.051614560186862946,
0.013033046387135983,
-0.025881227105855942,
-0.014622893184423447,
0.00898448284715414,
0.013097750023007393,
0.019263027235865593,
0.018985729664564133,
0.06451820582151413,
0.037712644785642624,
-0.046586208045482635,
-0.013412022031843662,
0.016027873381972313,
-0.004707148298621178,
0.001579448115080595,
-0.07054483145475388,
0.03919157385826111,
0.022257855162024498,
0.03734291344881058,
0.008702563121914864,
0.009511350654065609,
-0.0588243305683136,
-0.016869014129042625,
-0.016138793900609016,
0.01363386120647192,
-0.00447837682440877,
-0.02946762554347515,
-0.0194294061511755,
0.025585440918803215,
-0.014234675094485283,
0.007071121130138636,
-0.04325862228870392,
-0.008115613833069801,
-0.01839415729045868,
-0.04765843227505684,
-0.05394387245178223,
0.04440478980541229,
0.019041188061237335,
0.033090997487306595,
0.028672702610492706,
-0.005065326113253832,
-0.030281035229563713,
-0.013393535278737545,
0.027286207303404808,
-0.03823027014732361,
-0.03750929236412048,
-0.021869637072086334,
0.0720607340335846,
-0.06078391149640083,
-0.0389697328209877,
0.03373802825808525,
-0.017229503020644188,
-0.006095953285694122,
-0.016314417123794556,
-0.018606754019856453,
0.0275450199842453,
0.00397461699321866,
-0.014909435994923115,
-0.0026921099051833153,
-0.03383046016097069,
0.015417817048728466,
0.08799616992473602,
0.0030456657987087965,
-0.022553641349077225,
-0.006867768708616495,
-0.049876824021339417,
0.011212117038667202,
0.010870115831494331,
0.011128927581012249,
-0.05819578841328621,
-0.014780029654502869,
-0.03582701459527016,
-0.08452069014310837,
-0.04170574992895126,
0.001649928279221058,
-0.09265479445457458,
-0.003034111810848117,
0.034958142787218094,
0.02286791242659092,
0.02665766328573227,
-0.008217290043830872,
-0.020963793620467186,
0.009548324160277843,
0.01108271162956953,
-0.000404105318011716,
-0.007852179929614067,
-0.020205844193696976,
0.031297799199819565,
-0.043628353625535965,
0.030077682808041573,
0.04510728269815445,
0.05527490749955177,
-0.0012952167307958007,
-0.015427060425281525,
-0.008152586407959461,
0.050579313188791275,
-0.07609080523252487,
-0.01215493306517601,
-0.017885776236653328,
0.0005950371269136667,
0.02650977112352848,
0.021740231662988663,
0.03022557683289051,
-0.031242338940501213,
0.026398852467536926,
-0.004134064074605703,
-0.01009367872029543,
0.038045402616262436,
0.00017403392121195793,
0.003879873314872384,
-0.056568969041109085,
0.07705210894346237,
0.01607409119606018,
-0.028118105605244637,
0.04048563539981842,
-0.01384645700454712,
-0.02512327767908573,
0.04536609351634979,
-0.058084867894649506,
0.03919157385826111,
-0.005578328855335712,
0.025788795202970505,
-0.034606896340847015,
-0.024254407733678818,
0.022424234077334404,
-0.03586398810148239,
0.02534511685371399,
-0.03471781685948372,
-0.014909435994923115,
-0.018542051315307617,
0.0723934918642044,
-0.09080613404512405,
0.011674282141029835,
0.023995595052838326,
-0.03296159207820892,
-0.0028700432740151882,
-0.004721013363450766,
0.046586208045482635,
-0.008674832992255688,
0.06536858528852463,
-0.025862740352749825,
-0.06525766849517822,
-0.04544004052877426,
0.029097894206643105,
0.06185613200068474,
0.008600885979831219,
-0.020353736355900764,
0.016111064702272415,
-0.03383046016097069,
-0.002555771265178919,
-0.05420268326997757,
0.01882859319448471,
-0.012709531001746655,
0.06278046220541,
0.030391955748200417,
0.014280891045928001,
0.04839789494872093,
-0.022331802174448967,
-0.023367051035165787,
0.03545727953314781,
-0.05708659440279007,
-0.016767337918281555,
0.03275823965668678,
-0.00905842985957861,
0.0015967793297022581,
-0.02519722282886505,
-0.04074444621801376,
0.019651245325803757,
-0.039635252207517624,
-0.04207548126578331,
-0.005310273263603449,
-0.0033229647669941187,
0.0011496348306536674,
-0.012903640046715736,
0.03022557683289051,
-0.019447892904281616,
-0.029781898483633995,
0.048102110624313354,
-0.02135201171040535,
-0.07376150041818619,
0.01477078627794981,
0.029874330386519432,
-0.0021941273007541895,
-0.04780632257461548,
0.06862222403287888,
0.06969444453716278,
0.00014818158524576575,
-0.0037735754158347845,
-0.039154600352048874,
-0.01842188835144043,
-0.012996073812246323,
-0.009303377009928226,
0.041557855904102325,
0.045772798359394073,
-0.007325311657041311,
0.03937643766403198,
-0.028598755598068237,
-0.029153354465961456,
0.13576552271842957,
0.044367820024490356,
0.005476652644574642,
-0.07002720981836319,
0.07091455906629562,
0.07124732434749603,
0.051762454211711884,
0.029245786368846893,
0.007621096912771463,
-0.06699540466070175,
-0.014641379937529564,
0.058713413774967194,
-0.003757399506866932,
-0.006040493492037058,
-0.006830795202404261,
0.03390440717339516,
0.03231456130743027,
0.00014269337407313287,
0.008637859486043453,
0.05849157273769379,
0.008596264757215977,
0.04902644082903862,
0.05660594254732132,
0.0007261764258146286,
-0.0016707256436347961,
-0.02761896699666977,
0.02761896699666977,
-0.016101820394396782,
-0.03848908096551895,
0.02362586371600628,
-0.005767816212028265,
-0.018237022683024406,
0.048730652779340744,
0.022609099745750427,
0.017423611134290695,
-0.007773611694574356,
0.027378641068935394,
-0.04329559579491615,
-0.06577529013156891,
-0.0341077595949173,
-0.0006805376033298671,
0.02870967611670494,
0.04129904508590698,
-0.011147414334118366,
0.022017529234290123,
0.06004444882273674,
0.06185613200068474,
-0.011775958351790905,
0.04200153425335884,
-0.0019630449824035168,
-0.028894541785120964,
0.02342251129448414,
-0.07183889299631119,
0.0408923402428627,
0.038378164172172546,
-0.04928525164723396,
0.053056515753269196,
0.028007185086607933,
0.004381321836262941,
0.05346322059631348,
-0.011415469460189342,
-0.021943584084510803,
-0.07816130667924881,
0.008739535696804523,
0.04518122971057892,
0.02210996299982071,
0.014835488982498646,
-0.002172174397855997,
0.016508525237441063,
0.029282759875059128,
0.0032420859206467867,
-0.054572414606809616,
0.05213218554854393,
0.0006857370026409626,
-0.0950210765004158,
0.004857351537793875,
-0.010805412195622921,
0.03684377670288086,
-0.028469350188970566,
-0.01201628427952528,
0.02479051798582077,
-0.05468333512544632,
0.016286686062812805,
-0.033017050474882126,
-0.0014974138466641307,
-0.003475479083135724,
-0.06359387189149857,
0.024698086082935333,
-0.03627069294452667,
-0.007990828715264797,
0.025529982522130013,
-0.04544004052877426,
0.05915709212422371,
-0.051688507199287415,
0.07287414371967316,
-0.021111687645316124,
-0.05623621121048927,
-0.06004444882273674,
0.004626269452273846,
0.04381322115659714,
0.004522282164543867,
-0.015750575810670853,
0.003401532769203186,
-0.012968343682587147,
-0.013402778655290604,
-0.044996362179517746,
-0.02362586371600628,
-0.011785201728343964,
-0.009238673374056816,
0.008143343031406403,
0.002394013572484255,
0.026842530816793442,
-0.0398201160132885,
0.03423716500401497,
0.025382088497281075,
0.027378641068935394,
-0.04869367927312851,
-0.06348295509815216,
-0.01776561327278614,
0.030798660591244698,
0.04129904508590698,
-0.07442701607942581,
0.010361733846366405,
0.006498036906123161,
0.0074408529326319695,
-0.025585440918803215,
0.006345522124320269,
0.0020289034582674503,
-0.07316992431879044,
0.04189061373472214,
0.07553621381521225,
-0.01408678200095892,
-0.0214074719697237,
-0.05335230007767677,
-0.037712644785642624,
-0.04104023054242134,
0.035974904894828796,
-0.0733547955751419,
-0.01221963670104742,
0.05006168782711029,
0.052649810910224915,
-0.024938412010669708,
0.022220881655812263,
0.013180939480662346,
0.012284339405596256,
0.02761896699666977,
0.008623994886875153,
-0.008827347308397293,
0.011748228222131729,
-0.0289315152913332,
0.025918200612068176,
-0.01807064190506935,
0.005264056846499443,
0.017247989773750305,
0.02395862154662609,
-0.04828697443008423,
0.005938817281275988,
0.010583573020994663,
-0.004279645625501871,
0.03919157385826111,
-0.008143343031406403,
-0.007838314399123192,
-0.029726438224315643,
-0.015427060425281525,
0.03471781685948372,
-0.014179214835166931,
0.04007893055677414,
0.021444445475935936,
-0.017451342195272446,
-0.037490807473659515,
0.034606896340847015,
0.021462932229042053,
-0.051947321742773056,
0.031649041920900345,
-0.005282543133944273,
-0.021388985216617584,
0.031242338940501213,
0.04333256930112839,
-0.020704980939626694,
-0.06185613200068474,
0.0066181994043290615,
-0.011628065258264542,
0.03606734052300453,
0.03175996243953705,
-0.036880750209093094,
-0.04229731857776642,
0.062484677881002426,
0.02100076712667942,
-0.005638410337269306,
0.030798660591244698,
-0.0350690633058548,
0.006414846982806921,
-0.025289656594395638,
0.021315040066838264,
-0.021222606301307678,
0.030835634097456932,
0.03227758780121803,
0.013689320534467697,
0.03532787412405014,
0.043628353625535965,
-0.007052634377032518,
-0.023256130516529083,
0.013199426233768463,
-0.005448922514915466,
-0.03275823965668678,
0.04876762628555298,
-0.054498471319675446,
0.009169349446892738,
0.05187337473034859,
0.028247511014342308,
0.06252165138721466,
-0.00023584846348967403,
0.008231154642999172,
-0.02107471413910389,
0.06958352774381638,
0.0130515331402421,
-0.037768106907606125,
-0.01173898484557867,
-0.004540768917649984,
0.02512327767908573,
-0.02802567183971405,
-0.03547576814889908,
-0.029985250905156136,
-0.039635252207517624,
-0.026121553033590317,
0.03408927470445633,
-0.03388592228293419,
-0.022756993770599365,
-0.02691647596657276,
0.04333256930112839,
0.01559343934059143,
-0.017525287345051765,
-0.05301954224705696,
-0.01171125564724207,
-0.01029703114181757,
0.02939368039369583,
0.0030294901225715876,
0.051762454211711884,
0.046179503202438354,
-0.038045402616262436,
-0.04510728269815445,
-0.0076673137955367565,
0.04725172743201256,
-0.010361733846366405,
-0.021093200892210007,
-0.01600014418363571,
0.07483372092247009,
0.018440375104546547,
-0.02673161029815674,
0.009539080783724785,
-0.026066092774271965,
-0.0011831418378278613,
-0.01331958919763565,
0.04976590350270271,
0.03362710773944855,
0.07660843431949615,
-0.007320689968764782,
-0.06026628613471985,
0.041557855904102325,
0.018237022683024406,
0.01445651426911354,
-0.07431609183549881,
0.01071297936141491,
0.0067106327041983604,
0.07483372092247009,
-0.06226283684372902,
-0.020020978525280952,
-0.014243918471038342,
-0.0004667864122893661,
0.06311322003602982,
-0.02795172482728958,
-0.029781898483633995,
-0.015140517614781857,
0.05069023370742798,
0.010870115831494331,
0.0010179178789258003,
-0.044515710324048996,
-0.04104023054242134,
0.06666264683008194,
-0.015417817048728466,
0.011323036625981331,
-0.003043354954570532,
0.004721013363450766,
0.05187337473034859,
-0.036954693496227264,
0.036806803196668625,
0.016416093334555626,
0.009483621455729008,
0.055053066462278366,
-0.08237624913454056,
0.01087935920804739,
0.006498036906123161,
0.016536256298422813,
-0.021167146041989326,
0.019170595332980156,
-0.010463410057127476,
-0.025049330666661263,
-0.005264056846499443,
0.04137299209833145,
-0.03525392711162567,
-0.01408678200095892,
0.03414473310112953,
0.023219158872961998,
0.00048411759780719876,
-0.03678831458091736,
-0.03808237612247467,
0.005171624012291431,
0.01617576740682125,
0.016795067116618156,
-0.02340402454137802,
0.017728639766573906,
-0.002484135562554002,
-0.028598755598068237,
0.0289869736880064,
-0.059748660773038864,
-0.021037740632891655,
-0.073983334004879,
-0.008309722878038883,
0.01968821883201599,
-0.03730593994259834,
-0.011304549872875214,
-0.03486571088433266,
0.053130462765693665,
0.022701533511281013,
0.007926126010715961,
-0.04336954280734062,
-0.04159482941031456,
0.04599463939666748,
-0.005324138328433037,
0.024772031232714653,
0.02658371813595295,
0.009871839545667171,
-0.008942888118326664,
0.012265852652490139,
-0.042519159615039825,
0.03368256986141205,
0.0723934918642044,
-0.01970670558512211,
0.007168175652623177,
-0.04351743683218956,
-0.011073468253016472,
0.004434471018612385,
0.037213508039712906,
-0.013328831642866135,
0.01817231811583042,
-0.033645596355199814,
0.03159358352422714,
0.05538582801818848,
0.011461686342954636,
-0.01039870735257864,
-0.01779334433376789,
0.03667739778757095,
0.008055532351136208,
0.11949732154607773,
0.03739837184548378,
0.0059526823461055756,
-0.07280019670724869,
0.049137357622385025,
-0.0057262214832007885,
-0.07379847019910812,
0.031149905174970627,
-0.02011341042816639,
0.033090997487306595,
0.027489561587572098,
-0.010260057635605335,
-0.014659866690635681,
0.014622893184423447,
-0.0156673863530159,
0.01009367872029543,
-0.0361967459321022,
0.0017388949636369944,
-0.04030076786875725,
0.035161495208740234,
0.04033774137496948,
0.023662837222218513,
-0.03553122654557228,
-0.03342375531792641,
-0.03893275931477547,
0.029319733381271362,
0.00957605428993702,
0.01353218499571085,
-0.046734102070331573,
0.020982280373573303,
-0.04629042372107506,
0.05405479297041893,
-0.003815170144662261,
-0.03458841145038605,
-0.03760172426700592,
0.0036626558285206556,
-0.003020246746018529,
0.01789502054452896,
-0.04828697443008423,
-0.043480463325977325,
0.0053842198103666306,
-0.029597032815217972,
-0.05557069182395935,
-0.05131877586245537,
0.07198678702116013,
0.027156801894307137,
-0.0560513436794281,
0.04592069238424301,
0.06666264683008194,
0.0484718419611454,
-0.0007019127369858325,
0.036603450775146484,
-0.033571649342775345,
0.02016887068748474,
0.013227155432105064,
-0.0011161279398947954,
-0.009751676581799984,
-0.016203496605157852,
0.04104023054242134,
0.02817356400191784,
-0.012182663194835186,
0.08962298929691315,
-0.03599339351058006,
0.012284339405596256,
-0.01205325685441494,
-0.05035747215151787,
-0.013384291902184486,
-0.010528113692998886,
-0.016157280653715134,
0.026565231382846832,
0.033220402896404266,
-0.015574952587485313,
0.024605652317404747,
-0.03105747327208519,
0.005624545272439718,
-0.04233429208397865,
-0.005998898763209581,
0.03323889151215553,
-0.00014168239431455731,
-0.021037740632891655,
0.036400098353624344,
-0.004825000185519457,
-0.03118687868118286,
-0.010842385701835155,
-0.07346571236848831,
-0.03211120888590813,
-0.0027729887515306473,
0.03765718638896942,
-0.014622893184423447,
-0.009751676581799984,
0.030114656314253807,
0.074094258248806,
0.031501151621341705,
-0.022479694336652756,
0.013596887700259686,
-0.05653199553489685,
-0.0003812859358731657,
-0.024679599329829216,
0.0723934918642044,
-0.008309722878038883,
0.04200153425335884,
0.007195905316621065,
0.028007185086607933,
0.051947321742773056,
0.0033922893926501274,
0.0380084291100502,
0.005213218741118908,
-0.04983985051512718,
-0.05131877586245537,
-0.033497702330350876,
-0.027082854881882668,
-0.02837691642343998,
-0.0062114945612847805,
0.02418046072125435,
0.02066800929605961,
0.025992147624492645,
-0.04425689950585365,
0.004584674723446369,
-0.01880086213350296,
-0.056975673884153366,
-0.022775480523705482,
-0.032203640788793564,
0.006553496699780226,
0.0037897510919719934,
-0.011544875800609589,
0.022978832945227623,
-0.03451446443796158,
-0.0199655182659626,
-0.05187337473034859,
-0.01607409119606018,
-0.06910287588834763,
-0.03207423537969589,
-0.03941341117024422,
-0.06636685878038406,
0.011212117038667202,
-0.019743679091334343,
-0.014650623314082623,
0.03085412085056305,
-0.022978832945227623,
0.025308143347501755,
-0.034958142787218094,
0.029449138790369034,
0.03307251259684563,
0.045477014034986496,
-0.018505077809095383,
-0.05534885451197624,
-0.007274473551660776,
-0.014142242260277271,
-0.019780652597546577,
0.047473564743995667,
0.05819578841328621,
0.032887645065784454,
-0.0052224621176719666,
0.02602911926805973,
0.017044637352228165,
0.07668238133192062,
0.029652491211891174,
0.06596015393733978,
0.011674282141029835,
-0.03510603681206703,
-0.022960346192121506,
-0.022886399179697037,
0.06607107818126678,
0.03484722226858139,
0.08651724457740784,
-0.004064739216119051,
-0.030465900897979736,
0.030946552753448486,
-0.021943584084510803,
0.028876055032014847,
-0.01907816156744957,
-0.025012357160449028,
-0.028524810448288918,
0.0035840878263115883,
-0.057678163051605225,
0.006498036906123161,
-0.049876824021339417,
0.07135824114084244,
-0.028284484520554543,
-0.029171841219067574,
-0.06126456335186958
] |
10,079 | torch.nn.modules.module | register_module | Alias for :func:`add_module`. | def register_module(self, name: str, module: Optional['Module']) -> None:
r"""Alias for :func:`add_module`."""
self.add_module(name, module)
| (self, name: str, module: Optional[torch.nn.modules.module.Module]) -> NoneType | [
0.020975816994905472,
-0.0221304502338171,
0.05521240830421448,
0.03514630347490311,
-0.027168843895196915,
0.0026329110842198133,
-0.03133251890540123,
0.07445628196001053,
-0.0007528070127591491,
-0.049649182707071304,
0.02597922272980213,
-0.03614348545670509,
0.0017778710462152958,
0.049019381403923035,
0.035513684153556824,
0.0072820549830794334,
0.010304217226803303,
0.0059962146915495396,
-0.06938289850950241,
-0.027868621051311493,
0.019016440957784653,
0.056087132543325424,
0.03736809641122818,
-0.01159005705267191,
-0.03985230252146721,
0.0709923803806305,
0.06304991245269775,
0.012604733929038048,
-0.07081744074821472,
-0.06182530149817467,
0.03259211778640747,
-0.10132771730422974,
0.01325202826410532,
-0.012044912204146385,
-0.0007161780958995223,
-0.012289834208786488,
-0.03392169252038002,
0.06161537021398544,
-0.07120231539011002,
-0.025489378720521927,
0.04163673520088196,
0.04219655692577362,
-0.021080784499645233,
-0.009866856038570404,
0.015281381085515022,
0.05531737580895424,
-0.028131037950515747,
0.024177297949790955,
-0.009158331900835037,
0.04387602210044861,
0.01164254080504179,
-0.0009354050853289664,
0.0020402874797582626,
0.0021889901254326105,
-0.01868404820561409,
0.021693088114261627,
0.025734301656484604,
0.04520559683442116,
0.014844020828604698,
0.03129752725362778,
0.0424414798617363,
-0.0324171707034111,
0.027116360142827034,
-0.00504276854917407,
-0.022445349022746086,
0.0549674890935421,
-0.013208291493356228,
-0.02529694139957428,
0.05265822261571884,
0.027046382427215576,
-0.011817485094070435,
-0.010680347681045532,
0.017223263159394264,
-0.029163207858800888,
0.01868404820561409,
0.029530592262744904,
-0.05034895986318588,
0.00787249207496643,
-0.04104192554950714,
0.017686864361166954,
0.0001227343309437856,
0.004380166996270418,
-0.00518709747120738,
0.01735447160899639,
-0.06955783814191818,
-0.018998946994543076,
-0.0683332309126854,
-0.029530592262744904,
-0.002956558018922806,
-0.043211232870817184,
-0.03047529049217701,
-0.022410361096262932,
0.0031249418389052153,
0.06130047142505646,
0.026434078812599182,
-0.07795516401529312,
-0.0019976447802037,
-0.024334747344255447,
-0.04111190140247345,
0.030055424198508263,
-0.03421909734606743,
-0.00235737394541502,
-0.007076495327055454,
-0.015053953975439072,
-0.0011863408144563437,
-0.015841202810406685,
0.01591992750763893,
0.0031817988492548466,
-0.016261069104075432,
0.00847604963928461,
0.00907960720360279,
0.0021037047263234854,
0.019926151260733604,
-0.03213725984096527,
-0.014126749709248543,
0.005252701696008444,
0.05731173977255821,
-0.043316200375556946,
0.04002724587917328,
0.023372553288936615,
-0.013523191213607788,
0.014677823521196842,
-0.0006062912289053202,
-0.026119178161025047,
0.03528625890612602,
-0.04058706760406494,
0.013383235782384872,
0.013724377378821373,
0.011808738112449646,
-0.10328709334135056,
0.05398780107498169,
0.0030549641232937574,
-0.024754613637924194,
0.03936246037483215,
0.0023814288433641195,
-0.02225290983915329,
-0.010426677763462067,
0.08152402937412262,
0.00385096063837409,
0.05934109538793564,
-0.06721358746290207,
-0.008703476749360561,
-0.027851127088069916,
0.059935905039310455,
0.00980562623590231,
-0.08173395693302155,
-0.07162217795848846,
0.052868157625198364,
-0.048494551330804825,
-0.015360106714069843,
-0.036773283034563065,
-0.024649646133184433,
0.040447112172842026,
0.04149677976965904,
-0.05237831175327301,
0.03771798312664032,
0.04086697846651077,
0.020048612728714943,
-0.0018904914613813162,
0.015176414512097836,
0.0189814530313015,
-0.030545268207788467,
0.00585188576951623,
-0.009315782226622105,
-0.014441649429500103,
-0.0447157546877861,
0.006722233258187771,
0.016742166131734848,
-0.0009463391033932567,
0.017048317939043045,
0.06742352247238159,
-0.023372553288936615,
0.006639134604483843,
0.015167667530477047,
0.018141720443964005,
0.056891873478889465,
0.0066347611136734486,
0.01038294192403555,
-0.004043399356305599,
-0.02195550501346588,
0.0324171707034111,
0.04226653277873993,
-0.01976870186626911,
0.009630681946873665,
0.026311617344617844,
0.00645544333383441,
0.009149584919214249,
0.04002724587917328,
0.022952686995267868,
0.0012606921372935176,
0.018701542168855667,
0.007854997180402279,
0.04265141114592552,
-0.022970180958509445,
0.003197106532752514,
0.004657891113311052,
-0.01672467216849327,
0.0012257032794877887,
0.02081836760044098,
0.04328121244907379,
-0.02403734251856804,
0.04146179184317589,
0.003148996736854315,
0.10342705249786377,
0.04139181226491928,
-0.02270776592195034,
0.04709499701857567,
0.045345552265644073,
0.017721854150295258,
-0.040901970118284225,
0.031717393547296524,
-0.03093014657497406,
-0.019243869930505753,
0.03603851795196533,
-0.0419866219162941,
0.02597922272980213,
0.036423396319150925,
-0.02172807790338993,
0.04842457175254822,
-0.04915933683514595,
0.0035469948779791594,
0.06458942592144012,
-0.018351653590798378,
-0.027203833684325218,
0.0362134613096714,
-0.034761425107717514,
-0.010146766901016235,
-0.041951633989810944,
-0.0005313932197168469,
0.03047529049217701,
0.059830937534570694,
0.05122368037700653,
-0.0638546571135521,
-0.0433511883020401,
-0.04083199054002762,
-0.02018856815993786,
0.0005975440144538879,
-0.007837503217160702,
-0.01742444932460785,
-0.05388283357024193,
0.024124814197421074,
0.05248327925801277,
-0.011345135048031807,
0.03729811683297157,
-0.05482753366231918,
-0.04041212424635887,
-0.06332982331514359,
-0.005453887395560741,
0.004605407826602459,
0.020538456737995148,
-0.01616485044360161,
0.003085579490289092,
-0.027448754757642746,
0.010706588625907898,
-0.012718448415398598,
0.0009567264351062477,
-0.0008714410942047834,
0.037228140980005264,
0.010295470245182514,
0.013409477658569813,
-0.01759939268231392,
-0.050908781588077545,
-0.0013339499710127711,
-0.08355338126420975,
0.015342611819505692,
-0.02580427937209606,
0.005248327739536762,
-0.016742166131734848,
0.013654399663209915,
-0.006131796631962061,
0.020328523591160774,
-0.016348540782928467,
0.03577610105276108,
0.0029018879868090153,
0.019908657297492027,
-0.030790191143751144,
0.026923922821879387,
-0.011765001341700554,
-0.015447578392922878,
0.03519878536462784,
0.017039570957422256,
-0.07620572298765182,
0.007435131352394819,
0.03904755786061287,
-0.03743807226419449,
0.022900203242897987,
0.02960056997835636,
0.07057251781225204,
0.0023048906587064266,
-0.010190503671765327,
-0.0029609317425638437,
0.04842457175254822,
-0.03460397571325302,
0.04394599795341492,
-0.0243697352707386,
0.042406488209962845,
-0.06371469795703888,
0.04209158942103386,
0.023442531004548073,
-0.028988264501094818,
-0.013715630397200584,
-0.005598216317594051,
-0.00501652667298913,
-0.0027116360142827034,
-0.0006330795586109161,
-0.03271457552909851,
-0.00859413668513298,
-0.0017691238317638636,
-0.07494612038135529,
0.038837626576423645,
-0.04275637865066528,
0.0406920351088047,
-0.07620572298765182,
-0.02127322182059288,
0.0442609004676342,
0.047864750027656555,
0.0974789410829544,
0.042126577347517014,
-0.00501652667298913,
-0.00585188576951623,
0.002280835760757327,
-0.0362134613096714,
-0.03922250494360924,
-0.034761425107717514,
0.06560409814119339,
0.000866520800627768,
0.021570628508925438,
-0.032574620097875595,
0.04083199054002762,
-0.003934059292078018,
-0.0330994538962841,
0.05038394778966904,
0.036773283034563065,
0.03341435268521309,
-0.09174077212810516,
-0.049824126064777374,
0.014091760851442814,
-0.045555487275123596,
-0.039642371237277985,
-0.004609781317412853,
0.0010906681418418884,
0.005195844452828169,
-0.05601715296506882,
-0.016138607636094093,
0.0014159551355987787,
0.014922745525836945,
-0.03764800727367401,
-0.0045048147439956665,
-0.008244248107075691,
0.03381672501564026,
-0.010741577483713627,
0.01633104681968689,
-0.03178737312555313,
-0.016917109489440918,
0.03810286149382591,
0.06402960419654846,
0.010654105804860592,
0.028935780748724937,
-0.0652192234992981,
-0.0858626440167427,
-0.032732073217630386,
0.05776659771800041,
-0.004605407826602459,
-0.018893981352448463,
0.018701542168855667,
0.021360695362091064,
-0.018789013847708702,
0.02961806394159794,
0.02989797480404377,
-0.03528625890612602,
-0.02841094881296158,
-0.04789973795413971,
0.009586946107447147,
0.030912650749087334,
-0.03093014657497406,
0.04132183641195297,
0.039292480796575546,
-0.01072408352047205,
-0.0724269226193428,
-0.07466620951890945,
0.0666537657380104,
-0.005773160606622696,
0.009788131341338158,
-0.03133251890540123,
0.003656335175037384,
0.00347045692615211,
0.027816137298941612,
0.001366752083413303,
-0.021535638719797134,
-0.04034214839339256,
-0.01198368240147829,
-0.04041212424635887,
-0.016637198626995087,
0.034411538392305374,
-0.020538456737995148,
-0.008379830047488213,
-0.06329483538866043,
0.021133266389369965,
-0.07886487245559692,
0.04618528485298157,
0.046430207788944244,
-0.030860168859362602,
0.03024786338210106,
-0.024229779839515686,
-0.01639227755367756,
0.04506564140319824,
0.007570712827146053,
0.002899701241403818,
0.0648343414068222,
-0.0034529624972492456,
0.0035819837357848883,
0.019121408462524414,
-0.07984456419944763,
-0.03603851795196533,
-0.017756842076778412,
-0.013531939126551151,
0.04139181226491928,
-0.014844020828604698,
0.00042478652903810143,
-0.012753437273204327,
0.013068336062133312,
-0.03180486708879471,
-0.04730492830276489,
0.0419866219162941,
0.017721854150295258,
0.023530002683401108,
0.03691323846578598,
0.017389459535479546,
-0.05363791063427925,
0.021203244104981422,
-0.05122368037700653,
0.055457331240177155,
0.045800406485795975,
0.0029171956703066826,
0.052413299679756165,
-0.07858496159315109,
0.01480903197079897,
-0.014336682856082916,
-0.01068909466266632,
-0.014187979511916637,
0.07732536643743515,
-0.04744488373398781,
0.019821185618638992,
-0.04779477417469025,
0.023495014756917953,
0.018141720443964005,
-0.043806042522192,
-0.004087135195732117,
0.05906118452548981,
-0.06158038228750229,
0.006831573322415352,
-0.02597922272980213,
0.02582177333533764,
-0.003387358272448182,
0.011572563089430332,
-0.06245510280132294,
-0.009543209336698055,
-0.07613574713468552,
0.011283905245363712,
-0.009070860221982002,
-0.044820722192525864,
0.02529694139957428,
0.019698724150657654,
0.02680146135389805,
0.05353294312953949,
0.07319667935371399,
0.028778331354260445,
-0.05860632658004761,
0.03402666002511978,
0.009508220478892326,
0.026206649839878082,
0.009980570524930954,
0.0009490726515650749,
-0.013558180071413517,
0.0243697352707386,
0.03288952261209488,
-0.053847845643758774,
-0.003934059292078018,
0.04667513072490692,
-0.0156400166451931,
-0.02333756536245346,
0.04657016322016716,
0.06098556891083717,
0.035163797438144684,
-0.011467596516013145,
0.04051709175109863,
0.04824962839484215,
-0.0402371808886528,
-0.0001010713167488575,
0.015263887122273445,
-0.014861514791846275,
0.004417342599481344,
-0.009543209336698055,
0.07739534229040146,
-0.03133251890540123,
-0.012359811924397945,
0.009228309616446495,
-0.024684635922312737,
0.012718448415398598,
0.030055424198508263,
-0.030090413987636566,
0.011091466061770916,
0.015788719058036804,
-0.02564682997763157,
0.04391101002693176,
0.03210227191448212,
-0.018246686086058617,
0.019751207903027534,
-0.023897387087345123,
0.06406459212303162,
-0.028375959023833275,
0.014345429837703705,
-0.003656335175037384,
0.018998946994543076,
0.04170671105384827,
0.00022360064031090587,
-0.028673365712165833,
0.03227721527218819,
0.026416582986712456,
-0.0696977972984314,
-0.02380991354584694,
0.005020900163799524,
0.04891441762447357,
-0.024404725059866905,
0.04254644364118576,
-0.03813784942030907,
-0.014669076539576054,
-0.03490138053894043,
0.00017890783783514053,
0.04922931641340256,
0.03995727002620697,
0.03322191536426544,
-0.057871561497449875,
-0.06266503781080246,
0.006831573322415352,
0.05657697468996048,
-0.02443971298635006,
0.05129365995526314,
-0.028883298859000206,
-0.03098262846469879,
-0.005340173840522766,
-0.04219655692577362,
0.07113233953714371,
-0.017625635489821434,
-0.06570906192064285,
0.012473526410758495,
-0.03698321804404259,
0.005742545239627361,
0.0011830605799332261,
-0.023617476224899292,
-0.014240463264286518,
-0.018386641517281532,
-0.07816509902477264,
-0.007771898992359638,
0.022340383380651474,
-0.026696493849158287,
-0.008287984877824783,
-0.015508809126913548,
-0.011432607658207417,
0.03432406485080719,
-0.021518144756555557,
0.03385171666741371,
-0.03052777424454689,
0.007863745093345642,
0.014826525934040546,
-0.020083600655198097,
0.012508515268564224,
-0.05209840089082718,
-0.00215509464032948,
0.028813321143388748,
0.00025421587633900344,
-0.03813784942030907,
0.021885527297854424,
0.001120736706070602,
-0.02276024781167507,
0.051713526248931885,
0.07746531814336777,
0.028603387996554375,
-0.01735447160899639,
-0.030230369418859482,
-0.05969098210334778,
0.038557715713977814,
-0.015666259452700615,
-0.025261951610445976,
-0.0424414798617363,
-0.04842457175254822,
0.016890868544578552,
0.023617476224899292,
-0.03635341674089432,
-0.005768787115812302,
0.005663820542395115,
-0.039187513291835785,
0.09523965418338776,
-0.01164254080504179,
0.021535638719797134,
0.0020916773937642574,
-0.09978821128606796,
-0.00911459606140852,
0.06297993659973145,
0.057696618139743805,
0.026364101096987724,
-0.002169308951124549,
-0.021833043545484543,
-0.034009166061878204,
0.018614070490002632,
0.06133545935153961,
-0.022497832775115967,
-0.03743807226419449,
-0.011143949814140797,
0.031087595969438553,
-0.01706581376492977,
-0.02172807790338993,
-0.009018376469612122,
0.038942594081163406,
-0.011161443777382374,
-0.003413599915802479,
-0.012683459557592869,
-0.026609022170305252,
0.026941416785120964,
0.017468184232711792,
-0.023372553288936615,
0.07739534229040146,
-0.007758778054267168,
-0.01101274136453867,
-0.005493249744176865,
-0.04887942597270012,
-0.0500340610742569,
0.015027712099254131,
0.027728665620088577,
-0.022900203242897987,
-0.06416955590248108,
-0.015561291947960854,
0.04880945011973381,
-0.0696977972984314,
0.01754690892994404,
-0.08026442676782608,
0.0058037759736180305,
0.006437948904931545,
0.023792419582605362,
0.014983976259827614,
-0.03145498037338257,
0.004561671521514654,
-0.007203330285847187,
-0.03495386242866516,
0.01604238897562027,
0.06857815384864807,
-0.007868118584156036,
-0.03512880951166153,
-0.007312670350074768,
-0.06941788643598557,
-0.007155220489948988,
0.014336682856082916,
-0.021203244104981422,
0.04093695804476738,
0.070152647793293,
0.008069303818047047,
-0.07057251781225204,
-0.006083686836063862,
0.003157743951305747,
-0.0263815950602293,
0.0447157546877861,
-0.0679483488202095,
0.05937608331441879,
0.021868033334612846,
0.022515326738357544,
-0.03201480209827423,
0.02351250872015953,
-0.01718827337026596,
-0.03376424312591553,
-0.01920888014137745,
-0.018946463242173195,
-0.022742753848433495,
0.022952686995267868,
0.0011611925438046455,
0.02541940100491047,
0.03470894321799278,
-0.032347194850444794,
-0.011660034768283367,
0.019856173545122147,
0.020328523591160774,
-0.042231544852256775,
-0.027623699977993965,
0.012456031516194344,
-0.008585389703512192,
-0.028218509629368782,
0.09810874611139297,
-0.029110725969076157,
-0.010426677763462067,
0.04132183641195297,
-0.001445477013476193,
0.022007988765835762,
0.006967155262827873,
-0.04936927184462547,
0.00940325390547514,
0.061370447278022766,
0.061370447278022766,
0.014161738567054272,
-0.05265822261571884,
0.012368559837341309,
0.006053071469068527,
0.044645775109529495,
-0.0008009166922420263,
-0.01926136389374733,
0.015587533824145794,
-0.051363635808229446,
-0.024999534711241722,
-0.03444652631878853,
-0.02237537130713463,
-0.013365741819143295,
-0.030597751960158348,
-0.0243697352707386,
-0.04219655692577362,
0.051258668303489685,
0.060565702617168427,
-0.008480423130095005,
-0.025436896830797195,
-0.0013437906745821238,
-0.015884939581155777,
-0.014441649429500103,
-0.011651287786662579,
0.03157743811607361,
-0.007461372762918472,
0.014284199103713036,
0.007911854423582554,
0.022515326738357544,
-0.04548550769686699,
-0.008865300565958023,
-0.01707456074655056,
0.06570906192064285,
-0.009385759942233562,
-0.052168380469083786,
0.05482753366231918,
-0.060810625553131104,
0.059481050819158554,
0.056087132543325424,
-0.008712224662303925,
0.019296351820230484,
0.034586481750011444,
0.02253282070159912,
-0.010925269685685635,
-0.030037930235266685,
-0.009289540350437164,
0.0232325978577137,
-0.024019846692681313,
0.10356700420379639,
-0.05755666270852089,
0.02806106023490429,
0.021535638719797134,
-0.007942469790577888,
0.031594935804605484,
0.013444466516375542,
0.01639227755367756,
0.003616972593590617,
0.08110415935516357,
0.015963664278388023,
-0.01741570234298706,
-0.008882795460522175,
0.0804043859243393,
-0.010872785933315754,
-0.045730430632829666,
-0.05594717711210251,
0.006070565897971392,
0.07382647693157196,
-0.09432994574308395,
0.0010742670856416225,
0.0019932712893933058,
-0.01983867958188057,
-0.012814667075872421
] |
10,080 | torch.nn.modules.module | register_parameter | Add a parameter to the module.
The parameter can be accessed as an attribute using given name.
Args:
name (str): name of the parameter. The parameter can be accessed
from this module using the given name
param (Parameter or None): parameter to be added to the module. If
``None``, then operations that run on parameters, such as :attr:`cuda`,
are ignored. If ``None``, the parameter is **not** included in the
module's :attr:`state_dict`.
| def register_parameter(self, name: str, param: Optional[Parameter]) -> None:
r"""Add a parameter to the module.
The parameter can be accessed as an attribute using given name.
Args:
name (str): name of the parameter. The parameter can be accessed
from this module using the given name
param (Parameter or None): parameter to be added to the module. If
``None``, then operations that run on parameters, such as :attr:`cuda`,
are ignored. If ``None``, the parameter is **not** included in the
module's :attr:`state_dict`.
"""
if '_parameters' not in self.__dict__:
raise AttributeError(
"cannot assign parameter before Module.__init__() call")
elif not isinstance(name, str):
raise TypeError(f"parameter name should be a string. Got {torch.typename(name)}")
elif '.' in name:
raise KeyError("parameter name can't contain \".\"")
elif name == '':
raise KeyError("parameter name can't be empty string \"\"")
elif hasattr(self, name) and name not in self._parameters:
raise KeyError(f"attribute '{name}' already exists")
if param is None:
self._parameters[name] = None
elif not isinstance(param, Parameter):
raise TypeError(f"cannot assign '{torch.typename(param)}' object to parameter '{name}' "
"(torch.nn.Parameter or None required)"
)
elif param.grad_fn:
raise ValueError(
f"Cannot assign non-leaf Tensor to parameter '{name}'. Model "
f"parameters must be created explicitly. To express '{name}' "
"as a function of another Tensor, compute the value in "
"the forward() method.")
else:
for hook in _global_parameter_registration_hooks.values():
output = hook(self, name, param)
if output is not None:
param = output
self._parameters[name] = param
| (self, name: str, param: Optional[torch.nn.parameter.Parameter]) -> NoneType | [
0.04480287432670593,
0.016545459628105164,
0.04286947101354599,
0.04974792152643204,
0.00901634618639946,
-0.007701075170189142,
-0.04279511049389839,
0.0016347937053069472,
-0.02550603449344635,
-0.00991798099130392,
0.028536271303892136,
-0.045063141733407974,
0.027141990140080452,
0.004329240415245295,
-0.008449338376522064,
0.01623871736228466,
0.023535452783107758,
0.05710972100496292,
-0.10232158750295639,
-0.06108807027339935,
0.0348941907286644,
0.03169663995504379,
0.0031580450013279915,
0.02433483861386776,
0.00569795910269022,
-0.059377752244472504,
0.03606538474559784,
-0.0015615939628332853,
-0.04379899427294731,
-0.002316829049959779,
-0.009490401484072208,
-0.052164673805236816,
0.03666027635335922,
0.02600797638297081,
0.01095904316753149,
0.024576514959335327,
-0.01116353739053011,
0.07239103317260742,
-0.08908522129058838,
-0.01823718659579754,
0.020319312810897827,
0.00941139180213213,
-0.011051995679736137,
-0.014965275302529335,
0.03933729603886604,
0.01409152615815401,
0.006264966446906328,
0.05919184908270836,
-0.0628727450966835,
0.02734648436307907,
0.022271305322647095,
-0.02450215257704258,
0.019519925117492676,
-0.015151179395616055,
0.0023784099612385035,
-0.017651589587330818,
0.03751543536782265,
0.01354310940951109,
0.037887245416641235,
0.004991523455828428,
0.04625292494893074,
-0.039560381323099136,
0.02755097858607769,
-0.02295914851129055,
-0.005842034704983234,
-0.02487396076321602,
-0.04762861505150795,
-0.01891573704779148,
-0.01970582827925682,
0.05599429830908775,
0.008105415850877762,
-0.02070971019566059,
0.018692651763558388,
0.006594946142286062,
-0.015662414953112602,
0.043390002101659775,
-0.02426047809422016,
-0.04294383525848389,
-0.015253426507115364,
0.00606511952355504,
0.01878560334444046,
0.021843725815415382,
-0.012074467726051807,
-0.010550054721534252,
-0.043352823704481125,
0.007073648739606142,
-0.08581330627202988,
-0.07082944363355637,
0.02546885423362255,
-0.04115915670990944,
-0.029372839257121086,
0.02717917039990425,
0.04457978904247284,
0.0204122643917799,
0.06012136861681938,
-0.08016182482242584,
0.018562518060207367,
0.018804194405674934,
-0.003962079994380474,
-0.027290713042020798,
-0.04361308738589287,
-0.02487396076321602,
-0.00634397566318512,
0.003160368651151657,
0.04833505302667618,
-0.05127233639359474,
0.0009057012503035367,
0.026602867990732193,
0.0056189498864114285,
-0.015727482736110687,
-0.015225540846586227,
0.0041642505675554276,
-0.06227785348892212,
0.00006114500138210133,
0.015402150340378284,
0.017391324043273926,
-0.004598801489919424,
-0.0494132936000824,
-0.03837059438228607,
0.03242166340351105,
0.015718186274170876,
0.035749346017837524,
-0.015746071934700012,
-0.005711901932954788,
0.010717367753386497,
-0.02959592454135418,
0.016173651441931725,
0.025989385321736336,
-0.004312973935157061,
-0.0698627382516861,
0.03206844627857208,
-0.01937120221555233,
-0.048781219869852066,
-0.020393673330545425,
-0.012055877596139908,
-0.03970910236239433,
-0.012455570511519909,
0.06640492379665375,
-0.04450542852282524,
-0.023684175685048103,
0.000578045379370451,
0.04788888245820999,
-0.006097652483731508,
0.05298265069723129,
0.07376672327518463,
-0.07793097198009491,
-0.017642293125391006,
0.03134342283010483,
-0.03072993829846382,
-0.05974955856800079,
-0.011535345576703548,
-0.017056696116924286,
0.021062927320599556,
0.002272676909342408,
-0.03870522230863571,
-0.028127280995249748,
0.028276005759835243,
0.02178795449435711,
-0.041010431945323944,
-0.009025641717016697,
0.00764065608382225,
-0.02684454433619976,
-0.003241701750084758,
-0.014686419628560543,
-0.02742084674537182,
-0.025747710838913918,
-0.04138224199414253,
0.03335118666291237,
-0.0006192928412929177,
0.005433045793324709,
0.02742084674537182,
-0.03967192396521568,
0.06480614840984344,
0.03560062497854233,
0.023238005116581917,
0.0161550622433424,
-0.0006245214026421309,
-0.04788888245820999,
0.01745638996362686,
-0.020672529935836792,
0.09020064026117325,
0.014928095042705536,
0.010717367753386497,
-0.026100927963852882,
-0.010373445227742195,
0.004756819922477007,
-0.004656896460801363,
0.03535895049571991,
-0.008189072832465172,
0.024520743638277054,
0.07536549866199493,
0.004408249631524086,
-0.03188254311680794,
-0.02738366648554802,
-0.02855486050248146,
0.03309091925621033,
-0.0020193827804178,
0.023200824856758118,
0.061385516077280045,
0.07294874638319016,
0.017549341544508934,
0.005772320553660393,
0.0030279119964689016,
0.06584721058607101,
-0.029744647443294525,
-0.05469296872615814,
0.026658639311790466,
0.037255171686410904,
-0.01344086229801178,
-0.007873035967350006,
0.021899497136473656,
-0.05064026266336441,
0.044765692204236984,
0.08194649964570999,
-0.015169769525527954,
-0.01446333434432745,
-0.033202461898326874,
-0.0009242916712537408,
0.07514241337776184,
-0.02078407257795334,
0.05670073255896568,
0.012241781689226627,
0.050194092094898224,
0.0028420081362128258,
0.01689867675304413,
-0.06082780286669731,
0.023907259106636047,
-0.06514077633619308,
-0.03422493487596512,
0.02835036627948284,
0.024539334699511528,
0.021397555246949196,
0.023721355944871902,
-0.03606538474559784,
0.03785006329417229,
0.01352451927959919,
0.013598880730569363,
-0.031083155423402786,
-0.06019572913646698,
-0.055250681936740875,
0.01133085135370493,
0.06960247457027435,
-0.0441708005964756,
0.04019245505332947,
-0.029149753972887993,
-0.01450981106609106,
-0.0425720252096653,
0.08105416595935822,
0.014602762646973133,
-0.017549341544508934,
0.028666403144598007,
0.061013706028461456,
-0.049859464168548584,
0.006622831337153912,
-0.03848213702440262,
0.011619002558290958,
-0.05688663572072983,
0.03288642689585686,
-0.024688057601451874,
0.05911748483777046,
-0.04889276251196861,
-0.025729119777679443,
-0.022271305322647095,
0.03855649754405022,
0.04048990085721016,
-0.04383617267012596,
-0.0009039583965204656,
-0.004963637795299292,
-0.006734373979270458,
0.0020019542425870895,
0.06268684566020966,
-0.03130624070763588,
0.02972605638206005,
-0.02496691234409809,
0.026807362213730812,
-0.049153029918670654,
0.02671441063284874,
-0.0057165492326021194,
0.0009672819869592786,
0.03690195083618164,
0.036678869277238846,
-0.056589189916849136,
0.029372839257121086,
0.01891573704779148,
-0.025933614000678062,
0.0510864295065403,
0.010893977247178555,
0.052201855927705765,
-0.017335552722215652,
0.008523700758814812,
-0.012938921339809895,
0.03751543536782265,
-0.03446660935878754,
0.07547704130411148,
0.015978451818227768,
0.0425720252096653,
-0.04045271873474121,
0.07491932809352875,
0.027606749907135963,
-0.002876864979043603,
0.036009613424539566,
0.028368957340717316,
0.00336486310698092,
-0.00436177384108305,
-0.014314611442387104,
0.004438458941876888,
0.021267423406243324,
-0.007543056737631559,
-0.05718408524990082,
0.039895009249448776,
0.06045599654316902,
0.0509377084672451,
0.00784515030682087,
0.013933507725596428,
0.11042699962854385,
0.006497346330434084,
0.09562903642654419,
-0.01585761457681656,
-0.0019171354360878468,
0.020858433097600937,
0.033128101378679276,
0.022866196930408478,
-0.007919512689113617,
-0.07164742052555084,
0.031994085758924484,
-0.02162064053118229,
-0.008086825720965862,
-0.016638411208987236,
-0.00985291413962841,
0.008677070960402489,
-0.05647764727473259,
0.026231059804558754,
-0.01636885106563568,
-0.00552135007455945,
-0.04465414956212044,
-0.04019245505332947,
-0.020170588046312332,
-0.0029442552477121353,
0.03889112547039986,
-0.021137289702892303,
0.04190277308225632,
-0.01133085135370493,
-0.05718408524990082,
-0.00830526277422905,
0.012548523023724556,
0.0032091685570776463,
-0.03173382207751274,
0.02249438874423504,
0.019854551181197166,
-0.011275080032646656,
-0.03063698671758175,
0.04000655189156532,
-0.010187541134655476,
0.0023365814704447985,
0.06090216338634491,
0.015718186274170876,
0.015746071934700012,
0.010261903516948223,
-0.03134342283010483,
-0.04443106800317764,
0.004464020952582359,
0.005921043921262026,
-0.00123974762391299,
-0.002577094826847315,
0.031826771795749664,
0.0023052101023495197,
-0.0040387655608356,
0.02149050682783127,
0.023609813302755356,
-0.03344413638114929,
-0.025115637108683586,
-0.05335446074604988,
0.0029558741953223944,
0.008244844153523445,
0.024018801748752594,
-0.016582639887928963,
0.05034281685948372,
0.0018718213541433215,
0.002783913165330887,
-0.07034608721733093,
0.025617577135562897,
0.005112361162900925,
0.05112361162900925,
-0.009908685460686684,
0.005498112179338932,
-0.02061675861477852,
0.043315641582012177,
-0.04859531670808792,
0.032533206045627594,
-0.04785170033574104,
-0.048111967742443085,
0.046438831835985184,
0.012576408684253693,
0.03677181899547577,
-0.030023502185940742,
-0.008393567986786366,
-0.0014454039046540856,
-0.0013419948518276215,
-0.11704518646001816,
0.0024492857046425343,
0.025784891098737717,
-0.06599593907594681,
0.029112573713064194,
0.004378040321171284,
0.0288894884288311,
0.021973857656121254,
0.001889249891974032,
-0.005321503151208162,
-0.003471757983788848,
0.01149816531687975,
-0.06131115183234215,
0.016498984768986702,
-0.09376999735832214,
-0.026119519025087357,
0.011265785433351994,
-0.01344086229801178,
0.08209522813558578,
-0.03190113231539726,
0.016350260004401207,
-0.026435555890202522,
0.028238823637366295,
-0.028777945786714554,
-0.03210562840104103,
0.0681152418255806,
0.024948323145508766,
0.06149705871939659,
0.041642505675554276,
0.028443317860364914,
-0.0390026681125164,
0.014221658930182457,
-0.05826232582330704,
0.01239980012178421,
0.03710644692182541,
-0.052871111780405045,
0.04974792152643204,
-0.044319525361061096,
0.007538408972322941,
-0.028331777080893517,
-0.038928307592868805,
-0.014082231558859348,
0.022048220038414,
-0.04443106800317764,
0.02959592454135418,
0.013078349642455578,
-0.04320409893989563,
0.006692545488476753,
-0.012780902907252312,
0.05614301934838295,
-0.02996773272752762,
-0.040973249822854996,
0.0408988893032074,
0.016647707670927048,
0.039597559720277786,
-0.04138224199414253,
0.03660450503230095,
-0.09719063341617584,
-0.04997100681066513,
-0.05067744106054306,
0.0373295322060585,
0.001981039997190237,
0.00608370965346694,
0.0748077854514122,
0.010931157507002354,
-0.02178795449435711,
-0.038965485990047455,
-0.02835036627948284,
0.048781219869852066,
-0.050565898418426514,
0.045063141733407974,
0.008221606723964214,
0.04692218080163002,
0.03210562840104103,
-0.00450817309319973,
-0.03385312482714653,
-0.05037999525666237,
-0.03210562840104103,
-0.026249650865793228,
0.045992661267519,
0.00993657112121582,
0.01243698038160801,
0.040341176092624664,
0.046104203909635544,
0.05469296872615814,
0.020096227526664734,
0.024037392809987068,
-0.006622831337153912,
-0.006218490190804005,
0.004094536416232586,
-0.00213905842974782,
0.037719931453466415,
-0.06409971415996552,
-0.022884787991642952,
0.009983046911656857,
0.052536483854055405,
-0.07755916565656662,
-0.0011171670630574226,
0.007873035967350006,
-0.0014581847935914993,
0.043650269508361816,
0.02487396076321602,
-0.05539940670132637,
-0.010949748568236828,
-0.0048985714092850685,
0.00661818403750658,
0.051867228001356125,
-0.019027279689908028,
-0.016015633940696716,
0.03881676495075226,
-0.011944334954023361,
0.037422485649585724,
-0.02171359211206436,
-0.029372839257121086,
0.006213842891156673,
0.018274366855621338,
0.007752198725938797,
-0.02959592454135418,
0.004640629515051842,
-0.009462515823543072,
-0.048149146139621735,
-0.039300113916397095,
0.012557818554341793,
-0.0014663181500509381,
0.056960999965667725,
-0.06681391596794128,
-0.004903219174593687,
0.004487258847802877,
-0.046810638159513474,
-0.08551585674285889,
-0.034039031714200974,
-0.0004882885841652751,
0.021732183173298836,
0.005335445981472731,
-0.0425720252096653,
-0.043687451630830765,
0.04112197458744049,
-0.003241701750084758,
0.004089889116585255,
0.06320737302303314,
-0.024074573069810867,
0.006734373979270458,
0.01216741930693388,
-0.01005740836262703,
0.05554812774062157,
0.014955980703234673,
-0.012539227493107319,
-0.0003662890521809459,
0.004136364907026291,
0.023182233795523643,
-0.02483678050339222,
-0.02128601260483265,
-0.046141382306814194,
0.00847257673740387,
-0.11057572811841965,
-0.019092345610260963,
0.0782284215092659,
0.0298004187643528,
0.05855977535247803,
-0.010828910395503044,
-0.013478043489158154,
0.06365354359149933,
-0.01250204723328352,
0.05127233639359474,
0.018302252516150475,
0.04022963345050812,
0.012083763256669044,
-0.06421125680208206,
-0.03240307420492172,
-0.06714854389429092,
0.0011851382441818714,
0.022903379052877426,
0.05919184908270836,
0.013933507725596428,
-0.05551094561815262,
-0.03647437319159508,
0.013189892284572124,
0.0441708005964756,
0.04428234323859215,
0.016833610832691193,
-0.0815003290772438,
-0.03444802016019821,
-0.01121001411229372,
0.013905622065067291,
-0.08692873269319534,
0.027625340968370438,
-0.0014384324895218015,
0.027234941720962524,
0.005135599058121443,
0.03855649754405022,
-0.01811634935438633,
0.0048009720630943775,
-0.04193995147943497,
0.006204547360539436,
0.041977133601903915,
-0.039300113916397095,
0.04320409893989563,
0.02149050682783127,
-0.029447199776768684,
-0.023442499339580536,
0.06198040768504143,
-0.003072064369916916,
-0.003195225726813078,
-0.026825953274965286,
-0.021509097889065742,
-0.01595056615769863,
0.033035147935152054,
-0.0010399007005617023,
-0.04420798271894455,
0.014407563023269176,
-0.03463392332196236,
0.0001538065553177148,
0.026584278792142868,
-0.01498386636376381,
-0.023609813302755356,
0.0005853072507306933,
-0.03385312482714653,
0.026231059804558754,
-0.04487723484635353,
0.009657715447247028,
0.05684945732355118,
-0.015244131907820702,
-0.016675593331456184,
0.008802556432783604,
-0.005219256039708853,
0.012818084098398685,
-0.0298004187643528,
-0.03478264808654785,
-0.028368957340717316,
-0.04989664629101753,
0.006836621090769768,
-0.004496553912758827,
-0.04361308738589287,
0.010503578931093216,
0.0032765588257461786,
-0.0424233041703701,
-0.010615120641887188,
-0.04558367282152176,
0.00007675803499296308,
-0.03844495490193367,
0.029410019516944885,
0.013747603632509708,
0.006292852107435465,
0.04896712675690651,
0.005242493934929371,
-0.05755589157342911,
0.029038211330771446,
0.05848541110754013,
0.00864453800022602,
-0.04826068878173828,
0.0697140172123909,
-0.0425720252096653,
-0.015346379019320011,
-0.01022472232580185,
0.023070691153407097,
0.007636008784174919,
0.08670564740896225,
-0.08135160803794861,
-0.04484005644917488,
0.027030447497963905,
0.04588111862540245,
-0.01882278360426426,
0.003643719246610999,
-0.05703536048531532,
0.030023502185940742,
-0.01644321344792843,
-0.0161550622433424,
-0.002130925189703703,
-0.028071509674191475,
-0.05670073255896568,
-0.04800042510032654,
-0.0013884708750993013,
-0.05878285691142082,
-0.01677783951163292,
0.010698777623474598,
-0.046104203909635544,
0.027030447497963905,
0.006576355546712875,
-0.038965485990047455,
-0.0055306451395154,
-0.005735139828175306,
0.054544247686862946,
-0.03251461684703827,
-0.011358737014234066,
0.022643111646175385,
0.0407501645386219,
-0.03610256686806679,
0.0814259722828865,
-0.017976921051740646,
-0.039077028632164,
0.02074689045548439,
0.015262722037732601,
-0.02784842625260353,
-0.02137896418571472,
-0.050119731575250626,
0.006153423804789782,
-0.008221606723964214,
-0.05383780971169472,
0.011777020990848541,
-0.039262935519218445,
0.008816499263048172,
0.03126905858516693,
-0.018395205959677696,
0.0019066783133894205,
-0.06183168664574623,
-0.007975283078849316,
-0.03679041191935539,
0.016471099108457565,
-0.02325659617781639,
-0.013301433995366096,
0.02742084674537182,
-0.031176108866930008,
-0.029874779284000397,
-0.029502971097826958,
-0.0424976646900177,
-0.05543658509850502,
-0.03234730288386345,
0.04022963345050812,
0.015327787958085537,
-0.010345560498535633,
-0.014454039745032787,
0.02563616819679737,
0.005474874284118414,
0.022977739572525024,
0.049078669399023056,
-0.012762312777340412,
-0.02738366648554802,
-0.02282901667058468,
0.024520743638277054,
-0.046141382306814194,
0.03080430068075657,
-0.023572633042931557,
0.014026460237801075,
0.07644373923540115,
-0.021769363433122635,
0.04602983966469765,
0.0026282183825969696,
-0.017688769847154617,
0.08328501135110855,
0.05205313116312027,
-0.015560168772935867,
0.005414455197751522,
0.005261084530502558,
0.07004864513874054,
0.017251895740628242,
-0.05246211960911751,
0.09317510575056076,
0.03134342283010483,
-0.008421452715992928,
-0.0033346537966281176,
0.045732393860816956,
0.0037041381001472473,
0.027941377833485603,
-0.01670347899198532,
0.015225540846586227,
0.06506641209125519,
0.01133085135370493,
0.00043135546729899943,
-0.0034996436443179846,
0.074659064412117,
-0.008500462397933006,
-0.06075344234704971,
-0.04617856442928314,
-0.023368138819932938,
0.03097161278128624,
-0.06592157483100891,
-0.004134041257202625,
0.037292350083589554,
-0.012325437739491463,
0.02546885423362255
] |
10,081 | torch.nn.modules.module | register_state_dict_pre_hook | Register a pre-hook for the :meth:`~torch.nn.Module.state_dict` method.
These hooks will be called with arguments: ``self``, ``prefix``,
and ``keep_vars`` before calling ``state_dict`` on ``self``. The registered
hooks can be used to perform pre-processing before the ``state_dict``
call is made.
| def register_state_dict_pre_hook(self, hook):
r"""Register a pre-hook for the :meth:`~torch.nn.Module.state_dict` method.
These hooks will be called with arguments: ``self``, ``prefix``,
and ``keep_vars`` before calling ``state_dict`` on ``self``. The registered
hooks can be used to perform pre-processing before the ``state_dict``
call is made.
"""
handle = hooks.RemovableHandle(self._state_dict_pre_hooks)
self._state_dict_pre_hooks[handle.id] = hook
return handle
| (self, hook) | [
-0.043836694210767746,
0.02727380022406578,
-0.019843552261590958,
0.011384772136807442,
0.028497397899627686,
0.05316440388560295,
0.014080232940614223,
0.059300124645233154,
0.06596784293651581,
-0.06387531012296677,
0.003251842223107815,
-0.0001511485897935927,
-0.0041872733272612095,
-0.026227537542581558,
-0.040325503796339035,
-0.0252522062510252,
-0.02323061041533947,
0.04415589198470116,
-0.07540195435285568,
-0.05848439410328865,
0.013025102205574512,
0.02046421729028225,
0.028603797778487206,
0.04777348414063454,
0.004220522940158844,
-0.033498186618089676,
-0.01961302012205124,
-0.02236167900264263,
0.08100567013025284,
0.014151166193187237,
0.016979625448584557,
0.010453774593770504,
0.030980058014392853,
-0.00922131072729826,
0.008290313184261322,
-0.03653058037161827,
0.03663697838783264,
-0.006295318249613047,
-0.042559895664453506,
-0.022202080115675926,
0.03301938623189926,
-0.017352024093270302,
-0.011251772753894329,
0.002666643587872386,
0.036495111882686615,
0.031387925148010254,
-0.008680446073412895,
-0.010843907482922077,
0.0760403499007225,
-0.004207223188132048,
0.02612113766372204,
-0.06887610256671906,
0.04369482770562172,
0.024773407727479935,
-0.008569613099098206,
-0.029472729191184044,
0.05121374502778053,
-0.038410305976867676,
0.005284520797431469,
0.015959961339831352,
0.031689390540122986,
0.009974976070225239,
-0.003586557926610112,
-0.0315120592713356,
0.029011663049459457,
-0.07951607555150986,
0.0059362188912928104,
-0.02214887924492359,
-0.019010087475180626,
-0.052667874842882156,
-0.028852064162492752,
-0.06263398379087448,
0.06692543625831604,
0.03656604513525963,
0.013149235397577286,
0.013042835518717766,
-0.030660860240459442,
-0.07455075532197952,
0.034792717546224594,
-0.0068627833388745785,
-0.009505043737590313,
-0.0438721626996994,
-0.03365778550505638,
0.040006302297115326,
-0.03844577446579933,
-0.06795396655797958,
0.02961459569633007,
-0.010223242454230785,
0.037984710186719894,
0.008715912699699402,
-0.04525535926222801,
0.09341897815465927,
0.013858566991984844,
0.016580626368522644,
0.034704048186540604,
-0.005643619690090418,
0.05000787973403931,
0.06979823112487793,
0.047489751130342484,
-0.018460355699062347,
-0.012165036983788013,
-0.006871649995446205,
0.0028018599841743708,
0.007177549414336681,
-0.013344300910830498,
-0.01991448551416397,
0.008534146472811699,
-0.026245269924402237,
-0.024436473846435547,
-0.014479232020676136,
0.005333287175744772,
-0.08909205347299576,
-0.004320272710174322,
0.023177411407232285,
0.0643363818526268,
-0.008582912385463715,
-0.0023230609949678183,
-0.029579129070043564,
0.009008511900901794,
0.030714059248566628,
-0.009983842261135578,
-0.024862073361873627,
-0.02739793434739113,
0.012368970550596714,
-0.07781367748975754,
0.02014501765370369,
0.09320617467164993,
0.046709489077329636,
0.02429460734128952,
-0.04802175238728523,
0.019258353859186172,
0.038197506219148636,
-0.06451371312141418,
-0.015330430120229721,
-0.003008009400218725,
-0.022769544273614883,
0.05678199604153633,
0.015631895512342453,
0.022964611649513245,
-0.03300165385007858,
0.03624684736132622,
-0.011446839198470116,
-0.025305405259132385,
0.046390287578105927,
-0.004515339154750109,
-0.014106832444667816,
-0.009886309504508972,
0.08738965541124344,
0.03225685656070709,
-0.02801859937608242,
0.048872947692871094,
-0.02973872795701027,
0.018708622083067894,
0.04451055824756622,
-0.05734946206212044,
0.045007091015577316,
-0.0438721626996994,
-0.016864359378814697,
-0.002451627515256405,
-0.01651855930685997,
0.028408732265233994,
-0.011473438702523708,
-0.005617019720375538,
-0.07100409269332886,
-0.02482660673558712,
-0.011269506067037582,
0.00202492019161582,
-0.07809741050004959,
-0.02378034219145775,
0.03163618966937065,
0.03261152282357216,
-0.029774194583296776,
0.014833897352218628,
0.07270649075508118,
0.026493536308407784,
0.06823769956827164,
-0.0006489275838248432,
-0.043730296194553375,
-0.06674810498952866,
0.04557455703616142,
0.09448297321796417,
0.017183559015393257,
-0.03965163603425026,
0.021138083189725876,
-0.05224227532744408,
-0.03204405680298805,
0.0214040819555521,
-0.033196721225976944,
0.042134299874305725,
0.07639501243829727,
0.03206178918480873,
0.0014208798529580235,
0.01631462760269642,
-0.023744875565171242,
0.0018908120691776276,
0.039261505007743835,
-0.020907549187541008,
-0.03940337151288986,
0.010400574654340744,
-0.024117276072502136,
0.009442977607250214,
0.01416889950633049,
-0.03833937272429466,
0.03770097717642784,
-0.04334016144275665,
0.00201162020675838,
0.001389846671372652,
0.03950977325439453,
-0.006543584167957306,
-0.008543012663722038,
0.020003151148557663,
-0.058342527598142624,
-0.004960888065397739,
0.06125078722834587,
-0.02697233483195305,
-0.08313366770744324,
0.039155106991529465,
0.03225685656070709,
0.01517969649285078,
-0.03738177567720413,
0.062279317528009415,
0.05426386743783951,
-0.02409954182803631,
-0.024631541222333908,
-0.029969261959195137,
-0.022219812497496605,
0.005484020337462425,
-0.02855059877038002,
0.010365108028054237,
0.022645412012934685,
-0.0005572132649831474,
-0.00799771398305893,
-0.04103483632206917,
-0.02940179593861103,
0.09575977176427841,
0.03463311493396759,
0.033498186618089676,
-0.03140565752983093,
0.03525378182530403,
0.028054066002368927,
0.041176699101924896,
0.05277427285909653,
0.07533101737499237,
-0.05660466477274895,
-0.019116487354040146,
0.0603286549448967,
0.0066810171119868755,
0.028266865760087967,
-0.01619936153292656,
0.0536964051425457,
0.01108330674469471,
0.016217093914747238,
-0.0036863076966255903,
0.0443686917424202,
-0.01661609299480915,
0.04770255088806152,
0.04401402547955513,
0.03342725336551666,
-0.04401402547955513,
0.025766471400856972,
-0.04482975974678993,
-0.0028594930190593004,
0.00815731380134821,
0.009886309504508972,
0.03152979165315628,
0.022734077647328377,
0.059619322419166565,
0.044262293726205826,
0.006485951133072376,
0.007820380851626396,
0.049050282686948776,
-0.03823297470808029,
-0.018043622374534607,
-0.005430820398032665,
0.026458069682121277,
-0.05997398868203163,
-0.019116487354040146,
-0.02184741385281086,
0.009345443919301033,
0.07167796045541763,
0.05376733839511871,
-0.010471507906913757,
0.013335434719920158,
-0.02899393066763878,
-0.020269151777029037,
-0.0027774765621870756,
-0.051071878522634506,
0.06653530895709991,
0.015108763240277767,
-0.055150534957647324,
0.04873108118772507,
0.017866291105747223,
-0.00788688100874424,
0.024773407727479935,
0.01412456575781107,
-0.036282312124967575,
-0.08320459723472595,
0.03805564343929291,
0.00629088468849659,
0.015108763240277767,
0.02619207091629505,
-0.019151953980326653,
-0.010941440239548683,
0.011872437782585621,
-0.013299968093633652,
-0.001118859858252108,
0.008658278733491898,
0.01251970324665308,
-0.0717843621969223,
-0.03486365079879761,
-0.018619954586029053,
0.03433164954185486,
-0.03450898453593254,
-0.020588349550962448,
0.009992709383368492,
-0.07249369472265244,
0.018921421840786934,
-0.0058874525129795074,
0.003411441808566451,
0.03770097717642784,
-0.059512924402952194,
0.05401560291647911,
-0.04358842968940735,
0.02184741385281086,
0.005413087084889412,
-0.01428416557610035,
0.046496689319610596,
-0.04004177078604698,
0.015383630059659481,
-0.029898328706622124,
-0.06692543625831604,
-0.01811455562710762,
-0.009061711840331554,
0.013477301225066185,
-0.020623816177248955,
-0.04440416023135185,
0.007080016192048788,
-0.014709764160215855,
-0.035838980227708817,
-0.054512135684490204,
0.017928356304764748,
-0.037771910429000854,
-0.01247536949813366,
0.029242197051644325,
-0.015250629745423794,
0.0022720778360962868,
-0.009762176312506199,
0.01652742736041546,
0.036707911640405655,
0.004260423127561808,
-0.034792717546224594,
-0.04763161763548851,
-0.012439903803169727,
0.037665508687496185,
0.06997556239366531,
-0.09604350477457047,
-0.028426464647054672,
-0.028071798384189606,
0.005368753802031279,
-0.003768324153497815,
0.017236758023500443,
-0.0004300322907511145,
-0.061534520238637924,
0.016882091760635376,
0.0443686917424202,
-0.01842488907277584,
-0.025819670408964157,
-0.041708700358867645,
-0.04738335311412811,
-0.015853561460971832,
0.014975763857364655,
-0.05596626549959183,
-0.042134299874305725,
0.01854902133345604,
0.01278570294380188,
-0.04507802426815033,
0.026387136429548264,
-0.008680446073412895,
-0.0005051217158325016,
0.0536964051425457,
0.03833937272429466,
0.026387136429548264,
0.009496177546679974,
-0.0215282142162323,
-0.014301898889243603,
-0.035111915320158005,
-0.0019772618543356657,
0.024436473846435547,
0.03887137398123741,
-0.06770570576190948,
-0.014789564535021782,
0.00232971110381186,
0.013761033304035664,
0.016243694350123405,
-0.0006877191481180489,
-0.019790353253483772,
0.0033272085711359978,
-0.019258353859186172,
0.04231163114309311,
-0.01076410710811615,
0.05398013815283775,
-0.03472178429365158,
0.0037505910731852055,
-0.016766825690865517,
0.055682532489299774,
-0.0048278882168233395,
-0.016864359378814697,
0.05447666719555855,
0.010737507604062557,
-0.0011748304823413491,
-0.03837484121322632,
0.03677884489297867,
-0.011101040057837963,
-0.06061238795518875,
-0.011207439936697483,
-0.03046579286456108,
0.03259378671646118,
0.016961893066763878,
-0.03780737519264221,
-0.0027575267013162374,
0.03037712723016739,
0.04036096855998039,
0.0002682160120457411,
0.03238098695874214,
-0.012439903803169727,
0.03502324968576431,
-0.004451056011021137,
-0.012980768457055092,
0.02385127544403076,
0.059832122176885605,
0.002538077300414443,
0.0017589207272976637,
0.05692386254668236,
0.021545948460698128,
-0.01895688846707344,
0.00116485555190593,
0.0021645696833729744,
0.011792638339102268,
-0.03475724905729294,
0.06146358698606491,
0.001806578948162496,
0.01577376201748848,
0.03048352710902691,
0.010081375949084759,
0.05912278965115547,
0.0285683311522007,
-0.009407510980963707,
-0.02214887924492359,
0.061108920723199844,
-0.014505831524729729,
0.0016303544398397207,
-0.018495822325348854,
0.00029093679040670395,
0.029862862080335617,
-0.007931213825941086,
-0.01929382048547268,
-0.08391392976045609,
-0.01279456913471222,
-0.035218313336372375,
0.023177411407232285,
-0.022556746378540993,
0.01906328648328781,
-0.01970168575644493,
0.04667402058839798,
-0.0027375768404453993,
-0.022663146257400513,
-0.0717843621969223,
0.01747615821659565,
-0.05628546327352524,
0.005745586007833481,
0.006623384077101946,
0.0035045414697378874,
0.0252522062510252,
-0.03046579286456108,
-0.03802017495036125,
-0.0003089471720159054,
0.010826174169778824,
-0.009735576808452606,
-0.010267575271427631,
-0.010223242454230785,
0.04039643704891205,
0.01863768883049488,
0.015348163433372974,
0.002881659660488367,
0.0044953892938792706,
-0.009203577414155006,
-0.031813524663448334,
0.04082203656435013,
0.021226748824119568,
0.06901796907186508,
-0.006534717511385679,
0.0022809444926679134,
0.024117276072502136,
0.006982482969760895,
0.028284598141908646,
-0.0214040819555521,
0.028586065396666527,
-0.026777269318699837,
0.056888397783041,
-0.01565849594771862,
-0.0388004407286644,
-0.022982344031333923,
-0.020411018282175064,
0.07625314593315125,
-0.013415234163403511,
-0.02865699678659439,
-0.06979823112487793,
0.058236125856637955,
-0.02044648490846157,
0.04326922819018364,
-0.008950878866016865,
-0.04110576584935188,
0.04259536415338516,
-0.004275939892977476,
-0.01705942489206791,
-0.006667717359960079,
-0.00620221858844161,
0.05692386254668236,
-0.07965794205665588,
-0.0055992864072322845,
0.00614901864901185,
-0.0017910622991621494,
0.034136585891246796,
-0.08895018696784973,
0.009717843495309353,
0.019967684522271156,
0.04408495873212814,
-0.04078656807541847,
0.011854704469442368,
-0.006982482969760895,
-0.012368970550596714,
-0.017830824479460716,
0.03385285288095474,
0.025074873119592667,
-0.024791140109300613,
0.002976976102218032,
0.04692228510975838,
-0.021226748824119568,
-0.045113492757081985,
-0.012182770296931267,
0.045326292514801025,
0.005231320858001709,
0.02342567779123783,
0.01713922619819641,
0.06600330770015717,
0.011367038823664188,
-0.035963114351034164,
0.03381738439202309,
-0.09604350477457047,
-0.03550204634666443,
-0.05816519260406494,
-0.0438721626996994,
-0.014940297231078148,
-0.02782353386282921,
0.010666574351489544,
-0.007869147695600986,
0.09348990768194199,
0.016022028401494026,
0.031494323164224625,
-0.001234680414199829,
-0.026174336671829224,
0.030501259490847588,
-0.011003506369888783,
0.023691676557064056,
-0.011304972693324089,
0.00777604803442955,
-0.011969971470534801,
0.006406151223927736,
-0.024631541222333908,
0.021776480600237846,
0.07979980856180191,
-0.0022576695773750544,
0.008534146472811699,
0.022095680236816406,
-0.04692228510975838,
-0.01134930644184351,
0.008254846557974815,
-0.011464572511613369,
-0.010480375029146671,
-0.03812657296657562,
0.02034008502960205,
0.005377620458602905,
-0.0008162855519913137,
0.012856635265052319,
-0.024897539988160133,
0.014319632202386856,
-0.02899393066763878,
0.12484236806631088,
0.012058638036251068,
-0.01768895797431469,
-0.07526008784770966,
-0.0010612265905365348,
-0.030643125995993614,
-0.0443686917424202,
0.05965479090809822,
-0.029667794704437256,
0.03943884000182152,
-0.007071149535477161,
0.0018376122461631894,
0.009194711223244667,
-0.022219812497496605,
-0.0057854861952364445,
0.00615345174446702,
-0.009567109867930412,
-0.007846981287002563,
-0.07930327206850052,
0.016811160370707512,
0.04763161763548851,
0.008383412845432758,
-0.04897934943437576,
-0.043304696679115295,
-0.007603148464113474,
0.012652702629566193,
0.0279121994972229,
0.003936790395528078,
-0.0396161712706089,
0.04153136536478996,
-0.07504728436470032,
0.048872947692871094,
-0.03353365138173103,
-0.015144229866564274,
-0.05969025567173958,
0.004329139366745949,
-0.0126261031255126,
0.04185056686401367,
-0.06674810498952866,
0.01713922619819641,
-0.052490539848804474,
0.015800362452864647,
-0.06309504806995392,
-0.0005896319053135812,
0.036814309656620026,
0.02034008502960205,
-0.0449361577630043,
0.037771910429000854,
0.051426541060209274,
0.027362467721104622,
0.0023141943383961916,
-0.045113492757081985,
-0.07632408291101456,
-0.009575976990163326,
-0.008037613704800606,
0.0063130515627563,
-0.0057544526644051075,
-0.029330862686038017,
-0.005089454352855682,
0.005541653372347355,
-0.015640761703252792,
0.11278373003005981,
-0.020712483674287796,
0.000909939466509968,
-0.037878308445215225,
-0.06901796907186508,
0.03791377693414688,
-0.003954523708671331,
0.012076371349394321,
0.007013516500592232,
0.03408338502049446,
0.017733290791511536,
-0.027344733476638794,
-0.06440731137990952,
0.013619166798889637,
-0.027362467721104622,
-0.006361817941069603,
0.01064884103834629,
-0.00794894713908434,
-0.015099897049367428,
-0.0047037554904818535,
0.012049770914018154,
-0.01589789427816868,
-0.02697233483195305,
-0.03954523801803589,
-0.0699046328663826,
-0.03699164465069771,
0.04621295630931854,
-0.036495111882686615,
0.0014375048922374845,
0.01651855930685997,
0.06000945717096329,
0.021776480600237846,
-0.06639344245195389,
0.012040904723107815,
-0.00117150554433465,
0.020641550421714783,
-0.0005098321125842631,
0.01799928955733776,
-0.020056352019309998,
-0.00444662244990468,
0.019010087475180626,
0.0579523928463459,
0.018708622083067894,
0.008649412542581558,
0.05188760906457901,
0.025908337906003,
-0.05954838916659355,
-0.059193722903728485,
-0.03858764097094536,
-0.04770255088806152,
-0.018265290185809135,
-0.04206336662173271,
0.043091896921396255,
0.030306193977594376,
0.024968473240733147,
-0.06426544487476349,
-0.010054775513708591,
-0.028302332386374474,
-0.02344341017305851,
-0.055044133216142654,
-0.011163106188178062,
0.0523841418325901,
0.030341660603880882,
-0.009442977607250214,
0.034473516047000885,
-0.017946090549230576,
0.010072508826851845,
0.007350448984652758,
-0.027557533234357834,
-0.05437026917934418,
0.006135718431323767,
-0.0007143191178329289,
-0.04975961521267891,
0.01075524091720581,
-0.04780895262956619,
0.03408338502049446,
0.025411805137991905,
-0.013814233243465424,
0.03250512108206749,
-0.07533101737499237,
-0.04231163114309311,
0.011668505147099495,
0.0539446696639061,
-0.03177805617451668,
-0.06738650798797607,
-0.039261505007743835,
0.03738177567720413,
-0.04142496734857559,
0.04060923680663109,
0.053235337138175964,
0.024418741464614868,
-0.008414446376264095,
0.013654633425176144,
0.01799928955733776,
0.04082203656435013,
0.05018521100282669,
0.10831493884325027,
-0.010178908705711365,
0.0021723280660808086,
-0.03459765017032623,
0.017236758023500443,
0.03695617616176605,
0.020818883553147316,
0.07987073808908463,
0.012812302447855473,
-0.05014974623918533,
-0.005195854231715202,
-0.02034008502960205,
-0.012705902568995953,
0.020854350179433823,
-0.009930642321705818,
-0.04124763235449791,
-0.02792993187904358,
-0.05667559802532196,
0.011065573431551456,
-0.024649273604154587,
0.07139422744512558,
-0.04099936783313751,
0.02378034219145775,
-0.03518284857273102
] |
10,082 | torch.nn.modules.module | requires_grad_ | Change if autograd should record operations on parameters in this module.
This method sets the parameters' :attr:`requires_grad` attributes
in-place.
This method is helpful for freezing part of the module for finetuning
or training parts of a model individually (e.g., GAN training).
See :ref:`locally-disable-grad-doc` for a comparison between
`.requires_grad_()` and several similar mechanisms that may be confused with it.
Args:
requires_grad (bool): whether autograd should record operations on
parameters in this module. Default: ``True``.
Returns:
Module: self
| def requires_grad_(self: T, requires_grad: bool = True) -> T:
r"""Change if autograd should record operations on parameters in this module.
This method sets the parameters' :attr:`requires_grad` attributes
in-place.
This method is helpful for freezing part of the module for finetuning
or training parts of a model individually (e.g., GAN training).
See :ref:`locally-disable-grad-doc` for a comparison between
`.requires_grad_()` and several similar mechanisms that may be confused with it.
Args:
requires_grad (bool): whether autograd should record operations on
parameters in this module. Default: ``True``.
Returns:
Module: self
"""
for p in self.parameters():
p.requires_grad_(requires_grad)
return self
| (self: ~T, requires_grad: bool = True) -> ~T | [
0.02102559432387352,
0.03988732025027275,
-0.011161957867443562,
0.040969256311655045,
0.012288973666727543,
0.023369787260890007,
-0.07818780839443207,
0.010792297311127186,
0.0259123332798481,
-0.04013977199792862,
0.040680740028619766,
-0.013370907865464687,
0.04032009467482567,
0.0028288080357015133,
-0.00742477597668767,
-0.00030175832216627896,
-0.03157445788383484,
0.03995944932103157,
0.009692330844700336,
-0.05452950298786163,
-0.027084428817033768,
-0.029969587922096252,
0.017752742394804955,
0.04710021987557411,
-0.03840867802500725,
0.0028288080357015133,
0.05658517777919769,
0.009773476049304008,
0.028184395283460617,
0.038877516984939575,
-0.01999775692820549,
-0.04922802373766899,
0.0072579775005578995,
0.014362681657075882,
0.05936214327812195,
0.005887527484446764,
-0.010873442515730858,
0.0415462888777256,
-0.022071465849876404,
-0.02544349431991577,
0.023910753428936005,
-0.004201512783765793,
0.03840867802500725,
0.023550109937787056,
-0.01762651652097702,
-0.0005049027968198061,
0.022071465849876404,
0.08374173194169998,
0.002625945257022977,
0.0019080366473644972,
0.08222702890634537,
0.010693119838833809,
0.012838956899940968,
-0.022378012537956238,
-0.013253698125481606,
-0.008366961032152176,
0.06026375666260719,
-0.02785981446504593,
0.05377214774489403,
-0.03473009914159775,
0.046414993703365326,
-0.06087685003876686,
-0.019168274477124214,
-0.03171871602535248,
0.006523163989186287,
0.01777077466249466,
-0.08907927572727203,
-0.01183816697448492,
0.05853265896439552,
0.05579175800085068,
-0.03453174605965614,
0.01270371489226818,
0.014236455783247948,
0.002747663063928485,
-0.01904204860329628,
-0.02025020867586136,
-0.07746651768684387,
-0.06260794401168823,
-0.04053648188710213,
-0.056116338819265366,
-0.016679825261235237,
0.04591009020805359,
-0.022432109341025352,
0.014714309945702553,
-0.0382283553481102,
-0.04576583206653595,
-0.11165564507246017,
-0.03801196813583374,
0.06899136304855347,
-0.0885743796825409,
-0.003752960590645671,
0.03840867802500725,
0.02654346078634262,
0.0010210757609456778,
0.059794917702674866,
-0.0360284224152565,
-0.04883131384849548,
-0.02937452308833599,
-0.059939175844192505,
0.024271398782730103,
-0.02728278376162052,
-0.01246028020977974,
0.020556757226586342,
0.024127140641212463,
0.08222702890634537,
-0.07926973700523376,
-0.048542797565460205,
-0.05543111264705658,
0.048542797565460205,
-0.032223619520664215,
-0.015408551320433617,
-0.03543335571885109,
-0.01383974589407444,
-0.008709573186933994,
-0.022287851199507713,
0.03047448955476284,
0.026200849562883377,
-0.06679143011569977,
-0.0012307005235925317,
0.010999668389558792,
0.044683896005153656,
0.01787896826863289,
0.006635865196585655,
0.01695030741393566,
0.030853167176246643,
-0.0055088503286242485,
0.015742147341370583,
0.04944441094994545,
0.058172013610601425,
-0.13978594541549683,
0.0005116648972034454,
0.013298778794705868,
-0.03554154932498932,
0.00842556543648243,
0.010575910098850727,
0.022287851199507713,
-0.020196111872792244,
0.025154978036880493,
-0.007731324061751366,
-0.03631693869829178,
-0.003403585869818926,
0.004350278526544571,
-0.009926749393343925,
0.03114168345928192,
0.022396044805645943,
0.004783052485436201,
-0.04536912217736244,
0.019204339012503624,
0.006094898097217083,
-0.018591241911053658,
0.04050041735172272,
-0.008799734525382519,
0.0013039566110819578,
-0.03260229527950287,
-0.06664717197418213,
0.03653332218527794,
-0.0455855093896389,
0.044864218682050705,
0.007073147222399712,
-0.0019632603507488966,
-0.01137834507972002,
-0.00847515370696783,
-0.012261925265192986,
0.015444615855813026,
0.05113944038748741,
-0.003153388388454914,
-0.017680613324046135,
0.0006074612028896809,
-0.020827241241931915,
0.03036629594862461,
0.039166029542684555,
-0.0812172219157219,
0.04782150685787201,
0.04201512411236763,
-0.008060412481427193,
0.030636779963970184,
0.024974655359983444,
0.004406629130244255,
-0.07876483350992203,
0.02867126651108265,
0.11331461369991302,
-0.00031077442690730095,
-0.061886657029390335,
-0.04908376559615135,
0.054168857634067535,
0.02385665662586689,
-0.04324131831526756,
0.005526882596313953,
-0.0022619194351136684,
0.004354786593466997,
0.0027025823947042227,
0.02014201506972313,
0.01319960132241249,
-0.010449684225022793,
0.006825204007327557,
0.00006068272341508418,
0.028508976101875305,
0.0022923487704247236,
0.023189464583992958,
0.06628652662038803,
0.0415462888777256,
-0.05892936885356903,
0.012568472884595394,
0.016093777492642403,
-0.02102559432387352,
-0.016111809760332108,
-0.008439089171588421,
0.005734253209084272,
0.036334969103336334,
-0.0052473824471235275,
0.023351754993200302,
-0.0003995268780272454,
0.023207496851682663,
0.042880672961473465,
0.003209739224985242,
-0.009962813928723335,
0.021746885031461716,
0.01595853455364704,
0.02264849655330181,
0.0037281662225723267,
0.006306776776909828,
-0.026363138109445572,
0.0058965436182916164,
-0.044972412288188934,
0.040752869099378586,
-0.03072694130241871,
-0.0007156546344049275,
-0.08287619054317474,
-0.04749692603945732,
-0.007614114321768284,
0.06051620841026306,
0.0024320988450199366,
-0.025858236476778984,
0.03804803267121315,
0.0341891311109066,
0.01183816697448492,
-0.00409782724454999,
0.028166363015770912,
0.00194635521620512,
-0.02562381699681282,
-0.009791507385671139,
0.054168857634067535,
-0.053988534957170486,
0.05377214774489403,
-0.013253698125481606,
-0.013650408014655113,
-0.0001482024963479489,
0.034315358847379684,
-0.017815856263041496,
-0.0047920686192810535,
-0.02926632948219776,
-0.008804242126643658,
0.004819117020815611,
0.03550548478960991,
-0.07919760793447495,
0.07122735679149628,
0.044756025075912476,
0.0012667650589719415,
-0.017500292509794235,
-0.005851462949067354,
-0.006058833561837673,
-0.007411251775920391,
-0.028545040637254715,
0.03465797007083893,
0.05936214327812195,
-0.0029167153406888247,
0.06242762506008148,
-0.030943328514695168,
-0.037326741963624954,
0.023369787260890007,
0.003852137830108404,
0.04060861095786095,
0.004994931165128946,
-0.026741815730929375,
0.02290094830095768,
-0.008840306662023067,
0.018591241911053658,
-0.031628552824258804,
0.010107072070240974,
0.04818215221166611,
0.05510653555393219,
-0.04803789407014847,
-0.0027161065954715014,
-0.0018516859272494912,
-0.04143809527158737,
0.021548530086874962,
-0.038949646055698395,
0.052401699125766754,
-0.0026935662608593702,
-0.006189567502588034,
0.048614926636219025,
0.0009647249826230109,
0.07515838742256165,
0.012856989167630672,
0.0988888218998909,
-0.013497133739292622,
0.018645338714122772,
0.03653332218527794,
0.026813944801688194,
-0.014065149240195751,
0.091892309486866,
-0.016436388716101646,
-0.05103124678134918,
-0.0007055114838294685,
0.022450141608715057,
-0.048398539423942566,
0.03610055148601532,
-0.01178407110273838,
-0.025371365249156952,
0.009881668724119663,
-0.019619079306721687,
-0.019546952098608017,
0.030871199443936348,
0.030456457287073135,
0.02513694576919079,
-0.07753864675760269,
0.012288973666727543,
-0.01270371489226818,
-0.007505921181291342,
0.010675087571144104,
-0.014299568720161915,
0.01178407110273838,
0.026272978633642197,
-0.007384203374385834,
-0.04021190106868744,
-0.015615922398865223,
0.016156889498233795,
0.01988956332206726,
-0.019330564886331558,
0.02661558985710144,
-0.051103375852108,
0.009074726141989231,
0.0529426634311676,
0.0003950188111048192,
-0.06790942698717117,
0.0032210093922913074,
0.0683782622218132,
-0.02544349431991577,
0.02212556265294552,
0.004357040859758854,
-0.002384764142334461,
-0.0017649057554081082,
-0.0003640259092207998,
0.046703509986400604,
-0.046739574521780014,
-0.020574789494276047,
-0.011621780693531036,
0.03121381253004074,
0.06639471650123596,
0.017049485817551613,
-0.014335633255541325,
0.007325598504394293,
-0.03631693869829178,
0.03833654895424843,
0.011432441882789135,
-0.0013805936323478818,
0.007203881163150072,
0.035162873566150665,
0.020646918565034866,
-0.032043296843767166,
-0.03209739178419113,
0.02272062562406063,
0.000045573677198262885,
0.05377214774489403,
0.03377439081668854,
0.011567683890461922,
-0.023207496851682663,
-0.005792858079075813,
0.02845487929880619,
-0.007469856645911932,
0.01886172592639923,
-0.04976899176836014,
0.020827241241931915,
0.014678245410323143,
-0.039382416754961014,
-0.011811118572950363,
-0.023441916331648827,
-0.019763337448239326,
0.0698208436369896,
-0.023099303245544434,
0.00792967900633812,
-0.04760511964559555,
0.03494648635387421,
0.015219212509691715,
-0.009764459915459156,
-0.007866566069424152,
0.022251786664128304,
-0.05470982566475868,
0.03761525824666023,
-0.02158459462225437,
0.017356034368276596,
-0.00695593748241663,
-0.020520692691206932,
0.03610055148601532,
-0.075014129281044,
0.013136489316821098,
0.008907928131520748,
0.02098952978849411,
-0.050454214215278625,
-0.020412499085068703,
-0.023225529119372368,
-0.06942413747310638,
-0.0341891311109066,
0.027481138706207275,
-0.003081259550526738,
0.008718589320778847,
0.022450141608715057,
0.04825428128242493,
0.030817102640867233,
0.008898911997675896,
-0.037326741963624954,
-0.027697524055838585,
-0.028869621455669403,
0.04728053882718086,
0.026525428518652916,
0.0014955491060391068,
0.011865215376019478,
-0.024253366515040398,
0.04976899176836014,
0.0452248640358448,
0.06527671962976456,
-0.0020455324556678534,
0.003752960590645671,
0.021332142874598503,
0.01790601760149002,
0.02025020867586136,
-0.020304305478930473,
0.011252119205892086,
-0.037038225680589676,
0.011234086938202381,
-0.03150232881307602,
0.02084527350962162,
0.004823625087738037,
0.013028295710682869,
-0.0037980410270392895,
-0.01659867912530899,
0.011504570953547955,
0.03224164992570877,
-0.03139413520693779,
-0.02279275469481945,
0.07696161419153214,
-0.05557537078857422,
-0.028040137141942978,
-0.050309956073760986,
-0.023243561387062073,
-0.006667421665042639,
0.007028066553175449,
0.03444158285856247,
-0.03022203966975212,
-0.0032908841967582703,
0.026777880266308784,
0.04219544678926468,
0.04724447429180145,
0.004088811110705137,
-0.03440551832318306,
-0.02877946011722088,
0.02304520644247532,
-0.06747665256261826,
0.02091740071773529,
0.00854728277772665,
0.027066396549344063,
0.017157679423689842,
-0.06769303977489471,
-0.0032615819945931435,
-0.00824524275958538,
0.010242314077913761,
0.057883501052856445,
-0.007853041402995586,
-0.056260596960783005,
0.011333264410495758,
0.05763104930520058,
-0.052113182842731476,
0.0009466927731409669,
-0.04363802820444107,
-0.01790601760149002,
0.03370226174592972,
-0.015399535186588764,
0.052654147148132324,
0.013470085337758064,
-0.050706665962934494,
-0.0264713317155838,
-0.028797492384910583,
0.012613553553819656,
0.052654147148132324,
0.03575793653726578,
0.024199269711971283,
-0.06693568825721741,
-0.002822045935317874,
0.002400542376562953,
0.030817102640867233,
-0.022432109341025352,
-0.04623467102646828,
0.014732342213392258,
0.06231943145394325,
-0.04529699310660362,
0.009899700991809368,
0.024830399081110954,
-0.03298097103834152,
0.04151022434234619,
0.07991889864206314,
-0.003653783118352294,
0.029843362048268318,
-0.009926749393343925,
0.05305085703730583,
0.022071465849876404,
-0.06058833748102188,
-0.07652883976697922,
0.050706665962934494,
-0.027409009635448456,
0.029086006805300713,
-0.0019418471492826939,
0.044900283217430115,
-0.01488561648875475,
0.05128369852900505,
-0.0005553367082029581,
-0.04187086597084999,
-0.009674298577010632,
0.058027755469083786,
-0.004656826611608267,
-0.06365381926298141,
-0.026669686660170555,
0.0812172219157219,
-0.01511101983487606,
-0.07079458236694336,
0.022558335214853287,
0.03440551832318306,
-0.013993020169436932,
-0.030925296247005463,
0.026777880266308784,
0.016409341245889664,
0.03819229081273079,
0.011766038835048676,
0.022991109639406204,
0.011387361213564873,
-0.01635524444282055,
0.0045373630709946156,
0.04179873690009117,
-0.023477980867028236,
-0.07955825328826904,
-0.05315905064344406,
0.03676774352788925,
-0.026038559153676033,
0.060083433985710144,
0.00239828834310174,
-0.010792297311127186,
0.04735266789793968,
0.008488678373396397,
-0.019691208377480507,
-0.036046452820301056,
-0.04619860649108887,
-0.07479774206876755,
-0.007578050252050161,
-0.06513246148824692,
0.013497133739292622,
0.017473243176937103,
0.02753523550927639,
0.006040801294147968,
0.028256524354219437,
-0.002470417181029916,
0.00553139066323638,
-0.016580646857619286,
-0.05489014834165573,
-0.004519330803304911,
0.02569594606757164,
-0.02547955885529518,
-0.0012724001426249743,
0.04143809527158737,
-0.0314301997423172,
-0.01463316474109888,
0.013091408647596836,
0.012748795561492443,
-0.02753523550927639,
-0.03664151579141617,
0.0019204338314011693,
0.03588416427373886,
0.034243229776620865,
0.014948729425668716,
0.037002161145210266,
-0.057991690933704376,
-0.057883501052856445,
-0.015841325744986534,
-0.014461859129369259,
-0.014056133106350899,
-0.021260013803839684,
0.0022078226320445538,
-0.007677227258682251,
-0.02162065915763378,
0.07739438861608505,
-0.028328653424978256,
-0.03175478056073189,
0.003944552969187498,
-0.010702135972678661,
0.01889779046177864,
-0.09016121178865433,
0.0036064486484974623,
0.0031601504888385534,
-0.052618082612752914,
-0.0022258548997342587,
0.02392878569662571,
0.037290677428245544,
-0.06130962446331978,
0.002071453956887126,
0.03054661862552166,
-0.02059282176196575,
-0.06473574787378311,
0.0021086453925818205,
-0.04414293169975281,
0.05856872349977493,
-0.0123160220682621,
-0.06495213508605957,
-0.030456457287073135,
0.00038938375655561686,
-0.039166029542684555,
-0.015444615855813026,
-0.05178860202431679,
-0.04349377006292343,
-0.059975240379571915,
0.0801352858543396,
0.04724447429180145,
0.024758270010352135,
0.011216054670512676,
-0.022882916033267975,
0.013884826563298702,
0.03415306657552719,
-0.013082392513751984,
-0.025605784729123116,
0.009584137238562107,
-0.134592667222023,
-0.011612764559686184,
-0.019438758492469788,
-0.04627073556184769,
-0.046811703592538834,
0.03285474702715874,
-0.007771896664053202,
0.023315690457820892,
-0.05391640588641167,
-0.017716677859425545,
0.004433677531778812,
0.011612764559686184,
-0.0687389075756073,
-0.0419069305062294,
0.050309956073760986,
-0.004769528284668922,
-0.017500292509794235,
0.009124314412474632,
0.00576130161061883,
-0.018645338714122772,
0.007289533969014883,
0.04984112083911896,
-0.056476984173059464,
-0.05557537078857422,
0.06051620841026306,
-0.030708909034729004,
-0.0056531080044806,
0.0070506068877875805,
0.018483048304915428,
0.01981743425130844,
0.021440336480736732,
0.004927310161292553,
-0.03473009914159775,
-0.007411251775920391,
-0.05196892470121384,
0.037254612892866135,
-0.001933958032168448,
0.021999336779117584,
0.04172661155462265,
-0.05254595726728439,
0.03487435728311539,
0.005310495384037495,
-0.03945454582571983,
-0.07955825328826904,
-0.007303058169782162,
-0.018609274178743362,
0.022396044805645943,
0.044864218682050705,
-0.008488678373396397,
-0.01466922927647829,
-0.03793983906507492,
-0.009367750026285648,
-0.014470875263214111,
-0.009602169506251812,
0.003115070052444935,
0.013533198274672031,
0.048687055706977844,
-0.006094898097217083,
0.03029416874051094,
-0.010611974634230137,
0.040752869099378586,
-0.006464559119194746,
0.032728519290685654,
-0.02073707990348339,
-0.023387819528579712,
0.052365634590387344,
0.03263835981488228,
0.08691541105508804,
-0.08244341611862183,
-0.04179873690009117,
-0.006338333245366812,
0.020358402281999588,
-0.04252002760767937,
0.004837149288505316,
-0.03150232881307602,
-0.02098952978849411,
0.051103375852108,
-0.007614114321768284,
0.0023734939750283957,
0.005233858246356249,
-0.012586505152285099,
-0.08258767426013947,
-0.04760511964559555,
-0.015877390280365944,
0.02120591700077057,
-0.004142907913774252,
-0.032223619520664215,
0.0019046555971726775,
-0.05687369406223297,
0.06866677850484848,
-0.07515838742256165,
-0.028923718258738518,
-0.0015440108254551888,
0.008700557053089142,
0.02488449588418007,
0.019673176109790802,
-0.010197233408689499,
0.04417899623513222,
-0.029608942568302155,
-0.009142346680164337,
-0.0037394363898783922,
-0.017247840762138367,
-0.04187086597084999,
0.06967658549547195,
0.014461859129369259,
0.020268240943551064,
0.0015857103280723095,
0.014128262177109718,
-0.005436721257865429,
0.014290552586317062,
0.0731748417019844,
-0.050670601427555084,
0.04331344738602638,
0.004746987950056791,
0.06080472096800804,
-0.024938592687249184,
-0.019474823027849197,
-0.013154520653188229,
0.01187423150986433,
-0.04035615921020508,
-0.017752742394804955,
0.05150008574128151,
-0.04417899623513222,
0.057991690933704376,
0.02584020420908928,
0.0705781951546669,
0.01797814667224884,
0.06881103664636612,
0.026254946365952492,
-0.02385665662586689,
-0.0033359648659825325,
-0.006613324861973524,
-0.07833205908536911,
-0.03025810420513153,
-0.014182358980178833,
0.027156557887792587,
0.012397167272865772,
-0.0008272291161119938,
0.02969910390675068,
-0.016941292211413383,
0.023369787260890007
] |
10,083 | sentence_transformers.SentenceTransformer | save |
Saves all elements for this seq. sentence embedder into different sub-folders
:param path: Path on disc
:param model_name: Optional model name
:param create_model_card: If True, create a README.md with basic information about this model
:param train_datasets: Optional list with the names of the datasets used to to train the model
:param safe_serialization: If true, save the model using safetensors. If false, save the model the traditional PyTorch way
| def save(
self,
path: str,
model_name: Optional[str] = None,
create_model_card: bool = True,
train_datasets: Optional[List[str]] = None,
safe_serialization: bool = True,
):
"""
Saves all elements for this seq. sentence embedder into different sub-folders
:param path: Path on disc
:param model_name: Optional model name
:param create_model_card: If True, create a README.md with basic information about this model
:param train_datasets: Optional list with the names of the datasets used to to train the model
:param safe_serialization: If true, save the model using safetensors. If false, save the model the traditional PyTorch way
"""
if path is None:
return
os.makedirs(path, exist_ok=True)
logger.info("Save model to {}".format(path))
modules_config = []
# Save some model info
if "__version__" not in self._model_config:
self._model_config["__version__"] = {
"sentence_transformers": __version__,
"transformers": transformers.__version__,
"pytorch": torch.__version__,
}
with open(os.path.join(path, "config_sentence_transformers.json"), "w") as fOut:
config = self._model_config.copy()
config["prompts"] = self.prompts
config["default_prompt_name"] = self.default_prompt_name
json.dump(config, fOut, indent=2)
# Save modules
for idx, name in enumerate(self._modules):
module = self._modules[name]
if idx == 0 and isinstance(module, Transformer): # Save transformer model in the main folder
model_path = path + "/"
else:
model_path = os.path.join(path, str(idx) + "_" + type(module).__name__)
os.makedirs(model_path, exist_ok=True)
if isinstance(module, Transformer):
module.save(model_path, safe_serialization=safe_serialization)
else:
module.save(model_path)
modules_config.append(
{"idx": idx, "name": name, "path": os.path.basename(model_path), "type": type(module).__module__}
)
with open(os.path.join(path, "modules.json"), "w") as fOut:
json.dump(modules_config, fOut, indent=2)
# Create model card
if create_model_card:
self._create_model_card(path, model_name, train_datasets)
| (self, path: str, model_name: Optional[str] = None, create_model_card: bool = True, train_datasets: Optional[List[str]] = None, safe_serialization: bool = True) | [
-0.02315637469291687,
0.002158443909138441,
-0.05660869553685188,
0.010086985304951668,
0.02830434776842594,
0.0052951923571527,
-0.055316951125860214,
0.009384125471115112,
0.02727855183184147,
0.019509103149175644,
0.002661843318492174,
-0.016792645677924156,
-0.009070688858628273,
0.0393221452832222,
-0.008951961994171143,
0.01769496686756611,
0.080315962433815,
-0.005304690450429916,
-0.0017630853690207005,
0.013240355998277664,
0.017362533137202263,
-0.02450510673224926,
-0.009564589709043503,
-0.026309745386242867,
-0.0005868047010153532,
0.002479004906490445,
0.04046192020177841,
0.03533294424414635,
-0.021636679768562317,
0.008928216993808746,
-0.005418668035417795,
-0.0027307046111673117,
0.018587788566946983,
0.02334633842110634,
0.003329085186123848,
0.01329734455794096,
-0.03459209203720093,
0.05626676231622696,
-0.10060390830039978,
-0.05071987211704254,
0.01867327094078064,
0.0054329149425029755,
0.04768047854304314,
-0.009103931486606598,
-0.04304540529847145,
0.014209162443876266,
-0.002683214144781232,
0.07112179696559906,
-0.017362533137202263,
-0.021826641634106636,
-0.03193262219429016,
-0.010580887086689472,
0.005323686636984348,
-0.016992107033729553,
-0.05208759754896164,
-0.010780347511172295,
0.002178627299144864,
0.046958621591329575,
0.02978605218231678,
-0.016678668558597565,
0.05231555178761482,
0.004050941206514835,
0.06728456169366837,
0.06914619356393814,
0.00267134141176939,
0.07731456309556961,
-0.01406669057905674,
-0.02714557945728302,
-0.005518397781997919,
0.021275751292705536,
-0.016678668558597565,
-0.10881026834249496,
0.022643478587269783,
0.0731353908777237,
0.022871432825922966,
-0.026860635727643967,
-0.03660568967461586,
-0.019737059250473976,
0.010210460983216763,
0.010894324630498886,
0.013857732526957989,
-0.04817437753081322,
-0.04270347207784653,
-0.0357508584856987,
-0.03894222155213356,
0.012679968029260635,
0.0706658884882927,
-0.01403819676488638,
0.016298744827508926,
0.001004424411803484,
-0.011321739293634892,
0.027240559458732605,
0.03419317305088043,
0.012565990909934044,
-0.007270798087120056,
-0.035769857466220856,
-0.0014116555685177445,
-0.038847241550683975,
-0.027297548949718475,
-0.02395421639084816,
-0.052049607038497925,
0.05725456401705742,
-0.03274945914745331,
0.011492704972624779,
-0.0428934320807457,
-0.03058389201760292,
-0.057634491473436356,
0.019870031625032425,
-0.005964808631688356,
-0.022149575874209404,
-0.057520512491464615,
0.04011998698115349,
0.010143973864614964,
-0.0015826214803382754,
0.01639372669160366,
-0.07940414547920227,
-0.0019352384842932224,
-0.01836933195590973,
-0.021522702649235725,
0.0001639906840864569,
0.002354342257604003,
0.037118587642908096,
-0.06990604102611542,
-0.06918418407440186,
0.03214158117771149,
0.012727458029985428,
0.02703160233795643,
0.0343831330537796,
0.02327035367488861,
-0.05330335348844528,
-0.039588093757629395,
-0.0030441421549767256,
0.03274945914745331,
0.026746658608317375,
0.06283944845199585,
-0.04973206669092178,
-0.032331544905900955,
-0.01566237211227417,
-0.06143373250961304,
0.061395738273859024,
-0.020496906712651253,
-0.008135125041007996,
0.058812253177165985,
0.010827837511897087,
0.03901820629835129,
0.0017322165658697486,
0.0005075549124740064,
-0.07393323630094528,
-0.04220956936478615,
0.016127780079841614,
0.031115785241127014,
0.021826641634106636,
-0.030621884390711784,
-0.0037470017559826374,
-0.011188765987753868,
-0.01749550551176071,
-0.01511148177087307,
-0.019490107893943787,
-0.0010661621345207095,
0.03482004627585411,
-0.0211807694286108,
0.007156820502132177,
0.01841682195663452,
0.04300741106271744,
-0.004001075867563486,
0.015101984143257141,
-0.031837642192840576,
0.05634274706244469,
0.008586285635828972,
0.05037793889641762,
0.008002151735126972,
0.03033694066107273,
-0.05459509789943695,
-0.011530697345733643,
-0.032217565923929214,
0.04034794121980667,
0.035104990005493164,
-0.0039013458881527185,
-0.016422219574451447,
-0.0034169426653534174,
-0.02758249081671238,
0.03102080523967743,
-0.022491509094834328,
0.017903923988342285,
-0.010628377087414265,
0.0519736222922802,
-0.010086985304951668,
0.03457309678196907,
0.010599883273243904,
0.0019019951578229666,
-0.0024528850335627794,
0.024961015209555626,
0.027126582339406013,
-0.03955010324716568,
-0.04521097242832184,
0.012148073874413967,
-0.018435819074511528,
-0.05736854299902916,
-0.017125079408288002,
-0.0003202641673851758,
0.03666267916560173,
0.0005381269147619605,
0.04680665209889412,
-0.05577286332845688,
-0.021579690277576447,
0.010257950983941555,
-0.02456209436058998,
0.03259748965501785,
-0.056114792823791504,
-0.025758855044841766,
0.000741445692256093,
-0.021883629262447357,
0.04711059108376503,
-0.0016467336099594831,
0.10288345068693161,
-0.03666267916560173,
-0.010571388527750969,
0.030203968286514282,
-0.02414417825639248,
-0.009512349963188171,
0.000827522249892354,
0.08593884110450745,
-0.06017998233437538,
0.04673066735267639,
-0.025340938940644264,
-0.039588093757629395,
0.006610679905861616,
-0.030925823375582695,
0.013715260662138462,
-0.027373533695936203,
0.014950014650821686,
0.021161774173378944,
-0.048250362277030945,
0.012793945148587227,
-0.04631274938583374,
0.0313437394797802,
-0.026746658608317375,
-0.010789845138788223,
-0.004480730276554823,
-0.022491509094834328,
0.01940462552011013,
-0.005347432103008032,
-0.037061598151922226,
-0.016051793470978737,
0.04733854532241821,
0.018815742805600166,
0.04133574664592743,
-0.03875226154923439,
-0.036643680185079575,
-0.03692862391471863,
0.03537093475461006,
0.008970958180725574,
-0.025454916059970856,
0.031248759478330612,
0.011635176837444305,
-0.07613679766654968,
0.00561812799423933,
-0.04559089615941048,
0.02425815537571907,
-0.006677166558802128,
-0.03229355067014694,
-0.07735255360603333,
-0.023327341303229332,
0.009018449112772942,
-0.02838033251464367,
-0.034915026277303696,
0.01916717179119587,
0.007731455843895674,
0.018882229924201965,
-0.014608082361519337,
0.04053790494799614,
0.06397922337055206,
-0.07180566340684891,
-0.032160576432943344,
0.020724860951304436,
-0.022681470960378647,
-0.046654682606458664,
-0.003490553004667163,
0.011141275055706501,
0.061015814542770386,
0.04144972190260887,
-0.038904231041669846,
0.054443128407001495,
-0.0031082541681826115,
0.03316737711429596,
-0.025378931313753128,
-0.03594082221388817,
-0.04969407618045807,
0.021788649260997772,
0.0014579588314518332,
-0.008994704112410545,
0.06207960098981857,
0.023365333676338196,
-0.010371929034590721,
-0.03603580221533775,
-0.05467108264565468,
-0.047452524304389954,
-0.0017274675192311406,
0.04532494768500328,
-0.049162182956933975,
0.005190713331103325,
0.0670946016907692,
0.025131981819868088,
-0.0005580135621130466,
-0.024467114359140396,
-0.03198961168527603,
-0.017789946869015694,
-0.025093989446759224,
0.042475517839193344,
0.0071188281290233135,
-0.01357278972864151,
-0.003675765823572874,
0.10501103103160858,
0.08700262755155563,
0.05159369483590126,
0.04331135004758835,
0.05470907315611839,
0.003008524188771844,
0.019081689417362213,
0.02819037064909935,
-0.020781850442290306,
0.05242953076958656,
0.013724759221076965,
0.01688762754201889,
0.031172774732112885,
-0.06314338743686676,
0.04433714598417282,
0.03861928731203079,
0.005157470237463713,
-0.04714858531951904,
0.002697461284697056,
0.018464311957359314,
0.056836649775505066,
0.03875226154923439,
-0.031780652701854706,
0.021332738921046257,
-0.0034668075386434793,
-0.02990002930164337,
0.05387324094772339,
-0.004181540105491877,
0.07294543087482452,
-0.03151470795273781,
-0.04433714598417282,
0.005912569351494312,
0.029064195230603218,
0.02192162163555622,
0.06580285727977753,
0.04908619821071625,
0.013753253035247326,
0.042589493095874786,
-0.010998803190886974,
0.051935628056526184,
0.022586489096283913,
0.025397928431630135,
-0.05440513417124748,
-0.0003187800757586956,
-0.019794046878814697,
-0.009232155978679657,
-0.04650271311402321,
-0.10189565271139145,
0.005114728584885597,
-0.007280296180397272,
-0.056038808077573776,
0.046958621591329575,
-0.012641975656151772,
-0.004891523160040379,
-0.0045353444293141365,
-0.010989305563271046,
0.09308141469955444,
-0.01038142666220665,
0.02689862810075283,
0.003158119274303317,
0.016916122287511826,
0.02081984281539917,
-0.010143973864614964,
0.03396521508693695,
-0.02912118472158909,
0.028266355395317078,
-0.010875328443944454,
-0.04232354834675789,
0.021104784682393074,
0.004844032693654299,
0.05068187788128853,
-0.01597580872476101,
0.07963209599256516,
-0.06025596708059311,
0.09391724318265915,
0.02032594010233879,
-0.026518704369664192,
-0.027107587084174156,
0.01903419941663742,
0.010856332257390022,
-0.036871638149023056,
-0.0054139187559485435,
-0.0013795994454994798,
-0.0077077108435332775,
-0.03557989373803139,
0.07169168442487717,
-0.04331135004758835,
0.002024283166974783,
0.0047324299812316895,
-0.024676071479916573,
0.042589493095874786,
0.040195971727371216,
-0.04760449379682541,
0.04494502395391464,
0.025264954194426537,
0.03482004627585411,
0.015709862112998962,
0.03151470795273781,
0.01102729793637991,
0.03130574896931648,
-0.042171578854322433,
-0.008149372413754463,
-0.016982607543468475,
0.02824735827744007,
0.002001725137233734,
0.018036898225545883,
0.003993952181190252,
0.02315637469291687,
-0.005470907315611839,
0.08867429196834564,
0.040006011724472046,
0.020591888576745987,
-0.0033742012456059456,
0.04714858531951904,
-0.06264948844909668,
0.055316951125860214,
-0.02197861112654209,
-0.025758855044841766,
-0.039208170026540756,
-0.013515801168978214,
-0.03599781170487404,
-0.05440513417124748,
-0.004452235996723175,
-0.005608629900962114,
0.03041292540729046,
-0.06097782403230667,
-0.0775425136089325,
0.05835634469985962,
0.014389626681804657,
-0.030925823375582695,
-0.023080389946699142,
0.00819686334580183,
0.0470346063375473,
-0.012328538112342358,
-0.024277152493596077,
0.06804440915584564,
-0.014209162443876266,
0.009621578268706799,
0.0035237963311374187,
0.06515698879957199,
0.054329149425029755,
-0.014817041344940662,
0.017030099406838417,
-0.02406819351017475,
0.1141292080283165,
-0.018255354836583138,
-0.0020254706032574177,
-0.03447811305522919,
0.010580887086689472,
0.019927021116018295,
0.06542293727397919,
0.028209365904331207,
0.04414718225598335,
0.0064587099477648735,
0.014408622868359089,
-0.027354536578059196,
-0.03778345510363579,
-0.03077385388314724,
0.026765653863549232,
-0.014456112869083881,
0.05497502163052559,
0.003860978875309229,
-0.0305269043892622,
-0.019423620775341988,
0.017713962122797966,
-0.06375126540660858,
-0.041981615126132965,
-0.02015497535467148,
0.03126775473356247,
-0.0847230777144432,
-0.026613684371113777,
0.06549891829490662,
0.005950561724603176,
-0.0038894731551408768,
-0.014589086174964905,
-0.009502852335572243,
0.025473913177847862,
0.0196610726416111,
-0.031913626939058304,
-0.013164371252059937,
0.02406819351017475,
-0.03459209203720093,
-0.004670692142099142,
-0.012964910827577114,
-0.03453510254621506,
0.045172978192567825,
-0.054329149425029755,
-0.0648910403251648,
0.033205367624759674,
-0.0009777109371498227,
0.001664542593061924,
-0.04631274938583374,
-0.00038853177102282643,
0.041677676141262054,
-0.03155269846320152,
-0.0577484667301178,
-0.06964009255170822,
0.002319911727681756,
-0.058622293174266815,
-0.01996501348912716,
-0.028817245736718178,
-0.023384330794215202,
-0.015348934568464756,
-0.00013393809786066413,
0.0015101984608918428,
0.013962212018668652,
0.017125079408288002,
0.014408622868359089,
-0.0027663225773721933,
-0.03138173371553421,
0.036643680185079575,
0.019119681790471077,
-0.033414326608181,
0.03533294424414635,
-0.044071197509765625,
0.003535668831318617,
0.07773247361183167,
0.07602281868457794,
0.015177968889474869,
0.0247520562261343,
0.00973555538803339,
0.04908619821071625,
0.02450510673224926,
0.003663893323391676,
-0.003200860694050789,
-0.014883527532219887,
0.020990807563066483,
-0.006140523590147495,
-0.028038401156663895,
-0.03825835883617401,
-0.05151771008968353,
0.00081921141827479,
0.03242652490735054,
0.009897023439407349,
0.02720256708562374,
0.00942211877554655,
-0.006833885330706835,
-0.0035380434710532427,
-0.03476305678486824,
-0.0007408520323224366,
0.03022296354174614,
-0.00785968080163002,
0.05657070130109787,
-0.02727855183184147,
-0.005556390155106783,
-0.025397928431630135,
0.04817437753081322,
0.028608286753296852,
-0.026936620473861694,
-0.0023958964738994837,
-0.024467114359140396,
-0.06261149793863297,
0.05356930196285248,
0.06439714133739471,
-0.006173767149448395,
-0.06663869321346283,
-0.0037707469891756773,
-0.02511298470199108,
0.038429323583841324,
0.021294746547937393,
0.005656120367348194,
-0.0005241765757091343,
-0.03487703576683998,
0.017780449241399765,
-0.009702312760055065,
0.02015497535467148,
-0.03250250965356827,
0.03820136934518814,
0.011036795563995838,
0.02144671604037285,
-0.01074235513806343,
0.03875226154923439,
0.03016597591340542,
-0.04992203041911125,
0.06595482677221298,
0.0032174824737012386,
-0.006415968760848045,
0.03833434358239174,
-0.03527595475316048,
0.08213959634304047,
0.0027117084246128798,
-0.01074235513806343,
0.07431315630674362,
-0.01247100904583931,
-0.021237758919596672,
-0.030014006420969963,
0.013145375065505505,
-0.013154872693121433,
-0.032882433384656906,
-0.029634082689881325,
0.009374627843499184,
0.04030995070934296,
-0.002951535629108548,
-0.006582185626029968,
-0.052353546023368835,
0.04080384969711304,
0.02516997419297695,
0.07055190950632095,
-0.053531307727098465,
-0.02535993605852127,
0.013772249221801758,
-0.1042511835694313,
-0.02912118472158909,
-0.02554989792406559,
0.003158119274303317,
-0.020686868578195572,
0.06295342743396759,
-0.032160576432943344,
0.03463008254766464,
0.0034098189789801836,
-0.04768047854304314,
-0.03444012254476547,
-0.09414520114660263,
-0.004324011504650116,
-0.025511905550956726,
0.003815863048657775,
0.0379544198513031,
-0.04798441752791405,
0.024030201137065887,
-0.04809839278459549,
0.0673985406756401,
-0.004977005999535322,
0.03248351439833641,
-0.018929719924926758,
-0.008633775636553764,
-0.004739553667604923,
0.03557989373803139,
0.007669718470424414,
0.013183367438614368,
-0.005466158501803875,
-0.03495302051305771,
-0.04251350834965706,
-0.07321137934923172,
0.025777852162718773,
0.005817588418722153,
-0.013373329304158688,
0.007992654107511044,
-0.02247251197695732,
-0.017239056527614594,
0.01501650083810091,
-0.027069594711065292,
-0.038904231041669846,
0.049542106688022614,
-0.00021519139409065247,
0.08001202344894409,
-0.026936620473861694,
0.0006725844577886164,
-0.007237554527819157,
0.008648023009300232,
-0.028057396411895752,
0.03974006325006485,
-0.013097884133458138,
0.003155744867399335,
-0.020344937220215797,
-0.002474255859851837,
0.025321943685412407,
-0.010039495304226875,
-0.036453720182180405,
-0.042095594108104706,
-0.049542106688022614,
-0.016488706693053246,
-0.022244557738304138,
-0.017125079408288002,
0.0072565507143735886,
0.02725955657660961,
-0.018435819074511528,
0.0167071633040905,
-0.007745703216642141,
-0.05904020741581917,
0.02235853485763073,
0.010020499117672443,
-0.0010026434902101755,
0.0007877489551901817,
0.03200860694050789,
0.03421216830611229,
0.03981604799628258,
-0.03280644863843918,
-0.06017998233437538,
-0.05330335348844528,
0.03647271543741226,
-0.013924219645559788,
-0.08913020044565201,
0.03613078594207764,
-0.027050597593188286,
0.03476305678486824,
-0.02026895247399807,
-0.06701861321926117,
0.009407871402800083,
0.0002512545033823699,
-0.014769550412893295,
-0.009151422418653965,
-0.013914721086621284,
-0.040575895458459854,
-0.020895827561616898,
-0.07009600102901459,
0.040993813425302505,
-0.05117578059434891,
-0.055734869092702866,
0.0492381677031517,
0.021655675023794174,
0.05980005860328674,
-0.00794991198927164,
-0.011996104381978512,
-0.02830434776842594,
0.014959512278437614,
0.08107580989599228,
0.026556696742773056,
-0.02334633842110634,
0.006482455413788557,
0.0022522376384586096,
0.041183777153491974,
-0.028285350650548935,
-0.022985409945249557,
-0.06025596708059311,
-0.03977805748581886,
0.038657281547784805,
0.12849034368991852,
-0.025283951312303543,
-0.00666291918605566,
-0.02782944217324257,
-0.03856229782104492,
0.006957360543310642,
-0.01739102602005005,
-0.028836240991950035,
0.050871841609478,
-0.010789845138788223,
-0.032103586941957474,
-0.04832635074853897,
0.061205778270959854,
0.03635874018073082,
-0.026176773011684418,
-0.004074686206877232,
0.0027758206706494093,
0.010884826071560383,
0.04642672836780548,
0.012442515231668949,
-0.021788649260997772,
-0.040575895458459854,
0.04475506395101547,
0.01694461517035961,
-0.002837558276951313,
0.013819740153849125,
0.0196610726416111,
-0.03174266219139099,
0.03364228084683418,
-0.008890224620699883,
-0.03766947612166405,
-0.03844832256436348,
0.006453961133956909,
-0.06660070270299911,
0.011017799377441406,
0.011625678278505802,
0.06736055016517639,
0.024543099105358124,
0.00046332934289239347,
-0.01102729793637991
] |
10,084 | sentence_transformers.SentenceTransformer | save_to_hub |
DEPRECATED, use `push_to_hub` instead.
Uploads all elements of this Sentence Transformer to a new HuggingFace Hub repository.
:param repo_id: Repository name for your model in the Hub, including the user or organization.
:param token: An authentication token (See https://huggingface.co/settings/token)
:param private: Set to true, for hosting a private model
:param safe_serialization: If true, save the model using safetensors. If false, save the model the traditional PyTorch way
:param commit_message: Message to commit while pushing.
:param local_model_path: Path of the model locally. If set, this file path will be uploaded. Otherwise, the current model will be uploaded
:param exist_ok: If true, saving to an existing repository is OK. If false, saving only to a new repository is possible
:param replace_model_card: If true, replace an existing model card in the hub with the automatically created model card
:param train_datasets: Datasets used to train the model. If set, the datasets will be added to the model card in the Hub.
:param organization: Deprecated. Organization in which you want to push your model or tokenizer (you must be a member of this organization).
:return: The url of the commit of your model in the repository on the Hugging Face Hub.
| def tokenize(self, texts: Union[List[str], List[Dict], List[Tuple[str, str]]]):
"""
Tokenizes the texts
"""
kwargs = {}
# HPU models reach optimal performance if the padding is not dynamic
if self.device.type == "hpu":
kwargs["padding"] = "max_length"
try:
return self._first_module().tokenize(texts, **kwargs)
except TypeError:
# In case some Module does not allow for kwargs in tokenize, we also try without any
return self._first_module().tokenize(texts)
| (self, repo_id: str, organization: Optional[str] = None, token: Optional[str] = None, private: Optional[bool] = None, safe_serialization: bool = True, commit_message: str = 'Add new SentenceTransformer model.', local_model_path: Optional[str] = None, exist_ok: bool = False, replace_model_card: bool = False, train_datasets: Optional[List[str]] = None) -> str | [
0.02462334930896759,
-0.04375041648745537,
0.039280105382204056,
-0.01698351465165615,
-0.010442937724292278,
0.04085570573806763,
-0.002663407241925597,
-0.03829077258706093,
0.05664835870265961,
0.0009463912574574351,
0.057124704122543335,
0.012155946344137192,
-0.020116396248340607,
-0.06082553416490555,
0.012366637587547302,
-0.02911197952926159,
-0.040525928139686584,
-0.00436267489567399,
0.00864290539175272,
-0.025631001219153404,
-0.03515789285302162,
0.013859794475138187,
-0.016891909763216972,
-0.002972573274746537,
0.029295189306139946,
-0.03598233312368393,
0.014766681008040905,
-0.02224162593483925,
-0.009055126458406448,
-0.005995528772473335,
-0.007328377570956945,
0.044666461646556854,
-0.04957647621631622,
-0.011065850034356117,
-0.020794272422790527,
-0.054229993373155594,
-0.0012080372544005513,
0.006535996682941914,
-0.030009707435965538,
-0.06731114536523819,
-0.049356624484062195,
-0.04041600227355957,
0.04536265879869461,
0.017936203628778458,
-0.09636816382408142,
-0.008491757325828075,
-0.015380432829260826,
0.033014342188835144,
-0.013841473497450352,
0.005010778084397316,
0.0013156727654859424,
-0.02808600664138794,
-0.0321715772151947,
-0.015160581097006798,
-0.004303131718188524,
-0.0037374726962298155,
0.007525327615439892,
-0.0408923476934433,
0.000002571909817561391,
-0.038840401917696,
0.019695015624165535,
0.0002042498963419348,
0.07636169344186783,
0.05851709470152855,
-0.01749650202691555,
0.0063848490826785564,
0.01495905127376318,
0.03891368582844734,
0.01024140790104866,
0.01629647985100746,
0.01796368509531021,
-0.04506952315568924,
-0.02509969286620617,
0.04301757737994194,
0.0019866772927343845,
-0.005876442883163691,
-0.00798335112631321,
0.04609549418091774,
0.013181919232010841,
-0.006073392927646637,
-0.024605028331279755,
0.04070913791656494,
-0.012659772299230099,
-0.0038244971074163914,
0.06514927744865417,
-0.04561915248632431,
-0.05159178003668785,
0.02022632211446762,
-0.00032004399690777063,
-0.04378705471754074,
-0.037026628851890564,
-0.0017485051648691297,
0.02176528237760067,
0.04543594270944595,
-0.07592198997735977,
0.004690161906182766,
-0.012073501944541931,
-0.015169741585850716,
-0.06731114536523819,
0.022204983979463577,
0.01474836003035307,
0.03153034672141075,
-0.0352494977414608,
-0.04767109826207161,
0.021050764247775078,
-0.05404678359627724,
-0.044703103601932526,
0.006311565171927214,
0.024605028331279755,
0.015783492475748062,
0.008074956014752388,
-0.004873371217399836,
0.08464276045560837,
0.026876825839281082,
0.04767109826207161,
-0.021948490291833878,
-0.05734455585479736,
-0.021618714556097984,
-0.028782203793525696,
-0.002009578514844179,
-0.012897945009171963,
0.008734510280191898,
0.0003658463538158685,
-0.03590904921293259,
-0.031053999438881874,
0.02931351028382778,
0.06324389576911926,
-0.016708701848983765,
0.05005281791090965,
-0.03145706281065941,
-0.0005779685452580452,
0.001881331903859973,
0.047304678708314896,
-0.023505771532654762,
-0.01699267514050007,
-0.013795671053230762,
-0.007845944724977016,
0.0390968956053257,
-0.009201694279909134,
-0.030650939792394638,
0.025631001219153404,
0.0088123744353652,
-0.018110252916812897,
0.023249277845025063,
-0.07170817255973816,
0.04528937488794327,
-0.002727530663833022,
-0.03277616947889328,
0.04360384866595268,
0.02035456895828247,
0.008546720258891582,
-0.03851062431931496,
0.01587509736418724,
0.011065850034356117,
-0.013612461276352406,
0.004923753906041384,
-0.026217270642518997,
-0.000041973569750553,
-0.01474836003035307,
0.04950319230556488,
0.008510078303515911,
-0.04188167676329613,
0.012604809366166592,
0.021820245310664177,
0.02834250032901764,
0.029185263440012932,
0.037704501301050186,
-0.01290710549801588,
-0.027206601575016975,
0.027389811351895332,
0.07965946197509766,
-0.0029794436413794756,
-0.0008427634020335972,
0.008940620347857475,
-0.03164026886224747,
-0.03123720921576023,
-0.033399082720279694,
0.02484320104122162,
-0.034076955169439316,
0.01788124069571495,
-0.034681547433137894,
0.025667643174529076,
-0.050126101821660995,
-0.03316091001033783,
0.01899881847202778,
0.042651157826185226,
0.027078354731202126,
0.010845999233424664,
0.010745233856141567,
-0.044190116226673126,
0.010094840079545975,
-0.05617201328277588,
0.021582072600722313,
0.006957378704100847,
-0.013493374921381474,
0.027518058195710182,
0.011725404299795628,
-0.02407371997833252,
-0.009600174613296986,
-0.030321162194013596,
-0.004582526162266731,
0.015609444119036198,
0.01881561055779457,
-0.027041712775826454,
-0.023780586197972298,
0.023230956867337227,
0.0006269197911024094,
0.0879405289888382,
-0.06342710554599762,
-0.01770719327032566,
0.01566440798342228,
-0.04554586857557297,
0.009055126458406448,
0.12084494531154633,
0.02150878868997097,
0.037960994988679886,
0.036037296056747437,
0.02911197952926159,
0.0038038860075175762,
-0.05496283248066902,
0.08405648916959763,
0.0419183187186718,
-0.031512025743722916,
-0.0715249627828598,
0.04953983426094055,
-0.04455653578042984,
0.027811193838715553,
0.020556099712848663,
0.024989767000079155,
0.007076464593410492,
0.05019938573241234,
-0.03206165134906769,
-0.03244639188051224,
0.04664512351155281,
-0.01932859607040882,
-0.03261128067970276,
0.08097857236862183,
-0.10039877146482468,
0.018852250650525093,
-0.05957971140742302,
-0.010763554833829403,
-0.017212526872754097,
-0.035267818719148636,
-0.003730602329596877,
0.014070484787225723,
0.05807739123702049,
-0.038437340408563614,
-0.01681862585246563,
0.032886095345020294,
-0.007456624414771795,
-0.003267998341470957,
0.04426340013742447,
-0.006000109016895294,
-0.010406296700239182,
-0.02009807527065277,
0.048550501465797424,
0.07291735708713531,
0.018513314425945282,
0.04638862982392311,
-0.01797284558415413,
0.02616230770945549,
-0.021032443270087242,
-0.05749112367630005,
0.026180628687143326,
0.04008622467517853,
-0.016268998384475708,
0.026950109750032425,
0.04609549418091774,
-0.10545535385608673,
-0.02889212965965271,
-0.03887704387307167,
0.020556099712848663,
0.0013294134987518191,
-0.022644687443971634,
-0.00708562508225441,
0.024385176599025726,
-0.0005805449327453971,
0.020647704601287842,
-0.02368898130953312,
0.025539396330714226,
0.042614515870809555,
-0.03261128067970276,
-0.07170817255973816,
-0.06405001878738403,
0.03810756281018257,
0.015462877228856087,
0.000916619726922363,
-0.03464490547776222,
-0.03774114325642586,
-0.054266635328531265,
0.009600174613296986,
0.00811159797012806,
0.03438841179013252,
0.015911739319562912,
0.03257463872432709,
-0.001730184187181294,
0.030229557305574417,
0.006091713905334473,
0.020024791359901428,
-0.09241084009408951,
-0.06027590483427048,
0.027005070820450783,
0.006151257082819939,
-0.027426453307271004,
0.026363838464021683,
-0.01920034922659397,
-0.005065741017460823,
0.005340555217117071,
0.05335059016942978,
-0.04895356297492981,
-0.039756447076797485,
0.0024893581867218018,
0.05617201328277588,
0.01322772167623043,
-0.05734455585479736,
0.04924669861793518,
0.02936847321689129,
0.0628041997551918,
0.004083280451595783,
0.0375579372048378,
0.04924669861793518,
-0.04785430431365967,
-0.017597267404198647,
-0.023579055443406105,
0.0316585898399353,
-0.035524312406778336,
0.04862378537654877,
-0.058407168835401535,
-0.001382086193189025,
0.041808392852544785,
-0.019914865493774414,
0.017001835629343987,
0.04536265879869461,
-0.029478399083018303,
-0.0077634998597204685,
0.03312426805496216,
0.019511805847287178,
0.01754230447113514,
-0.010708591900765896,
-0.05569567158818245,
-0.008308548480272293,
-0.1083134189248085,
-0.02880052477121353,
0.05804074928164482,
-0.008230684325098991,
0.03554263338446617,
0.04591228440403938,
0.001881331903859973,
0.06815391033887863,
0.04763445630669594,
0.021435504779219627,
0.0035496829077601433,
0.07936633378267288,
-0.018165215849876404,
0.034223522990942,
-0.052214689552783966,
-0.04953983426094055,
0.06159501522779465,
0.009975753724575043,
-0.04609549418091774,
0.02291950024664402,
0.023102710023522377,
0.049869608134031296,
0.026437122374773026,
0.010708591900765896,
-0.06199807673692703,
-0.01993318647146225,
0.049613118171691895,
0.011478071101009846,
0.006110034883022308,
0.01077271532267332,
-0.010149803012609482,
0.000035872551961801946,
-0.011038368567824364,
0.0060413312166929245,
0.06269427388906479,
-0.007186390459537506,
-0.003426016541197896,
-0.04891692101955414,
0.059176649898290634,
-0.056355223059654236,
0.008125338703393936,
0.08559545129537582,
-0.0012240681098774076,
0.003513040952384472,
0.059762921184301376,
-0.025594359263777733,
-0.05049252137541771,
0.04734132066369057,
0.022333230823278427,
-0.009352842345833778,
0.014940730296075344,
-0.0689600333571434,
0.02850738912820816,
-0.043933622539043427,
0.05074901506304741,
-0.01399720087647438,
0.016534652560949326,
-0.053497157990932465,
-0.0005728157702833414,
-0.02760966308414936,
-0.04668176546692848,
-0.025759248062968254,
0.023780586197972298,
-0.03589072823524475,
0.050932224839925766,
-0.0008862756658345461,
0.026345517486333847,
-0.003464948618784547,
0.06053239852190018,
0.018036969006061554,
-0.017359094694256783,
0.038730476051568985,
-0.037026628851890564,
-0.02009807527065277,
0.03349068760871887,
-0.007905486971139908,
0.08735426515340805,
-0.000071816670242697,
0.0006967684021219611,
0.014757520519196987,
-0.004190916195511818,
-0.014180410653352737,
0.017551464959979057,
0.014436904340982437,
0.0403793603181839,
-0.0010666224407032132,
-0.06361031532287598,
0.03046773001551628,
-0.07584870606660843,
-0.01817437633872032,
0.025411149486899376,
-0.049100130796432495,
-0.006366528104990721,
0.039499957114458084,
0.02411036193370819,
-0.028287537395954132,
-0.006201639771461487,
0.010177284479141235,
-0.05639186501502991,
0.010168123990297318,
-0.01256816741079092,
0.038693834096193314,
0.05624529719352722,
0.06800734251737595,
-0.011652120389044285,
-0.055842239409685135,
0.039280105382204056,
-0.0751158744096756,
-0.0019385849591344595,
0.046755049377679825,
0.04924669861793518,
0.007030662149190903,
0.03502964600920677,
0.05573231354355812,
-0.019658373668789864,
0.05873694643378258,
0.03167691081762314,
0.05133528634905815,
0.06987608224153519,
0.006458132993429899,
0.018036969006061554,
0.01600334420800209,
0.015325469896197319,
0.0041245026513934135,
0.06606532633304596,
-0.01958508975803852,
0.021710319444537163,
0.013942238874733448,
-0.004481760784983635,
0.01822017878293991,
0.017001835629343987,
-0.029386794194579124,
0.010708591900765896,
-0.0061008743941783905,
0.01834842562675476,
0.03153034672141075,
-0.04528937488794327,
-0.038767118006944656,
-0.051152076572179794,
0.03131049498915672,
-0.030962396413087845,
0.004117632284760475,
-0.015948381274938583,
-0.048806995153427124,
-0.007644413970410824,
0.03840069845318794,
-0.03709991276264191,
0.015343790873885155,
-0.0008416183991357684,
0.0031328813638538122,
-0.021820245310664177,
0.008496337570250034,
0.03673349320888519,
-0.03004634752869606,
0.01301703043282032,
-0.022076737135648727,
-0.015297988429665565,
-0.03578080236911774,
0.010259728878736496,
0.005029099062085152,
0.03162194788455963,
0.03920682147145271,
-0.0707554891705513,
0.016232356429100037,
0.018119413405656815,
0.004497791640460491,
-0.005106963217258453,
-0.04741460457444191,
-0.04015950858592987,
-0.0630606934428215,
-0.05228797346353531,
-0.014858285896480083,
0.020849235355854034,
0.020336247980594635,
-0.014904088340699673,
0.0021721769589930773,
-0.009137570858001709,
-0.033014342188835144,
0.017514823004603386,
-0.052214689552783966,
0.005725294817239046,
-0.036092258989810944,
-0.03244639188051224,
0.031182246282696724,
-0.0015297988429665565,
-0.06745771318674088,
0.007016921415925026,
0.04792758822441101,
-0.002835166174918413,
-0.019108744338154793,
-0.01996982842683792,
-0.050675731152296066,
-0.012577327899634838,
-0.0034786893520504236,
-0.05250782519578934,
-0.01397888083010912,
-0.0027824933640658855,
0.07196466624736786,
0.06170494109392166,
-0.05910336598753929,
-0.01073607336729765,
-0.0362754687666893,
-0.02224162593483925,
-0.01789040118455887,
-0.0035405224189162254,
0.005349715705960989,
0.018669042736291885,
-0.011304022744297981,
0.042321380227804184,
-0.039719805121421814,
-0.051188718527555466,
-0.02249811962246895,
-0.0013374289264902472,
0.005862702149897814,
-0.010104000568389893,
0.012897945009171963,
-0.009554372169077396,
-0.020153038203716278,
0.030632618814706802,
0.014849125407636166,
-0.003622966818511486,
-0.022424835711717606,
-0.023322561755776405,
0.0037901452742516994,
-0.0009349407046101987,
-0.037704501301050186,
0.012449081987142563,
-0.05679492652416229,
0.007795561570674181,
0.023835549131035805,
-0.012000218033790588,
-0.00030286810942925513,
-0.011432269588112831,
0.0016122431261464953,
0.025154655799269676,
-0.006293244194239378,
0.06547905504703522,
-0.04767109826207161,
-0.009073447436094284,
-0.010058198124170303,
0.0949757769703865,
-0.02154543064534664,
-0.01844003051519394,
0.06720121949911118,
0.006513095460832119,
0.02449510246515274,
-0.02244315668940544,
-0.058920156210660934,
0.02837914228439331,
-0.01011316105723381,
0.04503288120031357,
0.05364372581243515,
0.05096886679530144,
-0.026180628687143326,
0.048000872135162354,
-0.0401228666305542,
0.02612566575407982,
-0.05045587942004204,
-0.03774114325642586,
-0.04250459000468254,
0.015719370916485786,
-0.012714735232293606,
0.016488850116729736,
0.054523129016160965,
0.013878115452826023,
-0.024220287799835205,
0.040562570095062256,
0.017817117273807526,
-0.010442937724292278,
-0.0015091877430677414,
0.03297770023345947,
0.01925531215965748,
-0.0316585898399353,
0.04690161719918251,
0.039499957114458084,
0.01506897620856762,
0.031915083527565,
0.13916589319705963,
-0.020940838381648064,
0.049356624484062195,
0.017395736649632454,
-0.07027914375066757,
0.010461258701980114,
0.011560515500605106,
0.05576895549893379,
-0.04616877809166908,
-0.073063924908638,
-0.0017439249204471707,
-0.00253974087536335,
-0.0115055525675416,
-0.012302514165639877,
0.06899667531251907,
-0.005784837994724512,
-0.02821425348520279,
0.05368036776781082,
-0.0640866607427597,
-0.034883078187704086,
-0.01101088710129261,
-0.056062087416648865,
-0.04844057559967041,
-0.018293462693691254,
-0.008129918947815895,
-0.01309947483241558,
-0.0015412494540214539,
-0.05199483782052994,
-0.06379352509975433,
0.018577437847852707,
0.07438303530216217,
0.04195496067404747,
-0.00427794037386775,
0.024898163974285126,
0.01830262318253517,
-0.03202500939369202,
0.011029208078980446,
-0.016113270074129105,
-0.046242062002420425,
-0.03512125089764595,
0.0337105356156826,
-0.0403793603181839,
-0.01154219452291727,
-0.0012904815375804901,
0.057417839765548706,
0.040012940764427185,
-0.021582072600722313,
-0.011377306655049324,
-0.0040054162964224815,
0.02940511517226696,
0.03453497961163521,
-0.02125229500234127,
0.007186390459537506,
0.021179011091589928,
0.04873371124267578,
0.006105454638600349,
0.041368693113327026,
0.0687035396695137,
0.07936633378267288,
-0.02616230770945549,
0.034425053745508194,
0.010754394344985485,
-0.026785220950841904,
-0.013530016876757145,
0.008423053659498692,
-0.033307477831840515,
-0.09849339723587036,
0.004087860696017742,
-0.025301223620772362,
0.03059597685933113,
0.04924669861793518,
-0.015160581097006798,
-0.01608578860759735,
-0.0019202639814466238,
0.03197004646062851,
-0.001295061782002449,
-0.013475054875016212,
0.02607070282101631,
-0.00027066332404501736,
-0.09658801555633545,
-0.0011164324823766947,
0.03026619926095009,
-0.010003235191106796,
-0.02667529508471489,
-0.06339046359062195,
-0.051701705902814865,
-0.050382595509290695,
-0.008844436146318913,
-0.03008298948407173,
-0.003313800785690546,
-0.0038244971074163914,
-0.04660848155617714,
-0.006980279926210642,
-0.027243243530392647,
0.010342173278331757,
0.015169741585850716,
0.04378705471754074,
-0.03957324102520943,
0.044666461646556854,
0.05690485239028931,
0.050639089196920395,
0.002535160630941391,
0.028544031083583832,
0.0390968956053257,
0.03633043169975281,
0.03495636209845543,
-0.03931674733757973,
0.018797289580106735,
0.004023737274110317,
0.02009807527065277,
0.02684018388390541,
-0.03563423454761505,
0.021820245310664177,
0.03178683668375015,
-0.04437332600355148,
-0.031145604327321053,
-0.08222439885139465,
-0.06852032989263535,
0.02125229500234127,
-0.04506952315568924,
-0.05390021950006485,
-0.002448136219754815,
-0.0020542358979582787,
-0.03862055018544197,
-0.04173510894179344,
0.04642527177929878,
-0.0037328924518078566,
-0.011212417855858803,
0.04279772564768791,
0.011413948610424995,
0.027664626017212868,
0.024018757045269012,
0.012962068431079388,
0.00992079172283411,
-0.012714735232293606,
-0.03589072823524475,
0.022040095180273056,
0.0864015743136406,
0.011817009188234806,
-0.05679492652416229,
-0.07167153060436249,
-0.017679711803793907,
-0.014436904340982437,
0.012137625366449356,
0.00037557934410870075,
-0.014455225318670273,
0.027243243530392647,
-0.018421709537506104,
0.026620332151651382,
0.0008147094631567597
] |
10,085 | torch.nn.modules.module | set_extra_state | Set extra state contained in the loaded `state_dict`.
This function is called from :func:`load_state_dict` to handle any extra state
found within the `state_dict`. Implement this function and a corresponding
:func:`get_extra_state` for your module if you need to store extra state within its
`state_dict`.
Args:
state (dict): Extra state from the `state_dict`
| def set_extra_state(self, state: Any) -> None:
"""Set extra state contained in the loaded `state_dict`.
This function is called from :func:`load_state_dict` to handle any extra state
found within the `state_dict`. Implement this function and a corresponding
:func:`get_extra_state` for your module if you need to store extra state within its
`state_dict`.
Args:
state (dict): Extra state from the `state_dict`
"""
raise RuntimeError(
"Reached a code path in Module.set_extra_state() that should never be called. "
"Please file an issue at https://github.com/pytorch/pytorch/issues/new?template=bug-report.yml "
"to report this bug.")
| (self, state: Any) -> NoneType | [
-0.07365266233682632,
-0.013539092615246773,
0.025680601596832275,
0.0958043709397316,
-0.0006796842790208757,
-0.012464700266718864,
-0.017033051699399948,
0.05758045241236687,
0.027689628303050995,
-0.06456837058067322,
0.0008478310774080455,
0.05171060189604759,
0.01181831769645214,
0.023689044639468193,
-0.06572137773036957,
0.014124331064522266,
0.025243857875466347,
0.06848160922527313,
-0.047622669488191605,
-0.04056486859917641,
-0.02260591834783554,
0.012193918228149414,
0.016508959233760834,
0.04035523161292076,
-0.025418555364012718,
0.00768671091645956,
-0.014910471625626087,
-0.015058965422213078,
0.04929976910352707,
-0.04363955557346344,
-0.016971908509731293,
-0.024649884551763535,
-0.05027807503938675,
0.034013696014881134,
-0.016369199380278587,
-0.02547096461057663,
0.02176736667752266,
0.024702293798327446,
-0.03062455542385578,
0.00022970054124016315,
0.0042495280504226685,
-0.021120984107255936,
0.044652801007032394,
0.027130594477057457,
0.013670116662979126,
-0.005765032954514027,
-0.013303251005709171,
0.028248662129044533,
0.03665163367986679,
-0.03752512484788895,
0.037175729870796204,
-0.04922989010810852,
0.03756006434559822,
0.021540259942412376,
0.016543898731470108,
0.028161313384771347,
0.05335276201367378,
0.02650168351829052,
0.01556558907032013,
0.016491489484906197,
-0.010778864845633507,
0.01588878035545349,
-0.005695153959095478,
-0.0443732850253582,
0.02328724041581154,
-0.038573313504457474,
-0.029890824109315872,
0.007166984491050243,
-0.04706363379955292,
0.0038346205838024616,
-0.012770421802997589,
-0.004957055207341909,
0.05069735273718834,
0.031690213829278946,
-0.02613481692969799,
0.02145291119813919,
-0.10209349542856216,
-0.010516817681491375,
-0.04867085441946983,
0.028545649722218513,
-0.009713207371532917,
-0.00789634883403778,
-0.022343870252370834,
0.07882372289896011,
-0.0933585986495018,
-0.04395401105284691,
0.026222165673971176,
-0.025645662099123,
0.023898683488368988,
-0.005970303434878588,
-0.04311545938253403,
0.06872618198394775,
-0.030851662158966064,
-0.0009209858835674822,
0.054261188954114914,
0.014534871093928814,
0.029995642602443695,
0.019915569573640823,
-0.015731552615761757,
-0.02728782407939434,
-0.020457133650779724,
-0.06435873359441757,
-0.0155044449493289,
-0.023426998406648636,
0.011556270532310009,
-0.0515708401799202,
0.007468338590115309,
-0.031148647889494896,
0.006227982696145773,
-0.039481740444898605,
-0.046225082129240036,
-0.027811916545033455,
-0.0397612601518631,
-0.00250691594555974,
0.005930996034294367,
-0.017889073118567467,
0.07330326735973358,
-0.061353929340839386,
-0.03459019958972931,
0.04430340602993965,
0.0333847813308239,
0.03560344874858856,
-0.03913234546780586,
0.04025041311979294,
-0.018710153177380562,
0.021120984107255936,
0.03343719244003296,
0.030729373916983604,
0.037909459322690964,
-0.10593684762716293,
-0.024090850725769997,
-0.028895044699311256,
-0.03329743444919586,
-0.03057214617729187,
-0.035044413059949875,
0.004625129047781229,
-0.003624982899054885,
-0.009957784786820412,
-0.01669239066541195,
-0.05226963385939598,
-0.028825165703892708,
0.03640705719590187,
0.014910471625626087,
0.011870726943016052,
0.04521183669567108,
0.029454078525304794,
-0.026781199499964714,
0.010394529439508915,
-0.009809290990233421,
0.016561368480324745,
0.026606502011418343,
-0.007498910650610924,
-0.0641840323805809,
-0.0041578118689358234,
-0.06813220679759979,
0.02899986319243908,
0.018151119351387024,
-0.03762994334101677,
0.002836658386513591,
0.04612026363611221,
0.01410686131566763,
-0.058628641068935394,
0.003670841222628951,
-0.03244141489267349,
-0.05691659823060036,
-0.02912215143442154,
-0.017661964520812035,
-0.0628213882446289,
-0.040215473622083664,
0.01222012285143137,
-0.016334259882569313,
-0.05859370157122612,
0.03182997182011604,
0.03113117814064026,
-0.0041905674152076244,
0.04126366227865219,
0.005647112149745226,
-0.03341972082853317,
-0.022990252822637558,
0.0001879368064692244,
0.05209493637084961,
0.016046008095145226,
-0.055763594806194305,
0.020701710134744644,
0.01939147524535656,
-0.021837247535586357,
0.006319699343293905,
0.00696171447634697,
0.0465395413339138,
0.07267435640096664,
0.0674334168434143,
-0.006271657068282366,
0.003935071639716625,
-0.02468482404947281,
-0.02838842011988163,
0.04287088289856911,
-0.01671859622001648,
-0.0769369900226593,
0.02419566921889782,
0.049928680062294006,
-0.008245744742453098,
-0.026711320504546165,
0.02152279019355774,
0.008324358612298965,
0.006926774512976408,
0.03326249495148659,
0.002149876905605197,
0.012255063280463219,
-0.002096375683322549,
-0.013277046382427216,
0.024597475305199623,
-0.07085749506950378,
0.006896202452480793,
0.04765760898590088,
0.020107736811041832,
-0.0362323597073555,
-0.0035070618614554405,
0.02948901802301407,
0.030834192410111427,
0.008014269173145294,
0.055414196103811264,
0.03088660165667534,
-0.003142379689961672,
-0.014133065938949585,
0.0031030727550387383,
-0.007913818582892418,
0.004028972238302231,
-0.03556850925087929,
-0.026414332911372185,
0.021662548184394836,
-0.0007173535414040089,
0.01963605172932148,
-0.032179366797208786,
-0.01677100546658039,
0.06411415338516235,
0.07071773707866669,
0.03598778322339058,
-0.04468774050474167,
-0.028825165703892708,
0.031096238642930984,
-0.0169631727039814,
0.016290586441755295,
-0.0022044701036065817,
-0.06593101471662521,
-0.03944680094718933,
-0.02187218703329563,
0.023077601566910744,
0.03182997182011604,
-0.0667695626616478,
0.028825165703892708,
0.017338773235678673,
-0.02784685790538788,
0.004452614579349756,
0.01853545568883419,
-0.00384335545822978,
-0.023863743990659714,
0.06750329583883286,
0.019950509071350098,
-0.02716553583741188,
-0.0047692544758319855,
-0.021924596279859543,
-0.06802739202976227,
-0.04839133843779564,
-0.014683364890515804,
0.015242397785186768,
0.005171060096472502,
0.023234831169247627,
0.02716553583741188,
-0.022326400503516197,
-0.019985448569059372,
0.06729365885257721,
0.023182421922683716,
-0.025750480592250824,
0.04217208921909332,
0.006524969357997179,
-0.04475761950016022,
0.025925179943442345,
-0.008726163767278194,
-0.02461494505405426,
0.038817889988422394,
0.07882372289896011,
0.009258992969989777,
0.011626150459051132,
0.060445498675107956,
-0.039237163960933685,
-0.03301791846752167,
-0.007669241167604923,
0.004334693308919668,
-0.0004159995587542653,
-0.024842051789164543,
0.03258117288351059,
0.04266124591231346,
0.010254771448671818,
0.029279381036758423,
0.035044413059949875,
-0.039481740444898605,
-0.1122259795665741,
0.05985152721405029,
0.021435441449284554,
0.02363663539290428,
0.05639250576496124,
-0.013757465407252312,
-0.05873345956206322,
0.043849192559719086,
0.011730968952178955,
-0.025977589190006256,
0.030345037579536438,
0.02547096461057663,
-0.0333847813308239,
0.004151260480284691,
0.05925755202770233,
0.0257854200899601,
-0.024300487712025642,
0.012464700266718864,
0.0455961711704731,
-0.06617559492588043,
0.027252884581685066,
-0.04472268000245094,
-0.006083856802433729,
0.053457580506801605,
-0.06739848107099533,
-0.018203528597950935,
-0.07861408591270447,
0.019863160327076912,
-0.008328725583851337,
-0.030973950400948524,
0.06820208579301834,
-0.013451743870973587,
0.010167421773076057,
-0.04091426730155945,
-0.0839947834610939,
-0.003714515594765544,
0.027514930814504623,
0.02071917988359928,
-0.049194950610399246,
-0.011224344372749329,
-0.016482753679156303,
-0.03289562836289406,
0.009983989410102367,
-0.042766064405441284,
0.029192032292485237,
0.015775227919220924,
-0.058628641068935394,
0.023496877402067184,
0.06212259829044342,
-0.01921677775681019,
0.006638523191213608,
0.03375164791941643,
0.05031301826238632,
-0.0012436312390491366,
-0.10020675510168076,
-0.016805944964289665,
0.007726017851382494,
0.023793863132596016,
0.022570978850126266,
0.031952258199453354,
-0.03941186144948006,
-0.013469213619828224,
-0.020457133650779724,
-0.04346485435962677,
0.05908285453915596,
-0.03155045583844185,
-0.04304558038711548,
0.031707681715488434,
-0.0028082700446248055,
-0.01544330082833767,
-0.02899986319243908,
-0.042696185410022736,
0.039307042956352234,
-0.014141800813376904,
0.03245888277888298,
-0.10684528201818466,
-0.020457133650779724,
0.06949485093355179,
0.06652498990297318,
-0.005092445760965347,
-0.06177320331335068,
0.016971908509731293,
0.006337169092148542,
0.040460050106048584,
0.08092010021209717,
-0.03902752697467804,
-0.011180670000612736,
-0.009521039202809334,
0.019077017903327942,
-0.0017240506131201982,
0.09671279788017273,
0.009739411994814873,
0.030729373916983604,
-0.04978892207145691,
-0.036616694182157516,
0.03128840774297714,
0.02821372263133526,
-0.013381864875555038,
0.012901444919407368,
-0.027567340061068535,
-0.0009602929349057376,
0.0021870003547519445,
-0.019234247505664825,
0.001905299723148346,
0.0560431107878685,
-0.013608972541987896,
0.014299029484391212,
-0.007263068109750748,
0.028964923694729805,
-0.009127968922257423,
-0.023304710164666176,
0.08008155226707458,
-0.030799252912402153,
-0.038084156811237335,
-0.010743925347924232,
0.04563111066818237,
-0.050068438053131104,
-0.030921541154384613,
-0.015880046412348747,
0.01310234796255827,
0.08203817158937454,
-0.04856603592634201,
-0.0004443879588507116,
0.02194206602871418,
0.06711896508932114,
0.01042073406279087,
0.003535450203344226,
0.018186058849096298,
-0.012482170015573502,
0.014674630016088486,
-0.023322179913520813,
-0.012621928937733173,
0.03502694517374039,
0.027811916545033455,
-0.04870579391717911,
0.013652646914124489,
-0.005415637046098709,
0.04370943456888199,
0.036861270666122437,
-0.015853840857744217,
0.017496002838015556,
-0.0332450233399868,
-0.0465395413339138,
0.021610138937830925,
0.0034481012262403965,
-0.005188529845327139,
0.015024025924503803,
-0.007149514742195606,
0.03724560886621475,
-0.02351434715092182,
-0.009957784786820412,
0.05593829229474068,
0.03892270848155022,
-0.038154035806655884,
-0.0571262389421463,
-0.026484211906790733,
-0.012473435141146183,
-0.01878003217279911,
0.013853549025952816,
0.010569227859377861,
-0.02024749480187893,
-0.023409528657794,
-0.00752074783667922,
0.016823414713144302,
-0.03314020484685898,
0.015967395156621933,
-0.05859370157122612,
0.0232697706669569,
0.07630807161331177,
-0.00021864543668925762,
-0.04741302877664566,
-0.06226235628128052,
-0.015338482335209846,
0.020090267062187195,
0.009398750960826874,
0.006092591676861048,
0.0431503988802433,
-0.016482753679156303,
0.021627608686685562,
-0.011958076618611813,
-0.010123747400939465,
-0.03251129388809204,
-0.028248662129044533,
-0.023986032232642174,
0.05506480112671852,
-0.024475185200572014,
0.04563111066818237,
-0.029820943251252174,
-0.001427064067684114,
-0.006511867046356201,
0.025645662099123,
0.0024501390289515257,
0.06708402186632156,
0.025558313354849815,
-0.02802155539393425,
-0.012132774107158184,
0.02206435427069664,
0.0128228310495615,
0.012665603309869766,
-0.01449993159621954,
-0.04164799675345421,
0.02328724041581154,
0.09007427841424942,
0.0020286801736801863,
0.006621052976697683,
-0.01322463620454073,
-0.00006660359940724447,
0.018989669159054756,
0.04025041311979294,
0.024457715451717377,
-0.014386378228664398,
0.02929685078561306,
-0.0020974676590412855,
0.05310818552970886,
0.021487850695848465,
0.05136120319366455,
0.07358278334140778,
-0.04727327078580856,
0.03780464082956314,
-0.024999279528856277,
-0.03804921731352806,
0.09845978021621704,
0.047797366976737976,
0.005725726019591093,
0.025733010843396187,
-0.021854717284440994,
0.07400206476449966,
-0.00242393440566957,
0.01349541824311018,
-0.01970593072474003,
-0.022518569603562355,
-0.05897803604602814,
0.023689044639468193,
0.028493238613009453,
0.0008800410432741046,
0.010612902231514454,
-0.004625129047781229,
0.050173256546258926,
0.01298005972057581,
-0.008560201153159142,
0.011626150459051132,
-0.002382443519309163,
0.0038477228954434395,
-0.037664882838726044,
0.0025811626110225916,
-0.07085749506950378,
0.014884267002344131,
0.020230025053024292,
0.01677100546658039,
0.004878440871834755,
-0.0686563029885292,
0.04143835976719856,
-0.051081687211990356,
-0.019723400473594666,
-0.046469662338495255,
-0.035358868539333344,
-0.014858062379062176,
-0.018745092675089836,
0.07026352733373642,
-0.09028391540050507,
0.03457272797822952,
0.03513176366686821,
-0.004655701108276844,
0.01640413887798786,
-0.01956617273390293,
-0.0063546388410031796,
-0.023112541064620018,
-0.03532392904162407,
0.011678559705615044,
0.010053868405520916,
-0.06271657347679138,
-0.03520164266228676,
-0.011058381758630276,
-0.0155044449493289,
0.045456413179636,
0.03268599137663841,
-0.035882964730262756,
0.04922989010810852,
-0.021627608686685562,
-0.015626734122633934,
0.05356239899992943,
0.06750329583883286,
0.021662548184394836,
0.01257825456559658,
0.04042511060833931,
-0.0081409253180027,
0.0383986160159111,
0.037420306354761124,
-0.00854273047298193,
0.013014999218285084,
0.011224344372749329,
0.08720923215150833,
0.019304126501083374,
0.008748001419007778,
-0.015705347061157227,
-0.02005532756447792,
0.05282866582274437,
-0.03321008384227753,
0.03191731870174408,
-0.006861262954771519,
-0.01970593072474003,
-0.03172515332698822,
0.04821664094924927,
0.013338190503418446,
-0.02868540771305561,
0.0071538821794092655,
0.0351492315530777,
-0.059711769223213196,
0.004655701108276844,
-0.017862867563962936,
0.00192167772911489,
0.06593101471662521,
-0.023549286648631096,
-0.011442717164754868,
0.00023911785683594644,
0.009180378168821335,
0.0006496580899693072,
-0.03895764797925949,
-0.04108896479010582,
-0.044827498495578766,
0.03707091137766838,
-0.018133649602532387,
0.014622220769524574,
0.003804048290476203,
-0.07686711102724075,
0.017766783013939857,
-0.0397612601518631,
0.0010694791562855244,
-0.02201194502413273,
-0.05195517838001251,
0.026029998436570168,
-0.012849035672843456,
-0.02941913902759552,
-0.06240211799740791,
-0.02905227243900299,
0.01760082133114338,
0.005546660628169775,
-0.06652498990297318,
0.03404863551259041,
-0.042276911437511444,
0.035952843725681305,
-0.0016989378491416574,
0.01169602945446968,
0.04818170145153999,
0.006433252710849047,
0.008769838139414787,
-0.0333847813308239,
-0.018517985939979553,
-0.04521183669567108,
0.03439803048968315,
-0.04182269424200058,
-0.010377059690654278,
0.0002400732337264344,
0.001475105993449688,
0.015460770577192307,
-0.01689329370856285,
-0.06533703953027725,
0.032004669308662415,
0.0005369232967495918,
0.021383032202720642,
0.03153298422694206,
0.048600975424051285,
0.06421897560358047,
-0.02637939341366291,
-0.03654681518673897,
0.03464260697364807,
0.011014707386493683,
0.047867245972156525,
0.07162617146968842,
0.021610138937830925,
-0.04594556614756584,
0.00595720112323761,
0.0351492315530777,
-0.025907710194587708,
-0.03689621388912201,
-0.04004077613353729,
-0.03015287034213543,
-0.02922697179019451,
0.008586405776441097,
-0.018465576693415642,
0.003631534054875374,
-0.015574323944747448,
0.06984425336122513,
0.02255350910127163,
-0.03411851450800896,
0.028895044699311256,
0.005616540089249611,
0.0046469662338495255,
0.00852962862700224,
0.09238028526306152,
-0.015425831079483032,
0.06247199699282646,
-0.01728636398911476,
-0.026851078495383263,
-0.04584074765443802,
0.027916736900806427,
-0.033646829426288605,
-0.014447522349655628,
0.036267299205064774,
-0.05412143096327782,
-0.0749104917049408,
-0.09203089028596878,
-0.013626442290842533,
-0.03417092189192772,
-0.003721066750586033,
0.029454078525304794,
-0.019793281331658363,
-0.03008299134671688,
0.006503132171928883,
-0.03321008384227753,
-0.04119378328323364,
-0.041298601776361465,
-0.01711166650056839,
-0.03567332774400711,
0.010743925347924232,
-0.047133512794971466,
0.009800556115806103,
0.028108904138207436,
-0.003721066750586033,
-0.018552925437688828,
0.020998695865273476,
-0.04800700396299362,
-0.018919790163636208,
0.034974534064531326,
-0.032738398760557175,
-0.018220998346805573,
0.009538508951663971,
0.005826177541166544,
-0.019531233236193657,
-0.018989669159054756,
-0.023060131818056107,
-0.02437036670744419,
0.03275587037205696,
0.02845829911530018,
-0.011198139749467373,
-0.023863743990659714,
-0.0515708401799202,
0.023357119411230087,
-0.004812929313629866,
-0.02728782407939434,
0.02613481692969799,
0.0932188406586647,
-0.018675213679671288,
0.009914110414683819,
0.018448106944561005,
0.020142676308751106,
-0.0004460257769096643,
-0.023060131818056107,
0.06264669448137283,
0.018797501921653748,
-0.04032029211521149,
0.0013517255429178476,
-0.018133649602532387,
0.0628213882446289,
-0.008857186883687973,
0.07805505394935608,
0.03714079037308693,
0.004939584992825985,
0.04842627793550491,
-0.02248363010585308,
-0.009171643294394016,
0.007538217585533857,
-0.010010194033384323,
-0.07197556644678116,
-0.038817889988422394,
-0.053213004022836685,
0.04716845229268074,
-0.020457133650779724,
0.10418987274169922,
0.017364978790283203,
-0.012045425362884998,
0.003046295838430524
] |
10,086 | sentence_transformers.SentenceTransformer | set_pooling_include_prompt |
Sets the `include_prompt` attribute in the pooling layer in the model, if there is one.
:param include_prompt: Whether to include the prompt in the pooling layer.
| def set_pooling_include_prompt(self, include_prompt: bool) -> None:
"""
Sets the `include_prompt` attribute in the pooling layer in the model, if there is one.
:param include_prompt: Whether to include the prompt in the pooling layer.
"""
for module in self:
if isinstance(module, Pooling):
module.include_prompt = include_prompt
break
| (self, include_prompt: bool) -> NoneType | [
0.007410988211631775,
-0.05660566687583923,
0.006583674345165491,
0.00911786686629057,
0.011974276043474674,
0.02762356586754322,
0.012740629725158215,
0.008782587014138699,
0.03129857778549194,
-0.03216943517327309,
-0.03431174159049988,
-0.08172116428613663,
-0.03257003054022789,
0.031002487987279892,
-0.07949177175760269,
-0.044065333902835846,
0.05145019665360451,
-0.005273035727441311,
-0.04322931170463562,
-0.0655580684542656,
0.022346176207065582,
0.018584076315164566,
0.005599606782197952,
0.031734008342027664,
-0.006540131755173206,
-0.005856509320437908,
0.033580224961042404,
0.0033288486301898956,
-0.02238100953400135,
0.02302544377744198,
-0.015030981972813606,
-0.011608515866100788,
-0.023878883570432663,
0.0030763002578169107,
-0.012104904279112816,
-0.006370314862579107,
0.011991692706942558,
0.09036006033420563,
-0.013620194047689438,
-0.05172887071967125,
-0.01723424904048443,
-0.00988422054797411,
0.03737715631723404,
0.036645639687776566,
-0.048106107860803604,
0.025986354798078537,
0.03720298781991005,
0.023704711347818375,
0.04490135610103607,
0.022276507690548897,
0.008617124520242214,
0.01328056026250124,
0.007276005577296019,
0.04619022458791733,
-0.031542420387268066,
-0.03215201944112778,
-0.001246413215994835,
-0.008813067339360714,
-0.04538903757929802,
-0.028842763975262642,
-0.06503555923700333,
-0.008551809936761856,
-0.04232362285256386,
-0.017852555960416794,
0.02626502886414528,
-0.02776290290057659,
-0.08604061603546143,
0.029121438041329384,
-0.008364575915038586,
-0.028825348243117332,
-0.042219117283821106,
-0.06865832209587097,
-0.0031481459736824036,
0.02899951860308647,
0.007215045392513275,
-0.04873312637209892,
-0.028163496404886246,
0.014177542179822922,
0.009518460370600224,
-0.0316120870411396,
-0.007772393524646759,
0.0027344890404492617,
-0.0033702142536640167,
0.014221085235476494,
-0.005791195202618837,
-0.0469217449426651,
-0.00853003840893507,
0.042985472828149796,
0.11056393384933472,
-0.04302030801773071,
-0.023217031732201576,
0.03241327404975891,
0.040512241423130035,
0.09732691198587418,
0.001768927089869976,
0.0431944765150547,
0.020447708666324615,
-0.009091741405427456,
-0.03570511192083359,
-0.004598122090101242,
-0.0490814670920372,
-0.0453542023897171,
0.031124407425522804,
0.03011421486735344,
-0.007698370609432459,
-0.03290095552802086,
0.028651176020503044,
0.009701340459287167,
0.020256120711565018,
-0.014656513929367065,
-0.040198732167482376,
0.021022474393248558,
-0.036680471152067184,
0.002035626908764243,
-0.0009715491905808449,
-0.02252034656703472,
-0.023251866921782494,
-0.02426205947995186,
0.07315193861722946,
-0.019994862377643585,
-0.08018846064805984,
0.053958263248205185,
-0.013567943125963211,
-0.02144048549234867,
0.06865832209587097,
0.005185950081795454,
0.017364876344799995,
0.02098763920366764,
-0.03810867667198181,
-0.04587671533226967,
0.04218428581953049,
-0.029260775074362755,
-0.07154956459999084,
-0.034050486981868744,
-0.014116582460701466,
-0.0023883236572146416,
-0.05434143915772438,
0.012052652426064014,
0.05374925956130028,
0.06430403888225555,
0.04612055420875549,
0.011007624678313732,
-0.018949836492538452,
0.0581035390496254,
-0.014142707921564579,
-0.05413243547081947,
0.018862750381231308,
-0.036506302654743195,
-0.024296894669532776,
-0.049464643001556396,
0.004280259367078543,
-0.010006139986217022,
-0.010276105254888535,
-0.0023948552552610636,
-0.03873569518327713,
0.09962597489356995,
0.00010960544750560075,
-0.0002650669193826616,
0.024035636335611343,
-0.03577478229999542,
0.045005857944488525,
-0.03915370628237724,
0.04859378933906555,
0.053331248462200165,
-0.06109928712248802,
-0.035130348056554794,
-0.016067299991846085,
-0.033127378672361374,
0.008186050690710545,
0.02640436589717865,
0.036053456366062164,
-0.08764299005270004,
0.017991892993450165,
-0.0032657114788889885,
0.008573581464588642,
0.06308484077453613,
0.0015381501289084554,
-0.031403083354234695,
-0.0022707581520080566,
0.013724696822464466,
0.07600834965705872,
-0.02992262691259384,
-0.014229794032871723,
0.05597865208983421,
0.019263343885540962,
-0.0367153063416481,
0.042393289506435394,
-0.030149048194289207,
-0.004016824997961521,
0.006844931282103062,
-0.0032918371725827456,
0.01882791519165039,
-0.006265812087804079,
0.02037804014980793,
-0.04556320607662201,
-0.004349927883595228,
0.00771578773856163,
-0.021405650302767754,
-0.019960029050707817,
0.008699855767190456,
-0.031263746321201324,
-0.022659683600068092,
0.0029304318595677614,
0.015710249543190002,
0.04807127267122269,
0.03244810923933983,
0.011425635777413845,
-0.023077694699168205,
0.028651176020503044,
-0.03685464337468147,
0.02206750214099884,
-0.04493619129061699,
0.06402536481618881,
0.07161923497915268,
0.02210233546793461,
0.06454787403345108,
0.024976162239909172,
0.006287583149969578,
-0.004698270466178656,
0.0025907978415489197,
-0.00395151088014245,
-0.04302030801773071,
-0.017660968005657196,
-0.0015490358928218484,
-0.01126017328351736,
0.019385263323783875,
-0.022328758612275124,
-0.0016807528445497155,
0.023687293753027916,
-0.012104904279112816,
0.05172887071967125,
0.03824801370501518,
-0.043473150581121445,
0.009083032608032227,
0.007228108122944832,
0.0290517695248127,
-0.011312425136566162,
0.00950104370713234,
-0.028494421392679214,
0.01674656942486763,
0.00013750005746260285,
0.03908403590321541,
-0.008307970128953457,
-0.0537840910255909,
-0.04960398003458977,
-0.015335781499743462,
-0.0036641284823417664,
0.008020587265491486,
-0.001791787100955844,
0.017835140228271484,
0.0435776561498642,
0.0013204360147938132,
-0.011547556146979332,
-0.006052452139556408,
-0.01975102350115776,
-0.035443857312202454,
-0.029382696375250816,
-0.014012079685926437,
-0.011460470035672188,
0.02391371689736843,
-0.07168889790773392,
0.04124375805258751,
-0.0555606409907341,
0.030619312077760696,
0.06082061305642128,
0.0361231230199337,
-0.06956400722265244,
-0.007572096306830645,
-0.012906092219054699,
-0.033597640693187714,
-0.007245525252074003,
0.06350284814834595,
0.004929047543555498,
0.0014096988597884774,
0.015814753249287605,
-0.020656714215874672,
-0.029121438041329384,
0.04566771164536476,
-0.08032779395580292,
-0.023495705798268318,
0.05392342805862427,
-0.02055221050977707,
0.01735616847872734,
0.026334697380661964,
-0.04504069313406944,
0.014856810681521893,
-0.03309254348278046,
0.031542420387268066,
-0.014107873663306236,
-0.02781515382230282,
-0.025881852954626083,
0.08611027896404266,
0.08172116428613663,
0.03964138403534889,
-0.03135083243250847,
0.01790480874478817,
-0.005399309564381838,
-0.025220001116394997,
0.001844038488343358,
-0.0036706598475575447,
0.03168175742030144,
-0.05016132816672325,
-0.01870599575340748,
0.023426037281751633,
-0.010180311277508736,
-0.06054193899035454,
0.07057420164346695,
-0.011138253845274448,
-0.034033067524433136,
0.007027811370790005,
0.038805361837148666,
0.04970848560333252,
0.040999919176101685,
0.032343607395887375,
0.020569628104567528,
-0.0018952012760564685,
0.05012649670243263,
0.002115092473104596,
-0.020656714215874672,
-0.01164335012435913,
-0.0577203631401062,
-0.018392488360404968,
-0.0003072490217164159,
0.01715587079524994,
-0.021579822525382042,
-0.008085901848971844,
0.025341922417283058,
-0.0388750322163105,
-0.036784976720809937,
0.05190304294228554,
-0.04524970054626465,
0.032482944428920746,
-0.004084316547960043,
-0.003661951282992959,
-0.032204270362854004,
0.0549684576690197,
0.0018353299237787724,
-0.011747852899134159,
0.028755679726600647,
-0.024505900219082832,
0.0392582081258297,
-0.014229794032871723,
-0.043612487614154816,
0.042079780250787735,
-0.035287100821733475,
0.021544987335801125,
-0.016833653673529625,
0.024801990017294884,
0.010145477019250393,
0.018723413348197937,
-0.03176884353160858,
0.06332867592573166,
0.03554835915565491,
0.0002645226486492902,
0.022032666951417923,
0.023896299302577972,
-0.033719561994075775,
0.05538646876811981,
-0.02980070747435093,
-0.03657596930861473,
-0.003738151164725423,
-0.05402793362736702,
0.04605088755488396,
0.029069187119603157,
-0.04601605236530304,
0.026944298297166824,
0.05374925956130028,
0.002923900494351983,
0.019646521657705307,
-0.0021433953661471605,
-0.04970848560333252,
-0.04587671533226967,
0.010990208014845848,
-0.02595152147114277,
-0.06876282393932343,
0.06841447949409485,
-0.03425949066877365,
0.0015403273282572627,
-0.03814351186156273,
0.014865519478917122,
0.09224110841751099,
0.02037804014980793,
0.023983385413885117,
-0.005782486405223608,
-0.01957685314118862,
-0.007502427790313959,
0.021092142909765244,
-0.014761016704142094,
0.038073841482400894,
-0.0051032183691859245,
0.010702825151383877,
-0.008699855767190456,
0.01419495977461338,
0.040825746953487396,
-0.05434143915772438,
-0.08060646802186966,
0.03206493332982063,
0.033580224961042404,
-0.015126775950193405,
0.013010594993829727,
0.04382149502635002,
-0.030619312077760696,
0.04211461544036865,
-0.01865374483168125,
0.00045420604874379933,
0.03546127304434776,
-0.03257003054022789,
0.007249879650771618,
0.006775262765586376,
-0.07426663488149643,
0.014761016704142094,
0.0067404285073280334,
-0.02144048549234867,
0.003206928726285696,
-0.016720443964004517,
0.02946978062391281,
-0.032012682408094406,
-0.024749739095568657,
0.012610000558197498,
-0.0005372095620259643,
0.08562260121107101,
0.0037729854229837656,
-0.013149932026863098,
0.012862549163401127,
0.011059876531362534,
0.055212296545505524,
0.020778633654117584,
-0.012575166299939156,
0.022659683600068092,
-0.03692431375384331,
-0.10728950798511505,
0.021510154008865356,
0.039606548845767975,
0.015065816231071949,
0.029574284330010414,
-0.05388859659433365,
0.03873569518327713,
-0.0057041095569729805,
-0.06566257029771805,
0.012400995008647442,
0.06008909270167351,
-0.012697086669504642,
-0.025341922417283058,
0.011843646876513958,
0.005351412575691938,
0.021980416029691696,
-0.03810867667198181,
0.07475431263446808,
-0.0799097865819931,
0.026961714029312134,
0.0202212855219841,
-0.012340035289525986,
0.040651578456163406,
0.04570254310965538,
-0.027205554768443108,
-0.008760815486311913,
0.05740685388445854,
-0.018322819843888283,
-0.041626937687397,
-0.010633156634867191,
-0.04744425788521767,
0.017600007355213165,
0.02701396681368351,
0.04929047450423241,
0.048245444893836975,
0.00222830381244421,
0.04542386904358864,
0.019228510558605194,
-0.0290517695248127,
0.03842218592762947,
0.019542017951607704,
-0.029713621363043785,
-0.010171602480113506,
-0.00030316688935272396,
-0.0017700156895443797,
0.0009666506084613502,
0.0036053454969078302,
0.08179083466529846,
-0.011913315393030643,
-0.012235532514750957,
-0.038979534059762955,
-0.014081748202443123,
0.017269082367420197,
-0.0015196444001048803,
0.0030588831286877394,
-0.01792222447693348,
0.026352114975452423,
-0.04786226898431778,
-0.030131632462143898,
-0.014491050504148006,
0.005978429224342108,
0.007476302329450846,
0.0017101443372666836,
0.022572597488760948,
-0.004232362378388643,
0.024122722446918488,
0.03190818056464195,
0.005460269749164581,
0.05946207791566849,
-0.0009759034728631377,
-0.014926479198038578,
0.06837964802980423,
0.0030088089406490326,
-0.028442170470952988,
0.05946207791566849,
0.04615538939833641,
-0.032674532383680344,
0.03028838522732258,
-0.036192793399095535,
0.07315193861722946,
0.013506983406841755,
0.009379123337566853,
0.03967621922492981,
0.032813869416713715,
0.050683844834566116,
-0.01719941385090351,
0.017364876344799995,
0.019733605906367302,
0.05298290401697159,
-0.006553194485604763,
0.044518180191516876,
0.005438498221337795,
-0.019402680918574333,
-0.06284099817276001,
0.0124184126034379,
0.003341911593452096,
-0.003934093751013279,
-0.01961168646812439,
0.008665021508932114,
0.05326157808303833,
0.032988041639328,
0.05096251890063286,
-0.025655429810285568,
0.059218235313892365,
-0.008647603914141655,
0.040512241423130035,
-0.04448334500193596,
0.060123927891254425,
0.0063354806043207645,
-0.018618909642100334,
-0.02919110655784607,
0.035583194345235825,
0.02980070747435093,
0.01662464812397957,
0.08151216059923172,
0.028302833437919617,
-0.04800160601735115,
0.036819808185100555,
-0.04873312637209892,
0.004053836688399315,
-0.020029697567224503,
-0.02438397891819477,
-0.0398503914475441,
-0.02546384185552597,
0.04462268203496933,
-0.05758102610707283,
0.042985472828149796,
0.03197784721851349,
-0.01692073978483677,
0.031124407425522804,
-0.019507184624671936,
-0.01759129948914051,
0.024296894669532776,
-0.034033067524433136,
0.05218171700835228,
-0.054863955825567245,
-0.035739947110414505,
0.02595152147114277,
-0.030462557449936867,
-0.003977636806666851,
0.026369532570242882,
0.0033332030288875103,
-0.046852074563503265,
0.03762099891901016,
-0.01496131345629692,
0.00325918011367321,
0.04942981153726578,
0.06001942232251167,
-0.026665624231100082,
0.033597640693187714,
-0.05650116503238678,
-0.001874518464319408,
0.03570511192083359,
-0.009083032608032227,
-0.014734890311956406,
0.021875912323594093,
-0.006540131755173206,
-0.017321333289146423,
0.016790112480521202,
0.034677501767873764,
-0.052425555884838104,
0.00891321524977684,
0.039293043315410614,
-0.01405562274158001,
0.04232362285256386,
-0.014029497280716896,
-0.07684437185525894,
-0.004767938982695341,
0.07984011620283127,
0.025394173339009285,
-0.014151416718959808,
0.005312223918735981,
-0.016798820346593857,
0.030532225966453552,
0.0431944765150547,
-0.05145019665360451,
-0.09112641215324402,
0.0017297385493293405,
-0.05608315393328667,
0.018496990203857422,
-0.04336864873766899,
-0.009143992327153683,
-0.002314300974830985,
-0.027501646429300308,
-0.06475688517093658,
-0.007014748640358448,
0.003553094109520316,
-0.039467211812734604,
0.06632442772388458,
-0.029104022309184074,
-0.006418211851269007,
0.014491050504148006,
-0.022415844723582268,
-0.012827714905142784,
-0.027693234384059906,
0.01928076148033142,
-0.01804414577782154,
0.0008104407461360097,
0.0248368252068758,
0.021701741963624954,
-0.02083088457584381,
-0.03584444895386696,
0.06799647212028503,
-0.020587045699357986,
0.03335380181670189,
-0.026212777942419052,
0.03485167399048805,
0.015039689838886261,
-0.00628322921693325,
-0.059218235313892365,
0.021405650302767754,
-0.07921309769153595,
-0.02595152147114277,
-0.040512241423130035,
0.031228911131620407,
0.05326157808303833,
-0.048384781926870346,
0.020012279972434044,
0.0700865238904953,
-0.043612487614154816,
-0.013637611642479897,
0.02297319285571575,
-0.024000803008675575,
0.008033649995923042,
-0.004746167454868555,
-0.03446849808096886,
-0.08506525307893753,
0.03176884353160858,
0.03939754515886307,
-0.04173143953084946,
-0.060890279710292816,
0.009805843234062195,
0.041278593242168427,
0.03765583038330078,
0.023251866921782494,
0.004689561668783426,
-0.1015070229768753,
-0.06942467391490936,
0.00011300722690066323,
0.022886106744408607,
-0.04657340049743652,
-0.07301260530948639,
-0.08896669000387192,
0.0061438921838998795,
-0.032204270362854004,
-0.021370816975831985,
-0.05932274088263512,
-0.03284870460629463,
-0.055804479867219925,
-0.05176370590925217,
-0.019245926290750504,
-0.08889701962471008,
-0.0121223209425807,
-0.026752708479762077,
-0.007502427790313959,
0.02933044359087944,
-0.0641995370388031,
0.03152500092983246,
0.03162950649857521,
0.042044948786497116,
-0.005055321380496025,
0.03216943517327309,
0.02607344090938568,
0.004084316547960043,
-0.018026728183031082,
-0.053505416959524155,
-0.030601894482970238,
-0.052564892917871475,
-0.01591925509274006,
-0.004177933558821678,
0.050230998545885086,
0.017086202278733253,
-0.039920058101415634,
-0.00219129235483706,
-0.06064644083380699,
0.028825348243117332,
-0.056570831686258316,
0.0003809996705967933,
-0.04542386904358864,
-0.032361023128032684,
-0.006853640079498291,
0.025533510372042656,
0.008094610646367073,
-0.03918853774666786,
0.04117409139871597,
0.03290095552802086,
0.015675416216254234,
0.00517288688570261,
-0.00563008664175868,
-0.02471490576863289,
0.00567798363044858,
0.04274163395166397,
-0.00593924056738615,
-0.0017634842079132795,
0.06123862415552139,
-0.012453246861696243,
-0.014464925043284893,
-0.03166433796286583,
0.07579934597015381,
0.05900923162698746,
0.008186050690710545,
0.006439983379095793,
-0.08778232336044312,
0.021719159558415413,
0.0447620190680027,
0.027222972363233566,
0.03504326194524765,
0.06799647212028503,
0.004606830421835184,
-0.02410530485212803,
0.03136824816465378,
-0.08548326790332794,
-0.0011429990408942103,
-0.022015249356627464,
0.017094912007451057,
-0.008630187250673771,
0.010807327926158905,
-0.01328056026250124,
-0.031124407425522804,
0.024523315951228142,
0.01806156150996685,
0.03304029256105423,
0.060263264924287796,
-0.019489767029881477,
0.048106107860803604,
-0.0069233085960149765,
-0.018496990203857422,
0.04403049871325493,
-0.0073630912229418755,
-0.00038181612035259604,
-0.03453816473484039,
0.007545970845967531,
0.06190047413110733,
-0.02931302785873413,
0.0288601815700531,
0.00455457903444767,
-0.013489565812051296,
0.017835140228271484
] |
10,087 | torch.nn.modules.module | share_memory | See :meth:`torch.Tensor.share_memory_`. | def share_memory(self: T) -> T:
r"""See :meth:`torch.Tensor.share_memory_`."""
return self._apply(lambda t: t.share_memory_())
| (self: ~T) -> ~T | [
0.0014421461382880807,
-0.045130692422389984,
0.020003415644168854,
0.048829372972249985,
0.01961318776011467,
0.027807971462607384,
-0.030081473290920258,
0.023905694484710693,
0.00479301530867815,
-0.037088606506586075,
0.04563968628644943,
-0.03067529760301113,
-0.0016255956143140793,
0.024601317942142487,
-0.01800137758255005,
0.011316605843603611,
-0.017611149698495865,
-0.003584157442674041,
0.018510369583964348,
0.030929794535040855,
0.007117415778338909,
-0.0012056765845045447,
0.0004331740492489189,
-0.04587721452116966,
-0.055989205837249756,
0.01456567645072937,
0.01364100631326437,
-0.0703088641166687,
0.045673616230487823,
0.03613848611712456,
-0.025347840040922165,
-0.05188332870602608,
0.03077709674835205,
0.06579580157995224,
0.0460808128118515,
0.0019203872652724385,
-0.0460808128118515,
0.060841601341962814,
-0.005747376475483179,
-0.05157793313264847,
-0.007185281254351139,
-0.08598584681749344,
0.06311510503292084,
-0.016694962978363037,
0.032846998423337936,
0.024550417438149452,
0.037801194936037064,
0.0306074321269989,
-0.010239237919449806,
-0.03215137496590614,
0.028571460396051407,
0.013318643905222416,
-0.03169328346848488,
0.036749277263879776,
-0.04251786321401596,
0.027994602918624878,
0.05476762354373932,
0.011537169106304646,
-0.05534448102116585,
0.03191384673118591,
0.04967769607901573,
-0.016499849036335945,
0.06301330775022507,
-0.045402154326438904,
0.014116066507995129,
-0.002441044431179762,
-0.0306074321269989,
0.008330514654517174,
0.05761798098683357,
0.030352935194969177,
-0.03276216611266136,
-0.013344094157218933,
0.026230094954371452,
0.022751977667212486,
-0.01591450721025467,
-0.005972181912511587,
0.022497480735182762,
-0.003331781830638647,
0.005984906572848558,
-0.044485967606306076,
0.0060570137575268745,
0.011757733300328255,
-0.027638306841254234,
0.0010365425841882825,
-0.0417034737765789,
-0.0038619826082140207,
-0.016601648181676865,
0.012368524447083473,
-0.03313542902469635,
-0.03776726499199867,
0.004521552473306656,
0.06294544041156769,
0.003768667345866561,
0.006701738107949495,
0.04350191354751587,
-0.04665767028927803,
-0.03993896767497063,
-0.006990167312324047,
-0.025279974564909935,
-0.020614206790924072,
-0.0514761358499527,
0.06511714309453964,
0.04146594554185867,
0.01655074767768383,
0.016805244609713554,
-0.0022395681589841843,
-0.0010672941571101546,
-0.0146335419267416,
-0.04658980295062065,
0.048557911068201065,
-0.04991522431373596,
0.06233464926481247,
-0.014523260295391083,
0.00785545539110899,
-0.008194783702492714,
-0.014540227130055428,
-0.052460189908742905,
-0.0077239652164280415,
-0.008831024169921875,
0.0343061126768589,
0.0005331169231794775,
0.0538175031542778,
-0.01678827777504921,
-0.07261630147695541,
-0.02516120858490467,
0.08537505567073822,
0.055989205837249756,
-0.04309472069144249,
-0.048252515494823456,
0.022090286016464233,
-0.03993896767497063,
0.007439777720719576,
0.01879880018532276,
0.09372253715991974,
-0.00989142619073391,
0.049066901206970215,
0.00884799100458622,
0.02091960236430168,
-0.013030215166509151,
0.016389567404985428,
-0.02488974668085575,
0.0507974773645401,
0.05093320831656456,
0.044689565896987915,
0.04000683128833771,
-0.022633211687207222,
-0.03814052417874336,
0.020071281120181084,
0.000893918564543128,
-0.041160549968481064,
-0.028367863968014717,
0.025313906371593475,
0.06294544041156769,
0.01779778115451336,
-0.04265359416604042,
0.09012565016746521,
-0.025755034759640694,
0.03827625513076782,
-0.000991475535556674,
-0.01276723574846983,
-0.08028512448072433,
0.027604375034570694,
-0.036749277263879776,
-0.0075585427694022655,
0.024329854175448418,
-0.045198556035757065,
0.004521552473306656,
-0.026230094954371452,
-0.04231426492333412,
0.00019551154400687665,
-0.020495442673563957,
-0.06297937035560608,
0.07010526955127716,
0.01985071785748005,
-0.027807971462607384,
0.02314220368862152,
-0.012775718234479427,
-0.001895998022519052,
0.02923315204679966,
-0.015083152800798416,
-0.01762811653316021,
-0.048422180116176605,
-0.004008317831903696,
-0.03963357210159302,
-0.013963368721306324,
0.01806924305856228,
0.05402109771966934,
-0.01581270806491375,
0.04414663836359978,
0.05897529423236847,
-0.019664086401462555,
0.0010386633221060038,
-0.016542265191674232,
-0.03098069317638874,
-0.007885145954787731,
-0.03484903648495674,
-0.03091282770037651,
-0.028283031657338142,
-0.018171042203903198,
0.08347481489181519,
-0.05480155348777771,
-0.05497121810913086,
0.00970479566603899,
0.026654254645109177,
-0.01907026208937168,
-0.04333225265145302,
-0.04998309165239334,
0.055989205837249756,
-0.04194100573658943,
0.027468642219901085,
-0.020071281120181084,
-0.012317624874413013,
0.036511749029159546,
0.08177816867828369,
0.06684771925210953,
-0.0659315288066864,
-0.08164244145154953,
-0.0005392142338678241,
0.019867684692144394,
-0.00849169585853815,
0.08937913179397583,
-0.04740419238805771,
-0.08428920060396194,
0.03213440999388695,
-0.00995929166674614,
-0.016728894785046577,
0.00682898610830307,
-0.030200237408280373,
-0.00215261522680521,
-0.03266036882996559,
0.05351210758090019,
0.053410306572914124,
-0.012351557612419128,
-0.022565346211194992,
0.06206318363547325,
-0.03047170117497444,
-0.0016807365464046597,
-0.000529140408616513,
0.02567020244896412,
0.013861569575965405,
-0.03746186941862106,
-0.015397030860185623,
0.044893160462379456,
0.024770980700850487,
0.036681413650512695,
0.00016171124298125505,
-0.031065525487065315,
0.08394987136125565,
0.04730239510536194,
-0.0018376759253442287,
-0.010485251434147358,
-0.020546341314911842,
-0.033932849764823914,
-0.026501556858420372,
0.013250778429210186,
-0.00817781686782837,
-0.023328835144639015,
-0.03773333132266998,
-0.017679015174508095,
0.005556504242122173,
0.010434351861476898,
0.013420443050563335,
0.027129314839839935,
-0.008266891352832317,
-0.01879880018532276,
-0.005751618184149265,
-0.03953177109360695,
0.024414686486124992,
-0.06705131381750107,
0.03956570476293564,
0.0034590300638228655,
0.06810323148965836,
0.012419424019753933,
-0.012461839243769646,
-0.006807778496295214,
-0.05028848722577095,
0.045537885278463364,
0.06206318363547325,
-0.026043463498353958,
0.002977607771754265,
-0.019596220925450325,
-0.02738381177186966,
0.005777067970484495,
-0.08456066250801086,
-0.03467937558889389,
0.000223479641135782,
0.0118595315143466,
-0.048829372972249985,
0.0178317129611969,
-0.03976930305361748,
-0.00287156761623919,
0.006213953252881765,
-0.008521387353539467,
-0.018289806321263313,
0.022480513900518417,
-0.003802600083872676,
-0.1275196522474289,
0.056091003119945526,
0.03912457823753357,
0.04278932511806488,
-0.0007709119818173349,
-0.01180863194167614,
-0.04312865436077118,
0.0709875226020813,
0.04665767028927803,
0.0021345883142203093,
0.012707852758467197,
0.017984410747885704,
0.02930101752281189,
0.020970502868294716,
0.03383105248212814,
-0.006515107583254576,
-0.009509681724011898,
0.07682397216558456,
0.0588734969496727,
0.01057856623083353,
0.02913135290145874,
0.01701732538640499,
-0.037360068410634995,
0.06348836421966553,
-0.03403465077280998,
-0.020393643528223038,
-0.004105874802917242,
0.007359187118709087,
0.014658992178738117,
-0.04367157816886902,
0.02546660415828228,
-0.05962001904845238,
-0.052222657948732376,
0.045130692422389984,
0.010570082813501358,
-0.008207508362829685,
0.015286749228835106,
0.01739058643579483,
-0.0766882449388504,
0.024278955534100533,
-0.012130994349718094,
0.025347840040922165,
0.002710386412218213,
-0.009687828831374645,
-0.002600104780867696,
0.048761505633592606,
0.0011462941765785217,
-0.040821220725774765,
0.008538353256881237,
0.007999669760465622,
-0.003232104005292058,
0.03512050211429596,
0.02307433821260929,
-0.03310149535536766,
-0.0045130690559744835,
0.07573812454938889,
0.01340347621589899,
0.05395323410630226,
0.051951196044683456,
0.0012724818661808968,
-0.03415341302752495,
0.022446580231189728,
-0.05453009158372879,
-0.01432814635336399,
0.022242983803153038,
0.01635563373565674,
-0.00215261522680521,
0.015753326937556267,
-0.0019055416341871023,
0.03640994802117348,
-0.05534448102116585,
0.0016043876530602574,
-0.02758740819990635,
-0.018646102398633957,
-0.01903633028268814,
-0.07159831374883652,
-0.015592144802212715,
0.07519520074129105,
0.060638006776571274,
-0.023905694484710693,
-0.12385490536689758,
-0.002517393324524164,
-0.006052772514522076,
-0.0011187236523255706,
0.05548021197319031,
0.01641501672565937,
0.02977607771754265,
-0.023430634289979935,
0.023600298911333084,
0.05096714198589325,
0.012275208719074726,
-0.044485967606306076,
0.01264847069978714,
0.010994243435561657,
0.01756025105714798,
-0.004843914415687323,
-0.028401795774698257,
0.016330184414982796,
-0.048523977398872375,
0.0319477804005146,
-0.036613546311855316,
0.036817144602537155,
-0.030064506456255913,
-0.0353240966796875,
0.03255857154726982,
-0.04183920472860336,
-0.05419076234102249,
0.016058722510933876,
-0.05520875006914139,
0.029453715309500694,
0.006336960010230541,
0.0323040746152401,
-0.010476768016815186,
0.011155424639582634,
-0.025992564857006073,
-0.020563308149576187,
0.016126587986946106,
0.02677301876246929,
0.053104910999536514,
-0.02899562194943428,
0.053274575620889664,
-0.015032253228127956,
0.0470987968146801,
0.04292505607008934,
0.00965389609336853,
0.03746186941862106,
0.0021483737509697676,
0.01776384748518467,
-0.005607403814792633,
-0.06946054846048355,
-0.03512050211429596,
0.05028848722577095,
0.004078304395079613,
-0.006752637214958668,
0.011588068678975105,
-0.022684110328555107,
0.06464207917451859,
-0.01789957843720913,
0.026145262643694878,
-0.02317613735795021,
-0.008037843741476536,
-0.056294601410627365,
0.01705125719308853,
0.0649135410785675,
0.06182565540075302,
-0.031438786536455154,
0.02307433821260929,
-0.03912457823753357,
-0.03875131532549858,
-0.015074669383466244,
-0.06528680771589279,
0.033084530383348465,
-0.06528680771589279,
-0.018018344417214394,
0.04017649590969086,
0.0006547980010509491,
0.01961318776011467,
0.007108932361006737,
-0.0064472416415810585,
-0.04740419238805771,
-0.027841905131936073,
-0.11340358853340149,
-0.012656953185796738,
0.025992564857006073,
-0.03104855865240097,
0.041160549968481064,
-0.02779100462794304,
-0.05337637662887573,
0.0015895420219749212,
-0.06270790845155716,
0.01995251700282097,
-0.016202935948967934,
0.04329831898212433,
-0.033797118812799454,
0.003974385093897581,
-0.024261988699436188,
-0.04183920472860336,
-0.07607745379209518,
0.0014124548761174083,
-0.007893629372119904,
0.0012491530505940318,
0.015244333073496819,
-0.045402154326438904,
-0.028350897133350372,
-0.000860515923704952,
-0.026247059926390648,
0.02085173688828945,
0.017246371135115623,
-0.02779100462794304,
0.05425862967967987,
0.060332611203193665,
0.04326438531279564,
0.05938249081373215,
0.03807266056537628,
-0.044350236654281616,
0.04394304379820824,
-0.01940959133207798,
0.018340706825256348,
-0.08992205560207367,
0.021377695724368095,
0.00889889057725668,
0.0014930454781278968,
-0.0030072990339249372,
-0.0019373537506908178,
0.02680695243179798,
-0.011401438154280186,
-0.013742804527282715,
0.041228413581848145,
0.015286749228835106,
0.03878524899482727,
-0.020936569198966026,
-0.019630154594779015,
-0.04333225265145302,
-0.02600952982902527,
-0.010171372443437576,
-0.012198859825730324,
-0.020512409508228302,
0.007630649954080582,
0.029894841834902763,
-0.03617241978645325,
-0.048116784542798996,
-0.04367157816886902,
-0.0319477804005146,
-0.0756702572107315,
0.007414327934384346,
0.06888368725776672,
-0.01772991567850113,
-0.031303055584430695,
-0.012589087709784508,
-0.03657961264252663,
-0.03467937558889389,
0.01174076646566391,
0.0035544661805033684,
0.00029426143737509847,
-0.033525656908750534,
-0.02587379887700081,
-0.020359709858894348,
-0.018646102398633957,
0.007121657021343708,
0.015592144802212715,
-0.03620635345578194,
-0.026247059926390648,
0.06603332608938217,
-0.02734987810254097,
-0.04774352163076401,
-0.09813380241394043,
0.03495083749294281,
-0.0460808128118515,
-0.03881918266415596,
0.04750599339604378,
-0.015176467597484589,
-0.008046327158808708,
0.017746880650520325,
0.02594166435301304,
-0.041669540107250214,
-0.03181204944849014,
0.040651556104421616,
-0.010637949220836163,
0.05005095526576042,
0.02015611343085766,
-0.00578555092215538,
-0.022853774949908257,
0.033661387860774994,
0.018815765157341957,
0.052120860666036606,
-0.01913812756538391,
0.032779134809970856,
0.048388246446847916,
0.03484903648495674,
-0.02913135290145874,
-0.03552769497036934,
0.034730274230241776,
0.02183578908443451,
-0.023125238716602325,
0.019562289118766785,
0.013327127322554588,
0.02327793650329113,
-0.007749415002763271,
0.04933836683630943,
0.020105214789509773,
0.007537334691733122,
-0.011274189688265324,
-0.015006803907454014,
-0.040244363248348236,
-0.03963357210159302,
0.006286060903221369,
0.013479825109243393,
0.044112708419561386,
-0.008288098499178886,
0.030285069718956947,
-0.02728201262652874,
0.04957589507102966,
-0.009967775084078312,
-0.01749238558113575,
0.01930779218673706,
0.015753326937556267,
0.0036414191126823425,
0.017611149698495865,
0.0497794933617115,
-0.024906713515520096,
-0.05337637662887573,
-0.007740931585431099,
0.018459470942616463,
0.012114027515053749,
0.0312860906124115,
0.04614867642521858,
-0.017577216029167175,
-0.01574484258890152,
0.006549040321260691,
-0.0064472416415810585,
-0.05344424024224281,
0.004754840862005949,
0.011944363825023174,
-0.0397014357149601,
-0.009110970422625542,
-0.020800838246941566,
0.008703776635229588,
-0.06749244034290314,
0.009238218888640404,
-0.016745861619710922,
-0.06620299071073532,
0.029555512592196465,
-0.014989837072789669,
0.009458782151341438,
0.0049754041247069836,
0.0237190630286932,
-0.049032971262931824,
-0.002301071537658572,
-0.003662627190351486,
-0.0060145980678498745,
0.03630815073847771,
-0.02300647273659706,
-0.004568209871649742,
0.0033635939471423626,
-0.040549758821725845,
-0.036749277263879776,
0.0434001162648201,
0.03077709674835205,
0.0763489156961441,
-0.03539196401834488,
0.007982702925801277,
0.056498195976018906,
0.022378714755177498,
-0.016423499211668968,
-0.021886689588427544,
0.01739058643579483,
0.003026386257261038,
-0.019019363448023796,
-0.02190365456044674,
-0.04818464815616608,
0.002145192353054881,
0.03383105248212814,
-0.013929435051977634,
0.016321701928973198,
-0.048795439302921295,
0.03478117287158966,
0.012207343243062496,
-0.015626078471541405,
0.07689183950424194,
0.03204957768321037,
0.005051753018051386,
-0.01045980118215084,
-0.0022692594211548567,
0.004521552473306656,
-0.028283031657338142,
0.02779100462794304,
-0.06613513082265854,
0.02156432718038559,
0.05978968366980553,
-0.028876855969429016,
-0.024516485631465912,
-0.00396166043356061,
-0.003840774530544877,
0.03746186941862106,
-0.0356634259223938,
0.02543267235159874,
-0.0703088641166687,
-0.005815242417156696,
0.026230094954371452,
-0.03607062250375748,
0.05941642075777054,
-0.006807778496295214,
-0.08517145365476608,
0.004602143075317144,
-0.018764866515994072,
0.030522599816322327,
-0.020868703722953796,
0.040821220725774765,
-0.037326134741306305,
0.060536205768585205,
-0.020563308149576187,
0.012266725301742554,
-0.05184939503669739,
-0.08164244145154953,
0.00010252757783746347,
-0.03227014094591141,
0.06874796003103256,
0.01752631738781929,
-0.03939604014158249,
0.03118428960442543,
-0.018255874514579773,
-0.022599278017878532,
0.01150323636829853,
-0.01694945991039276,
-0.03583309054374695,
-0.012300658971071243,
-0.03841198608279228,
-0.03306756541132927,
0.0383441224694252,
-0.00009053178655449301,
-0.03932817280292511,
0.015549728646874428,
-0.01002715714275837,
-0.01694945991039276,
0.03303363174200058,
-0.027332911267876625,
0.05812697485089302,
0.05018668621778488,
-0.010502217337489128,
-0.010315586812794209,
0.009475748986005783,
-0.00037697277730330825,
0.01389550231397152,
0.008271132595837116,
-0.03384801745414734,
0.02317613735795021,
0.09243308752775192,
0.005891591310501099,
-0.022785909473896027,
0.03837805613875389,
0.052629850804805756,
-0.013853086158633232,
0.002880050800740719,
0.0012852067593485117,
0.03529016673564911,
-0.010417385026812553,
0.07119112461805344,
0.0326264351606369,
0.04214460030198097,
0.007079240866005421,
0.04217853397130966,
-0.012673920020461082,
-0.05548021197319031,
0.025890765711665154,
0.009094004519283772,
-0.009781144559383392,
0.024448620155453682,
0.021275898441672325,
0.011647450737655163,
-0.03535803034901619,
-0.025975598022341728,
0.0067696040496230125,
0.013123529963195324,
-0.016839178279042244,
0.0397014357149601,
0.020071281120181084,
0.0035587078891694546,
0.048659708350896835,
0.08795394748449326,
0.02950461395084858,
0.02200545370578766,
-0.052392322570085526,
-0.03400071710348129,
-0.07261630147695541,
-0.02879202365875244,
-0.0319477804005146,
-0.056192800402641296,
0.024397719651460648,
-0.030319003388285637,
0.0054674306884408,
0.08259256184101105,
0.06284364312887192
] |
10,088 | sentence_transformers.SentenceTransformer | smart_batching_collate |
Transforms a batch from a SmartBatchingDataset to a batch of tensors for the model
Here, batch is a list of InputExample instances: [InputExample(...), ...]
:param batch:
a batch from a SmartBatchingDataset
:return:
a batch of tensors for the model
| def smart_batching_collate(self, batch: List["InputExample"]) -> Tuple[List[Dict[str, Tensor]], Tensor]:
"""
Transforms a batch from a SmartBatchingDataset to a batch of tensors for the model
Here, batch is a list of InputExample instances: [InputExample(...), ...]
:param batch:
a batch from a SmartBatchingDataset
:return:
a batch of tensors for the model
"""
texts = [example.texts for example in batch]
sentence_features = [self.tokenize(sentence) for sentence in zip(*texts)]
labels = torch.tensor([example.label for example in batch])
return sentence_features, labels
| (self, batch: List[ForwardRef('InputExample')]) -> Tuple[List[Dict[str, torch.Tensor]], torch.Tensor] | [
-0.004233348183333874,
-0.037971850484609604,
-0.06482270359992981,
-0.031851571053266525,
-0.029668424278497696,
0.008275437168776989,
-0.008718597702682018,
0.025675315409898758,
0.10844834893941879,
-0.007617694325745106,
-0.035564787685871124,
-0.039259348064661026,
-0.07616761326789856,
-0.04108796641230583,
0.02974306046962738,
-0.02826896868646145,
0.005271276459097862,
-0.009231731295585632,
-0.003412335179746151,
-0.01765177957713604,
0.03674032911658287,
0.01310821808874607,
-0.06575567275285721,
0.025320786982774734,
0.024798324331641197,
-0.0007026424864307046,
0.022689813748002052,
-0.03575138375163078,
-0.0025843249168246984,
0.011531500145792961,
0.027821144089102745,
-0.014834212139248848,
0.020376048982143402,
-0.021756844595074654,
-0.05321656912565231,
-0.044969119131565094,
-0.0034426567144691944,
0.02630973421037197,
-0.0018204563530161977,
-0.040789417922496796,
0.00046735929208807647,
-0.10635849833488464,
0.027858462184667587,
0.026477668434381485,
-0.005047363694757223,
0.018510110676288605,
-0.025078214704990387,
-0.014162473380565643,
-0.043849557638168335,
0.01195133663713932,
-0.015328685753047466,
-0.04873831570148468,
0.011344906874001026,
0.033941421657800674,
-0.04437201842665672,
-0.03024686500430107,
-0.004121392033994198,
0.04246876388788223,
-0.025134192779660225,
0.03552747145295143,
0.021346338093280792,
-0.02418256364762783,
0.00004355071359896101,
0.06639009714126587,
-0.034818414598703384,
-0.03371750935912132,
0.009721539914608002,
-0.03446388617157936,
-0.05045497789978981,
-0.007557051256299019,
-0.07594370096921921,
-0.01301492191851139,
0.010150705464184284,
0.03896079584956169,
-0.019984202459454536,
-0.00015291949966922402,
0.02449977397918701,
0.019722970202565193,
0.05220896005630493,
-0.014218452386558056,
-0.034351930022239685,
0.02798907831311226,
-0.010533222928643227,
0.004711494781076908,
0.041349198669195175,
-0.0708683505654335,
0.042506080120801926,
0.05071621015667915,
-0.05138794705271721,
0.01557125709950924,
-0.06374046206474304,
0.029910994693636894,
0.033568233251571655,
0.006316202227026224,
-0.011540830135345459,
0.03562076762318611,
-0.03325102478265762,
0.01352805458009243,
-0.05530641973018646,
-0.002943518105894327,
0.02783980406820774,
0.02612314000725746,
0.02808237634599209,
-0.016364281997084618,
0.004667178727686405,
-0.040976010262966156,
-0.02093583159148693,
-0.03780391439795494,
-0.007179198786616325,
-0.007953562773764133,
-0.0454169437289238,
-0.048626359552145004,
0.033754829317331314,
0.05243287235498428,
0.030545415356755257,
-0.062061116099357605,
0.02283908799290657,
0.024593070149421692,
-0.08180274814367294,
-0.035564787685871124,
0.019032573327422142,
0.011475522071123123,
-0.04112528637051582,
-0.03446388617157936,
-0.05370171368122101,
0.0333443209528923,
0.11792732030153275,
-0.0034053379204124212,
0.03618054836988449,
-0.01695205271244049,
-0.04358832538127899,
-0.00996411219239235,
-0.022596515715122223,
0.018416814506053925,
0.05683648958802223,
-0.09299837797880173,
0.03933398425579071,
-0.009427654556930065,
0.015627235174179077,
0.008942510932683945,
0.00709989620372653,
0.03896079584956169,
0.031347766518592834,
0.014675606973469257,
-0.012287206016480923,
-0.04739483818411827,
0.002173818415030837,
-0.020506665110588074,
0.019704312086105347,
-0.03715083748102188,
-0.021066445857286453,
0.003664236981421709,
0.015020805411040783,
-0.022783109918236732,
-0.019060563296079636,
0.04896222800016403,
-0.046723101288080215,
-0.03718815743923187,
0.07217450439929962,
-0.00004034363155369647,
-0.004515571519732475,
0.010318640619516373,
-0.0736672580242157,
0.0759810209274292,
-0.00903114303946495,
0.021644888445734978,
-0.008797900751233101,
-0.022111373022198677,
-0.041759707033634186,
-0.01435839757323265,
0.04202093556523323,
0.015645895153284073,
0.05504518747329712,
0.017670437693595886,
-0.020674599334597588,
0.04914882406592369,
0.005700442474335432,
0.008891196921467781,
0.018267538398504257,
0.05026838555932045,
-0.013257493264973164,
0.02283908799290657,
0.017595801502466202,
-0.004277664236724377,
-0.035564787685871124,
0.0054578701965510845,
0.013612021692097187,
0.017940999940037727,
0.008844548836350441,
0.0017808051779866219,
0.00729581993073225,
0.00859264750033617,
-0.016690820455551147,
0.051873091608285904,
-0.03177693486213684,
0.026291074231266975,
-0.04015499725937843,
0.0178383719176054,
0.008634630590677261,
-0.03034016117453575,
-0.03478109464049339,
-0.0013749634381383657,
0.038065146654844284,
0.00299483141861856,
-0.02093583159148693,
0.0208425335586071,
-0.03209414333105087,
0.047879982739686966,
-0.13449685275554657,
-0.05299265682697296,
0.00663807662203908,
-0.01667216047644615,
-0.0015498952707275748,
0.07004733383655548,
0.05071621015667915,
-0.06937559694051743,
-0.019163189455866814,
0.025955205783247948,
-0.01848212257027626,
-0.05377634987235069,
0.06217307224869728,
-0.08426578342914581,
-0.005863712169229984,
-0.01718529500067234,
0.010150705464184284,
-0.0047184922732412815,
0.03627384454011917,
0.0001086763440980576,
-0.005984997842460871,
-0.009357682429254055,
0.006773357279598713,
-0.054224174469709396,
-0.0005513265496119857,
0.03836369886994362,
0.057060401886701584,
0.0050706882029771805,
-0.001987224677577615,
-0.02621643617749214,
0.04481984302401543,
-0.0036245856899768114,
0.01329481229186058,
-0.03855029121041298,
0.0013213177444413304,
-0.0477307103574276,
0.006600757595151663,
0.05676185339689255,
0.021924778819084167,
-0.0333443209528923,
-0.00552317826077342,
-0.011009037494659424,
-0.06631545722484589,
0.0704205185174942,
0.07038320600986481,
-0.018323516473174095,
-0.011009037494659424,
-0.0713161751627922,
0.016466908156871796,
-0.02830628864467144,
0.03377348929643631,
-0.030974579975008965,
-0.035378195345401764,
0.03330700471997261,
-0.0031744278967380524,
0.06374046206474304,
-0.027037449181079865,
0.016047071665525436,
-0.0036805637646466494,
0.05549301207065582,
0.015860477462410927,
0.00476047582924366,
0.0797128975391388,
0.08225057274103165,
-0.038848839700222015,
-0.03493037074804306,
0.02446245402097702,
0.0012373505160212517,
0.026514986529946327,
0.0005912692868150771,
-0.001692173071205616,
0.00366656924597919,
0.02645900845527649,
-0.05474663898348808,
-0.019349783658981323,
-0.05616475269198418,
0.01974163018167019,
-0.04455861449241638,
-0.04646186903119087,
-0.029015345498919487,
-0.0287167951464653,
-0.04802925884723663,
0.005425216630101204,
-0.003113785060122609,
0.05258214846253395,
-0.017362559214234352,
-0.058254603296518326,
-0.025096874684095383,
-0.0208425335586071,
-0.0027289350982755423,
0.0261791180819273,
-0.053440481424331665,
-0.025656655430793762,
-0.0044222744181752205,
0.05041766166687012,
0.016420260071754456,
-0.031758274883031845,
-0.016438918188214302,
0.005803069099783897,
0.0025003578048199415,
-0.023790717124938965,
-0.04605136439204216,
0.02908998169004917,
-0.004503909032791853,
0.027280021458864212,
-0.01589779742062092,
-0.049783241003751755,
0.024854302406311035,
0.01788502186536789,
0.032728563994169235,
0.023063000291585922,
0.02714940719306469,
0.010458585806190968,
-0.013173526152968407,
0.04802925884723663,
0.07348065823316574,
0.012744360603392124,
-0.03993108496069908,
0.07344334572553635,
-0.04302854463458061,
-0.0008968167239800096,
0.033195048570632935,
0.025190170854330063,
-0.04470788687467575,
0.00861597154289484,
0.03086262382566929,
-0.022577857598662376,
0.0333443209528923,
0.0037505365908145905,
0.00015219060878735036,
0.03293381631374359,
-0.0653078481554985,
0.014442364685237408,
-0.015160750597715378,
-0.02321227639913559,
0.0504922978579998,
0.035098303109407425,
0.026514986529946327,
-0.007347133010625839,
0.006330196745693684,
0.030732007697224617,
0.08963968604803085,
0.010327969677746296,
-0.03177693486213684,
0.012781679630279541,
0.053253885358572006,
0.06235966831445694,
-0.00924106128513813,
-0.043662961572408676,
-0.015879137441515923,
0.009045137092471123,
-0.010495904833078384,
0.027018791064620018,
-0.019349783658981323,
0.04467057064175606,
0.04272999241948128,
0.04004304111003876,
0.00663807662203908,
-0.0199282243847847,
-0.008452701382339,
-0.0222419872879982,
0.043849557638168335,
0.010962389409542084,
0.06135205924510956,
0.049820560961961746,
0.06743501871824265,
0.0032770545221865177,
-0.021253040060400963,
-0.07355529814958572,
0.012063292786478996,
-0.027112087234854698,
0.054970551282167435,
-0.035471491515636444,
0.0044106123968958855,
0.06556908041238785,
0.03515428304672241,
0.033101748675107956,
0.001238516764715314,
-0.027951760217547417,
-0.029313895851373672,
-0.03403472155332565,
-0.01996554248034954,
0.022316625341773033,
-0.016233665868639946,
-0.02539542317390442,
-0.042916588485240936,
-0.03306443244218826,
-0.03715083748102188,
-0.024798324331641197,
0.0017213283572345972,
0.04049086570739746,
-0.04564085602760315,
-0.030153566971421242,
-0.03929666802287102,
-0.011820720508694649,
0.046126000583171844,
-0.06956218928098679,
0.05526909977197647,
-0.011708764359354973,
-0.0006956452270969748,
-0.04530498757958412,
0.027447955682873726,
-0.0057704150676727295,
0.032728563994169235,
0.05851583555340767,
-0.00889586191624403,
-0.003916138783097267,
0.04411078989505768,
-0.032877836376428604,
0.07739913463592529,
-0.027858462184667587,
0.041535791009664536,
0.03418399393558502,
0.05538105592131615,
0.022503219544887543,
-0.02265249378979206,
-0.0403042733669281,
0.010309310629963875,
-0.0333443209528923,
-0.011148982681334019,
-0.007585040293633938,
-0.07769767940044403,
-0.050380341708660126,
-0.07836942374706268,
-0.023939991369843483,
-0.048439767211675644,
-0.01964833401143551,
0.0025610006414353848,
-0.010906411334872246,
0.017502503469586372,
0.010533222928643227,
0.0015615574084222317,
-0.003015823196619749,
0.0014426037669181824,
0.06351654976606369,
0.03228073567152023,
0.010122716426849365,
-0.02030141092836857,
-0.0944911316037178,
0.03108653612434864,
-0.018734022974967957,
-0.008513344451785088,
0.04314050078392029,
-0.014703596010804176,
0.07112957537174225,
0.024667708203196526,
0.08135492354631424,
-0.012763019651174545,
0.020506665110588074,
-0.018939277157187462,
-0.010878422297537327,
0.03761732205748558,
0.015440641902387142,
0.010393277741968632,
0.03349359706044197,
0.038923479616642,
0.0043779583647847176,
-0.05526909977197647,
-0.024014629423618317,
-0.0019440747564658523,
-0.0024747010320425034,
0.010869092307984829,
0.0035732723772525787,
-0.03715083748102188,
0.0379905104637146,
0.012846986763179302,
-0.009562935680150986,
-0.008984494023025036,
0.05982198938727379,
0.008788570761680603,
0.0007271329523064196,
-0.0050940122455358505,
0.01810893416404724,
-0.0666886419057846,
-0.013807945884764194,
-0.011848709546029568,
-0.05261946842074394,
0.039259348064661026,
0.022223329171538353,
-0.028138354420661926,
0.024313179776072502,
0.03190755099058151,
-0.05090280622243881,
0.06568104028701782,
0.0449318028986454,
-0.042095575481653214,
0.00199188943952322,
-0.02558201737701893,
-0.0014869198203086853,
0.05067889019846916,
0.010990378446877003,
0.012921624816954136,
0.025078214704990387,
-0.026440350338816643,
0.006358185783028603,
-0.056500621140003204,
0.03312040865421295,
0.026701580733060837,
0.008844548836350441,
-0.011102334596216679,
-0.039595216512680054,
-0.04567817598581314,
-0.08978896588087082,
-0.04944737255573273,
-0.01531002577394247,
-0.000059804788179462776,
-0.006847994402050972,
-0.024070607498288155,
0.02181282266974449,
0.02358546294271946,
0.009087121114134789,
0.02427586168050766,
0.010617190971970558,
0.059000976383686066,
-0.028231650590896606,
-0.026645602658391,
-0.017530493438243866,
0.009581594727933407,
0.03043345734477043,
-0.019611014053225517,
0.01237117312848568,
-0.015384663827717304,
-0.029817698523402214,
-0.01368665974587202,
0.048626359552145004,
-0.0061902510933578014,
-0.01579516939818859,
-0.014162473380565643,
0.0017843038076534867,
-0.02496625855565071,
0.051873091608285904,
0.021010467782616615,
-0.014050517231225967,
-0.015907125547528267,
-0.024984918534755707,
-0.002255453262478113,
0.014078506268560886,
0.033008452504873276,
-0.03233671560883522,
0.058366559445858,
-0.054783955216407776,
0.06004590168595314,
-0.07486145943403244,
-0.021439634263515472,
-0.0504922978579998,
-0.0007393781561404467,
-0.032318055629730225,
0.000536165782250464,
-0.02793310023844242,
0.010897081345319748,
-0.0037272123154252768,
0.001647857017815113,
0.010486574843525887,
0.0050426991656422615,
0.02093583159148693,
0.0602324977517128,
0.06918900460004807,
0.016830766573548317,
-0.04392419382929802,
0.026384372264146805,
-0.05963539704680443,
-0.005625804886221886,
0.022596515715122223,
-0.03739340975880623,
-0.024313179776072502,
0.015561928041279316,
0.021700866520404816,
0.011176971718668938,
-0.006059635430574417,
-0.022988364100456238,
-0.0025306791067123413,
-0.0009353017085231841,
-0.008779240772128105,
0.06642741709947586,
0.03530355915427208,
-0.008765246719121933,
0.0866541862487793,
0.0233988706022501,
-0.009436984546482563,
0.044595930725336075,
0.007715655956417322,
-0.009063797071576118,
-0.004128389060497284,
0.09389402717351913,
-0.0021679874043911695,
0.03539685532450676,
0.038158442825078964,
-0.05590352043509483,
-0.02627241611480713,
-0.012660393491387367,
-0.06109083071351051,
-0.014684936963021755,
-0.01741853728890419,
0.03405337780714035,
0.0075057377107441425,
0.08769911527633667,
0.04183434322476387,
-0.1177034080028534,
-0.03399740159511566,
-0.012016644701361656,
0.020879853516817093,
-0.003638580208644271,
-0.0063628507778048515,
0.0026659597642719746,
0.005336584523320198,
-0.014069177210330963,
-0.0064141638576984406,
-0.03687094524502754,
-0.008102837949991226,
-0.03362421318888664,
0.044222746044397354,
-0.04336441308259964,
0.0592995285987854,
-0.01699870079755783,
-0.002962177386507392,
-0.013360120356082916,
0.0023312570992857218,
0.016140367835760117,
-0.03024686500430107,
-0.021738184615969658,
0.03855029121041298,
-0.010990378446877003,
0.012287206016480923,
0.0057470910251140594,
0.06825603544712067,
0.005971003323793411,
0.030787985771894455,
0.02464904822409153,
0.012930954806506634,
0.0008612473029643297,
-0.004543560557067394,
-0.07680203020572662,
-0.031235812231898308,
0.018827321007847786,
0.049186140298843384,
0.02112242393195629,
-0.00042333482997491956,
-0.05493323132395744,
-0.002735932357609272,
-0.03970717266201973,
0.06418828666210175,
0.05567960813641548,
-0.00838272925466299,
0.07814551144838333,
0.012408491224050522,
0.012585755437612534,
0.005910360254347324,
0.047096289694309235,
-0.020693259313702583,
-0.002093349816277623,
-0.013257493264973164,
-0.019312463700771332,
-0.008485355414450169,
0.0032933815382421017,
0.0016187017317861319,
0.023361550644040108,
-0.02024543285369873,
0.00774830998852849,
-0.03896079584956169,
0.014936838299036026,
0.007081236690282822,
-0.018407484516501427,
-0.053403161466121674,
0.03399740159511566,
-0.016373610123991966,
-0.025358105078339577,
0.043476369231939316,
-0.009786847978830338,
0.033661533147096634,
-0.006269553676247597,
0.013397439382970333,
-0.0015918788267299533,
0.020357389003038406,
-0.023548144847154617,
0.03330700471997261,
-0.0022601180244237185,
-0.07889188081026077,
-0.036535076797008514,
-0.027877122163772583,
0.012539107352495193,
-0.0020956823136657476,
-0.04008036106824875,
0.028940707445144653,
0.02343618869781494,
0.043849557638168335,
-0.03511696308851242,
-0.05470931902527809,
0.03170229494571686,
0.016980040818452835,
-0.04776802659034729,
-0.03315772861242294,
0.024537092074751854,
-0.025955205783247948,
-0.03933398425579071,
-0.09434185177087784,
-0.02380937710404396,
0.025768611580133438,
-0.007613029330968857,
-0.02692549303174019,
-0.01489951927214861,
-0.04101333022117615,
0.06642741709947586,
0.09687953442335129,
0.017717087641358376,
0.02455575205385685,
0.0054065571166574955,
0.024313179776072502,
-0.020655939355492592,
-0.0005067189340479672,
0.02052532508969307,
0.00433130981400609,
0.016140367835760117,
0.007543056737631559,
0.02149561233818531,
0.05411221832036972,
0.016597524285316467,
-0.040378909558057785,
0.024313179776072502,
0.04321513697504997,
0.014862201176583767,
-0.040192317217588425,
-0.02543274313211441,
0.015440641902387142,
0.03233671560883522,
-0.061501335352659225,
0.014927508309483528,
0.007571045774966478,
0.0010985713452100754,
0.03674032911658287,
-0.028045056387782097,
-0.005224627908319235,
-0.0019848921801894903,
-0.015515279024839401,
-0.05067889019846916,
0.00038484984543174505,
0.06694987416267395,
-0.05758286640048027,
-0.0238653551787138,
0.06239698454737663,
-0.04377491772174835,
-0.017623789608478546,
-0.023324232548475266,
0.037094857543706894,
0.04549158364534378,
-0.018845979124307632,
-0.047469478100538254,
0.11068747937679291,
-0.008438707329332829,
0.05392562597990036,
-0.06545712798833847,
-0.08643027395009995,
-0.03515428304672241,
0.011858039535582066,
-0.003015823196619749,
0.024201223626732826,
-0.022820428013801575,
-0.004809456877410412,
-0.028940707445144653,
0.040416229516267776,
0.05482127517461777
] |
10,089 | sentence_transformers.SentenceTransformer | start_multi_process_pool |
Starts multi process to process the encoding with several, independent processes.
This method is recommended if you want to encode on multiple GPUs or CPUs. It is advised
to start only one process per GPU. This method works together with encode_multi_process
and stop_multi_process_pool.
:param target_devices: PyTorch target devices, e.g. ["cuda:0", "cuda:1", ...], ["npu:0", "npu:1", ...] or
["cpu", "cpu", "cpu", "cpu"]. If target_devices is None and CUDA/NPU is available, then all available
CUDA/NPU devices will be used. If target_devices is None and CUDA/NPU is not available, then 4 CPU
devices will be used.
:return: Returns a dict with the target processes, an input queue and and output queue.
| def start_multi_process_pool(self, target_devices: List[str] = None):
"""
Starts multi process to process the encoding with several, independent processes.
This method is recommended if you want to encode on multiple GPUs or CPUs. It is advised
to start only one process per GPU. This method works together with encode_multi_process
and stop_multi_process_pool.
:param target_devices: PyTorch target devices, e.g. ["cuda:0", "cuda:1", ...], ["npu:0", "npu:1", ...] or
["cpu", "cpu", "cpu", "cpu"]. If target_devices is None and CUDA/NPU is available, then all available
CUDA/NPU devices will be used. If target_devices is None and CUDA/NPU is not available, then 4 CPU
devices will be used.
:return: Returns a dict with the target processes, an input queue and and output queue.
"""
if target_devices is None:
if torch.cuda.is_available():
target_devices = ["cuda:{}".format(i) for i in range(torch.cuda.device_count())]
elif is_torch_npu_available():
target_devices = ["npu:{}".format(i) for i in range(torch.npu.device_count())]
else:
logger.info("CUDA/NPU is not available. Starting 4 CPU workers")
target_devices = ["cpu"] * 4
logger.info("Start multi-process pool on devices: {}".format(", ".join(map(str, target_devices))))
self.to("cpu")
self.share_memory()
ctx = mp.get_context("spawn")
input_queue = ctx.Queue()
output_queue = ctx.Queue()
processes = []
for device_id in target_devices:
p = ctx.Process(
target=SentenceTransformer._encode_multi_process_worker,
args=(device_id, self, input_queue, output_queue),
daemon=True,
)
p.start()
processes.append(p)
return {"input": input_queue, "output": output_queue, "processes": processes}
| (self, target_devices: Optional[List[str]] = None) | [
0.03445743769407272,
-0.018531491979956627,
-0.04478522762656212,
0.04591807350516319,
-0.046673305332660675,
0.06634708493947983,
-0.056113697588443756,
-0.02839670330286026,
0.0026834318414330482,
-0.0538102425634861,
0.021675143390893936,
-0.04474746435880661,
-0.01185713429003954,
0.06566737592220306,
0.03502386063337326,
-0.00434494111686945,
0.038969945162534714,
-0.05075155571103096,
0.03863009065389633,
-0.006679078098386526,
-0.015076308511197567,
0.06030523404479027,
0.05218649283051491,
-0.009912412613630295,
-0.040216077119112015,
0.004066449590027332,
-0.007363507058471441,
-0.025847796350717545,
-0.02020244114100933,
0.00116706860717386,
0.01527455635368824,
0.03100225143134594,
0.05460323393344879,
0.010459955781698227,
0.041122354567050934,
0.029114173725247383,
-0.0010313630336895585,
0.08677609264850616,
-0.07072743028402328,
-0.015963705256581306,
-0.028302298858761787,
-0.12061046808958054,
0.015010225586593151,
0.0017063510604202747,
-0.013584726490080357,
0.05082707852125168,
0.0012567524099722505,
0.038932181894779205,
-0.005343262571841478,
-0.003842240199446678,
0.01020506490021944,
-0.05849267914891243,
0.008949493058025837,
0.018691979348659515,
-0.0708029493689537,
0.059210147708654404,
0.007726962212473154,
-0.005659515969455242,
-0.039007704704999924,
-0.0022999157663434744,
0.01630355976521969,
-0.022996798157691956,
0.07238893955945969,
0.01204594224691391,
-0.006726280320435762,
-0.012196987867355347,
-0.024979280307888985,
0.026980644091963768,
-0.006225939374417067,
0.03117217868566513,
0.04312371835112572,
-0.08035662770271301,
-0.012829494662582874,
0.036534324288368225,
0.001792494673281908,
0.06370377540588379,
0.00571143813431263,
0.041575491428375244,
-0.011092462576925755,
-0.004481826908886433,
-0.0033112179953604937,
0.0376671701669693,
-0.03474064916372299,
-0.026754075661301613,
0.043652378022670746,
0.008727643638849258,
0.024696068838238716,
0.04780615121126175,
-0.04867466911673546,
-0.07427701354026794,
-0.03577909246087074,
0.06517647951841354,
0.047957196831703186,
0.10376880317926407,
0.040216077119112015,
0.022014997899532318,
-0.016794459894299507,
0.03821471333503723,
-0.05150678753852844,
-0.036742012947797775,
-0.02624429389834404,
0.03772381320595741,
0.02127864584326744,
-0.03489169478416443,
-0.017077671363949776,
-0.060040902346372604,
-0.04376566410064697,
0.03536371514201164,
0.014566526748239994,
-0.009761366993188858,
-0.07922378182411194,
0.0034032617695629597,
-0.001866837847046554,
-0.021259766072034836,
-0.0014349397970363498,
-0.039762936532497406,
-0.047201968729496,
0.04686211422085762,
-0.004831121303141117,
0.026603028178215027,
-0.029170814901590347,
0.04353909566998482,
0.005027009639889002,
-0.06532752513885498,
-0.04078250005841255,
0.04032935947179794,
0.04006502777338028,
-0.002463942626491189,
0.0024946238845586777,
-0.033758845180273056,
-0.04048040509223938,
0.017445847392082214,
0.01999475248157978,
0.06672470271587372,
0.031436510384082794,
-0.02735826000571251,
-0.07831750065088272,
-0.021297527477145195,
0.03568468615412712,
0.026772955432534218,
0.015331198461353779,
-0.023147843778133392,
0.01287669688463211,
0.018890226259827614,
0.018427647650241852,
0.007500392384827137,
0.02856663055717945,
-0.05245082452893257,
-0.007302144076675177,
-0.024828234687447548,
0.014302195981144905,
0.00840667076408863,
0.048901237547397614,
-0.018201079219579697,
-0.036855295300483704,
0.04459641873836517,
0.04059369117021561,
0.019484972581267357,
0.02048565447330475,
0.000567013630643487,
-0.03949860483407974,
-0.007873288355767727,
-0.03058687411248684,
0.02596108242869377,
-0.03817695006728172,
-0.0008744164370000362,
0.04093354567885399,
0.007075574714690447,
-0.0020532854832708836,
0.04444537311792374,
0.012744531035423279,
-0.0041844542138278484,
0.04002726823091507,
0.015803217887878418,
-0.03953636810183525,
0.019390568137168884,
0.014151149429380894,
-0.030605755746364594,
-0.02847222611308098,
0.044558655470609665,
-0.016973827034235,
0.027226094156503677,
-0.03468400612473488,
0.008246183395385742,
0.00021181882766541094,
0.007132217288017273,
0.04939213767647743,
0.021882832050323486,
0.053583674132823944,
-0.009818009100854397,
0.017483608797192574,
0.005121413618326187,
0.004890123847872019,
0.0010803350014612079,
0.02176954783499241,
0.02860439196228981,
0.012791733257472515,
-0.04010279104113579,
-0.03779933601617813,
0.0034504637587815523,
-0.01378297433257103,
-0.012140345759689808,
0.04788167402148247,
0.005650075618177652,
-0.014736454002559185,
-0.04338804632425308,
-0.052224256098270416,
0.07861959934234619,
-0.002702312543988228,
-0.0065233116038143635,
0.017578013241291046,
-0.0654030442237854,
0.014141709543764591,
0.12944667041301727,
0.06627155840396881,
-0.041122354567050934,
-0.0035920697264373302,
0.038063667714595795,
-0.013613047078251839,
-0.03224838525056839,
0.004998688120394945,
0.00447946647182107,
0.00933182891458273,
-0.004175013862550259,
-0.05279067903757095,
0.015793778002262115,
0.014793096110224724,
-0.010497717186808586,
0.01961713656783104,
0.025149207562208176,
0.04248176887631416,
-0.029359623789787292,
-0.025810034945607185,
0.045464932918548584,
0.022071639075875282,
0.01593538373708725,
-0.0006974090356379747,
-0.006457229144871235,
-0.007122776936739683,
-0.012083703652024269,
0.028585510328412056,
-0.008076256141066551,
0.04202863201498985,
-0.09833113849163055,
0.029699478298425674,
0.01289557758718729,
0.038969945162534714,
-0.005385744385421276,
0.039385322481393814,
0.0434635728597641,
-0.023563221096992493,
-0.04123563691973686,
-0.007670319639146328,
-0.04100906848907471,
-0.017644096165895462,
-0.10520374029874802,
-0.011281270533800125,
-0.0279435645788908,
0.018040591850876808,
-0.03100225143134594,
-0.03428750857710838,
-0.0025607068091630936,
-0.03328682854771614,
0.05373471975326538,
0.005635914858430624,
0.005017569288611412,
-0.02881208062171936,
0.0030988091602921486,
-0.054036810994148254,
0.03124770149588585,
0.09017463773488998,
0.032059576362371445,
-0.03362668305635452,
0.011016938835382462,
-0.02429957315325737,
-0.010072899982333183,
-0.043274763971567154,
0.025923321023583412,
-0.03606230393052101,
0.006811243947595358,
0.036572083830833435,
-0.0075051127932965755,
-0.0691414400935173,
-0.09070330113172531,
0.07091623544692993,
-0.00788272824138403,
-0.026112128049135208,
-0.015368960797786713,
0.03557140380144119,
-0.01928672380745411,
-0.04976975545287132,
0.035873495042324066,
-0.038101427257061005,
-0.02673519402742386,
-0.045767027884721756,
-0.0418020635843277,
-0.017559131607413292,
0.006079613231122494,
-0.01813499629497528,
-0.0629107803106308,
-0.009227984584867954,
0.020580057054758072,
-0.007099175825715065,
0.04161325469613075,
-0.014689251780509949,
0.03149315342307091,
0.034136462956666946,
-0.021788427606225014,
-0.03689305856823921,
-0.01879582367837429,
0.01334871631115675,
0.015671053901314735,
0.050940364599227905,
0.025281373411417007,
-0.0012909737415611744,
0.04689987376332283,
0.044936273247003555,
0.049241092056035995,
-0.0030445267912000418,
0.04399223253130913,
-0.05626474320888519,
0.051015887409448624,
0.027377141639590263,
0.048334814608097076,
0.009827449917793274,
0.030530232936143875,
0.0712183266878128,
0.014056745916604996,
0.020542295649647713,
0.00012117630103603005,
-0.030907848849892616,
0.008057375438511372,
0.000408592022722587,
-0.007896889001131058,
-0.012130905874073505,
0.0064289080910384655,
0.011847693473100662,
-0.03266376256942749,
0.04739077389240265,
-0.050940364599227905,
0.04674882814288139,
-0.03474064916372299,
-0.08058319985866547,
-0.019466090947389603,
-0.03283368796110153,
-0.039800699800252914,
0.03923427313566208,
0.010563800111413002,
-0.020126918330788612,
-0.001846776925958693,
0.044143278151750565,
0.05973881110548973,
0.02048565447330475,
0.04301043227314949,
0.04780615121126175,
-0.030077094212174416,
-0.0476173460483551,
-0.0008425551350228488,
-0.009836889803409576,
-0.013773533515632153,
-0.055736083537340164,
-0.04474746435880661,
0.019012952223420143,
-0.013830176554620266,
-0.03137986734509468,
-0.0258666779845953,
0.029170814901590347,
-0.02082550711929798,
0.038309115916490555,
0.0013169348239898682,
0.005300780758261681,
0.013886818662285805,
-0.032965853810310364,
0.059134624898433685,
-0.04697539657354355,
0.006348664406687021,
-0.11373785883188248,
0.0020981275010854006,
-0.05207321047782898,
0.03190853074193001,
-0.02454502321779728,
-0.028906485065817833,
0.015633290633559227,
0.00452430872246623,
-0.024771591648459435,
-0.047541819512844086,
0.05543398857116699,
-0.01978706382215023,
-0.009761366993188858,
0.013395918533205986,
0.003025646088644862,
0.02951066941022873,
-0.005683116614818573,
0.0360056608915329,
-0.01183825358748436,
0.00004797637302544899,
0.025319134816527367,
0.030567994341254234,
-0.02818901464343071,
-0.0687260627746582,
0.006745161022990942,
-0.05022289231419563,
0.010044578462839127,
0.027868041768670082,
-0.0028793199453502893,
0.00654219277203083,
0.06948129832744598,
-0.003655792446807027,
0.03457072004675865,
0.03523154929280281,
-0.033721085637807846,
-0.020315727218985558,
-0.029605073854327202,
-0.03753500431776047,
-0.12151674181222916,
-0.03647768124938011,
-0.043652378022670746,
-0.009397911839187145,
0.05773744732141495,
0.026980644091963768,
0.052299778908491135,
0.03857344761490822,
0.009388471022248268,
-0.009284626692533493,
-0.007056694012135267,
-0.02631981670856476,
0.04875019192695618,
-0.02210940048098564,
0.006933968979865313,
0.008741804398596287,
-0.0542256198823452,
0.0036746731493622065,
0.017644096165895462,
0.0010313630336895585,
0.042368486523628235,
-0.012187547981739044,
0.039309799671173096,
0.006372265517711639,
-0.005489588715136051,
0.012281951494514942,
-0.02197723649442196,
-0.012820053845643997,
0.0016933705192059278,
-0.008675721473991871,
0.06781978905200958,
-0.011526720598340034,
-0.03721402958035469,
-0.003913043066859245,
-0.04078250005841255,
0.04557821899652481,
0.01887134648859501,
-0.0010018617613241076,
0.02641422115266323,
-0.032720401883125305,
0.08005453646183014,
0.009388471022248268,
0.02218492515385151,
0.0009463994647376239,
0.014868619851768017,
0.02558346651494503,
0.04961870610713959,
-0.015142391435801983,
-0.005621754098683596,
0.04312371835112572,
-0.047126442193984985,
0.031191060319542885,
0.011904336512088776,
0.013452560640871525,
0.0135564049705863,
0.010214505717158318,
0.03290921077132225,
0.05207321047782898,
0.031096655875444412,
-0.0451250821352005,
-0.04376566410064697,
-0.019154557958245277,
-0.05282844230532646,
-0.00742014916613698,
0.03844128176569939,
-0.06967010349035263,
-0.005206376779824495,
-0.03863009065389633,
0.10701630264520645,
0.042406246066093445,
-0.06793306767940521,
-0.0426328182220459,
0.09387527406215668,
-0.02839670330286026,
-0.009218543767929077,
0.022335970774292946,
-0.004783919546753168,
-0.03579797223210335,
0.03593013808131218,
-0.020429011434316635,
-0.021467454731464386,
-0.00024751530145294964,
-0.0007806025096215308,
-0.002813237253576517,
0.00700477184727788,
-0.03543923795223236,
0.032229501754045486,
0.01834268495440483,
0.011791051365435123,
-0.06117374822497368,
0.0434635728597641,
0.03445743769407272,
-0.011885454878211021,
-0.007476791739463806,
-0.08481249213218689,
0.058303870260715485,
-0.041915345937013626,
-0.053621433675289154,
-0.04852362349629402,
-0.0732574537396431,
-0.013546964153647423,
0.016832221299409866,
0.01788010448217392,
0.017323121428489685,
0.01419835165143013,
-0.030813444405794144,
0.03315466269850731,
0.09410183876752853,
-0.004448785446584225,
0.03572244942188263,
-0.02173178642988205,
0.016549009829759598,
-0.026187650859355927,
0.001000681659206748,
-0.010242827236652374,
0.026716312393546104,
-0.014254993759095669,
0.005163894966244698,
-0.024696068838238716,
0.016482926905155182,
0.03647768124938011,
-0.05856820195913315,
0.001459720777347684,
0.03647768124938011,
0.03347563371062279,
-0.031851887702941895,
-0.041537731885910034,
0.02922745794057846,
-0.012423558160662651,
-0.05116693302989006,
0.04463417828083038,
-0.018276602029800415,
0.009874651208519936,
0.056529074907302856,
0.018153876066207886,
-0.008944773115217686,
-0.061287034302949905,
-0.00008665986388223246,
0.001121636712923646,
0.02380867302417755,
0.03387213125824928,
-0.053394865244627,
0.06774426251649857,
0.009053337387740612,
-0.02392195723950863,
0.05626474320888519,
0.04225520044565201,
0.010686525143682957,
-0.05263963341712952,
-0.04085802286863327,
0.005003408528864384,
-0.01289557758718729,
-0.06306182593107224,
0.04648449644446373,
0.011951537802815437,
-0.02703728713095188,
0.0025300253182649612,
0.005522630177438259,
-0.009525356814265251,
0.017983948811888695,
-0.020787745714187622,
-0.015671053901314735,
0.003931923769414425,
0.007958251982927322,
0.012130905874073505,
-0.02197723649442196,
-0.021127600222826004,
0.02888760343194008,
-0.011536160483956337,
0.004503067582845688,
0.02732049860060215,
0.05279067903757095,
-0.04935437813401222,
-0.03572244942188263,
0.03221062198281288,
-0.019730422645807266,
-0.02662190981209278,
-0.004857082385569811,
0.012319713830947876,
0.03298473358154297,
0.028132371604442596,
0.01084701158106327,
-0.06294853985309601,
-0.002172470558434725,
0.03859232738614082,
-0.005456547252833843,
-0.04780615121126175,
0.012489640153944492,
0.013896259479224682,
-0.0351749062538147,
0.033758845180273056,
-0.08496353775262833,
-0.03689305856823921,
-0.0024403417482972145,
-0.0131410276517272,
0.002171290572732687,
-0.006032411474734545,
-0.022014997899532318,
0.004245816729962826,
0.004106570966541767,
-0.01525567565113306,
-0.039385322481393814,
-0.06121151149272919,
-0.027584830299019814,
0.07960139960050583,
-0.020731104537844658,
0.018720300868153572,
-0.018767502158880234,
-0.01668117567896843,
-0.05584936589002609,
0.03154979646205902,
-0.0023376774042844772,
-0.0258666779845953,
0.001851497101597488,
-0.017039909958839417,
-0.010148422792553902,
-0.0006891487282700837,
-0.011073581874370575,
0.0782419815659523,
0.026017723605036736,
-0.005777520593255758,
-0.029529551044106483,
0.004250537138432264,
0.013754652813076973,
0.012168667279183865,
-0.047994960099458694,
-0.008180100470781326,
0.02686735987663269,
-0.01621859520673752,
-0.08964597433805466,
-0.009714164771139622,
-0.034136462956666946,
-0.022619182243943214,
0.023733148351311684,
0.0318707674741745,
0.021297527477145195,
0.035911258310079575,
0.010393872857093811,
0.0006785282748751342,
-0.009270465932786465,
0.03662872686982155,
0.031115537509322166,
-0.07359730452299118,
-0.0042882985435426235,
0.007948811165988445,
-0.010790369473397732,
-0.0215240977704525,
0.033758845180273056,
0.010450515896081924,
-0.007188859395682812,
-0.00999737624078989,
-0.03132322430610657,
-0.005352702923119068,
-0.032305024564266205,
-0.02082550711929798,
0.01380185503512621,
-0.013584726490080357,
-0.0022975557949393988,
-0.023204486817121506,
-0.039007704704999924,
-0.01751193031668663,
0.05943671613931656,
0.010082339867949486,
-0.029321862384676933,
-0.03398541733622551,
0.0041844542138278484,
0.03368332237005234,
-0.003018565708771348,
-0.010752608068287373,
0.059247907251119614,
-0.023978598415851593,
-0.012782292440533638,
-0.01709655299782753,
-0.034419674426317215,
0.013008861802518368,
-0.03489169478416443,
0.011970418505370617,
0.018927989527583122,
0.03241831064224243,
-0.041953109204769135,
-0.053621433675289154,
-0.007523993495851755,
0.010648763738572598,
-0.050071846693754196,
-0.025243612006306648,
-0.002910001203417778,
-0.025035923346877098,
-0.002725913655012846,
-0.05845491588115692,
-0.05369695648550987,
0.014689251780509949,
0.03383437171578407,
-0.04735301434993744,
0.0438789501786232,
0.03991398215293884,
-0.0024899037089198828,
0.07654271274805069,
-0.022921275347471237,
0.035325951874256134,
0.018427647650241852,
-0.020108038559556007,
0.022959036752581596,
0.01701158843934536,
0.07352178543806076,
0.0447097048163414,
0.01627523824572563,
0.005281900055706501,
0.05819058418273926,
0.057888492941856384,
-0.022335970774292946,
-0.05520742014050484,
-0.015557768754661083,
0.0034245026763528585,
-0.020126918330788612,
0.07861959934234619,
0.012178107164800167,
-0.0038375200238078833,
0.0008478653035126626,
-0.06627155840396881,
-0.019843706861138344,
-0.056189220398664474,
-0.07631614059209824,
0.04773062840104103,
-0.07960139960050583,
-0.07457910478115082,
0.0026621909346431494,
-0.01982482522726059,
-0.01643572561442852,
0.043727900832891464,
0.02756594866514206,
0.02363874576985836,
-0.012640686705708504,
0.04127340018749237,
-0.00654219277203083,
0.018975190818309784,
-0.01416059024631977,
0.04686211422085762,
0.04999632388353348,
-0.02686735987663269,
0.008784285746514797,
0.04425656422972679,
-0.05898357927799225,
0.05301724746823311,
0.02492263913154602,
-0.06865054368972778,
-0.04871242865920067,
-0.04942990094423294,
-0.018984630703926086,
-0.034004297107458115,
-0.0016390882665291429,
-0.011536160483956337,
0.025715632364153862,
0.06155136600136757,
0.018106674775481224
] |
10,090 | torch.nn.modules.module | state_dict | Return a dictionary containing references to the whole state of the module.
Both parameters and persistent buffers (e.g. running averages) are
included. Keys are corresponding parameter and buffer names.
Parameters and buffers set to ``None`` are not included.
.. note::
The returned object is a shallow copy. It contains references
to the module's parameters and buffers.
.. warning::
Currently ``state_dict()`` also accepts positional arguments for
``destination``, ``prefix`` and ``keep_vars`` in order. However,
this is being deprecated and keyword arguments will be enforced in
future releases.
.. warning::
Please avoid the use of argument ``destination`` as it is not
designed for end-users.
Args:
destination (dict, optional): If provided, the state of module will
be updated into the dict and the same object is returned.
Otherwise, an ``OrderedDict`` will be created and returned.
Default: ``None``.
prefix (str, optional): a prefix added to parameter and buffer
names to compose the keys in state_dict. Default: ``''``.
keep_vars (bool, optional): by default the :class:`~torch.Tensor` s
returned in the state dict are detached from autograd. If it's
set to ``True``, detaching will not be performed.
Default: ``False``.
Returns:
dict:
a dictionary containing a whole state of the module
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> module.state_dict().keys()
['bias', 'weight']
| def state_dict(self, *args, destination=None, prefix='', keep_vars=False):
r"""Return a dictionary containing references to the whole state of the module.
Both parameters and persistent buffers (e.g. running averages) are
included. Keys are corresponding parameter and buffer names.
Parameters and buffers set to ``None`` are not included.
.. note::
The returned object is a shallow copy. It contains references
to the module's parameters and buffers.
.. warning::
Currently ``state_dict()`` also accepts positional arguments for
``destination``, ``prefix`` and ``keep_vars`` in order. However,
this is being deprecated and keyword arguments will be enforced in
future releases.
.. warning::
Please avoid the use of argument ``destination`` as it is not
designed for end-users.
Args:
destination (dict, optional): If provided, the state of module will
be updated into the dict and the same object is returned.
Otherwise, an ``OrderedDict`` will be created and returned.
Default: ``None``.
prefix (str, optional): a prefix added to parameter and buffer
names to compose the keys in state_dict. Default: ``''``.
keep_vars (bool, optional): by default the :class:`~torch.Tensor` s
returned in the state dict are detached from autograd. If it's
set to ``True``, detaching will not be performed.
Default: ``False``.
Returns:
dict:
a dictionary containing a whole state of the module
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> module.state_dict().keys()
['bias', 'weight']
"""
# TODO: Remove `args` and the parsing logic when BC allows.
if len(args) > 0:
if destination is None:
destination = args[0]
if len(args) > 1 and prefix == '':
prefix = args[1]
if len(args) > 2 and keep_vars is False:
keep_vars = args[2]
# DeprecationWarning is ignored by default
warnings.warn(
"Positional args are being deprecated, use kwargs instead. Refer to "
"https://pytorch.org/docs/master/generated/torch.nn.Module.html#torch.nn.Module.state_dict"
" for details.")
if destination is None:
destination = OrderedDict()
destination._metadata = OrderedDict()
local_metadata = dict(version=self._version)
if hasattr(destination, "_metadata"):
destination._metadata[prefix[:-1]] = local_metadata
for hook in self._state_dict_pre_hooks.values():
hook(self, prefix, keep_vars)
self._save_to_state_dict(destination, prefix, keep_vars)
for name, module in self._modules.items():
if module is not None:
module.state_dict(destination=destination, prefix=prefix + name + '.', keep_vars=keep_vars)
for hook in self._state_dict_hooks.values():
hook_result = hook(self, destination, prefix, local_metadata)
if hook_result is not None:
destination = hook_result
return destination
| (self, *args, destination=None, prefix='', keep_vars=False) | [
-0.020924707874655724,
0.0018115112325176597,
-0.045888502150774,
-0.0636155977845192,
0.00222289958037436,
0.006722459569573402,
-0.05377967655658722,
0.04274699091911316,
0.015632757917046547,
-0.08220287412405014,
-0.043906357139348984,
0.0001443365472368896,
-0.0047099292278289795,
0.03466881811618805,
-0.010079015046358109,
0.03167690336704254,
0.019316554069519043,
0.009513355791568756,
-0.10127633064985275,
-0.04499092698097229,
-0.0017717748414725065,
-0.02268245816230774,
0.052919503301382065,
0.06825307011604309,
-0.05598621442914009,
-0.07318972796201706,
0.015791703015565872,
-0.048693422228097916,
0.033154163509607315,
0.03646396845579147,
0.012537995353341103,
-0.04087704420089722,
0.04151282459497452,
0.024496307596564293,
-0.0013475306332111359,
-0.054565057158470154,
0.029975252225995064,
0.014968926087021828,
-0.0737881138920784,
-0.07980933785438538,
-0.004625781439244747,
-0.05609841272234917,
0.0053386990912258625,
0.009658277034759521,
0.06802867352962494,
0.04136322811245918,
0.009438557550311089,
-0.01551121100783348,
0.05284470319747925,
-0.025749171152710915,
0.03334115818142891,
-0.04342016950249672,
0.0067318095825612545,
0.010733496397733688,
0.022214971482753754,
-0.013379471376538277,
0.06499935686588287,
-0.024197114631533623,
-0.02395402267575264,
0.008573707193136215,
-0.009733074344694614,
-0.0184470284730196,
0.04955359920859337,
-0.038633108139038086,
-0.005184428300708532,
-0.02649714983999729,
-0.031863898038864136,
-0.023860525339841843,
-0.03494931012392044,
0.021897079423069954,
-0.009190790355205536,
-0.0484316311776638,
0.09798523038625717,
0.0017297010635957122,
-0.055537428706884384,
-0.001542706391774118,
-0.061970047652721405,
0.01654903218150139,
-0.02752562053501606,
-0.03102242201566696,
-0.022588960826396942,
-0.003249033121392131,
-0.04962839558720589,
0.0184002798050642,
-0.01457623764872551,
-0.025356482714414597,
-0.02036372385919094,
0.02012063004076481,
0.01439859252423048,
-0.0395306795835495,
-0.04110143706202507,
0.07031001150608063,
0.0323500856757164,
0.030835427343845367,
0.04155022278428078,
-0.018269382417201996,
-0.027132932096719742,
0.022532861679792404,
-0.0027862212155014277,
-0.025019891560077667,
-0.07001081854104996,
-0.04140063002705574,
-0.027450822293758392,
0.04959099739789963,
-0.011154234409332275,
-0.04704786837100983,
-0.00397597486153245,
-0.029919153079390526,
0.01942875050008297,
-0.07274094223976135,
-0.012996132485568523,
0.0027862212155014277,
-0.009658277034759521,
-0.02359873242676258,
0.025711772963404655,
-0.01536161545664072,
0.009658277034759521,
-0.030648432672023773,
-0.05078776180744171,
-0.007517187390476465,
-0.002423918806016445,
0.020532019436359406,
-0.03719324618577957,
0.03040533885359764,
0.024047520011663437,
-0.013725411146879196,
0.012519295327365398,
0.011659120209515095,
0.029582561925053596,
-0.06241883337497711,
-0.01426769606769085,
-0.001478426856920123,
-0.044504739344120026,
0.03388344123959541,
0.029919153079390526,
0.0034220032393932343,
0.028741085901856422,
0.023710928857326508,
-0.00045463087735697627,
0.02139219455420971,
0.05505124107003212,
-0.026459751650691032,
0.0047262911684811115,
0.03500540927052498,
0.04394375532865524,
-0.03500540927052498,
0.05075036361813545,
0.003704832633957267,
-0.023037748411297798,
-0.008727977983653545,
0.05318129435181618,
-0.0012084533227607608,
0.019858837127685547,
0.03945588320493698,
-0.08399802446365356,
-0.030293142423033714,
-0.004221405368298292,
-0.015595358796417713,
-0.04794544354081154,
0.006460667122155428,
-0.0204011220484972,
-0.012771738693118095,
-0.019026711583137512,
-0.05153574049472809,
0.008727977983653545,
0.016633179038763046,
0.009807872585952282,
-0.05471464991569519,
-0.019540946930646896,
-0.07419949769973755,
-0.05602361634373665,
-0.050338976085186005,
0.008676554076373577,
0.04790804535150528,
-0.055200837552547455,
0.020457221195101738,
-0.018671421334147453,
-0.0361647754907608,
-0.045813702046871185,
0.00826049130409956,
0.08646634966135025,
-0.023430436849594116,
-0.08429721742868423,
0.004567345604300499,
-0.028703687712550163,
-0.03077932819724083,
-0.00824179220944643,
0.012023760005831718,
0.05819275230169296,
0.03882010281085968,
0.010079015046358109,
0.01215465646237135,
0.04147542640566826,
0.028217501938343048,
-0.04020386189222336,
0.02591746672987938,
-0.04884301871061325,
-0.036669664084911346,
0.02301904931664467,
0.04659908264875412,
0.010443654842674732,
-0.07049700617790222,
-0.011836765334010124,
0.01948484778404236,
-0.031527306884527206,
0.007166572380810976,
-0.011369278654456139,
0.008858874440193176,
0.04895521327853203,
0.0017729435348883271,
0.0012727327411994338,
-0.05830495059490204,
0.01882101781666279,
0.04035345837473869,
-0.000873031560331583,
-0.03373384475708008,
0.04263479262590408,
0.06604652851819992,
0.029021577909588814,
-0.03264927491545677,
0.06690670549869537,
0.04704786837100983,
-0.010798944160342216,
-0.02103690430521965,
-0.049665793776512146,
-0.03938108682632446,
-0.015445763245224953,
-0.016277888789772987,
-0.024402810260653496,
-0.006067978218197823,
0.06522375345230103,
-0.019952334463596344,
-0.03532329946756363,
-0.01196766085922718,
0.10598859935998917,
0.004368663765490055,
-0.005820210091769695,
-0.0342574305832386,
0.015389664098620415,
0.02528168447315693,
-0.00011438816727604717,
0.027768714353442192,
0.04454214125871658,
-0.047384459525346756,
-0.0032350083347409964,
-0.04723486304283142,
0.04057785123586655,
0.014912827871739864,
-0.02558087557554245,
0.010415605269372463,
-0.007227345369756222,
0.023561332374811172,
-0.04211120679974556,
0.029507765546441078,
-0.010929840616881847,
0.0035388749092817307,
0.04529011994600296,
0.04005426540970802,
-0.01946614868938923,
0.0030012649949640036,
0.02333693951368332,
-0.06675711274147034,
-0.055238235741853714,
-0.0492544062435627,
0.07973454147577286,
0.04753405600786209,
0.04285918548703194,
-0.01651163212954998,
-0.029021577909588814,
0.03844611346721649,
0.018026290461421013,
-0.002212381223216653,
-0.03719324618577957,
0.025393880903720856,
-0.012547344900667667,
-0.060698483139276505,
0.057781364768743515,
-0.00970502570271492,
0.007002952042967081,
0.02524428628385067,
0.0356224924325943,
-0.01119163352996111,
-0.011584321968257427,
-0.029320770874619484,
0.023411737754940987,
0.023075146600604057,
-0.035772088915109634,
0.022551562637090683,
0.057108182460069656,
-0.01179936621338129,
0.07573285698890686,
0.022570261731743813,
-0.008980420418083668,
-0.011247731745243073,
0.015810402110219002,
0.023037748411297798,
-0.09604047983884811,
0.02171008475124836,
0.04371936246752739,
0.0465242825448513,
0.035136304795742035,
0.0042097182013094425,
-0.020943406969308853,
0.05538783222436905,
0.003618347691372037,
0.02595486491918564,
0.052582912147045135,
-0.006292372010648251,
-0.01850312575697899,
-0.005231176968663931,
0.01754010282456875,
-0.024047520011663437,
0.06499935686588287,
0.010546501725912094,
0.023804426193237305,
-0.11683429032564163,
0.002332759089767933,
-0.0274882223457098,
-0.012005059979856014,
0.037754230201244354,
-0.039007097482681274,
0.06701890379190445,
-0.034481823444366455,
0.06903844326734543,
-0.005857609212398529,
0.0076247090473771095,
0.04977799206972122,
0.030255744233727455,
0.040016867220401764,
-0.02657194808125496,
-0.07980933785438538,
0.006586888805031776,
0.042186006903648376,
0.031508609652519226,
-0.05946431681513786,
0.02651584893465042,
0.013127028942108154,
-0.005268576089292765,
-0.0009092617547139525,
-0.03264927491545677,
0.09701285511255264,
-0.0017869682051241398,
-0.060324493795633316,
0.00824179220944643,
-0.008639155887067318,
-0.007816378958523273,
0.006039929110556841,
0.023785727098584175,
0.05632280558347702,
-0.030536236241459846,
-0.04962839558720589,
0.0672433003783226,
-0.0013299998827278614,
0.09701285511255264,
0.05475205183029175,
-0.014735182747244835,
0.022401966154575348,
-0.04379415884613991,
-0.011275781318545341,
-0.017007168382406235,
0.023692229762673378,
0.0037024952471256256,
-0.053218692541122437,
-0.0020230489317327738,
0.05699598789215088,
0.0126314926892519,
-0.006409243680536747,
-0.021579189226031303,
0.016726676374673843,
-0.044841330498456955,
0.03139641135931015,
-0.0720677599310875,
-0.03827781602740288,
0.0647001713514328,
-0.001590623753145337,
0.011715218424797058,
-0.03324766084551811,
-0.02589876763522625,
-0.003485113848000765,
0.035454194992780685,
0.04768364876508713,
-0.03367774561047554,
0.013080280274152756,
0.016605129465460777,
0.022495463490486145,
0.04760885238647461,
0.07936055213212967,
-0.01711936481297016,
0.03148990869522095,
-0.06511155515909195,
-0.042298201471567154,
0.025749171152710915,
-0.01505307387560606,
0.009976167231798172,
0.010247309692203999,
-0.0005586466868408024,
0.06765468418598175,
0.008690578863024712,
-0.023710928857326508,
-0.03956808149814606,
0.057781364768743515,
-0.05950171500444412,
-0.027750015258789062,
0.004286853596568108,
0.003249033121392131,
-0.041213635355234146,
0.04368196427822113,
0.02780611254274845,
0.020008433610200882,
-0.04656168073415756,
0.03276147320866585,
-0.014912827871739864,
-0.0816044881939888,
0.015324216336011887,
0.012968082912266254,
-0.007409665267914534,
0.009059893898665905,
-0.05594881623983383,
0.030255744233727455,
-0.008938346989452839,
0.06350339949131012,
0.04147542640566826,
0.050974756479263306,
-0.003122811671346426,
0.038333915174007416,
0.04977799206972122,
-0.061296865344047546,
-0.0161282941699028,
0.022420665249228477,
0.03229398652911186,
-0.035828184336423874,
-0.0401664637029171,
-0.03205089271068573,
-0.0027605092618614435,
0.010266009718179703,
-0.019858837127685547,
0.05366748198866844,
0.006572864018380642,
0.014230296947062016,
0.052956901490688324,
-0.0051143052987754345,
-0.0006503909826278687,
0.050002384930849075,
0.032219186425209045,
-0.01683887280523777,
0.004144270438700914,
0.015417713671922684,
-0.02234586700797081,
0.019933635368943214,
0.01215465646237135,
-0.0001410495169693604,
-0.04442994296550751,
0.03270537406206131,
-0.048693422228097916,
-0.0285353921353817,
-0.01741855777800083,
-0.027675217017531395,
0.008943022228777409,
-0.060735881328582764,
-0.026459751650691032,
0.014445341192185879,
-0.01748400554060936,
-0.015090472996234894,
0.06918804347515106,
0.02752562053501606,
-0.003125149058178067,
0.002456642920151353,
-0.046748675405979156,
-0.009667626582086086,
0.05273250862956047,
0.024683302268385887,
0.03622087463736534,
-0.0057500870898365974,
-0.03201349452137947,
-0.01911085844039917,
0.010808293707668781,
-0.024159716442227364,
0.010826993733644485,
-0.06746768951416016,
-0.0858679711818695,
0.012771738693118095,
-0.01908281072974205,
0.009966817684471607,
0.03339725360274315,
0.008092195726931095,
-0.021186500787734985,
0.044504739344120026,
0.025767870247364044,
0.02204667590558529,
0.021466992795467377,
-0.05729517713189125,
-0.08781271427869797,
0.01942875050008297,
-0.005235851742327213,
-0.008985095657408237,
0.0027464847080409527,
0.007465763483196497,
0.03077932819724083,
0.0030550260562449694,
-0.03824041783809662,
-0.006329770665615797,
0.011387977749109268,
0.00583423487842083,
0.07476048171520233,
-0.028310999274253845,
-0.02010193094611168,
-0.0001666882453719154,
0.008662530221045017,
0.015455112792551517,
0.06541074812412262,
0.0015602371422573924,
0.03270537406206131,
0.03945588320493698,
0.00839138776063919,
-0.01472583319991827,
-0.009508680552244186,
-0.04012906551361084,
0.08018332719802856,
-0.04499092698097229,
-0.037735532969236374,
0.036482665687799454,
0.023430436849594116,
0.0811557024717331,
-0.02393532171845436,
-0.0126314926892519,
0.06178305298089981,
0.029320770874619484,
-0.05632280558347702,
-0.004057785030454397,
0.008227767422795296,
-0.028348397463560104,
0.020550718531012535,
0.009405833669006824,
0.06193264573812485,
-0.02165398746728897,
-0.06608393043279648,
0.0854191854596138,
-0.02623535692691803,
-0.08392322808504105,
-0.0003643475065473467,
0.05890333279967308,
-0.00542752118781209,
0.015240068547427654,
0.011687168851494789,
0.04951619729399681,
0.05692118778824806,
0.01809173822402954,
-0.0037959925830364227,
-0.06544815003871918,
-0.029526464641094208,
-0.04177461937069893,
-0.0964144691824913,
-0.007821053266525269,
-0.018605973571538925,
0.03300456702709198,
-0.014305095188319683,
0.03270537406206131,
0.004151282366365194,
0.002461317926645279,
-0.006479366682469845,
-0.02528168447315693,
0.012388399802148342,
-0.03758593648672104,
-0.021466992795467377,
0.01230425201356411,
0.042896587401628494,
0.025038590654730797,
-0.00937310978770256,
-0.015006325207650661,
0.06421398371458054,
0.035155005753040314,
0.032892368733882904,
-0.002681036712601781,
0.004221405368298292,
0.013472968712449074,
-0.004251792095601559,
0.04297138378024101,
0.010518452152609825,
0.02976955659687519,
-0.03494931012392044,
0.10411865264177322,
-0.011294480413198471,
0.022196272388100624,
0.029993951320648193,
0.0016175041673704982,
0.06432618200778961,
-0.057108182460069656,
0.06496196240186691,
0.05998790264129639,
-0.02004583179950714,
0.008784076198935509,
0.022439364343881607,
0.05692118778824806,
-0.038707904517650604,
0.010387555696070194,
-0.014520139433443546,
-0.025468679144978523,
0.013603865168988705,
0.029638661071658134,
-0.01503437478095293,
-0.02199057675898075,
-0.003300456563010812,
0.05351788550615311,
-0.04932920262217522,
-0.021859681233763695,
-0.008152969181537628,
0.0446169376373291,
0.06959942728281021,
0.014389242976903915,
0.010976589284837246,
-0.055500030517578125,
-0.07038480788469315,
0.0073488918133080006,
-0.0556122250854969,
-0.02335563860833645,
-0.042260803282260895,
0.060361891984939575,
-0.00679725781083107,
0.011677819304168224,
0.005109630525112152,
-0.014632335864007473,
-0.023374337702989578,
-0.03874530270695686,
0.013127028942108154,
-0.0016560718649998307,
-0.021915780380368233,
-0.05699598789215088,
-0.035772088915109634,
0.01684822328388691,
-0.014959576539695263,
-0.028067905455827713,
-0.004326589871197939,
0.03558509424328804,
0.0009770473698154092,
0.03982987254858017,
0.0073675913736224174,
0.04042825475335121,
0.01811978779733181,
-0.02982565574347973,
0.023374337702989578,
0.015268118120729923,
-0.0005866959108971059,
-0.006745833903551102,
0.0009811378549784422,
-0.029937852174043655,
-0.024440208449959755,
0.03143380954861641,
0.008938346989452839,
0.05430326238274574,
-0.02818010188639164,
0.004903936292976141,
0.0004856018931604922,
-0.06107247248291969,
0.008092195726931095,
-0.008209067396819592,
0.024066219106316566,
0.02006453275680542,
0.028890682384371758,
0.01005096547305584,
-0.016623830422759056,
-0.00969567522406578,
0.03549159690737724,
-0.01970924250781536,
0.008330614306032658,
-0.01164977066218853,
0.0288532841950655,
-0.039717674255371094,
0.04719746485352516,
0.024982493370771408,
-0.010883091948926449,
-0.019858837127685547,
-0.03102242201566696,
-0.014277045615017414,
-0.01784864440560341,
-0.013454269617795944,
0.015997396782040596,
0.005399472080171108,
0.026067063212394714,
0.028067905455827713,
-0.007133848033845425,
0.011154234409332275,
0.03270537406206131,
0.008517608977854252,
0.01116358395665884,
0.0433453731238842,
0.04977799206972122,
-0.011808715760707855,
0.010294058360159397,
-0.004590719938278198,
-0.01587584987282753,
0.019896237179636955,
0.02625405788421631,
0.04656168073415756,
-0.018241332843899727,
0.013856307603418827,
-0.034463126212358475,
-0.028067905455827713,
-0.04802023991942406,
0.017053917050361633,
-0.0678790807723999,
-0.023897923529148102,
0.043831560760736465,
0.01002291589975357,
-0.03173300251364708,
0.004106871318072081,
0.005703338421881199,
-0.03586558625102043,
-0.019279154017567635,
-0.028217501938343048,
-0.01326727494597435,
0.022588960826396942,
-0.016932370141148567,
-0.018933214247226715,
0.015081123448908329,
0.004756677895784378,
-0.02718903124332428,
0.011172933503985405,
-0.03466881811618805,
0.0008578381966799498,
0.027170330286026,
-0.06327901035547256,
0.01245384756475687,
-0.0003979481116402894,
-0.014987626112997532,
-0.013248574919998646,
-0.03436962887644768,
0.00048384879482910037,
0.011939612217247486,
0.00035791954724118114,
-0.014295745640993118,
0.02395402267575264,
-0.011079436168074608,
-0.07636863738298416,
-0.019297853112220764,
0.0036814582999795675,
-0.024496307596564293,
0.06619612872600555,
0.0011459270026534796,
0.01786734350025654,
0.05310649797320366,
0.0026716869324445724,
0.05796835944056511,
0.006030579563230276,
0.03855830803513527,
0.01815718598663807,
0.012949383817613125,
-0.041288431733846664,
-0.07075879722833633,
0.008540983311831951,
-0.02973215840756893,
0.029077677056193352,
0.045140523463487625,
0.03132161498069763,
-0.06354080140590668,
0.012220104224979877,
-0.05075036361813545,
-0.031938694417476654,
-0.021167801693081856,
-0.03104112111032009,
-0.06653271615505219,
-0.05078776180744171,
-0.06944983452558517,
0.06204484403133392,
-0.002804920542985201,
0.007760280277580023,
0.007830403745174408,
-0.003288769396021962,
-0.0262166578322649
] |
10,091 | sentence_transformers.SentenceTransformer | stop_multi_process_pool |
Stops all processes started with start_multi_process_pool
| @staticmethod
def stop_multi_process_pool(pool):
"""
Stops all processes started with start_multi_process_pool
"""
for p in pool["processes"]:
p.terminate()
for p in pool["processes"]:
p.join()
p.close()
pool["input"].close()
pool["output"].close()
| (pool) | [
0.04541599377989769,
-0.03744516894221306,
-0.02447929047048092,
0.056893981993198395,
-0.09869653731584549,
0.011070591397583485,
-0.03159989416599274,
0.004040765576064587,
0.016659025102853775,
-0.006385516840964556,
-0.009910393506288528,
-0.05094243213534355,
0.011628548614680767,
0.02235373854637146,
-0.008922896347939968,
0.011194582097232342,
0.008249804377555847,
-0.012204219587147236,
-0.0044481633231043816,
-0.014356343075633049,
-0.049950506538152695,
0.05459129810333252,
0.0303777027875185,
-0.03847251832485199,
-0.011743683367967606,
0.03429226204752922,
-0.000727337843272835,
0.013807241804897785,
-0.008807762525975704,
-0.044459495693445206,
-0.03691377863287926,
0.025258660316467285,
-0.026197446510195732,
0.043113309890031815,
0.054485023021698,
0.014365199021995068,
-0.0030798385851085186,
0.07644907385110855,
-0.023682208731770515,
0.034912217408418655,
0.031157072633504868,
-0.08792706578969955,
-0.013984370976686478,
-0.0127533208578825,
0.0037706433795392513,
0.02261943183839321,
-0.0017270122189074755,
-0.012824173085391521,
0.011088304221630096,
-0.013134149834513664,
-0.01372753269970417,
-0.012771033681929111,
0.015445688739418983,
0.034044280648231506,
-0.027366502210497856,
0.08048762381076813,
-0.008568638004362583,
0.03528418764472008,
0.0025130242574959993,
-0.06900963932275772,
-0.011194582097232342,
-0.004268819931894541,
0.009609273634850979,
0.007886689156293869,
0.025028392672538757,
-0.020440740510821342,
-0.03946444392204285,
0.060861680656671524,
-0.0018565381178632379,
-0.0024798123631626368,
-0.01229278463870287,
-0.04630164057016373,
-0.034965354949235916,
0.06029486656188965,
0.002329252427443862,
-0.010220370255410671,
0.016393331810832024,
0.0017635452095419168,
-0.00786454789340496,
-0.04268819838762283,
0.005942693445831537,
0.030430840328335762,
-0.05324511602520943,
0.054343316704034805,
0.061676476150751114,
-0.04477832838892937,
0.08898983895778656,
0.012868455611169338,
-0.038011983036994934,
-0.01014951802790165,
-0.018917426466941833,
0.07021411508321762,
-0.0066467830911278725,
0.05104871094226837,
0.055476944893598557,
0.005039332900196314,
-0.031050793826580048,
0.0423339419066906,
-0.07109976559877396,
-0.08700598776340485,
-0.011832247488200665,
-0.027224797755479813,
0.006257098168134689,
-0.01575566455721855,
0.025471216067671776,
-0.018864287063479424,
0.0010085308458656073,
-0.0077184163965284824,
-0.023682208731770515,
-0.040562644600868225,
-0.09203647077083588,
0.03243240341544151,
-0.06001146137714386,
-0.0056238602846860886,
-0.04952539503574371,
0.017004428431391716,
-0.05462672561407089,
0.037799425423145294,
-0.002196405315771699,
-0.014267778024077415,
-0.057815056294202805,
0.03243240341544151,
-0.03783485293388367,
-0.03748059272766113,
0.03142276778817177,
0.0938786119222641,
0.018580880016088486,
0.03981870412826538,
-0.024319874122738838,
0.037905704230070114,
-0.026356862857937813,
0.0339202918112278,
-0.016101067885756493,
0.018846575170755386,
0.02327481098473072,
-0.026002604514360428,
-0.027207085862755775,
0.01812034286558628,
0.005389163736253977,
0.003163974964991212,
0.0032946078572422266,
0.015596249140799046,
-0.021893201395869255,
0.04640791937708855,
0.01467517577111721,
0.007944256067276001,
0.03386715427041054,
-0.06033029407262802,
-0.03505392000079155,
-0.0020801641512662172,
-0.02929721213877201,
0.023186245933175087,
0.025418076664209366,
0.011159155517816544,
-0.0022329383064061403,
0.029279500246047974,
0.021344099193811417,
0.028287574648857117,
0.010866892524063587,
-0.0810544416308403,
-0.015667101368308067,
0.03829538822174072,
-0.06259755045175552,
-0.022158894687891006,
-0.060755405575037,
-0.04715186357498169,
0.04764782637357712,
0.008714769035577774,
0.038720499724149704,
0.028199009597301483,
-0.04768325015902519,
0.015436832793056965,
-0.003303464502096176,
0.00649622268974781,
-0.04623078927397728,
0.055051837116479874,
-0.014870017766952515,
0.0012399061815813184,
0.004505730699747801,
0.009361292235553265,
-0.04736441746354103,
-0.027331074699759483,
-0.06256212294101715,
0.023451941087841988,
-0.005127897951751947,
0.01598593406379223,
-0.021308673545718193,
-0.003139619715511799,
0.009024745784699917,
-0.015605105087161064,
-0.008068246766924858,
-0.009095598012208939,
-0.0007511395961046219,
-0.010804897174239159,
0.047718677669763565,
0.016685595735907555,
-0.009086741134524345,
-0.01593279466032982,
-0.006044542882591486,
0.007426152471452951,
-0.04013753682374954,
0.04297160729765892,
0.019289398565888405,
-0.028801249340176582,
0.02088356390595436,
-0.027012242004275322,
-0.017553528770804405,
0.017234696075320244,
-0.04594738036394119,
0.01690700650215149,
0.042829904705286026,
0.00007514163735322654,
0.02532951347529888,
0.13908204436302185,
0.12682469189167023,
0.023363376036286354,
-0.002845142036676407,
-0.0004345207125879824,
-0.001572023960761726,
0.0015155639266595244,
-0.04672675207257271,
-0.020440740510821342,
0.06366033107042313,
0.04360927268862724,
-0.04722271487116814,
0.039641574025154114,
0.013010159134864807,
0.040350090712308884,
0.06323521584272385,
0.021344099193811417,
0.03206043317914009,
-0.00008081531268544495,
0.00714717386290431,
-0.006141963880509138,
0.01764209382236004,
-0.05133211612701416,
-0.05692940950393677,
-0.03055483102798462,
-0.03241468966007233,
-0.0027388641610741615,
-0.012496483512222767,
-0.05685855820775032,
0.005194321274757385,
-0.07081636041402817,
0.03663037344813347,
0.04530971497297287,
0.04123573750257492,
0.019519666209816933,
0.08176296204328537,
0.008130242116749287,
0.04743526875972748,
-0.044140662997961044,
0.019360249862074852,
-0.04010210931301117,
0.01591508276760578,
-0.0904068723320961,
-0.027844751253724098,
-0.03733889013528824,
-0.008865329436957836,
0.014152644202113152,
0.021414952352643013,
0.00659364415332675,
0.006048970855772495,
0.03918103501200676,
0.02621516026556492,
0.024780411273241043,
0.03911018371582031,
-0.02842927910387516,
0.015737952664494514,
-0.0053581660613417625,
0.0711706131696701,
-0.03147590532898903,
-0.027685334905982018,
0.0003548124514054507,
-0.06185360625386238,
0.043007031083106995,
-0.02642771601676941,
-0.009821828454732895,
-0.023292524740099907,
-0.019501954317092896,
0.08856473118066788,
0.03420369699597359,
-0.03087366558611393,
-0.02908465638756752,
0.013134149834513664,
0.004840062465518713,
-0.0321844220161438,
-0.019466526806354523,
0.03563844785094261,
0.003345532575622201,
-0.029881739988923073,
0.002103412291035056,
-0.010238083079457283,
0.019129982218146324,
-0.030643396079540253,
0.008843188174068928,
-0.0475415475666523,
-0.01475488394498825,
-0.01556967943906784,
-0.05338681861758232,
-0.017340974882245064,
-0.054343316704034805,
0.006726491264998913,
0.019767647609114647,
-0.044849179685115814,
0.03523105010390282,
0.04052722081542015,
-0.0309799425303936,
-0.012106798589229584,
0.036984629929065704,
-0.002630372531712055,
0.01223078928887844,
-0.04736441746354103,
0.01133628562092781,
0.02968689799308777,
0.03273352235555649,
0.007700703106820583,
0.0249044019728899,
-0.036488667130470276,
0.023203959688544273,
-0.04591195657849312,
-0.04049179330468178,
0.05657514929771423,
0.02274342253804207,
0.020529303699731827,
0.026356862857937813,
0.018350612372159958,
0.010990883223712444,
0.040243811905384064,
0.024674134328961372,
-0.040066685527563095,
0.014019796624779701,
-0.009697837755084038,
-0.023682208731770515,
-0.02219432033598423,
-0.019005991518497467,
0.009733263403177261,
-0.033229485154151917,
0.006084396969527006,
-0.09359520673751831,
0.005495441611856222,
-0.013160718604922295,
-0.033778589218854904,
0.0021144829224795103,
-0.09572076052427292,
0.03113935887813568,
-0.005929408594965935,
-0.013630111701786518,
0.030413128435611725,
-0.02734878845512867,
0.07524459064006805,
0.062491271644830704,
-0.00098306848667562,
0.07715759426355362,
0.020547017455101013,
-0.0029469914734363556,
0.009272727183997631,
0.034150559455156326,
0.03268038481473923,
-0.03911018371582031,
-0.03282208740711212,
-0.06468767672777176,
0.01147798914462328,
0.00410940358415246,
0.052005209028720856,
-0.05161552503705025,
0.014622037298977375,
-0.0037817140109837055,
-0.026994530111551285,
-0.002219653455540538,
-0.029598332941532135,
-0.038011983036994934,
-0.0234342273324728,
-0.005158895626664162,
-0.05335139483213425,
0.017429538071155548,
-0.009697837755084038,
0.010202656500041485,
0.004649648442864418,
0.07503204047679901,
-0.055654074996709824,
-0.0440698079764843,
0.055476944893598557,
-0.014710601419210434,
-0.057319093495607376,
-0.0520760603249073,
-0.02185777574777603,
0.015941651538014412,
0.021574368700385094,
0.029598332941532135,
0.04584110528230667,
-0.01996248960494995,
0.006877051200717688,
-0.022973690181970596,
0.02208804339170456,
0.006177389994263649,
0.01851002871990204,
0.021769210696220398,
0.009857254102826118,
-0.03716176003217697,
-0.006398801691830158,
0.0463370680809021,
-0.03599270433187485,
0.012567334808409214,
0.02690596505999565,
-0.0052253189496695995,
0.001031779102049768,
-0.014312060549855232,
0.06794685870409012,
-0.009821828454732895,
0.0049109142273664474,
-0.02132638730108738,
-0.025896327570080757,
-0.07053294777870178,
-0.01112372986972332,
-0.014630893245339394,
0.018580880016088486,
0.04187340289354324,
0.10131805390119553,
0.03641781583428383,
0.1077655628323555,
0.0021144829224795103,
0.02685282565653324,
-0.052713725715875626,
-0.02458556927740574,
-0.05940921977162361,
0.03360145911574364,
-0.013957801274955273,
0.0016672310885041952,
0.012062516063451767,
-0.059763479977846146,
-0.008147954940795898,
-0.05161552503705025,
-0.03211357071995735,
0.03142276778817177,
0.025790048763155937,
-0.003916775342077017,
0.03694920614361763,
0.03232612460851669,
0.022318311035633087,
0.01421463955193758,
0.03569158539175987,
0.015622817911207676,
-0.014250065200030804,
0.08488043397665024,
-0.013807241804897785,
0.026232872158288956,
-0.007302161771804094,
-0.009396717883646488,
0.008094816468656063,
-0.01914769411087036,
-0.03386715427041054,
0.0008430255111306906,
-0.043644700199365616,
0.03423912450671196,
-0.022920552641153336,
-0.001301901531405747,
-0.004906486254185438,
0.0017502604750916362,
0.012443344108760357,
0.020582443103194237,
-0.009299296885728836,
0.02853555604815483,
-0.003974342253059149,
-0.07404011487960815,
-0.030023442581295967,
0.03381401300430298,
-0.018492314964532852,
0.059019535779953,
0.02837613970041275,
0.011353998444974422,
0.03413284569978714,
0.007014326751232147,
-0.03183016553521156,
-0.013134149834513664,
0.00714717386290431,
-0.03252096846699715,
0.019023703411221504,
0.05370565131306648,
-0.04530971497297287,
-0.024620994925498962,
-0.07404011487960815,
0.05877155438065529,
0.03971242532134056,
-0.08112528920173645,
-0.03634696453809738,
0.07333159446716309,
-0.054237041622400284,
-0.0022473300341516733,
-0.016889294609427452,
-0.005535295698791742,
-0.013452982529997826,
0.02447929047048092,
-0.033282626420259476,
0.03264496102929115,
-0.03896848112344742,
-0.04970252513885498,
-0.02106069214642048,
0.06103881075978279,
-0.07432352006435394,
0.013364417478442192,
0.03234383836388588,
-0.023345662280917168,
-0.059338368475437164,
0.07885803282260895,
0.02035217545926571,
0.009175306186079979,
-0.02137952484190464,
-0.05420161411166191,
0.009432143531739712,
-0.06358947604894638,
-0.05257202312350273,
0.008023964241147041,
-0.006863766349852085,
0.02587861381471157,
-0.0029868455603718758,
-0.01291273720562458,
-0.007226882036775351,
0.03631154075264931,
0.026445427909493446,
0.05459129810333252,
0.03461109474301338,
-0.04010210931301117,
0.02892524003982544,
-0.027738472446799278,
-0.050871580839157104,
0.01272675208747387,
0.036701224744319916,
-0.015693670138716698,
0.08268403261899948,
0.03232612460851669,
0.0021310888696461916,
-0.02545350417494774,
-0.006288095843046904,
0.0021631934214383364,
-0.035514455288648605,
-0.037799425423145294,
-0.04786038026213646,
0.051898930221796036,
-0.0033765302505344152,
-0.05887783318758011,
0.0619598850607872,
0.03999583050608635,
0.018474603071808815,
-0.025134669616818428,
0.05012763664126396,
-0.029438916593790054,
0.04786038026213646,
0.01827976107597351,
0.044636622071266174,
0.002249544020742178,
0.01201823353767395,
0.03186558932065964,
-0.003046626690775156,
0.02219432033598423,
-0.05370565131306648,
0.03314092010259628,
-0.015215420164167881,
-0.02740192785859108,
0.021662933751940727,
-0.04619536176323891,
0.032148998230695724,
0.008794477209448814,
-0.0051190415397286415,
0.04704558476805687,
0.004871060140430927,
-0.009077885188162327,
0.019838498905301094,
0.0486043244600296,
-0.017792653292417526,
0.027153946459293365,
-0.04134201630949974,
0.0492774173617363,
-0.03478822484612465,
0.00808595959097147,
0.031157072633504868,
0.03168845921754837,
-0.030342277139425278,
-0.01585308648645878,
-0.007040895987302065,
-0.022584006190299988,
0.021910913288593292,
-0.04644334316253662,
-0.06681323051452637,
0.00031578860944136977,
0.02940349094569683,
-0.012035946361720562,
-0.04594738036394119,
0.0009664625977165997,
0.046691324561834335,
-0.0011042915284633636,
0.028021881356835365,
0.022548580542206764,
-0.03310549631714821,
-0.027632195502519608,
0.037090908735990524,
-0.006730919238179922,
-0.004857775289565325,
0.011867674067616463,
0.03716176003217697,
0.0035071633756160736,
-0.00453008571639657,
0.03694920614361763,
0.010105235502123833,
-0.00004383262057672255,
0.002103412291035056,
-0.04314873740077019,
-0.030342277139425278,
-0.038011983036994934,
0.03397342935204506,
-0.042298514395952225,
-0.03694920614361763,
0.05324511602520943,
0.008023964241147041,
0.0015443474985659122,
0.007643136195838451,
-0.05653972178697586,
0.00813909899443388,
0.05859442427754402,
-0.02919093519449234,
-0.04307788610458374,
-0.05161552503705025,
-0.0003454024554230273,
-0.03500078245997429,
-0.004116045776754618,
0.03608126938343048,
-0.03260953351855278,
0.02858869545161724,
-0.02214118279516697,
0.01964365690946579,
-0.029368063434958458,
-0.03655952215194702,
0.08190466463565826,
0.02045845240354538,
0.007032039575278759,
0.02506381832063198,
0.056504298001527786,
0.020139619708061218,
0.012275071814656258,
-0.029669184237718582,
0.031653035432100296,
-0.025967178866267204,
0.011787965893745422,
-0.06575045734643936,
-0.01342641282826662,
-0.041696276515722275,
0.02035217545926571,
0.007080750074237585,
0.06114508956670761,
0.007390726823359728,
0.0007998502114787698,
0.0475415475666523,
-0.023310236632823944,
-0.0446011982858181,
-0.010450637899339199,
-0.056504298001527786,
-0.026551706716418266,
-0.023097680881619453,
-0.013585829176008701,
-0.014958582818508148,
-0.04920656234025955,
0.0010699726408347487,
-0.02729564905166626,
0.02816358394920826,
-0.010751757770776749,
-0.06103881075978279,
-0.0031529043335467577,
0.0261088814586401,
-0.0010046561947092414,
0.03864964842796326,
0.03299921751022339,
-0.016685595735907555,
-0.017819223925471306,
-0.01750924624502659,
-0.0718437060713768,
0.03395571559667587,
0.007275592535734177,
-0.012567334808409214,
-0.05912581458687782,
0.009733263403177261,
0.029669184237718582,
0.021627506241202354,
-0.04399895668029785,
0.001730333431623876,
0.054980985820293427,
0.0261088814586401,
-0.02198176644742489,
-0.0026170876808464527,
0.02230059914290905,
0.01580880396068096,
-0.017101848497986794,
0.025860901921987534,
0.02274342253804207,
-0.04389268159866333,
-0.09196561574935913,
-0.002687939442694187,
0.009609273634850979,
-0.06465224921703339,
0.004968481138348579,
-0.005734566133469343,
-0.005513154435902834,
-0.03250325471162796,
-0.033831726759672165,
-0.026835113763809204,
0.017863506451249123,
0.055972907692193985,
-0.030962228775024414,
0.017872363328933716,
0.0503401905298233,
0.006133107468485832,
0.050375618040561676,
-0.004724928177893162,
0.044140662997961044,
0.05172180384397507,
0.028234435245394707,
0.03299921751022339,
-0.06631726771593094,
0.000053138839575694874,
0.028889814391732216,
0.03354831784963608,
0.010858035646378994,
0.020635582506656647,
0.052713725715875626,
-0.04591195657849312,
-0.04520343616604805,
-0.024567855522036552,
-0.04991508275270462,
0.06567960232496262,
0.06337691843509674,
0.0630226582288742,
-0.040350090712308884,
-0.06174733117222786,
-0.07180828601121902,
0.023593643680214882,
-0.04268819838762283,
-0.03879135102033615,
0.062491271644830704,
-0.02940349094569683,
-0.013904662802815437,
-0.016659025102853775,
-0.017872363328933716,
-0.0834634006023407,
0.043325867503881454,
0.01812034286558628,
0.03282208740711212,
-0.016915863379836082,
0.01068976242095232,
0.03631154075264931,
0.00685048196464777,
-0.07481948286294937,
0.05508726090192795,
0.015082573518157005,
0.01682729832828045,
0.0024111748207360506,
0.03432768955826759,
-0.03500078245997429,
0.03680749982595444,
-0.00034817008418031037,
-0.0695764496922493,
0.011274290271103382,
0.006509507540613413,
0.028464704751968384,
-0.022920552641153336,
-0.0060888249427080154,
0.048816878348588943,
-0.007111747749149799,
0.031281061470508575,
-0.02077728509902954
] |
10,092 | torch.nn.modules.module | to | Move and/or cast the parameters and buffers.
This can be called as
.. function:: to(device=None, dtype=None, non_blocking=False)
:noindex:
.. function:: to(dtype, non_blocking=False)
:noindex:
.. function:: to(tensor, non_blocking=False)
:noindex:
.. function:: to(memory_format=torch.channels_last)
:noindex:
Its signature is similar to :meth:`torch.Tensor.to`, but only accepts
floating point or complex :attr:`dtype`\ s. In addition, this method will
only cast the floating point or complex parameters and buffers to :attr:`dtype`
(if given). The integral parameters and buffers will be moved
:attr:`device`, if that is given, but with dtypes unchanged. When
:attr:`non_blocking` is set, it tries to convert/move asynchronously
with respect to the host if possible, e.g., moving CPU Tensors with
pinned memory to CUDA devices.
See below for examples.
.. note::
This method modifies the module in-place.
Args:
device (:class:`torch.device`): the desired device of the parameters
and buffers in this module
dtype (:class:`torch.dtype`): the desired floating point or complex dtype of
the parameters and buffers in this module
tensor (torch.Tensor): Tensor whose dtype and device are the desired
dtype and device for all parameters and buffers in this module
memory_format (:class:`torch.memory_format`): the desired memory
format for 4D parameters and buffers in this module (keyword
only argument)
Returns:
Module: self
Examples::
>>> # xdoctest: +IGNORE_WANT("non-deterministic")
>>> linear = nn.Linear(2, 2)
>>> linear.weight
Parameter containing:
tensor([[ 0.1913, -0.3420],
[-0.5113, -0.2325]])
>>> linear.to(torch.double)
Linear(in_features=2, out_features=2, bias=True)
>>> linear.weight
Parameter containing:
tensor([[ 0.1913, -0.3420],
[-0.5113, -0.2325]], dtype=torch.float64)
>>> # xdoctest: +REQUIRES(env:TORCH_DOCTEST_CUDA1)
>>> gpu1 = torch.device("cuda:1")
>>> linear.to(gpu1, dtype=torch.half, non_blocking=True)
Linear(in_features=2, out_features=2, bias=True)
>>> linear.weight
Parameter containing:
tensor([[ 0.1914, -0.3420],
[-0.5112, -0.2324]], dtype=torch.float16, device='cuda:1')
>>> cpu = torch.device("cpu")
>>> linear.to(cpu)
Linear(in_features=2, out_features=2, bias=True)
>>> linear.weight
Parameter containing:
tensor([[ 0.1914, -0.3420],
[-0.5112, -0.2324]], dtype=torch.float16)
>>> linear = nn.Linear(2, 2, bias=None).to(torch.cdouble)
>>> linear.weight
Parameter containing:
tensor([[ 0.3741+0.j, 0.2382+0.j],
[ 0.5593+0.j, -0.4443+0.j]], dtype=torch.complex128)
>>> linear(torch.ones(3, 2, dtype=torch.cdouble))
tensor([[0.6122+0.j, 0.1150+0.j],
[0.6122+0.j, 0.1150+0.j],
[0.6122+0.j, 0.1150+0.j]], dtype=torch.complex128)
| def to(self, *args, **kwargs):
r"""Move and/or cast the parameters and buffers.
This can be called as
.. function:: to(device=None, dtype=None, non_blocking=False)
:noindex:
.. function:: to(dtype, non_blocking=False)
:noindex:
.. function:: to(tensor, non_blocking=False)
:noindex:
.. function:: to(memory_format=torch.channels_last)
:noindex:
Its signature is similar to :meth:`torch.Tensor.to`, but only accepts
floating point or complex :attr:`dtype`\ s. In addition, this method will
only cast the floating point or complex parameters and buffers to :attr:`dtype`
(if given). The integral parameters and buffers will be moved
:attr:`device`, if that is given, but with dtypes unchanged. When
:attr:`non_blocking` is set, it tries to convert/move asynchronously
with respect to the host if possible, e.g., moving CPU Tensors with
pinned memory to CUDA devices.
See below for examples.
.. note::
This method modifies the module in-place.
Args:
device (:class:`torch.device`): the desired device of the parameters
and buffers in this module
dtype (:class:`torch.dtype`): the desired floating point or complex dtype of
the parameters and buffers in this module
tensor (torch.Tensor): Tensor whose dtype and device are the desired
dtype and device for all parameters and buffers in this module
memory_format (:class:`torch.memory_format`): the desired memory
format for 4D parameters and buffers in this module (keyword
only argument)
Returns:
Module: self
Examples::
>>> # xdoctest: +IGNORE_WANT("non-deterministic")
>>> linear = nn.Linear(2, 2)
>>> linear.weight
Parameter containing:
tensor([[ 0.1913, -0.3420],
[-0.5113, -0.2325]])
>>> linear.to(torch.double)
Linear(in_features=2, out_features=2, bias=True)
>>> linear.weight
Parameter containing:
tensor([[ 0.1913, -0.3420],
[-0.5113, -0.2325]], dtype=torch.float64)
>>> # xdoctest: +REQUIRES(env:TORCH_DOCTEST_CUDA1)
>>> gpu1 = torch.device("cuda:1")
>>> linear.to(gpu1, dtype=torch.half, non_blocking=True)
Linear(in_features=2, out_features=2, bias=True)
>>> linear.weight
Parameter containing:
tensor([[ 0.1914, -0.3420],
[-0.5112, -0.2324]], dtype=torch.float16, device='cuda:1')
>>> cpu = torch.device("cpu")
>>> linear.to(cpu)
Linear(in_features=2, out_features=2, bias=True)
>>> linear.weight
Parameter containing:
tensor([[ 0.1914, -0.3420],
[-0.5112, -0.2324]], dtype=torch.float16)
>>> linear = nn.Linear(2, 2, bias=None).to(torch.cdouble)
>>> linear.weight
Parameter containing:
tensor([[ 0.3741+0.j, 0.2382+0.j],
[ 0.5593+0.j, -0.4443+0.j]], dtype=torch.complex128)
>>> linear(torch.ones(3, 2, dtype=torch.cdouble))
tensor([[0.6122+0.j, 0.1150+0.j],
[0.6122+0.j, 0.1150+0.j],
[0.6122+0.j, 0.1150+0.j]], dtype=torch.complex128)
"""
device, dtype, non_blocking, convert_to_format = torch._C._nn._parse_to(*args, **kwargs)
if dtype is not None:
if not (dtype.is_floating_point or dtype.is_complex):
raise TypeError('nn.Module.to only accepts floating point or complex '
f'dtypes, but got desired dtype={dtype}')
if dtype.is_complex:
warnings.warn(
"Complex modules are a new feature under active development whose design may change, "
"and some modules might not work as expected when using complex tensors as parameters or buffers. "
"Please file an issue at https://github.com/pytorch/pytorch/issues/new?template=bug-report.yml "
"if a complex module does not work as expected.")
def convert(t):
try:
if convert_to_format is not None and t.dim() in (4, 5):
return t.to(
device,
dtype if t.is_floating_point() or t.is_complex() else None,
non_blocking,
memory_format=convert_to_format,
)
return t.to(
device,
dtype if t.is_floating_point() or t.is_complex() else None,
non_blocking,
)
except NotImplementedError as e:
if str(e) == "Cannot copy out of meta tensor; no data!":
raise NotImplementedError(
f"{e} Please use torch.nn.Module.to_empty() instead of torch.nn.Module.to() "
f"when moving module from meta to a different device."
) from None
else:
raise
return self._apply(convert)
| (self, *args, **kwargs) | [
-0.031508442014455795,
-0.0013104432728141546,
0.008597033098340034,
-0.03756209835410118,
-0.0045796544291079044,
0.009626995772123337,
-0.0355231948196888,
0.021419014781713486,
-0.031067030504345894,
-0.039327748119831085,
0.01837116666138172,
-0.029974007979035378,
-0.0033447504974901676,
0.03171863779425621,
0.012748412787914276,
0.0677252858877182,
-0.007278050761669874,
-0.0036495353560894728,
0.03186577558517456,
0.03144538402557373,
0.018003322184085846,
-0.04298516735434532,
-0.012317510321736336,
-0.005622753873467445,
-0.04712603613734245,
-0.024719098582863808,
0.008013738319277763,
-0.014282846823334694,
-0.03701558709144592,
-0.006726285442709923,
0.006684246007353067,
-0.0018668068805709481,
0.0694909319281578,
0.05927538871765137,
0.013452570885419846,
-0.0008611484081484377,
-0.0066579715348780155,
0.042165402323007584,
-0.05835052579641342,
-0.02135595493018627,
-0.02846059389412403,
-0.06444621831178665,
-0.007477737497538328,
0.030331343412399292,
0.015459946356713772,
-0.004306399263441563,
0.00034386818879283965,
0.04334250092506409,
-0.035207901149988174,
-0.02688412182033062,
0.013683786615729332,
-0.034913625568151474,
0.02119830809533596,
0.0031109070405364037,
-0.03281166031956673,
0.03388366103172302,
0.013463079929351807,
0.022554075345396996,
-0.04271190986037254,
0.030835814774036407,
-0.007871855981647968,
0.01977948285639286,
-0.010226055979728699,
-0.05364212393760681,
0.002434337278828025,
0.013536648824810982,
-0.009017426520586014,
-0.030940912663936615,
-0.0012119136517867446,
0.04754642769694328,
-0.03453527018427849,
-0.029259340837597847,
0.034346092492341995,
0.039327748119831085,
0.004718909505754709,
-0.03524993732571602,
0.0024829450994729996,
0.054272715002298355,
-0.016889281570911407,
0.0031345540191978216,
0.0054966360330581665,
0.05507146194577217,
-0.061671629548072815,
-0.012538216076791286,
-0.0367002934217453,
-0.02291140891611576,
-0.05986393988132477,
0.03796147182583809,
-0.03203393518924713,
-0.06776732206344604,
-0.05393639951944351,
-0.05444087088108063,
-0.0014004335971549153,
0.03230718895792961,
0.040736064314842224,
0.00012119136954424903,
-0.024971334263682365,
0.01466120034456253,
-0.06688450276851654,
-0.0075460514053702354,
-0.06553924083709717,
0.014713749289512634,
-0.038192689418792725,
0.017162537202239037,
0.03058357909321785,
-0.06335319578647614,
-0.03285370022058487,
0.03871817886829376,
0.005522910971194506,
-0.013095236383378506,
-0.09164563566446304,
0.050867531448602676,
-0.06469845771789551,
-0.05486126244068146,
0.011319076642394066,
-0.057846054434776306,
-0.007556560914963484,
0.0003576623275876045,
-0.052843376994132996,
0.02033650316298008,
-0.01074629183858633,
0.05095161125063896,
0.00200737570412457,
-0.03413589671254158,
-0.014934455044567585,
0.05977986007928848,
0.02177634835243225,
-0.03058357909321785,
0.012643313966691494,
-0.05574408918619156,
-0.0895436704158783,
-0.02331078238785267,
-0.026652906090021133,
0.07613313943147659,
0.003867614082992077,
0.016122065484523773,
-0.06923869997262955,
-0.02047313004732132,
-0.032223109155893326,
0.039348769932985306,
0.020031718537211418,
0.019012264907360077,
0.06255445629358292,
-0.019138382747769356,
0.0498165488243103,
-0.04641136899590492,
0.0438469722867012,
-0.0026826318353414536,
-0.06789344549179077,
-0.034198958426713943,
-0.004674242809414864,
0.0435526967048645,
0.07567071169614792,
-0.013273903168737888,
0.010541350580751896,
0.03255942463874817,
0.004369458183646202,
-0.035207901149988174,
-0.021818388253450394,
0.008891308680176735,
-0.044729795306921005,
-0.02263815328478813,
0.001667120261117816,
0.05587020516395569,
0.008744170889258385,
-0.012580255046486855,
0.04292210936546326,
-0.051834434270858765,
-0.0058960095047950745,
-0.004251222591847181,
0.0022648663725703955,
-0.005486126523464918,
0.08962775021791458,
0.053684163838624954,
-0.0614614300429821,
0.013673276640474796,
-0.016868261620402336,
-0.033484287559986115,
-0.0075355414301157,
-0.003914908040314913,
0.041009321808815,
0.003208122681826353,
-0.03602766618132591,
0.030478479340672493,
-0.00860754307359457,
0.003087259829044342,
-0.04821905866265297,
-0.00838683731853962,
-0.034367114305496216,
-0.00554393045604229,
0.12611785531044006,
0.017593439668416977,
-0.007088874001055956,
-0.011676411144435406,
-0.023668115958571434,
-0.0187915600836277,
-0.0140201011672616,
-0.012443628162145615,
0.044015128165483475,
0.08660092204809189,
0.011613352224230766,
-0.059233348816633224,
0.05381028354167938,
0.04210234060883522,
-0.03497668355703354,
-0.03155048191547394,
0.007845581509172916,
0.05587020516395569,
-0.004414124879986048,
-0.012580255046486855,
0.014703239314258099,
-0.010683232918381691,
0.008018992841243744,
0.020725365728139877,
-0.0024763764813542366,
-0.016700105741620064,
-0.059233348816633224,
0.004085692577064037,
0.00023138026881497353,
-0.0013741590082645416,
0.04105135798454285,
-0.012285980395972729,
-0.05486126244068146,
0.022533055394887924,
-0.013799394480884075,
0.027514711022377014,
-0.005178714171051979,
-0.012138842605054379,
0.044183287769556046,
-0.00508412579074502,
0.04050485044717789,
0.012506687082350254,
-0.08336389809846878,
0.03382060304284096,
0.06629595160484314,
0.010867154225707054,
-0.020798934623599052,
0.00426173210144043,
-0.09408391267061234,
-0.00033073092345148325,
0.0032738090958446264,
-0.00918558333069086,
-0.01563861407339573,
-0.011182448826730251,
0.025118472054600716,
-0.03941182792186737,
0.018097911030054092,
-0.020840974524617195,
-0.012285980395972729,
0.005215498618781567,
-0.04708399623632431,
-0.001173815573565662,
-0.0005941332783550024,
0.01605900563299656,
-0.05990597978234291,
-0.045864857733249664,
0.008423621766269207,
-0.04851333424448967,
-0.038339827209711075,
-0.010720017366111279,
0.005691067781299353,
-0.03730986267328262,
0.004619066137820482,
0.005236518103629351,
0.047840703278779984,
-0.04283802956342697,
-0.06394174695014954,
-0.020010698586702347,
0.03857104107737541,
0.0599900558590889,
0.048555370420217514,
0.03564931079745293,
-0.04256477579474449,
0.021082701161503792,
0.014566611498594284,
-0.034808527678251266,
0.022512035444378853,
0.036195822060108185,
0.06549720466136932,
0.015691163018345833,
-0.013673276640474796,
-0.04691584035754204,
-0.07991667836904526,
-0.060116175562143326,
-0.018129440024495125,
0.0021650230046361685,
-0.0025184156838804483,
0.012853510677814484,
0.05095161125063896,
0.024130549281835556,
0.039895281195640564,
0.014472023583948612,
-0.01695234142243862,
-0.008786209858953953,
-0.03232820704579353,
-0.011466214433312416,
-0.0882824957370758,
0.012916569598019123,
0.11140409857034683,
-0.0375831201672554,
0.007693188730627298,
-0.031193148344755173,
-0.020588738843798637,
0.05191851407289505,
0.024109529331326485,
-0.0009340603137388825,
0.0012486980995163321,
-0.009931780397891998,
-0.014356414787471294,
0.025938237085938454,
0.05679507181048393,
-0.057846054434776306,
0.03667927533388138,
0.029974007979035378,
0.057677894830703735,
-0.023962391540408134,
0.04439348354935646,
0.027346553280949593,
0.012727392837405205,
0.04754642769694328,
-0.04964839294552803,
0.037898413836956024,
0.04939615726470947,
0.026379650458693504,
0.012916569598019123,
-0.04023159295320511,
0.009700564667582512,
0.026800042018294334,
0.011287547647953033,
-0.0036074959207326174,
0.018423715606331825,
0.06360543519258499,
0.05322173237800598,
0.005764636676758528,
-0.061503469944000244,
0.00015296715719159693,
-0.009942290373146534,
-0.020809445530176163,
0.02289038896560669,
0.0006765697035007179,
0.03596460819244385,
0.03028930351138115,
-0.007031070068478584,
-0.004619066137820482,
-0.014219787903130054,
-0.00029394656303338706,
0.02900710515677929,
-0.009600721299648285,
0.01651092804968357,
0.0031292990315705538,
-0.004634831100702286,
0.01792975328862667,
-0.011718450114130974,
0.052549105137586594,
-0.0017420027870684862,
0.014934455044567585,
-0.01823453977704048,
-0.05347396805882454,
-0.032517384737730026,
-0.057846054434776306,
0.014335395768284798,
0.03331613168120384,
0.006043146830052137,
-0.008786209858953953,
0.029952989891171455,
0.01550198532640934,
-0.024971334263682365,
-0.01822402887046337,
0.04098829999566078,
0.040336690843105316,
0.035481154918670654,
-0.004503458272665739,
0.022974468767642975,
0.03901245445013046,
-0.05473514646291733,
0.005654283333569765,
-0.09349536150693893,
0.04098829999566078,
-0.03016318567097187,
-0.012454137206077576,
0.022280819714069366,
-0.0483451746404171,
-0.012695863842964172,
0.003822947386652231,
0.01920144259929657,
0.005123537499457598,
0.03630091995000839,
-0.02360505796968937,
-0.04468775913119316,
-0.028208358213305473,
-0.01209680363535881,
0.06843995302915573,
-0.01705743931233883,
0.03358938544988632,
-0.045738738030195236,
0.06806159764528275,
0.004075183067470789,
0.07016356289386749,
-0.014230296947062016,
-0.07953832298517227,
-0.009879231452941895,
-0.07768859714269638,
0.01635328121483326,
0.04742031171917915,
-0.042333558201789856,
0.02204960398375988,
0.05473514646291733,
0.01950622722506523,
0.008192405104637146,
0.013074217364192009,
0.008796719834208488,
0.05515553802251816,
-0.060116175562143326,
0.0347454659640789,
0.030814794823527336,
0.029259340837597847,
0.05902315303683281,
-0.02175532840192318,
0.017425281926989555,
0.039348769932985306,
0.011529273353517056,
0.0030557303689420223,
0.03573339059948921,
-0.005412557628005743,
0.06297484785318375,
-0.016563476994633675,
0.005501891020685434,
0.015260259620845318,
-0.030688676983118057,
0.03695252910256386,
-0.03176067769527435,
0.007314835209399462,
-0.018013833090662956,
-0.03697355091571808,
0.03241228684782982,
0.01647939905524254,
0.07125658541917801,
0.013841433450579643,
0.017404263839125633,
0.02263815328478813,
0.034514252096414566,
-0.0056963227689266205,
0.0004900203784927726,
-0.05956966429948807,
-0.05679507181048393,
-0.009306446649134159,
0.008229189552366734,
0.024382784962654114,
-0.06810364127159119,
0.0063374219462275505,
0.040462810546159744,
0.003541809506714344,
0.09408391267061234,
-0.05465106666088104,
-0.009364250116050243,
-0.050152864307165146,
0.01472425926476717,
-0.06499273329973221,
0.06158754974603653,
0.023142624646425247,
0.029259340837597847,
0.0007291188230738044,
-0.022701213136315346,
-0.04027363285422325,
0.039348769932985306,
0.0033316132612526417,
0.07239164412021637,
-0.06709469854831696,
-0.017036419361829758,
0.020672816783189774,
0.0557861290872097,
-0.00391753576695919,
0.03625888004899025,
-0.04187112674117088,
0.020231405273079872,
0.024277685210108757,
-0.01350511983036995,
-0.0006667167763225734,
-0.015060572884976864,
-0.0599900558590889,
-0.022007564082741737,
-0.08323778212070465,
0.017824655398726463,
0.06398379057645798,
-0.022869369015097618,
0.03968508169054985,
0.042732931673526764,
0.03636397793889046,
0.04107237979769707,
0.04699992015957832,
-0.050993651151657104,
0.008313268423080444,
0.035754408687353134,
-0.046159133315086365,
-0.0480508990585804,
0.03884429857134819,
-0.023878313601017,
0.002341062529012561,
-0.04510815069079399,
0.03438813239336014,
0.023226704448461533,
-0.006573892664164305,
-0.0277459267526865,
-0.013893983326852322,
-0.020809445530176163,
0.04695788025856018,
-0.019422149285674095,
0.016248183324933052,
-0.03714170679450035,
0.026274552568793297,
-0.027661848813295364,
0.06335319578647614,
-0.06667429953813553,
-0.016752654686570168,
-0.040210574865341187,
-0.01117193978279829,
-0.016847243532538414,
0.0492280013859272,
-0.029637694358825684,
-0.06482457369565964,
-0.0006473392713814974,
0.07302223145961761,
0.007819307036697865,
0.00455863494426012,
-0.013673276640474796,
0.02673698402941227,
-0.025013374164700508,
-0.010136721655726433,
0.03968508169054985,
-0.02032599411904812,
-0.0015922378515824676,
-0.018844109028577805,
0.030919892713427544,
0.03558625280857086,
0.023226704448461533,
-0.07037375867366791,
0.013957042247056961,
0.05948558449745178,
-0.011287547647953033,
-0.023226704448461533,
-0.06663226336240768,
0.003003181191161275,
-0.020536189898848534,
-0.034514252096414566,
0.009789898060262203,
0.015554534271359444,
-0.0020572973880916834,
0.03573339059948921,
-0.02349996007978916,
0.00026077491929754615,
-0.09257049858570099,
-0.032096993178129196,
0.026211492717266083,
0.06810364127159119,
0.02474011853337288,
0.0044876933097839355,
0.0048345173709094524,
-0.0005980744608677924,
-0.0041461242362856865,
-0.028481613844633102,
-0.01222292147576809,
-0.0029112203046679497,
0.011529273353517056,
0.028923027217388153,
0.01808740198612213,
0.023373840376734734,
0.03028930351138115,
0.02747267112135887,
-0.039622023701667786,
-0.023857293650507927,
0.03579644858837128,
0.01977948285639286,
-0.006579147651791573,
-0.0313192643225193,
0.052422985434532166,
0.003063612850382924,
0.013273903168737888,
-0.011182448826730251,
-0.0028980830684304237,
-0.025286627933382988,
0.015859318897128105,
0.017299164086580276,
-0.0313192643225193,
0.005157694686204195,
0.04256477579474449,
-0.042438656091690063,
-0.020031718537211418,
0.0401264950633049,
0.0725177600979805,
-0.03630091995000839,
0.04847129434347153,
0.03573339059948921,
-0.02217572182416916,
-0.026800042018294334,
0.03602766618132591,
-0.04611709341406822,
-0.0821027159690857,
0.025370707735419273,
0.08243903517723083,
0.012927079573273659,
-0.05902315303683281,
-0.01778261736035347,
0.0024973961990326643,
-0.01936960034072399,
-0.01878104917705059,
-0.018612893298268318,
-0.022091643884778023,
0.005628008861094713,
0.050152864307165146,
-0.02119830809533596,
0.024845216423273087,
0.002296395832672715,
-0.037225786596536636,
-0.05305357649922371,
-0.032075971364974976,
-0.0694909319281578,
-0.04552854225039482,
-0.0367002934217453,
0.05423067510128021,
0.0031660834793001413,
0.017561910673975945,
0.0277459267526865,
-0.017540890723466873,
-0.002217572182416916,
-0.020714856684207916,
0.013189825229346752,
-0.018749520182609558,
-0.08609645068645477,
0.010898684151470661,
-0.00021249543351586908,
-0.025938237085938454,
-0.041597869247198105,
0.04435144364833832,
0.002771965228021145,
-0.0677252858877182,
-0.042165402323007584,
-0.010115702636539936,
0.021166779100894928,
0.059527624398469925,
0.008292248472571373,
0.05641671642661095,
0.0016106300754472613,
0.0344511941075325,
-0.060410451143980026,
0.0274516511708498,
-0.08643276244401932,
0.06310096383094788,
-0.013694296590983868,
-0.02204960398375988,
-0.01323186419904232,
-0.005822440609335899,
0.0918978750705719,
-0.007582835853099823,
-0.015039553865790367,
0.04969043284654617,
0.029931969940662384,
0.015302298590540886,
0.011739470064640045,
0.027241455391049385,
0.012927079573273659,
0.03951692581176758,
-0.006200794130563736,
0.05090957134962082,
-0.030331343412399292,
0.018402695655822754,
0.002299023326486349,
-0.03800351172685623,
0.02732553333044052,
-0.04313230514526367,
0.020420581102371216,
-0.029679734259843826,
0.006726285442709923,
-0.03417793661355972,
0.00003992500205640681,
0.05137200281023979,
-0.005257537588477135,
0.0414927713572979,
-0.019253991544246674,
-0.05423067510128021,
0.0007363443146459758,
0.014419473707675934,
0.045192230492830276,
-0.02419360727071762,
0.038339827209711075,
-0.028502633795142174,
-0.003836084622889757,
0.00015222818183247,
0.03897041454911232,
-0.008071542717516422,
-0.08529770374298096,
0.044183287769556046,
0.047294192016124725,
-0.025538863614201546,
-0.02303752675652504,
0.022448977455496788,
-0.019001755863428116,
-0.05814033001661301,
-0.013189825229346752,
-0.007493501994758844,
0.01591186784207821,
0.009022681042551994,
-0.05662691593170166,
-0.01500802394002676,
-0.007976953871548176,
0.06780936568975449,
-0.0187915600836277,
0.015333828516304493,
-0.014587631449103355,
0.001878630486316979,
-0.021566152572631836,
0.02190246619284153,
0.0543147549033165,
-0.0061377352103590965,
-0.011834057979285717,
-0.022133681923151016,
-0.027346553280949593,
-0.01130856666713953,
0.059233348816633224,
-0.010430997237563133,
0.05330581218004227,
0.0005872362526133657,
-0.049732472747564316,
0.07129862159490585,
-0.007572325877845287,
0.031193148344755173,
-0.01564912311732769,
-0.025812119245529175,
0.02459298074245453,
0.0219234861433506,
-0.028124280273914337,
0.006463539786636829,
0.011855077929794788,
0.013189825229346752,
0.008702131919562817,
0.011918136849999428,
-0.006022127345204353,
0.007908640429377556,
-0.021839408203959465,
-0.012695863842964172,
0.010793586261570454,
-0.04624320939183235,
0.056122440844774246,
0.01721508614718914,
0.015743711963295937,
0.009043700993061066,
-0.020840974524617195,
0.006694755982607603,
-0.046285249292850494,
0.031361304223537445,
0.003210750175639987,
0.04084116220474243,
0.012107313610613346,
0.0035812214482575655,
-0.0557861290872097,
0.08554994314908981,
-0.03600664436817169,
-0.010294369421899319,
0.006857657805085182,
-0.08042114973068237,
-0.09896047413349152,
-0.014062140136957169,
-0.0014713748823851347,
0.016153594478964806,
0.0691966563463211,
-0.028124280273914337,
0.018980735912919044,
0.027052277699112892,
-0.022533055394887924
] |
10,093 | torch.nn.modules.module | to_empty | Move the parameters and buffers to the specified device without copying storage.
Args:
device (:class:`torch.device`): The desired device of the parameters
and buffers in this module.
recurse (bool): Whether parameters and buffers of submodules should
be recursively moved to the specified device.
Returns:
Module: self
| def to_empty(self: T, *, device: Optional[DeviceLikeType], recurse: bool = True) -> T:
r"""Move the parameters and buffers to the specified device without copying storage.
Args:
device (:class:`torch.device`): The desired device of the parameters
and buffers in this module.
recurse (bool): Whether parameters and buffers of submodules should
be recursively moved to the specified device.
Returns:
Module: self
"""
return self._apply(lambda t: torch.empty_like(t, device=device), recurse=recurse)
| (self: ~T, *, device: Union[int, str, torch.device, NoneType], recurse: bool = True) -> ~T | [
0.013548626564443111,
-0.03353884071111679,
-0.020992830395698547,
-0.03364531323313713,
-0.06441586464643478,
-0.017754290252923965,
-0.02899601310491562,
-0.012226592749357224,
-0.023228753358125687,
-0.00615765992552042,
0.01407211646437645,
-0.04968716949224472,
-0.020070068538188934,
0.03290000557899475,
-0.007315548602491617,
0.028126487508416176,
0.00599795114248991,
0.04674143344163895,
0.013672844506800175,
0.012892046011984348,
0.04053053632378578,
0.03577476367354393,
-0.015562731772661209,
0.04116937145590782,
-0.07481468468904495,
-0.020566940307617188,
-0.018597198650240898,
0.02888954058289528,
-0.01111750490963459,
-0.034301891922950745,
0.03124968148767948,
-0.010487542487680912,
0.043263331055641174,
0.026032527908682823,
0.0068319858983159065,
0.012546010315418243,
-0.0058116246946156025,
0.09468955546617508,
-0.0944766104221344,
-0.051852110773324966,
0.013779317028820515,
-0.058985769748687744,
-0.003994937054812908,
0.0013386700302362442,
0.05337821692228317,
0.04819655418395996,
0.11648092418909073,
0.05497530475258827,
-0.0016702874563634396,
0.04652848839759827,
0.033663056790828705,
0.05181661993265152,
-0.0225544273853302,
0.02532271109521389,
-0.06505469977855682,
0.010150379501283169,
0.03059310093522072,
-0.033450111746788025,
-0.017062218859791756,
-0.013406663201749325,
-0.02329973503947258,
0.006321805063635111,
-0.0014318334870040417,
-0.028215214610099792,
0.00446297274902463,
-0.0032585023436695337,
-0.009001363068819046,
-0.003387156641110778,
-0.012643610127270222,
0.06949105858802795,
-0.06913615018129349,
-0.03203047811985016,
0.010753723792731762,
0.04319234937429428,
0.008193946443498135,
-0.03447934612631798,
0.019129561260342598,
0.02660038135945797,
-0.016405638307332993,
-0.06558706611394882,
-0.023228753358125687,
0.06157660111784935,
-0.05107131227850914,
0.01612171158194542,
-0.017683308571577072,
0.023654643446207047,
-0.0007835711003281176,
0.031267426908016205,
-0.0019963595550507307,
-0.055578649044036865,
-0.04010464623570442,
0.006082241889089346,
0.000422285491367802,
0.027061762288212776,
0.07488566637039185,
0.05327174440026283,
-0.0031143208034336567,
0.019431233406066895,
-0.07871867716312408,
-0.021099302917718887,
-0.026902053505182266,
-0.023211007937788963,
-0.05703377351164818,
0.014861787669360638,
0.014320552349090576,
-0.026831071823835373,
0.01582891307771206,
0.03928835690021515,
0.037513814866542816,
0.038897957652807236,
-0.07023636251688004,
0.08120303601026535,
-0.0127412099391222,
0.024062786251306534,
-0.0019253778737038374,
-0.03415992856025696,
-0.017496982589364052,
0.013335681520402431,
-0.008176201023161411,
-0.00610442366451025,
0.006894094869494438,
0.05330723524093628,
-0.038259122520685196,
-0.06721964478492737,
0.05806300789117813,
0.020229777321219444,
0.015154587104916573,
-0.008083038032054901,
0.005509952548891306,
-0.04904833436012268,
-0.04468296468257904,
0.01731952838599682,
-0.007697075139731169,
-0.008526673540472984,
-0.04798360913991928,
0.011126377619802952,
-0.006907403934746981,
-0.08042223751544952,
-0.048267535865306854,
0.01718643680214882,
0.006876349449157715,
-0.04120486229658127,
0.032704804092645645,
0.029173467308282852,
0.049651678651571274,
-0.05614650249481201,
0.028854049742221832,
-0.012483901344239712,
-0.04865793511271477,
-0.01729290932416916,
-0.059092242270708084,
0.013362299650907516,
0.07744100689888,
-0.0009316344512626529,
-0.027168234810233116,
0.04226958751678467,
0.0034226474817842245,
0.005328061990439892,
-0.027895797044038773,
-0.03694596141576767,
-0.014986005611717701,
-0.0009898616699501872,
0.01101103238761425,
0.06423841416835785,
-0.010460924357175827,
-0.04344078525900841,
-0.00818063784390688,
-0.04131133481860161,
-0.013663971796631813,
-0.024772603064775467,
0.021933337673544884,
-0.0072268215008080006,
0.09312795847654343,
-0.01231531985104084,
-0.023920824751257896,
0.07502762973308563,
-0.021613920107483864,
-0.07829278707504272,
0.01154339499771595,
-0.016512110829353333,
0.014480261132121086,
0.03364531323313713,
0.06512568145990372,
0.041772715747356415,
0.02558889240026474,
0.021028321236371994,
-0.02015879563987255,
-0.008863836526870728,
-0.010460924357175827,
-0.003946137614548206,
0.05625297501683235,
0.03918188437819481,
0.014533497393131256,
0.026298709213733673,
0.013477644883096218,
0.02665361762046814,
0.012537137605249882,
0.001784523599781096,
0.00722238514572382,
0.031178699806332588,
-0.04720281437039375,
-0.05859537050127983,
0.053342726081609726,
-0.012386301532387733,
-0.05667886510491371,
0.04319234937429428,
0.022483445703983307,
0.02159617468714714,
-0.037513814866542816,
0.007710384204983711,
-0.008229437284171581,
-0.0036622106563299894,
0.04677692428231239,
-0.01300739124417305,
0.016103966161608696,
-0.0376557782292366,
-0.012732337228953838,
0.014302806928753853,
-0.0065436228178441525,
0.003755374113097787,
-0.03353884071111679,
-0.011135250329971313,
-0.03447934612631798,
-0.012137865647673607,
-0.015340914018452168,
0.029776811599731445,
-0.05121327564120293,
-0.09263108670711517,
-0.027682851999998093,
-0.0249500572681427,
0.07179795950651169,
-0.04702536016702652,
-0.05667886510491371,
-0.017381636425852776,
0.009804343804717064,
-0.012723464518785477,
-0.0026462855748832226,
-0.039004430174827576,
-0.022643154487013817,
-0.048906370997428894,
0.014267316088080406,
-0.04688339680433273,
-0.007342166732996702,
0.004844499286264181,
-0.005186098627746105,
0.012466155923902988,
-0.012483901344239712,
-0.021880101412534714,
0.03801068663597107,
-0.0032562841661274433,
-0.026990780606865883,
0.005350243765860796,
0.005155044142156839,
0.0214897021651268,
0.009342962875962257,
-0.069597527384758,
0.0002369290596107021,
-0.003462574677541852,
-0.022536681964993477,
0.016884764656424522,
-0.012821064330637455,
-0.03369854763150215,
-0.009706743992865086,
-0.011614376679062843,
0.05057444050908089,
0.009227617643773556,
-0.062250927090644836,
0.023122280836105347,
-0.01925377920269966,
0.03705243393778801,
-0.06416743248701096,
0.02079763077199459,
0.03087702766060829,
0.003404902061447501,
0.022039810195565224,
0.038897957652807236,
0.007355475798249245,
0.026831071823835373,
0.05298781767487526,
0.01284768246114254,
-0.004312136676162481,
-0.0664033517241478,
-0.026422927156090736,
-0.0054700253531336784,
-0.027310198172926903,
0.005248207598924637,
-0.007470821030437946,
0.03529563546180725,
0.02180911973118782,
0.0036533379461616278,
0.00510624423623085,
0.06083129346370697,
-0.0009100072202272713,
0.045286308974027634,
-0.021773628890514374,
-0.0039017738308757544,
-0.09383777529001236,
0.00489329919219017,
0.08056420087814331,
-0.044647473841905594,
0.03156910091638565,
-0.03744283318519592,
-0.04887088015675545,
0.03556181862950325,
0.04184369742870331,
0.04926127940416336,
0.02819746918976307,
0.03790421411395073,
0.0073066758923232555,
0.03245636820793152,
-0.0022891589906066656,
0.006228641606867313,
0.03130291774868965,
0.012022520415484905,
0.07144305109977722,
-0.03460356593132019,
0.07254327088594437,
0.01692025549709797,
0.03277578577399254,
0.03162233531475067,
-0.03982071951031685,
0.03332589566707611,
-0.01338004507124424,
0.0365910530090332,
-0.027381179854273796,
-0.03229666128754616,
0.06750357151031494,
0.022430209442973137,
-0.033822767436504364,
0.034195419400930405,
-0.02218177355825901,
0.02739892527461052,
-0.006170968990772963,
-0.026139000430703163,
-0.05181661993265152,
0.022749627009034157,
-0.025997037068009377,
-0.0025753038935363293,
0.002003014087677002,
0.008930381387472153,
0.0424470417201519,
0.008983617648482323,
-0.020247522741556168,
-0.008353655226528645,
0.016982365399599075,
-0.001343106385320425,
0.04255351424217224,
0.011623249389231205,
0.033982474356889725,
0.03529563546180725,
0.022572172805666924,
0.07453075796365738,
0.041879188269376755,
0.015536113642156124,
0.07573744654655457,
-0.030238192528486252,
-0.041133880615234375,
0.06675826013088226,
-0.04833851754665375,
-0.021134793758392334,
0.04982913285493851,
0.07992536574602127,
-0.03628937900066376,
-0.006020132917910814,
0.06416743248701096,
-0.009884198196232319,
-0.07367897778749466,
0.0047557721845805645,
-0.003276247764006257,
-0.011800703592598438,
-0.009396199136972427,
-0.04862244427204132,
0.020815376192331314,
-0.016024112701416016,
0.007772493176162243,
0.0365910530090332,
-0.06494823098182678,
0.03288225829601288,
-0.008517800830304623,
0.027381179854273796,
0.040920935571193695,
0.0014950515469536185,
0.05540119484066963,
-0.057921044528484344,
-0.007728129625320435,
0.03769126906991005,
0.04056602716445923,
-0.013131609186530113,
-0.004052609670907259,
-0.005359116476029158,
-0.014347170479595661,
0.03680399805307388,
-0.050184041261672974,
0.04003366455435753,
-0.03210145980119705,
0.08957887440919876,
-0.02617449127137661,
-0.004804572090506554,
-0.05838242545723915,
-0.050609931349754333,
0.06381252408027649,
-0.09362483024597168,
0.013619608245790005,
0.04223409667611122,
0.014320552349090576,
-0.04872891679406166,
0.04383118450641632,
-0.03006073832511902,
-0.004551699850708246,
-0.0023645770270377398,
0.06455782800912857,
0.012723464518785477,
-0.04237606003880501,
0.08219677954912186,
0.05795653536915779,
-0.021081557497382164,
0.08453917503356934,
0.03077055513858795,
0.021259011700749397,
0.013415535911917686,
-0.011392558924853802,
0.01978614181280136,
0.014134225435554981,
0.007985438220202923,
0.05692730098962784,
0.010673869401216507,
0.013548626564443111,
-0.05550766736268997,
-0.01818905398249626,
-0.02239471860229969,
-0.06516117602586746,
-0.02415151335299015,
-0.027700597420334816,
0.004640426952391863,
0.011658740229904652,
0.008739618584513664,
0.05646592006087303,
-0.013841425999999046,
-0.01090455986559391,
0.041666243225336075,
0.010718232952058315,
-0.03566829115152359,
0.03431963920593262,
-0.05437196046113968,
-0.03829461336135864,
0.04035308212041855,
-0.00033244933001697063,
0.08368739485740662,
-0.05710475519299507,
0.023477189242839813,
0.07559548318386078,
-0.013983389362692833,
0.0674680769443512,
-0.04195016995072365,
-0.035898979753255844,
-0.0785767138004303,
0.0016026330413296819,
-0.010869069024920464,
0.028907286003232002,
-0.041985660791397095,
-0.009378453716635704,
0.04713183268904686,
0.0019353596726432443,
-0.026085764169692993,
0.043369803577661514,
0.043795693665742874,
0.03872050344944,
-0.039749737828969955,
0.018863379955291748,
-0.02122352086007595,
0.033663056790828705,
-0.015660332515835762,
0.018845634534955025,
-0.021418720483779907,
0.03375178575515747,
-0.018126944079995155,
0.010895687155425549,
-0.0075728571973741055,
-0.006548059172928333,
-0.054300978779792786,
-0.021454211324453354,
-0.0499001145362854,
0.028747577220201492,
0.02117028459906578,
-0.011516776867210865,
0.03850755840539932,
0.0230867899954319,
-0.018224544823169708,
-0.0058116246946156025,
0.02691979892551899,
-0.05380410701036453,
-0.0017823054222390056,
-0.024541912600398064,
-0.050290513783693314,
-0.03511818125844002,
0.01904083415865898,
-0.02505652979016304,
0.007515184581279755,
0.016130585223436356,
-0.053449198603630066,
0.009236490353941917,
0.02026526816189289,
-0.011090886779129505,
-0.04674143344163895,
-0.049651678651571274,
-0.008544418960809708,
-0.02260766364634037,
0.0028791942168027163,
-0.02660038135945797,
0.028800813481211662,
0.00978659838438034,
0.04163075238466263,
-0.05774359032511711,
0.020992830395698547,
0.0024266859982162714,
0.022998062893748283,
-0.03463905677199364,
-0.0002574471873231232,
0.01824229024350643,
-0.09284403175115585,
0.019005343317985535,
0.07027185708284378,
0.030397901311516762,
0.00827380083501339,
-0.011481286026537418,
-0.007186894305050373,
-0.01476418785750866,
0.004667045082896948,
0.03075280971825123,
-0.023654643446207047,
0.01782527193427086,
-0.02404504083096981,
-0.008681945502758026,
0.04592514410614967,
0.01737276464700699,
-0.06636786460876465,
0.009910816326737404,
-0.0020906319841742516,
-0.03447934612631798,
-0.004556136205792427,
-0.03854304924607277,
-0.013344554230570793,
0.03268706053495407,
-0.07250777631998062,
-0.04180820658802986,
0.03691047057509422,
-0.021738138049840927,
0.05171014741063118,
-0.06398997455835342,
-0.007430893834680319,
-0.08439721167087555,
-0.0795704573392868,
-0.015704695135354996,
0.0429794043302536,
0.004968717228621244,
0.0006404987070709467,
-0.019431233406066895,
0.005656352266669273,
0.02234148234128952,
0.0028126488905400038,
-0.026156745851039886,
0.05604002997279167,
0.010061652399599552,
0.02777157910168171,
0.05554315820336342,
-0.006339550483971834,
-0.03573927283287048,
0.05124876648187637,
-0.040175627917051315,
0.03572152554988861,
0.03277578577399254,
-0.007067112717777491,
-0.028960522264242172,
0.007896711118519306,
0.05160367488861084,
0.010434306226670742,
0.015864403918385506,
0.06562255322933197,
-0.0361296720802784,
-0.031267426908016205,
0.021418720483779907,
-0.016911383718252182,
-0.0013042882783338428,
-0.03204822540283203,
0.009183254092931747,
-0.06402546912431717,
0.012164483778178692,
0.004711408633738756,
0.013016263954341412,
-0.04503787308931351,
0.05341370776295662,
0.049332261085510254,
0.027327943593263626,
-0.014187461696565151,
0.006827549543231726,
0.00421675480902195,
-0.05100033059716225,
0.014799678698182106,
0.05394607037305832,
0.004130246117711067,
-0.02798452414572239,
0.02936866693198681,
0.029883284121751785,
0.0033383567351847887,
0.009671253152191639,
-0.03754930570721626,
-0.052065055817365646,
0.04344078525900841,
0.04258900508284569,
-0.03252734988927841,
0.0198926143348217,
0.0016203784616664052,
-0.01801159977912903,
0.003537992713972926,
-0.038791485130786896,
-0.05295232683420181,
-0.036874979734420776,
-0.03850755840539932,
0.03754930570721626,
-0.016751674935221672,
-0.008411328308284283,
-0.01101103238761425,
-0.0652676448225975,
-0.016645202413201332,
-0.06867476552724838,
0.02638743631541729,
-0.030255937948822975,
0.00885939970612526,
0.0016736147226765752,
0.06828437000513077,
0.01204913854598999,
-0.07229483127593994,
-0.039856210350990295,
0.05348468944430351,
-0.043476276099681854,
-0.055259231477975845,
-0.045073363929986954,
-0.014586733654141426,
0.04766419529914856,
0.0658000111579895,
0.04354725778102875,
-0.03098350018262863,
0.04077897220849991,
-0.028694340959191322,
-0.03327265754342079,
-0.09596721827983856,
0.02303355373442173,
-0.012750082649290562,
-0.04216311499476433,
-0.004298827610909939,
-0.037194397300481796,
0.026245472952723503,
-0.008952563628554344,
-0.03914639353752136,
0.01598862186074257,
0.016157202422618866,
0.052490945905447006,
-0.01786963641643524,
0.0286765955388546,
0.00605118740350008,
0.0037997376639395952,
-0.007164712529629469,
0.048799898475408554,
0.0042544640600681305,
0.055259231477975845,
0.020868612453341484,
-0.004048173315823078,
-0.01967966929078102,
-0.021613920107483864,
-0.008145147003233433,
-0.06601295620203018,
0.018792398273944855,
-0.062144454568624496,
-0.014648842625319958,
-0.03495847433805466,
-0.015110223554074764,
0.009263108484447002,
0.01204913854598999,
-0.013566371984779835,
0.033183932304382324,
0.02947513945400715,
-0.018224544823169708,
0.007448639255017042,
0.03075280971825123,
-0.03172880783677101,
0.022199518978595734,
-0.018437489867210388,
0.00012172247807029635,
-0.00017357237811665982,
-0.07389192283153534,
0.07474370300769806,
-0.01801159977912903,
0.04649299755692482,
-0.010247979313135147,
-0.028534632176160812,
0.03474552929401398,
-0.036981452256441116,
-0.03064633719623089,
-0.012191101908683777,
0.004879990126937628,
0.008477873168885708,
-0.0015704694669693708,
-0.050503458827733994,
-0.011321577243506908,
0.004906608257442713,
-0.004476281814277172,
-0.002036286750808358,
0.023122280836105347,
-0.03304196894168854,
-0.002670685527846217,
0.04940324276685715,
0.055259231477975845,
-0.03808166831731796,
-0.03822363168001175,
-0.0048622447066009045,
-0.012013647705316544,
-0.011907176114618778,
-0.006934022065252066,
0.00802092906087637,
0.02532271109521389,
-0.002883630571886897,
-0.04493140056729317,
0.03882697597146034,
0.013557499274611473,
0.06824887543916702,
0.005132862366735935,
-0.029776811599731445,
-0.02846365049481392,
0.07978340238332748,
-0.013637353666126728,
-0.002872539684176445,
-0.007093730848282576,
-0.030735064297914505,
0.007027185522019863,
0.08226776123046875,
0.0024333405308425426,
0.010256852023303509,
0.0376557782292366,
-0.022998062893748283,
0.01290091872215271,
-0.06296074390411377,
0.010487542487680912,
0.026263218373060226,
0.043795693665742874,
0.014852914959192276,
0.002355704316869378,
-0.0008467891602776945,
0.026795580983161926,
-0.010523033328354359,
0.01957319676876068,
0.003531338181346655,
-0.0067521315068006516,
0.05639493837952614,
0.004179046023637056,
0.04525081813335419,
0.00579831562936306,
-0.0493677519261837,
0.00016123376553878188,
-0.04074348136782646,
-0.06601295620203018,
-0.031001245602965355,
-0.025233983993530273,
0.026635872200131416,
0.03527789190411568,
-0.024116022512316704,
0.04280195012688637,
0.06076031178236008,
-0.02798452414572239
] |
10,094 | sentence_transformers.SentenceTransformer | tokenize |
Tokenizes the texts
| def tokenize(self, texts: Union[List[str], List[Dict], List[Tuple[str, str]]]):
"""
Tokenizes the texts
"""
kwargs = {}
# HPU models reach optimal performance if the padding is not dynamic
if self.device.type == "hpu":
kwargs["padding"] = "max_length"
try:
return self._first_module().tokenize(texts, **kwargs)
except TypeError:
# In case some Module does not allow for kwargs in tokenize, we also try without any
return self._first_module().tokenize(texts)
| (self, texts: Union[List[str], List[Dict], List[Tuple[str, str]]]) | [
0.02462334930896759,
-0.04375041648745537,
0.039280105382204056,
-0.01698351465165615,
-0.010442937724292278,
0.04085570573806763,
-0.002663407241925597,
-0.03829077258706093,
0.05664835870265961,
0.0009463912574574351,
0.057124704122543335,
0.012155946344137192,
-0.020116396248340607,
-0.06082553416490555,
0.012366637587547302,
-0.02911197952926159,
-0.040525928139686584,
-0.00436267489567399,
0.00864290539175272,
-0.025631001219153404,
-0.03515789285302162,
0.013859794475138187,
-0.016891909763216972,
-0.002972573274746537,
0.029295189306139946,
-0.03598233312368393,
0.014766681008040905,
-0.02224162593483925,
-0.009055126458406448,
-0.005995528772473335,
-0.007328377570956945,
0.044666461646556854,
-0.04957647621631622,
-0.011065850034356117,
-0.020794272422790527,
-0.054229993373155594,
-0.0012080372544005513,
0.006535996682941914,
-0.030009707435965538,
-0.06731114536523819,
-0.049356624484062195,
-0.04041600227355957,
0.04536265879869461,
0.017936203628778458,
-0.09636816382408142,
-0.008491757325828075,
-0.015380432829260826,
0.033014342188835144,
-0.013841473497450352,
0.005010778084397316,
0.0013156727654859424,
-0.02808600664138794,
-0.0321715772151947,
-0.015160581097006798,
-0.004303131718188524,
-0.0037374726962298155,
0.007525327615439892,
-0.0408923476934433,
0.000002571909817561391,
-0.038840401917696,
0.019695015624165535,
0.0002042498963419348,
0.07636169344186783,
0.05851709470152855,
-0.01749650202691555,
0.0063848490826785564,
0.01495905127376318,
0.03891368582844734,
0.01024140790104866,
0.01629647985100746,
0.01796368509531021,
-0.04506952315568924,
-0.02509969286620617,
0.04301757737994194,
0.0019866772927343845,
-0.005876442883163691,
-0.00798335112631321,
0.04609549418091774,
0.013181919232010841,
-0.006073392927646637,
-0.024605028331279755,
0.04070913791656494,
-0.012659772299230099,
-0.0038244971074163914,
0.06514927744865417,
-0.04561915248632431,
-0.05159178003668785,
0.02022632211446762,
-0.00032004399690777063,
-0.04378705471754074,
-0.037026628851890564,
-0.0017485051648691297,
0.02176528237760067,
0.04543594270944595,
-0.07592198997735977,
0.004690161906182766,
-0.012073501944541931,
-0.015169741585850716,
-0.06731114536523819,
0.022204983979463577,
0.01474836003035307,
0.03153034672141075,
-0.0352494977414608,
-0.04767109826207161,
0.021050764247775078,
-0.05404678359627724,
-0.044703103601932526,
0.006311565171927214,
0.024605028331279755,
0.015783492475748062,
0.008074956014752388,
-0.004873371217399836,
0.08464276045560837,
0.026876825839281082,
0.04767109826207161,
-0.021948490291833878,
-0.05734455585479736,
-0.021618714556097984,
-0.028782203793525696,
-0.002009578514844179,
-0.012897945009171963,
0.008734510280191898,
0.0003658463538158685,
-0.03590904921293259,
-0.031053999438881874,
0.02931351028382778,
0.06324389576911926,
-0.016708701848983765,
0.05005281791090965,
-0.03145706281065941,
-0.0005779685452580452,
0.001881331903859973,
0.047304678708314896,
-0.023505771532654762,
-0.01699267514050007,
-0.013795671053230762,
-0.007845944724977016,
0.0390968956053257,
-0.009201694279909134,
-0.030650939792394638,
0.025631001219153404,
0.0088123744353652,
-0.018110252916812897,
0.023249277845025063,
-0.07170817255973816,
0.04528937488794327,
-0.002727530663833022,
-0.03277616947889328,
0.04360384866595268,
0.02035456895828247,
0.008546720258891582,
-0.03851062431931496,
0.01587509736418724,
0.011065850034356117,
-0.013612461276352406,
0.004923753906041384,
-0.026217270642518997,
-0.000041973569750553,
-0.01474836003035307,
0.04950319230556488,
0.008510078303515911,
-0.04188167676329613,
0.012604809366166592,
0.021820245310664177,
0.02834250032901764,
0.029185263440012932,
0.037704501301050186,
-0.01290710549801588,
-0.027206601575016975,
0.027389811351895332,
0.07965946197509766,
-0.0029794436413794756,
-0.0008427634020335972,
0.008940620347857475,
-0.03164026886224747,
-0.03123720921576023,
-0.033399082720279694,
0.02484320104122162,
-0.034076955169439316,
0.01788124069571495,
-0.034681547433137894,
0.025667643174529076,
-0.050126101821660995,
-0.03316091001033783,
0.01899881847202778,
0.042651157826185226,
0.027078354731202126,
0.010845999233424664,
0.010745233856141567,
-0.044190116226673126,
0.010094840079545975,
-0.05617201328277588,
0.021582072600722313,
0.006957378704100847,
-0.013493374921381474,
0.027518058195710182,
0.011725404299795628,
-0.02407371997833252,
-0.009600174613296986,
-0.030321162194013596,
-0.004582526162266731,
0.015609444119036198,
0.01881561055779457,
-0.027041712775826454,
-0.023780586197972298,
0.023230956867337227,
0.0006269197911024094,
0.0879405289888382,
-0.06342710554599762,
-0.01770719327032566,
0.01566440798342228,
-0.04554586857557297,
0.009055126458406448,
0.12084494531154633,
0.02150878868997097,
0.037960994988679886,
0.036037296056747437,
0.02911197952926159,
0.0038038860075175762,
-0.05496283248066902,
0.08405648916959763,
0.0419183187186718,
-0.031512025743722916,
-0.0715249627828598,
0.04953983426094055,
-0.04455653578042984,
0.027811193838715553,
0.020556099712848663,
0.024989767000079155,
0.007076464593410492,
0.05019938573241234,
-0.03206165134906769,
-0.03244639188051224,
0.04664512351155281,
-0.01932859607040882,
-0.03261128067970276,
0.08097857236862183,
-0.10039877146482468,
0.018852250650525093,
-0.05957971140742302,
-0.010763554833829403,
-0.017212526872754097,
-0.035267818719148636,
-0.003730602329596877,
0.014070484787225723,
0.05807739123702049,
-0.038437340408563614,
-0.01681862585246563,
0.032886095345020294,
-0.007456624414771795,
-0.003267998341470957,
0.04426340013742447,
-0.006000109016895294,
-0.010406296700239182,
-0.02009807527065277,
0.048550501465797424,
0.07291735708713531,
0.018513314425945282,
0.04638862982392311,
-0.01797284558415413,
0.02616230770945549,
-0.021032443270087242,
-0.05749112367630005,
0.026180628687143326,
0.04008622467517853,
-0.016268998384475708,
0.026950109750032425,
0.04609549418091774,
-0.10545535385608673,
-0.02889212965965271,
-0.03887704387307167,
0.020556099712848663,
0.0013294134987518191,
-0.022644687443971634,
-0.00708562508225441,
0.024385176599025726,
-0.0005805449327453971,
0.020647704601287842,
-0.02368898130953312,
0.025539396330714226,
0.042614515870809555,
-0.03261128067970276,
-0.07170817255973816,
-0.06405001878738403,
0.03810756281018257,
0.015462877228856087,
0.000916619726922363,
-0.03464490547776222,
-0.03774114325642586,
-0.054266635328531265,
0.009600174613296986,
0.00811159797012806,
0.03438841179013252,
0.015911739319562912,
0.03257463872432709,
-0.001730184187181294,
0.030229557305574417,
0.006091713905334473,
0.020024791359901428,
-0.09241084009408951,
-0.06027590483427048,
0.027005070820450783,
0.006151257082819939,
-0.027426453307271004,
0.026363838464021683,
-0.01920034922659397,
-0.005065741017460823,
0.005340555217117071,
0.05335059016942978,
-0.04895356297492981,
-0.039756447076797485,
0.0024893581867218018,
0.05617201328277588,
0.01322772167623043,
-0.05734455585479736,
0.04924669861793518,
0.02936847321689129,
0.0628041997551918,
0.004083280451595783,
0.0375579372048378,
0.04924669861793518,
-0.04785430431365967,
-0.017597267404198647,
-0.023579055443406105,
0.0316585898399353,
-0.035524312406778336,
0.04862378537654877,
-0.058407168835401535,
-0.001382086193189025,
0.041808392852544785,
-0.019914865493774414,
0.017001835629343987,
0.04536265879869461,
-0.029478399083018303,
-0.0077634998597204685,
0.03312426805496216,
0.019511805847287178,
0.01754230447113514,
-0.010708591900765896,
-0.05569567158818245,
-0.008308548480272293,
-0.1083134189248085,
-0.02880052477121353,
0.05804074928164482,
-0.008230684325098991,
0.03554263338446617,
0.04591228440403938,
0.001881331903859973,
0.06815391033887863,
0.04763445630669594,
0.021435504779219627,
0.0035496829077601433,
0.07936633378267288,
-0.018165215849876404,
0.034223522990942,
-0.052214689552783966,
-0.04953983426094055,
0.06159501522779465,
0.009975753724575043,
-0.04609549418091774,
0.02291950024664402,
0.023102710023522377,
0.049869608134031296,
0.026437122374773026,
0.010708591900765896,
-0.06199807673692703,
-0.01993318647146225,
0.049613118171691895,
0.011478071101009846,
0.006110034883022308,
0.01077271532267332,
-0.010149803012609482,
0.000035872551961801946,
-0.011038368567824364,
0.0060413312166929245,
0.06269427388906479,
-0.007186390459537506,
-0.003426016541197896,
-0.04891692101955414,
0.059176649898290634,
-0.056355223059654236,
0.008125338703393936,
0.08559545129537582,
-0.0012240681098774076,
0.003513040952384472,
0.059762921184301376,
-0.025594359263777733,
-0.05049252137541771,
0.04734132066369057,
0.022333230823278427,
-0.009352842345833778,
0.014940730296075344,
-0.0689600333571434,
0.02850738912820816,
-0.043933622539043427,
0.05074901506304741,
-0.01399720087647438,
0.016534652560949326,
-0.053497157990932465,
-0.0005728157702833414,
-0.02760966308414936,
-0.04668176546692848,
-0.025759248062968254,
0.023780586197972298,
-0.03589072823524475,
0.050932224839925766,
-0.0008862756658345461,
0.026345517486333847,
-0.003464948618784547,
0.06053239852190018,
0.018036969006061554,
-0.017359094694256783,
0.038730476051568985,
-0.037026628851890564,
-0.02009807527065277,
0.03349068760871887,
-0.007905486971139908,
0.08735426515340805,
-0.000071816670242697,
0.0006967684021219611,
0.014757520519196987,
-0.004190916195511818,
-0.014180410653352737,
0.017551464959979057,
0.014436904340982437,
0.0403793603181839,
-0.0010666224407032132,
-0.06361031532287598,
0.03046773001551628,
-0.07584870606660843,
-0.01817437633872032,
0.025411149486899376,
-0.049100130796432495,
-0.006366528104990721,
0.039499957114458084,
0.02411036193370819,
-0.028287537395954132,
-0.006201639771461487,
0.010177284479141235,
-0.05639186501502991,
0.010168123990297318,
-0.01256816741079092,
0.038693834096193314,
0.05624529719352722,
0.06800734251737595,
-0.011652120389044285,
-0.055842239409685135,
0.039280105382204056,
-0.0751158744096756,
-0.0019385849591344595,
0.046755049377679825,
0.04924669861793518,
0.007030662149190903,
0.03502964600920677,
0.05573231354355812,
-0.019658373668789864,
0.05873694643378258,
0.03167691081762314,
0.05133528634905815,
0.06987608224153519,
0.006458132993429899,
0.018036969006061554,
0.01600334420800209,
0.015325469896197319,
0.0041245026513934135,
0.06606532633304596,
-0.01958508975803852,
0.021710319444537163,
0.013942238874733448,
-0.004481760784983635,
0.01822017878293991,
0.017001835629343987,
-0.029386794194579124,
0.010708591900765896,
-0.0061008743941783905,
0.01834842562675476,
0.03153034672141075,
-0.04528937488794327,
-0.038767118006944656,
-0.051152076572179794,
0.03131049498915672,
-0.030962396413087845,
0.004117632284760475,
-0.015948381274938583,
-0.048806995153427124,
-0.007644413970410824,
0.03840069845318794,
-0.03709991276264191,
0.015343790873885155,
-0.0008416183991357684,
0.0031328813638538122,
-0.021820245310664177,
0.008496337570250034,
0.03673349320888519,
-0.03004634752869606,
0.01301703043282032,
-0.022076737135648727,
-0.015297988429665565,
-0.03578080236911774,
0.010259728878736496,
0.005029099062085152,
0.03162194788455963,
0.03920682147145271,
-0.0707554891705513,
0.016232356429100037,
0.018119413405656815,
0.004497791640460491,
-0.005106963217258453,
-0.04741460457444191,
-0.04015950858592987,
-0.0630606934428215,
-0.05228797346353531,
-0.014858285896480083,
0.020849235355854034,
0.020336247980594635,
-0.014904088340699673,
0.0021721769589930773,
-0.009137570858001709,
-0.033014342188835144,
0.017514823004603386,
-0.052214689552783966,
0.005725294817239046,
-0.036092258989810944,
-0.03244639188051224,
0.031182246282696724,
-0.0015297988429665565,
-0.06745771318674088,
0.007016921415925026,
0.04792758822441101,
-0.002835166174918413,
-0.019108744338154793,
-0.01996982842683792,
-0.050675731152296066,
-0.012577327899634838,
-0.0034786893520504236,
-0.05250782519578934,
-0.01397888083010912,
-0.0027824933640658855,
0.07196466624736786,
0.06170494109392166,
-0.05910336598753929,
-0.01073607336729765,
-0.0362754687666893,
-0.02224162593483925,
-0.01789040118455887,
-0.0035405224189162254,
0.005349715705960989,
0.018669042736291885,
-0.011304022744297981,
0.042321380227804184,
-0.039719805121421814,
-0.051188718527555466,
-0.02249811962246895,
-0.0013374289264902472,
0.005862702149897814,
-0.010104000568389893,
0.012897945009171963,
-0.009554372169077396,
-0.020153038203716278,
0.030632618814706802,
0.014849125407636166,
-0.003622966818511486,
-0.022424835711717606,
-0.023322561755776405,
0.0037901452742516994,
-0.0009349407046101987,
-0.037704501301050186,
0.012449081987142563,
-0.05679492652416229,
0.007795561570674181,
0.023835549131035805,
-0.012000218033790588,
-0.00030286810942925513,
-0.011432269588112831,
0.0016122431261464953,
0.025154655799269676,
-0.006293244194239378,
0.06547905504703522,
-0.04767109826207161,
-0.009073447436094284,
-0.010058198124170303,
0.0949757769703865,
-0.02154543064534664,
-0.01844003051519394,
0.06720121949911118,
0.006513095460832119,
0.02449510246515274,
-0.02244315668940544,
-0.058920156210660934,
0.02837914228439331,
-0.01011316105723381,
0.04503288120031357,
0.05364372581243515,
0.05096886679530144,
-0.026180628687143326,
0.048000872135162354,
-0.0401228666305542,
0.02612566575407982,
-0.05045587942004204,
-0.03774114325642586,
-0.04250459000468254,
0.015719370916485786,
-0.012714735232293606,
0.016488850116729736,
0.054523129016160965,
0.013878115452826023,
-0.024220287799835205,
0.040562570095062256,
0.017817117273807526,
-0.010442937724292278,
-0.0015091877430677414,
0.03297770023345947,
0.01925531215965748,
-0.0316585898399353,
0.04690161719918251,
0.039499957114458084,
0.01506897620856762,
0.031915083527565,
0.13916589319705963,
-0.020940838381648064,
0.049356624484062195,
0.017395736649632454,
-0.07027914375066757,
0.010461258701980114,
0.011560515500605106,
0.05576895549893379,
-0.04616877809166908,
-0.073063924908638,
-0.0017439249204471707,
-0.00253974087536335,
-0.0115055525675416,
-0.012302514165639877,
0.06899667531251907,
-0.005784837994724512,
-0.02821425348520279,
0.05368036776781082,
-0.0640866607427597,
-0.034883078187704086,
-0.01101088710129261,
-0.056062087416648865,
-0.04844057559967041,
-0.018293462693691254,
-0.008129918947815895,
-0.01309947483241558,
-0.0015412494540214539,
-0.05199483782052994,
-0.06379352509975433,
0.018577437847852707,
0.07438303530216217,
0.04195496067404747,
-0.00427794037386775,
0.024898163974285126,
0.01830262318253517,
-0.03202500939369202,
0.011029208078980446,
-0.016113270074129105,
-0.046242062002420425,
-0.03512125089764595,
0.0337105356156826,
-0.0403793603181839,
-0.01154219452291727,
-0.0012904815375804901,
0.057417839765548706,
0.040012940764427185,
-0.021582072600722313,
-0.011377306655049324,
-0.0040054162964224815,
0.02940511517226696,
0.03453497961163521,
-0.02125229500234127,
0.007186390459537506,
0.021179011091589928,
0.04873371124267578,
0.006105454638600349,
0.041368693113327026,
0.0687035396695137,
0.07936633378267288,
-0.02616230770945549,
0.034425053745508194,
0.010754394344985485,
-0.026785220950841904,
-0.013530016876757145,
0.008423053659498692,
-0.033307477831840515,
-0.09849339723587036,
0.004087860696017742,
-0.025301223620772362,
0.03059597685933113,
0.04924669861793518,
-0.015160581097006798,
-0.01608578860759735,
-0.0019202639814466238,
0.03197004646062851,
-0.001295061782002449,
-0.013475054875016212,
0.02607070282101631,
-0.00027066332404501736,
-0.09658801555633545,
-0.0011164324823766947,
0.03026619926095009,
-0.010003235191106796,
-0.02667529508471489,
-0.06339046359062195,
-0.051701705902814865,
-0.050382595509290695,
-0.008844436146318913,
-0.03008298948407173,
-0.003313800785690546,
-0.0038244971074163914,
-0.04660848155617714,
-0.006980279926210642,
-0.027243243530392647,
0.010342173278331757,
0.015169741585850716,
0.04378705471754074,
-0.03957324102520943,
0.044666461646556854,
0.05690485239028931,
0.050639089196920395,
0.002535160630941391,
0.028544031083583832,
0.0390968956053257,
0.03633043169975281,
0.03495636209845543,
-0.03931674733757973,
0.018797289580106735,
0.004023737274110317,
0.02009807527065277,
0.02684018388390541,
-0.03563423454761505,
0.021820245310664177,
0.03178683668375015,
-0.04437332600355148,
-0.031145604327321053,
-0.08222439885139465,
-0.06852032989263535,
0.02125229500234127,
-0.04506952315568924,
-0.05390021950006485,
-0.002448136219754815,
-0.0020542358979582787,
-0.03862055018544197,
-0.04173510894179344,
0.04642527177929878,
-0.0037328924518078566,
-0.011212417855858803,
0.04279772564768791,
0.011413948610424995,
0.027664626017212868,
0.024018757045269012,
0.012962068431079388,
0.00992079172283411,
-0.012714735232293606,
-0.03589072823524475,
0.022040095180273056,
0.0864015743136406,
0.011817009188234806,
-0.05679492652416229,
-0.07167153060436249,
-0.017679711803793907,
-0.014436904340982437,
0.012137625366449356,
0.00037557934410870075,
-0.014455225318670273,
0.027243243530392647,
-0.018421709537506104,
0.026620332151651382,
0.0008147094631567597
] |
10,095 | torch.nn.modules.module | train | Set the module in training mode.
This has any effect only on certain modules. See documentations of
particular modules for details of their behaviors in training/evaluation
mode, if they are affected, e.g. :class:`Dropout`, :class:`BatchNorm`,
etc.
Args:
mode (bool): whether to set training mode (``True``) or evaluation
mode (``False``). Default: ``True``.
Returns:
Module: self
| def train(self: T, mode: bool = True) -> T:
r"""Set the module in training mode.
This has any effect only on certain modules. See documentations of
particular modules for details of their behaviors in training/evaluation
mode, if they are affected, e.g. :class:`Dropout`, :class:`BatchNorm`,
etc.
Args:
mode (bool): whether to set training mode (``True``) or evaluation
mode (``False``). Default: ``True``.
Returns:
Module: self
"""
if not isinstance(mode, bool):
raise ValueError("training mode is expected to be boolean")
self.training = mode
for module in self.children():
module.train(mode)
return self
| (self: ~T, mode: bool = True) -> ~T | [
0.0097863944247365,
0.04512365162372589,
-0.015827490016818047,
-0.026937343180179596,
0.015845496207475662,
0.03257329761981964,
-0.01759210228919983,
-0.003216365585103631,
0.0023903290275484324,
0.003506716340780258,
-0.007468090392649174,
-0.02927815541625023,
0.028053730726242065,
0.06403020769357681,
0.027279462665319443,
-0.03748900443315506,
0.006509257946163416,
-0.004722137935459614,
-0.06093313544988632,
0.03475205600261688,
0.0077786981128156185,
0.02708139456808567,
-0.007949757389724255,
-0.027855662629008293,
0.011325928382575512,
0.013513687066733837,
0.04472751542925835,
-0.005154287908226252,
-0.004479053430259228,
0.01769113726913929,
0.012028172612190247,
0.009264213033020496,
-0.03318551182746887,
-0.030034417286515236,
0.0011220142478123307,
0.007342046592384577,
-0.057908087968826294,
0.06377812474966049,
-0.030034417286515236,
0.0019548030104488134,
-0.021121326833963394,
-0.06338198482990265,
-0.016358673572540283,
0.07166485488414764,
-0.06817165017127991,
-0.0032906413543969393,
0.062121547758579254,
0.0420265793800354,
0.020293038338422775,
-0.04011791571974754,
-0.029044074937701225,
0.011271909810602665,
0.0137297622859478,
0.0025028681848198175,
-0.02915211208164692,
0.011280912905931473,
-0.021985625848174095,
-0.019500764086842537,
0.018816526979207993,
-0.016772817820310593,
0.0097863944247365,
-0.04418732598423958,
-0.02762158028781414,
0.0355803407728672,
0.013216583989560604,
-0.010452625341713428,
-0.07908342778682709,
0.04487156495451927,
0.034698035567998886,
0.0303945429623127,
-0.020707182586193085,
-0.03979380428791046,
0.03835330531001091,
0.034121837466955185,
-0.012190228328108788,
0.037633053958415985,
-0.0765625536441803,
0.012928484007716179,
-0.02027503214776516,
0.0023700720630586147,
-0.008444929495453835,
0.07987570762634277,
-0.0014404996763914824,
0.017862195149064064,
-0.026685256510972977,
-0.014107893221080303,
-0.031222829595208168,
-0.0344279408454895,
0.044655490666627884,
-0.04940913990139961,
-0.025874976068735123,
0.010218544863164425,
0.0002861304965335876,
-0.059852760285139084,
-0.015206274576485157,
0.031402893364429474,
-0.00868801400065422,
-0.05657562240958214,
-0.07987570762634277,
-0.05012938752770424,
-0.02963828109204769,
0.06165338680148125,
0.028809992596507072,
0.015494374558329582,
-0.003902853699401021,
-0.016565745696425438,
-0.054558925330638885,
0.025730924680829048,
0.042386703193187714,
-0.016268642619252205,
-0.025784943252801895,
0.05466696247458458,
0.011496988125145435,
0.039541713893413544,
-0.04876091331243515,
-0.00882756244391203,
-0.026271112263202667,
-0.06575880944728851,
-0.02915211208164692,
-0.002923764055594802,
-0.009885428473353386,
0.059852760285139084,
-0.02088724449276924,
-0.047464463859796524,
0.04512365162372589,
-0.0034887101501226425,
0.0259650070220232,
-0.0005880164681002498,
0.050597552210092545,
-0.10573267191648483,
0.02519073709845543,
0.034247878938913345,
-0.006270674988627434,
-0.016151603311300278,
-0.03221317380666733,
-0.04235069081187248,
-0.046348076313734055,
0.041810501366853714,
-0.05153387412428856,
0.030646629631519318,
-0.034662023186683655,
-0.013981849886476994,
0.05527917295694351,
0.08189240843057632,
-0.02018500119447708,
-0.05196602642536163,
-0.06111319735646248,
-0.012217237614095211,
-0.01527829933911562,
0.044655490666627884,
0.032591305673122406,
-0.003605750622227788,
0.03694881498813629,
0.023011982440948486,
-0.03835330531001091,
0.01457605604082346,
-0.02180556394159794,
-0.012541349977254868,
0.04854483902454376,
-0.0045105647295713425,
-0.0048076678067445755,
0.03531024977564812,
-0.009939447976648808,
0.0450156144797802,
0.0015530387172475457,
-0.004429536405950785,
-0.0632019191980362,
-0.035076167434453964,
-0.014684093184769154,
0.027153419330716133,
0.07584230601787567,
-0.02704538032412529,
0.06626298278570175,
0.034499965608119965,
-0.0473204143345356,
0.00556393014267087,
0.017249982804059982,
0.011920134536921978,
0.014314965344965458,
0.06460641324520111,
0.0035359764005988836,
0.017772164195775986,
-0.03237523138523102,
-0.01973484456539154,
-0.008314384147524834,
-0.016934873536229134,
0.0011636536801233888,
0.006374211050570011,
0.005752995610237122,
-0.001841138582676649,
-0.0036575186531990767,
-0.015260293148458004,
-0.023029988631606102,
-0.0236602071672678,
-0.0643543228507042,
0.06381413340568542,
-0.03745299205183983,
-0.04454745352268219,
0.002532128244638443,
0.0672353208065033,
-0.016709795221686363,
0.03336557373404503,
0.04782458767294884,
0.020419083535671234,
-0.029620274901390076,
0.027711613103747368,
0.009615335613489151,
0.035526324063539505,
0.024344444274902344,
-0.005982575006783009,
0.027981705963611603,
-0.041846513748168945,
0.02551485039293766,
0.09039135277271271,
0.04537573829293251,
-0.006225659511983395,
-0.055711325258016586,
0.027981705963611603,
0.02196761965751648,
0.02340811863541603,
-0.05938459932804108,
0.031024761497974396,
-0.04461947828531265,
-0.007922748103737831,
-0.021535469219088554,
-0.00036603320040740073,
0.00037616174085997045,
-0.04764452576637268,
-0.04969723895192146,
-0.0016520729986950755,
0.021643508225679398,
0.03165498003363609,
-0.04037000238895416,
0.0063562048599123955,
0.03777710348367691,
0.004222464747726917,
0.049733251333236694,
0.051389824599027634,
-0.09197590500116348,
-0.049481164664030075,
0.053658612072467804,
-0.02225572057068348,
-0.018888551741838455,
-0.039289627224206924,
-0.06165338680148125,
0.06536266952753067,
-0.016232630237936974,
0.01164103765040636,
-0.019536776468157768,
-0.018690483644604683,
0.02266986295580864,
-0.013288609683513641,
-0.012964497320353985,
0.014558049850165844,
-0.06258971244096756,
-0.0012356785591691732,
0.016655776649713516,
0.0007934002205729485,
-0.036318596452474594,
0.014477021992206573,
0.00004888414332526736,
-0.03518420457839966,
-0.0301064420491457,
0.026001019403338432,
0.02848588116466999,
-0.028755974024534225,
-0.02621709369122982,
0.006630800198763609,
0.032717347145080566,
-0.004942714236676693,
0.04937312752008438,
0.016646774485707283,
0.032843392342329025,
0.030358530580997467,
-0.016619764268398285,
-0.024578524753451347,
-0.05290234833955765,
0.007922748103737831,
-0.005064256489276886,
0.006198650225996971,
0.02931416779756546,
-0.03835330531001091,
-0.05927656218409538,
-0.005937559530138969,
-0.03936165198683739,
-0.04591592773795128,
-0.009822406806051731,
0.0811721533536911,
0.0248126070946455,
-0.016205621883273125,
0.009363248012959957,
0.07468990981578827,
0.0026941844262182713,
-0.0012750673340633512,
0.018249329179525375,
-0.027063386514782906,
-0.01628664880990982,
-0.021949613466858864,
0.022363757714629173,
-0.03950570151209831,
0.05585537478327751,
-0.03716489300131798,
-0.0473204143345356,
-0.04037000238895416,
0.014260946772992611,
-0.0019930663984268904,
0.03802919015288353,
0.022237714380025864,
0.020293038338422775,
0.009219197556376457,
-0.007175488863140345,
0.008737530559301376,
0.022525813430547714,
0.02349815145134926,
-0.029872361570596695,
-0.011542003601789474,
0.06525463610887527,
-0.016709795221686363,
0.01797923631966114,
-0.005194801837205887,
-0.034698035567998886,
0.03235722333192825,
0.02899005636572838,
0.020779207348823547,
-0.03287940472364426,
-0.006378712598234415,
0.03882146626710892,
-0.020455095916986465,
-0.044079288840293884,
0.0024646047968417406,
-0.01737602800130844,
0.04163043946027756,
0.04786060005426407,
-0.003349161706864834,
-0.1344706416130066,
0.034950122237205505,
0.03795716539025307,
0.0021202354691922665,
0.017799174413084984,
0.007850723341107368,
0.011325928382575512,
0.07072853296995163,
-0.07044043391942978,
0.014053874649107456,
-0.02094126306474209,
0.009021129459142685,
0.011199885047972202,
0.04541175067424774,
0.08880680054426193,
0.06266173720359802,
-0.002736949361860752,
0.005771001800894737,
0.03386974707245827,
-0.026937343180179596,
0.03176301717758179,
-0.03419386222958565,
-0.06813563406467438,
0.0037858132272958755,
-0.030232487246394157,
-0.09248007833957672,
-0.05830422416329384,
-0.004150439519435167,
-0.03088071197271347,
0.06784753501415253,
-0.012019169516861439,
0.006716329604387283,
0.0036507663317024708,
0.023750238120555878,
0.033671680837869644,
-0.0301064420491457,
0.03604850545525551,
0.0032861398067325354,
0.005149786360561848,
0.01050664484500885,
0.00042117733391933143,
0.046348076313734055,
-0.0019446745282039046,
-0.006851376499980688,
0.022219708189368248,
0.017583098262548447,
0.06817165017127991,
-0.02349815145134926,
0.003954621497541666,
-0.00571698322892189,
0.02155347540974617,
0.0027054385282099247,
0.008647499606013298,
-0.05740391090512276,
0.06377812474966049,
-0.02736949361860752,
0.023606188595294952,
0.009885428473353386,
-0.07364554703235626,
0.012424309737980366,
-0.059348586946725845,
-0.0025793947279453278,
-0.02864793688058853,
-0.021985625848174095,
-0.029368186369538307,
-0.03867741674184799,
0.0315469428896904,
-0.0022980470675975084,
0.04404327645897865,
0.05243418738245964,
-0.0004760401207022369,
0.031186817213892937,
0.03671473637223244,
0.009615335613489151,
-0.028233792632818222,
-0.02695534937083721,
0.0048076678067445755,
0.058736372739076614,
-0.10227547585964203,
0.016367677599191666,
-0.02270587533712387,
-0.0187084898352623,
0.09168780595064163,
0.008080302737653255,
0.02844986878335476,
0.021247370168566704,
0.02935018017888069,
0.0233721062541008,
0.01711493730545044,
-0.022651856765151024,
0.041270315647125244,
0.03720090538263321,
0.02758556790649891,
-0.0031488421373069286,
-0.014810137450695038,
0.03541828691959381,
-0.10882975161075592,
-0.0008868076256476343,
-0.04829275235533714,
-0.0035809921100735664,
0.001287446590140462,
-0.041054241359233856,
-0.012775431387126446,
0.0021652509458363056,
-0.05924054980278015,
-0.02142743207514286,
0.044079288840293884,
-0.04566384106874466,
0.007053946610540152,
-0.028539899736642838,
-0.041054241359233856,
0.029872361570596695,
-0.011172875761985779,
0.01887054555118084,
-0.07893937826156616,
-0.00014243221085052937,
-0.004073913209140301,
0.031114792451262474,
0.053118426352739334,
0.07922748476266861,
-0.009966457262635231,
-0.009579322300851345,
-0.000014084963368077297,
-0.055351197719573975,
0.051677923649549484,
-0.006018587853759527,
0.0023408120032399893,
-0.0071304733864963055,
-0.03273535519838333,
-0.014071880839765072,
0.008300879038870335,
0.01858244650065899,
0.08182038366794586,
0.011578015983104706,
0.022111669182777405,
-0.03430189937353134,
0.024290425702929497,
-0.03918159008026123,
-0.013162565417587757,
-0.029530243948101997,
-0.02059914544224739,
0.049193061888217926,
-0.019968926906585693,
-0.05747593566775322,
0.03756102919578552,
-0.06777551025152206,
-0.016943877562880516,
-0.037669066339731216,
0.049625214189291,
-0.0129825035110116,
0.001713969511911273,
-0.02461453713476658,
-0.009624338708817959,
-0.0089085903018713,
0.010659697465598583,
-0.003905104473233223,
0.01263138186186552,
-0.06204952299594879,
0.041270315647125244,
0.02324606291949749,
-0.05268627405166626,
0.024506499990820885,
0.022849926725029945,
0.02184157632291317,
-0.025748930871486664,
0.036264579743146896,
0.01670079305768013,
0.09557715058326721,
0.0023408120032399893,
0.028269805014133453,
0.02023901976644993,
0.06979221105575562,
-0.05801612511277199,
-0.02394830621778965,
-0.025298776105046272,
0.02816176787018776,
0.017349017783999443,
0.025316782295703888,
0.00427873432636261,
-0.007949757389724255,
0.010182531550526619,
-0.0030610617250204086,
0.05610746145248413,
0.07119669765233994,
0.012910477817058563,
-0.06565076857805252,
0.005253322422504425,
-0.011776085011661053,
0.02490263804793358,
0.017358021810650826,
0.00539737194776535,
0.07699470967054367,
0.006198650225996971,
0.007747187279164791,
0.07526610791683197,
0.044655490666627884,
0.048112690448760986,
0.0054603940807282925,
-0.013225587084889412,
0.03590445592999458,
0.010218544863164425,
-0.07454586029052734,
0.02972831204533577,
0.014819140546023846,
0.02382226288318634,
0.04134234040975571,
-0.010317578911781311,
-0.03853336721658707,
0.05153387412428856,
0.004046903923153877,
0.048580851405858994,
0.014107893221080303,
0.010425616055727005,
0.012928484007716179,
0.012442315928637981,
-0.030700648203492165,
0.009750382043421268,
-0.03477006033062935,
-0.04094620421528816,
0.0052803317084908485,
0.048868950456380844,
-0.005001234821975231,
0.0379931777715683,
0.012874465435743332,
-0.024740582332015038,
0.008404415100812912,
-0.01558440551161766,
-0.042926888912916183,
-0.01475611887872219,
0.010956800542771816,
0.10551659762859344,
-0.04220664128661156,
-0.0024285924155265093,
-0.02972831204533577,
0.00032608184847049415,
-0.03282538428902626,
0.0647144466638565,
0.020707182586193085,
-0.046384088695049286,
0.007522108964622021,
0.023264069110155106,
0.06694722175598145,
-0.03993785381317139,
0.014377987012267113,
-0.0683877244591713,
-0.002743701683357358,
-0.023804256692528725,
-0.05725986137986183,
0.016781821846961975,
0.02088724449276924,
0.001716220285743475,
-0.03892950341105461,
0.013927831314504147,
0.030664635822176933,
-0.0073555512353777885,
-0.026199087500572205,
0.03419386222958565,
0.023642200976610184,
0.03748900443315506,
0.005771001800894737,
0.02935018017888069,
-0.024002324789762497,
-0.04620402678847313,
-0.06442634761333466,
0.07785900682210922,
0.049769263714551926,
-0.0672353208065033,
0.010146519169211388,
0.001804000698029995,
-0.021787557750940323,
-0.02411036379635334,
-0.037020839750766754,
-0.025820955634117126,
0.03489610552787781,
0.02171553298830986,
0.014612068422138691,
0.05409076064825058,
-0.044367387890815735,
-0.014044871553778648,
-0.0777149572968483,
0.0024668555706739426,
-0.02312001958489418,
0.008102810941636562,
-0.03262731805443764,
0.04876091331243515,
-0.08527757972478867,
0.015386337414383888,
0.03097074292600155,
-0.04425935074687004,
-0.02391229383647442,
-0.010416612960398197,
-0.03336557373404503,
-0.012244246900081635,
-0.09334437549114227,
0.033959779888391495,
-0.011145866475999355,
0.0035314748529344797,
-0.03235722333192825,
0.0018895304528996348,
-0.02803572453558445,
0.024578524753451347,
-0.014098890125751495,
0.008386408910155296,
0.049157049506902695,
0.06280578672885895,
-0.031690992414951324,
-0.02899005636572838,
0.0028449867386370897,
0.06651507318019867,
-0.08686213195323944,
0.0065812827087938786,
-0.06777551025152206,
0.010128512978553772,
0.04119829088449478,
0.02142743207514286,
-0.01794322393834591,
-0.022075656801462173,
0.0055144126527011395,
-0.02266986295580864,
0.04418732598423958,
0.012919480912387371,
0.034860093146562576,
0.03455398604273796,
-0.015926524996757507,
0.0560714490711689,
-0.04739243909716606,
-0.03795716539025307,
-0.02506469376385212,
0.05599942430853844,
0.0356343612074852,
0.004080665297806263,
0.01784418895840645,
0.008724026381969452,
-0.03585043549537659,
-0.0461680144071579,
0.015467365272343159,
-0.09255210310220718,
0.0043822699226439,
-0.02286793291568756,
-0.021247370168566704,
0.027927687391638756,
0.04346707835793495,
-0.050885651260614395,
-0.05301038920879364,
0.004132433328777552,
-0.005383867304772139,
-0.049517177045345306,
0.0554952509701252,
0.036102522164583206,
-0.013990852981805801,
-0.01112786028534174,
0.049481164664030075,
-0.05012938752770424,
0.04083816707134247,
-0.022723881527781487,
-0.03365367278456688,
-0.04850882664322853,
0.03824526444077492,
0.02724345028400421,
-0.015260293148458004,
0.01969883218407631,
0.006999928038567305,
-0.00556393014267087,
-0.031186817213892937,
-0.05128178745508194,
0.03968576714396477,
-0.011803094297647476,
-0.01422493439167738,
-0.010416612960398197,
-0.061005160212516785,
-0.026127062737941742,
0.008039788343012333,
-0.043251004070043564,
0.009732375852763653,
-0.025406813248991966,
-0.05769200995564461,
0.01028156653046608,
0.04825673997402191,
-0.018636465072631836,
-0.014107893221080303,
0.0016093081794679165,
0.024668557569384575,
-0.0031803532037883997,
0.010227547958493233,
-0.04879692569375038,
0.016835840418934822,
0.061617374420166016,
-0.03237523138523102,
0.02915211208164692,
0.014017862267792225,
0.03781311586499214,
-0.05052552744746208,
-0.00016036813030950725,
0.0660829246044159,
0.030826693400740623,
-0.029926380142569542,
0.04307093843817711,
-0.018438395112752914,
-0.03034052439033985,
-0.04876091331243515,
0.007963262498378754,
-0.03014245629310608,
0.051749952137470245,
0.0187084898352623,
0.006720831152051687,
-0.011731069535017014,
0.0368407778441906,
-0.014918174594640732,
-0.042386703193187714,
-0.010830757208168507,
-0.001716220285743475,
0.010191534645855427,
-0.030520586296916008,
-0.011623031459748745,
0.017511073499917984,
0.0006971793482080102,
-0.02927815541625023,
-0.028233792632818222,
0.03277136757969856,
0.015593408606946468,
0.006981921847909689,
0.02340811863541603,
-0.02023901976644993,
0.005311842542141676,
-0.02893603779375553,
-0.07065650820732117,
0.01715094968676567,
-0.03640862926840782,
0.010020475834608078,
0.029584262520074844,
-0.03666071593761444,
0.032015103846788406,
0.04980527609586716,
-0.0007680788985453546
] |
10,096 | sentence_transformers.SentenceTransformer | truncate_sentence_embeddings |
In this context, `model.encode` outputs sentence embeddings truncated at dimension `truncate_dim`.
This may be useful when you are using the same model for different applications where different dimensions
are needed.
:param truncate_dim: The dimension to truncate sentence embeddings to. `None` does no truncation.
Example::
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("model-name")
with model.truncate_sentence_embeddings(truncate_dim=16):
embeddings_truncated = model.encode(["hello there", "hiya"])
assert embeddings_truncated.shape[-1] == 16
| def encode(
self,
sentences: Union[str, List[str]],
prompt_name: Optional[str] = None,
prompt: Optional[str] = None,
batch_size: int = 32,
show_progress_bar: bool = None,
output_value: Optional[Literal["sentence_embedding", "token_embeddings"]] = "sentence_embedding",
precision: Literal["float32", "int8", "uint8", "binary", "ubinary"] = "float32",
convert_to_numpy: bool = True,
convert_to_tensor: bool = False,
device: str = None,
normalize_embeddings: bool = False,
) -> Union[List[Tensor], ndarray, Tensor]:
"""
Computes sentence embeddings.
:param sentences: the sentences to embed.
:param prompt_name: The name of the prompt to use for encoding. Must be a key in the `prompts` dictionary,
which is either set in the constructor or loaded from the model configuration. For example if
`prompt_name` is ``"query"`` and the `prompts` is ``{"query": "query: ", ...}``, then the sentence "What
is the capital of France?" will be encoded as "query: What is the capital of France?" because the sentence
is appended to the prompt. If `prompt` is also set, this argument is ignored.
:param prompt: The prompt to use for encoding. For example, if the prompt is ``"query: "``, then the
sentence "What is the capital of France?" will be encoded as "query: What is the capital of France?"
because the sentence is appended to the prompt. If `prompt` is set, `prompt_name` is ignored.
:param batch_size: the batch size used for the computation.
:param show_progress_bar: Whether to output a progress bar when encode sentences.
:param output_value: The type of embeddings to return: "sentence_embedding" to get sentence embeddings,
"token_embeddings" to get wordpiece token embeddings, and `None`, to get all output values. Defaults
to "sentence_embedding".
:param precision: The precision to use for the embeddings. Can be "float32", "int8", "uint8", "binary", or
"ubinary". All non-float32 precisions are quantized embeddings. Quantized embeddings are smaller in
size and faster to compute, but may have a lower accuracy. They are useful for reducing the size
of the embeddings of a corpus for semantic search, among other tasks. Defaults to "float32".
:param convert_to_numpy: Whether the output should be a list of numpy vectors. If False, it is a list of PyTorch tensors.
:param convert_to_tensor: Whether the output should be one large tensor. Overwrites `convert_to_numpy`.
:param device: Which `torch.device` to use for the computation.
:param normalize_embeddings: Whether to normalize returned vectors to have length 1. In that case,
the faster dot-product (util.dot_score) instead of cosine similarity can be used.
:return: By default, a 2d numpy array with shape [num_inputs, output_dimension] is returned. If only one string
input is provided, then the output is a 1d array with shape [output_dimension]. If `convert_to_tensor`, a
torch Tensor is returned instead. If `self.truncate_dim <= output_dimension` then output_dimension is
`self.truncate_dim`.
"""
if self.device.type == "hpu" and not self.is_hpu_graph_enabled:
import habana_frameworks.torch as ht
ht.hpu.wrap_in_hpu_graph(self, disable_tensor_cache=True)
self.is_hpu_graph_enabled = True
self.eval()
if show_progress_bar is None:
show_progress_bar = (
logger.getEffectiveLevel() == logging.INFO or logger.getEffectiveLevel() == logging.DEBUG
)
if convert_to_tensor:
convert_to_numpy = False
if output_value != "sentence_embedding":
convert_to_tensor = False
convert_to_numpy = False
input_was_string = False
if isinstance(sentences, str) or not hasattr(
sentences, "__len__"
): # Cast an individual sentence to a list with length 1
sentences = [sentences]
input_was_string = True
if prompt is None:
if prompt_name is not None:
try:
prompt = self.prompts[prompt_name]
except KeyError:
raise ValueError(
f"Prompt name '{prompt_name}' not found in the configured prompts dictionary with keys {list(self.prompts.keys())!r}."
)
elif self.default_prompt_name is not None:
prompt = self.prompts.get(self.default_prompt_name, None)
else:
if prompt_name is not None:
logger.warning(
"Encode with either a `prompt`, a `prompt_name`, or neither, but not both. "
"Ignoring the `prompt_name` in favor of `prompt`."
)
extra_features = {}
if prompt is not None:
sentences = [prompt + sentence for sentence in sentences]
# Some models (e.g. INSTRUCTOR, GRIT) require removing the prompt before pooling
# Tracking the prompt length allow us to remove the prompt during pooling
tokenized_prompt = self.tokenize([prompt])
if "input_ids" in tokenized_prompt:
extra_features["prompt_length"] = tokenized_prompt["input_ids"].shape[-1] - 1
if device is None:
device = self.device
self.to(device)
all_embeddings = []
length_sorted_idx = np.argsort([-self._text_length(sen) for sen in sentences])
sentences_sorted = [sentences[idx] for idx in length_sorted_idx]
for start_index in trange(0, len(sentences), batch_size, desc="Batches", disable=not show_progress_bar):
sentences_batch = sentences_sorted[start_index : start_index + batch_size]
features = self.tokenize(sentences_batch)
features = batch_to_device(features, device)
features.update(extra_features)
with torch.no_grad():
out_features = self.forward(features)
out_features["sentence_embedding"] = truncate_embeddings(
out_features["sentence_embedding"], self.truncate_dim
)
if output_value == "token_embeddings":
embeddings = []
for token_emb, attention in zip(out_features[output_value], out_features["attention_mask"]):
last_mask_id = len(attention) - 1
while last_mask_id > 0 and attention[last_mask_id].item() == 0:
last_mask_id -= 1
embeddings.append(token_emb[0 : last_mask_id + 1])
elif output_value is None: # Return all outputs
embeddings = []
for sent_idx in range(len(out_features["sentence_embedding"])):
row = {name: out_features[name][sent_idx] for name in out_features}
embeddings.append(row)
else: # Sentence embeddings
embeddings = out_features[output_value]
embeddings = embeddings.detach()
if normalize_embeddings:
embeddings = torch.nn.functional.normalize(embeddings, p=2, dim=1)
# fixes for #522 and #487 to avoid oom problems on gpu with large datasets
if convert_to_numpy:
embeddings = embeddings.cpu()
all_embeddings.extend(embeddings)
all_embeddings = [all_embeddings[idx] for idx in np.argsort(length_sorted_idx)]
if precision and precision != "float32":
all_embeddings = quantize_embeddings(all_embeddings, precision=precision)
if convert_to_tensor:
if len(all_embeddings):
if isinstance(all_embeddings, np.ndarray):
all_embeddings = torch.from_numpy(all_embeddings)
else:
all_embeddings = torch.stack(all_embeddings)
else:
all_embeddings = torch.Tensor()
elif convert_to_numpy:
if not isinstance(all_embeddings, np.ndarray):
all_embeddings = np.asarray([emb.numpy() for emb in all_embeddings])
elif isinstance(all_embeddings, np.ndarray):
all_embeddings = [torch.from_numpy(embedding) for embedding in all_embeddings]
if input_was_string:
all_embeddings = all_embeddings[0]
return all_embeddings
| (self, truncate_dim: Optional[int]) | [
-0.005186009686440229,
-0.06405776739120483,
-0.0503494031727314,
-0.04294005408883095,
0.023615961894392967,
0.034463077783584595,
-0.05333876609802246,
-0.043196287006139755,
0.07998679578304291,
0.013185223564505577,
0.002579659456387162,
-0.02863381989300251,
-0.051118094474077225,
-0.009245670400559902,
0.028121357783675194,
0.04975153133273125,
0.036491572856903076,
-0.03476201370358467,
0.000504788535181433,
-0.006982296239584684,
0.006581935100257397,
-0.004769634455442429,
-0.042875997722148895,
-0.007969853468239307,
-0.0005218038568273187,
-0.04923906922340393,
0.026413151994347572,
-0.04825684800744057,
-0.06521080434322357,
0.03640616312623024,
0.040698032826185226,
-0.01666569523513317,
0.046975694596767426,
-0.03708944469690323,
-0.0033016439992934465,
-0.0303847324103117,
-0.010179846547544003,
-0.0019003803608939052,
0.00012561326730065048,
-0.03149506822228432,
-0.05893314257264137,
-0.09164530783891678,
0.009405815042555332,
0.007233189418911934,
-0.03841330483555794,
0.04693298786878586,
-0.03375844284892082,
0.05269818753004074,
-0.019548295065760612,
-0.007750989403575659,
0.0096833985298872,
-0.07127493619918823,
0.04778709262609482,
0.021427322179079056,
-0.026797497645020485,
0.015886325389146805,
-0.025665810331702232,
-0.004983160179108381,
-0.0033710398711264133,
-0.0409969687461853,
0.017914820462465286,
-0.0005878634401597083,
0.04975153133273125,
0.06794393807649612,
-0.020936213433742523,
0.05397934094071388,
0.03102531097829342,
0.008188717067241669,
-0.04817143827676773,
0.01581159234046936,
-0.025003880262374878,
-0.08882676810026169,
-0.027587544173002243,
0.0007880439516156912,
-0.0193667970597744,
0.019548295065760612,
0.010259918868541718,
0.022484274581074715,
0.0025863321498036385,
0.014380968175828457,
0.006790122948586941,
0.03612858057022095,
-0.033673033118247986,
-0.04219271242618561,
0.05731034651398659,
-0.002584997797384858,
-0.0022180001251399517,
0.05573025345802307,
-0.03384385257959366,
-0.028719231486320496,
-0.03401467204093933,
0.024363303557038307,
0.07815047353506088,
0.06486916542053223,
-0.0062990132719278336,
0.024576829746365547,
-0.012950344942510128,
-0.07212904095649719,
-0.002048513852059841,
-0.023487847298383713,
-0.00004499890928855166,
0.09275564551353455,
0.025836631655693054,
0.03140965849161148,
-0.00915492232888937,
-0.043772805482149124,
-0.056071896106004715,
-0.017231538891792297,
0.032605402171611786,
-0.005306118167936802,
-0.038135722279548645,
0.018085641786456108,
0.04142402112483978,
0.0010449422989040613,
0.007073044776916504,
-0.04586536064743996,
-0.027075082063674927,
0.04458420351147652,
0.003106801537796855,
0.023338379338383675,
0.012736818753182888,
0.022014517337083817,
-0.02267644926905632,
-0.08519682288169861,
-0.006790122948586941,
0.039801225066185,
0.005215369630604982,
0.020188871771097183,
0.025986099615693092,
-0.06444211304187775,
-0.04197918623685837,
-0.008172702975571156,
0.009459196589887142,
0.07750989496707916,
0.023295672610402107,
-0.035680174827575684,
-0.029210340231657028,
-0.02745942771434784,
0.009939629584550858,
0.037495143711566925,
0.004123718477785587,
0.026583971455693245,
0.03890441358089447,
-0.01825646311044693,
-0.019292064011096954,
-0.02331702597439289,
0.04121049493551254,
-0.06713254004716873,
-0.005882638040930033,
-0.06747417896986008,
0.01905718445777893,
-0.02688290923833847,
-0.01958032324910164,
-0.0387335941195488,
-0.0037126813549548388,
0.012149622663855553,
0.010473444126546383,
-0.06354530155658722,
0.03700403496623039,
0.025644458830356598,
-0.01226706150919199,
-0.05679788440465927,
-0.014722609892487526,
0.052441954612731934,
-0.012896963395178318,
0.04449879378080368,
0.055388614535331726,
0.0393955260515213,
-0.004967145621776581,
0.06008618324995041,
0.041808366775512695,
0.025260111317038536,
0.0010582876857370138,
0.006667345762252808,
-0.03181535750627518,
0.032861631363630295,
0.02513199672102928,
-0.014861401170492172,
-0.014743962325155735,
0.018651485443115234,
-0.043132226914167404,
-0.02006075717508793,
-0.03960905224084854,
-0.01613187976181507,
-0.00677410839125514,
0.03333139047026634,
0.04150943085551262,
0.04454149678349495,
0.02246292307972908,
-0.010259918868541718,
-0.02692561410367489,
-0.059488311409950256,
0.01256599836051464,
0.03059825859963894,
-0.0439436249434948,
0.012715466320514679,
-0.030619611963629723,
-0.018811630085110664,
-0.033181920647621155,
-0.045481011271476746,
-0.02342378906905651,
-0.009800838306546211,
0.03168724104762077,
-0.038605477660894394,
-0.04770168289542198,
0.013153194449841976,
-0.050648339092731476,
0.009848881512880325,
-0.03427090495824814,
-0.07631415128707886,
-0.029082225635647774,
-0.0404631532728672,
0.0403350405395031,
0.0034564503002911806,
0.04204324632883072,
-0.031110720708966255,
0.0021405969746410847,
0.02314620465040207,
-0.036811862140893936,
-0.018779601901769638,
0.023295672610402107,
-0.02331702597439289,
-0.014541112817823887,
0.0036219328176230192,
-0.03550935536623001,
0.00763888843357563,
0.028548410162329674,
0.028505705296993256,
0.030320674180984497,
-0.010494796559214592,
0.02092553675174713,
0.05073374882340431,
-0.04838496446609497,
0.01383647695183754,
0.012053536251187325,
0.06350259482860565,
-0.00003540692705428228,
0.009688736870884895,
0.04210730269551277,
-0.01772264763712883,
0.017808059230446815,
-0.040206924080848694,
-0.015395215712487698,
-0.03410008177161217,
-0.00009183280781144276,
0.04274788126349449,
0.05227113515138626,
0.0030240602791309357,
0.003306982107460499,
-0.00633638072758913,
-0.03081178478896618,
-0.013131842017173767,
0.009987672790884972,
-0.03869089111685753,
0.03416414186358452,
-0.06913968175649643,
0.0014239506563171744,
-0.0007613532361574471,
0.047402746975421906,
-0.008535697124898434,
-0.01734897866845131,
0.00979016162455082,
-0.0046174973249435425,
0.07268420606851578,
-0.017551828175783157,
-0.026327740401029587,
-0.028868699446320534,
0.015608741901814938,
-0.004732267465442419,
-0.011210109107196331,
-0.017445065081119537,
0.11504774540662766,
-0.047231923788785934,
-0.0313883051276207,
0.029210340231657028,
-0.0014025981072336435,
0.03407873213291168,
0.02927439846098423,
-0.02039172127842903,
0.0690542683005333,
0.006256308406591415,
-0.007094397209584713,
-0.00904815923422575,
-0.057139527052640915,
0.0921577662229538,
-0.0007373315747827291,
-0.053296059370040894,
-0.04774438589811325,
0.055217791348695755,
-0.048299554735422134,
0.03222105652093887,
0.041125085204839706,
0.05098998174071312,
0.02207857556641102,
-0.05530320480465889,
-0.01841660775244236,
-0.015416568145155907,
-0.02139529399573803,
0.03817842900753021,
-0.03815707564353943,
0.01005706936120987,
0.028761936351656914,
0.09830731898546219,
0.02863381989300251,
-0.024512771517038345,
-0.021747611463069916,
0.04428526759147644,
0.016633665189146996,
0.022847268730401993,
-0.04911095276474953,
-0.02299673669040203,
-0.017861440777778625,
0.0024622203782200813,
0.03232781961560249,
0.001693527097813785,
0.04082614928483963,
0.07413618266582489,
-0.0034964862279593945,
0.015790238976478577,
0.035786937922239304,
-0.007339952047914267,
0.026327740401029587,
0.05573025345802307,
0.029637392610311508,
-0.014252852648496628,
-0.10787327587604523,
0.11086263507604599,
-0.00272779306396842,
0.028783287853002548,
-0.07622873783111572,
0.055858369916677475,
-0.06768770515918732,
0.0024835728108882904,
0.0033496872056275606,
-0.04881201684474945,
0.013281309977173805,
0.0013085133396089077,
0.006966281682252884,
0.039886634796857834,
-0.026690734550356865,
0.04097561538219452,
0.010612236335873604,
-0.02773701213300228,
0.07328208535909653,
0.0079805301502347,
-0.023274321109056473,
0.02842029556632042,
0.007008987013250589,
-0.01517101377248764,
0.0005745180533267558,
-0.009816852398216724,
0.041402667760849,
0.025409579277038574,
0.04185107350349426,
0.023082148283720016,
-0.017647914588451385,
-0.02214263379573822,
-0.03200753033161163,
-0.04624970629811287,
-0.014658551663160324,
-0.02677614614367485,
0.021747611463069916,
-0.012928992509841919,
0.03508230298757553,
-0.025793926790356636,
-0.002858577761799097,
0.028804641216993332,
-0.03901117667555809,
0.03647021949291229,
0.014978840947151184,
0.013089136220514774,
-0.006000077351927757,
-0.0037313648499548435,
0.053723111748695374,
0.006752755958586931,
0.029616039246320724,
-0.08131065219640732,
0.03224240615963936,
-0.018704866990447044,
0.010526825673878193,
-0.0006248968420550227,
0.02080809697508812,
-0.0010015697916969657,
-0.003950228914618492,
0.07618603110313416,
-0.011348900385200977,
0.07417888939380646,
-0.018918393179774284,
0.02218533866107464,
-0.0011577106779441237,
-0.06226414814591408,
0.01114605087786913,
0.012416530400514603,
0.017423711717128754,
-0.04082614928483963,
0.01388985849916935,
-0.04415715113282204,
0.031431008130311966,
-0.02496117539703846,
-0.01501086913049221,
0.0012190992711111903,
-0.020242253318428993,
0.03187941387295723,
0.06166627258062363,
-0.04522478207945824,
-0.0005801898660138249,
0.031174778938293457,
0.03805031254887581,
-0.00960866454988718,
0.0409969687461853,
-0.08178041130304337,
0.018437959253787994,
-0.00846630148589611,
0.012042859569191933,
-0.07071977108716965,
0.010041054338216782,
-0.04219271242618561,
0.013430777937173843,
-0.010713661089539528,
0.04663405194878578,
-0.0054235574789345264,
0.04923906922340393,
0.082805335521698,
0.03027796931564808,
-0.026370447129011154,
0.021619495004415512,
-0.041445374488830566,
-0.00018950422236230224,
-0.0002605683112051338,
-0.06247767433524132,
-0.04445608705282211,
-0.03751649707555771,
0.013185223564505577,
-0.06482645869255066,
-0.03243458271026611,
0.025110643357038498,
0.010078421793878078,
-0.03126018866896629,
-0.020146166905760765,
0.020989593118429184,
0.010606897994875908,
-0.02773701213300228,
0.029680097475647926,
0.05081915855407715,
0.05385122820734978,
0.014455702155828476,
-0.08242098987102509,
0.07669849693775177,
-0.022057224065065384,
-0.005941357463598251,
0.07294043898582458,
-0.02246292307972908,
0.06328906863927841,
0.020402397960424423,
0.037601906806230545,
0.014017974026501179,
0.05231384187936783,
0.02033833973109722,
-0.02513199672102928,
-0.010414725169539452,
0.0037767391186207533,
0.048726607114076614,
0.02538822777569294,
0.03775137662887573,
0.02321026287972927,
0.025793926790356636,
-0.01814970001578331,
-0.02282591722905636,
-0.028377588838338852,
0.03241322934627533,
0.042662471532821655,
0.023231616243720055,
0.054534509778022766,
-0.019035832956433296,
0.021886402741074562,
-0.041915129870176315,
0.0044279927387833595,
-0.031858060508966446,
-0.015672799199819565,
-0.019943317398428917,
0.014679904095828533,
-0.08728937804698944,
-0.027758363634347916,
0.0011990813072770834,
-0.0011223454494029284,
-0.00449738884344697,
0.04748815670609474,
-0.021619495004415512,
0.06175168603658676,
0.02261239103972912,
-0.03251999244093895,
0.0460788831114769,
0.059915363788604736,
-0.05880502611398697,
-0.014370291493833065,
-0.007393333595246077,
0.001113003701902926,
0.02214263379573822,
0.023124853149056435,
0.0029172974172979593,
0.007959176786243916,
0.004262510221451521,
-0.03262675553560257,
-0.05188678950071335,
0.029829565435647964,
0.05077645555138588,
-0.021886402741074562,
0.03059825859963894,
-0.054150164127349854,
-0.012875610962510109,
-0.0722571611404419,
-0.058676913380622864,
0.04121049493551254,
-0.07071977108716965,
0.0020124814473092556,
0.0193667970597744,
-0.00008465967403026298,
0.013324014842510223,
-0.005143304821103811,
0.008375552482903004,
-0.01650555059313774,
0.08028572797775269,
-0.045694537460803986,
-0.019292064011096954,
-0.022377511486411095,
0.017018012702465057,
-0.022228043526411057,
-0.03183670714497566,
0.00494846235960722,
0.011114021763205528,
-0.035317178815603256,
-0.02346649393439293,
0.00822074618190527,
0.055815666913986206,
0.017957527190446854,
0.014797343872487545,
-0.020082108676433563,
0.00559971621260047,
0.05795092508196831,
0.026797497645020485,
-0.06264849007129669,
0.021779639646410942,
-0.05726763978600502,
-0.03960905224084854,
0.042021892964839935,
-0.011701217852532864,
-0.00814601220190525,
0.07528922706842422,
0.0011990813072770834,
0.010558854788541794,
-0.06269119679927826,
-0.003467126516625285,
0.05017858371138573,
0.014786667190492153,
0.013484159484505653,
-0.06670548766851425,
0.036534279584884644,
0.012982373125851154,
-0.003536522388458252,
0.06141004338860512,
0.029082225635647774,
0.002903952030465007,
-0.017316948622465134,
-0.06469833850860596,
0.032391875982284546,
0.07413618266582489,
-0.057609282433986664,
-0.019025156274437904,
-0.050007760524749756,
-0.009090864099562168,
0.022313455119729042,
0.00007656904926989228,
-0.03448443114757538,
0.0022406871430575848,
-0.03055555373430252,
0.0063310423865914345,
-0.02491847053170204,
-0.027075082063674927,
0.016462845727801323,
0.010606897994875908,
-0.012854257598519325,
0.00859441701322794,
-0.0016201275866478682,
0.017946850508451462,
0.1040298119187355,
0.05120350793004036,
0.034996893256902695,
0.05188678950071335,
-0.014679904095828533,
0.027544839307665825,
-0.01087914314121008,
0.03495418652892113,
0.014466378837823868,
0.046975694596767426,
0.07481946796178818,
0.0011029946617782116,
-0.041658900678157806,
0.025003880262374878,
0.01005706936120987,
-0.06593678891658783,
-0.05103268474340439,
0.015790238976478577,
-0.017701296135783195,
0.02453412301838398,
0.038349248468875885,
-0.06243496760725975,
-0.013259957544505596,
0.03495418652892113,
0.017861440777778625,
-0.028441647067666054,
-0.03305380791425705,
0.007275894284248352,
-0.03140965849161148,
-0.052869006991386414,
-0.029957681894302368,
-0.03623534366488457,
0.009096202440559864,
0.023765429854393005,
0.06345988810062408,
-0.026904260739684105,
0.08549576252698898,
-0.010041054338216782,
-0.028975462540984154,
-0.02596474625170231,
-0.0241711288690567,
-0.025537695735692978,
-0.014861401170492172,
-0.006496524903923273,
0.016462845727801323,
-0.02049848437309265,
0.022761858999729156,
0.025943394750356674,
-0.0016801818273961544,
0.030320674180984497,
0.003509831614792347,
0.02176896296441555,
0.00686485692858696,
-0.03518906608223915,
-0.008338185958564281,
0.007355966605246067,
-0.029359808191657066,
0.024619534611701965,
-0.01370836142450571,
0.0017242215108126402,
0.0063523948192596436,
0.02271915413439274,
-0.01909988932311535,
-0.022420218214392662,
0.014861401170492172,
0.051075391471385956,
-0.00008528523903805763,
0.032498639076948166,
0.019067861139774323,
-0.05098998174071312,
0.03454848751425743,
0.013377396389842033,
-0.004022293724119663,
-0.01916394755244255,
0.007996544241905212,
0.01506425067782402,
0.019601676613092422,
0.0061975885182619095,
-0.019548295065760612,
-0.02267644926905632,
-0.014765314757823944,
0.014626522548496723,
-0.04706110432744026,
-0.011081993579864502,
0.0331178642809391,
0.0029439881909638643,
-0.05504697188735008,
-0.007964515127241611,
-0.010174508206546307,
-0.007654902990907431,
0.0123204430565238,
0.017850764095783234,
0.0186301339417696,
0.0035285151097923517,
0.01051081158220768,
-0.029359808191657066,
-0.01519236620515585,
0.011605131439864635,
0.045694537460803986,
-0.0013525530230253935,
-0.07315396517515182,
-0.050221286714076996,
-0.0061762360855937,
0.006416452582925558,
-0.020306311547756195,
-0.06986566632986069,
-0.018064290285110474,
0.005060563329607248,
-0.015886325389146805,
-0.07631415128707886,
0.0324559323489666,
0.018758248537778854,
-0.002797188935801387,
-0.06153815984725952,
-0.028035948053002357,
0.012416530400514603,
0.012160299345850945,
0.01038269605487585,
-0.05914666876196861,
-0.04919636249542236,
0.007510772906243801,
0.03264810889959335,
-0.021470027044415474,
-0.0012998387683182955,
-0.051502443850040436,
0.03331003710627556,
0.05748116597533226,
0.00009883912571240216,
0.023722724989056587,
-0.033566270023584366,
-0.001540055382065475,
0.012074888683855534,
-0.001064293086528778,
0.07507570087909698,
0.040698032826185226,
0.027075082063674927,
0.022313455119729042,
0.007750989403575659,
0.04454149678349495,
-0.0046174973249435425,
-0.08771643042564392,
-0.018758248537778854,
-0.04178701341152191,
0.0037553864531219006,
0.08408649265766144,
-0.02485441230237484,
-0.03559476509690285,
0.03179400414228439,
-0.05722493678331375,
0.017647914588451385,
-0.045694537460803986,
-0.06371612101793289,
0.022163987159729004,
-0.023978956043720245,
-0.054363690316677094,
-0.06866992264986038,
-0.0008727870299480855,
-0.017050040885806084,
-0.02261239103972912,
0.02709643356502056,
0.04616429656744003,
0.018320521339774132,
0.06042782589793205,
-0.06512539088726044,
-0.017786705866456032,
-0.0009181612986139953,
0.042982760816812515,
0.03128154203295708,
-0.036491572856903076,
-0.018160376697778702,
0.08361673355102539,
0.014647874981164932,
0.034890130162239075,
0.0014746631495654583,
-0.05790821835398674,
-0.059317488223314285,
-0.04150943085551262,
-0.0299149751663208,
0.022697800770401955,
-0.0025142673403024673,
-0.049580708146095276,
0.028890050947666168,
0.020936213433742523,
0.02427789196372032
] |
10,097 | torch.nn.modules.module | type | Casts all parameters and buffers to :attr:`dst_type`.
.. note::
This method modifies the module in-place.
Args:
dst_type (type or string): the desired type
Returns:
Module: self
| def type(self: T, dst_type: Union[dtype, str]) -> T:
r"""Casts all parameters and buffers to :attr:`dst_type`.
.. note::
This method modifies the module in-place.
Args:
dst_type (type or string): the desired type
Returns:
Module: self
"""
return self._apply(lambda t: t.type(dst_type))
| (self: ~T, dst_type: Union[torch.dtype, str]) -> ~T | [
0.005559354089200497,
0.0269828699529171,
-0.043260879814624786,
-0.0013013210846111178,
-0.027534665539860725,
-0.0006104253116063774,
0.0075090364553034306,
0.029355596750974655,
-0.05341394245624542,
-0.00914603378623724,
0.0012944235932081938,
-0.007669977378100157,
0.017896613106131554,
0.02942916937172413,
0.018742702901363373,
0.04543127864599228,
-0.030385617166757584,
0.0376509428024292,
0.022881178185343742,
-0.0341930165886879,
0.00536622479557991,
0.028546294197440147,
0.037577368319034576,
-0.00482362462207675,
-0.007821721024811268,
-0.03132367134094238,
0.017022935673594475,
-0.027001261711120605,
-0.04223085567355156,
0.015100842341780663,
0.000011208375326532405,
-0.05999871715903282,
0.012912048026919365,
-0.008051636628806591,
-0.027700204402208328,
0.006226108409464359,
-0.061764467507600784,
0.04465876519680023,
-0.027994496747851372,
-0.04414375498890877,
-0.015450313687324524,
-0.03566447272896767,
-0.005416806321591139,
-0.012921244837343693,
0.03781648352742195,
-0.027093227952718735,
-0.0174183901399374,
-0.0011168139753863215,
0.0026394284795969725,
-0.01697695255279541,
-0.016655070707201958,
0.015413527376949787,
-0.008654015138745308,
-0.0307534821331501,
-0.008166594430804253,
0.026247140020132065,
0.015036465600132942,
0.0055271657183766365,
-0.023009931668639183,
0.022678853943943977,
0.016903378069400787,
-0.006097355857491493,
-0.03579322621226311,
-0.02644946612417698,
-0.007269924506545067,
0.011504965834319592,
-0.06551668792963028,
-0.02999935857951641,
0.025971241295337677,
0.008529860526323318,
-0.036087516695261,
-0.01209354866296053,
0.002936019329354167,
0.023414582014083862,
0.035535722970962524,
-0.009573676623404026,
-0.01062209066003561,
0.004154570866376162,
-0.014217967167496681,
0.06735601276159286,
-0.010134669952094555,
0.031985826790332794,
-0.037669334560632706,
-0.04870527610182762,
-0.043408025056123734,
-0.03498392552137375,
-0.11874669790267944,
-0.01437431015074253,
0.018724309280514717,
-0.06706172227859497,
-0.012590166181325912,
-0.03489195927977562,
-0.04421732574701309,
0.006488211918622255,
0.027148408815264702,
-0.03399068862199783,
-0.0004164342244621366,
-0.0005247818771749735,
0.0004178711969871074,
0.03448730707168579,
-0.014061625115573406,
0.03649216890335083,
0.03470802679657936,
-0.01848519593477249,
0.018494393676519394,
-0.0001968650467460975,
0.040207602083683014,
0.02387441322207451,
-0.07243254035711288,
0.03991331160068512,
0.0014795054448768497,
0.0022543203085660934,
-0.042561937123537064,
-0.047895971685647964,
0.014355916529893875,
0.004032715689390898,
-0.05223677307367325,
0.0005960556445643306,
-0.008148200809955597,
0.04510020092129707,
-0.0326295904815197,
0.06456024199724197,
0.03435855358839035,
0.036289844661951065,
0.02302832528948784,
0.03777969628572464,
-0.010760040022432804,
-0.06687778979539871,
0.03730147331953049,
-0.08497672528028488,
-0.03150760382413864,
0.01807134971022606,
-0.05105960741639137,
0.09093613177537918,
0.03336532041430473,
0.01991986855864525,
-0.014567438513040543,
0.008759776130318642,
-0.03866257146000862,
0.04734417423605919,
0.033494073897600174,
0.006078962702304125,
0.15111878514289856,
-0.0357748344540596,
0.040832970291376114,
-0.0018945027841255069,
0.029006125405430794,
0.04395982250571251,
-0.048778846859931946,
0.014806550927460194,
-0.01477896049618721,
0.009228803217411041,
0.04657166078686714,
0.026596611365675926,
-0.034965530037879944,
0.03342049941420555,
0.016140060499310493,
0.013371878303587437,
-0.01603889651596546,
-0.07188074290752411,
-0.03862578421831131,
0.01766669750213623,
-0.027369126677513123,
-0.053892165422439575,
0.04774882644414902,
-0.019883083179593086,
0.005683508235961199,
-0.030054539442062378,
-0.02369048073887825,
-0.03432177007198334,
-0.03877292945981026,
-0.05105960741639137,
0.017721878364682198,
0.015606655739247799,
-0.05308286473155022,
0.04123762249946594,
-0.03213297203183174,
0.02422388456761837,
-0.022384561598300934,
0.02227420173585415,
0.10506213456392288,
0.0035131070762872696,
-0.08232810348272324,
-0.015018072910606861,
0.029631493613123894,
0.009877164848148823,
-0.022513315081596375,
0.02874862030148506,
-0.004051108844578266,
-0.017059721052646637,
0.05834332853555679,
0.029760247096419334,
0.004529333207756281,
-0.09652767330408096,
0.006892863195389509,
-0.030679909512400627,
-0.04458519071340561,
0.018963420763611794,
-0.0011099164839833975,
0.16009467840194702,
-0.011560145765542984,
0.021575259044766426,
0.011817650869488716,
0.05716615915298462,
-0.008391911163926125,
-0.08019448816776276,
0.0046396926045417786,
0.02591606229543686,
0.024554962292313576,
-0.01635158248245716,
0.01731722615659237,
-0.04418053850531578,
0.03559090197086334,
-0.014677798375487328,
-0.00024629684048704803,
-0.0567982979118824,
-0.056209713220596313,
-0.05764438584446907,
0.05058138445019722,
-0.02014058828353882,
0.03102938085794449,
0.03435855358839035,
-0.0640084445476532,
0.0247940756380558,
0.016140060499310493,
-0.05190569534897804,
-0.041715845465660095,
-0.004763846751302481,
-0.004593709483742714,
0.05058138445019722,
0.05253106728196144,
0.02915327064692974,
-0.029980964958667755,
-0.008479279465973377,
0.020729171112179756,
-0.0615069642663002,
-0.016829805448651314,
0.06227947771549225,
-0.08482957631349564,
-0.01295803114771843,
-0.022163843736052513,
0.04649808630347252,
-0.03386193886399269,
0.0015565271023660898,
-0.0658845528960228,
-0.0342114083468914,
0.002811865182593465,
0.047307390719652176,
0.03226172551512718,
0.03235369175672531,
0.05275178700685501,
-0.04616700857877731,
-0.056062567979097366,
-0.013942068442702293,
-0.01575380191206932,
0.009426530450582504,
0.005030548665672541,
-0.0652591809630394,
0.0017921903636306524,
-0.02061881124973297,
0.011541752144694328,
-0.015615852549672127,
0.049808867275714874,
-0.029723459854722023,
-0.010741646401584148,
-0.02249492146074772,
-0.03323656693100929,
-0.01637917198240757,
0.03435855358839035,
-0.005812260787934065,
0.04186299443244934,
0.04635094106197357,
0.038588996976614,
0.009840378537774086,
-0.04259872063994408,
-0.046865951269865036,
0.025493018329143524,
0.02168561890721321,
0.042819440364837646,
0.01349143497645855,
0.05613613873720169,
-0.037890054285526276,
-0.002804967574775219,
-0.09078898280858994,
-0.0017312627751380205,
0.020195767283439636,
0.023175470530986786,
0.009858771227300167,
0.016140060499310493,
0.001983020221814513,
0.036694496870040894,
0.011973992921411991,
0.022550100460648537,
-0.006336467806249857,
-0.002968207700178027,
0.023175470530986786,
-0.010272619314491749,
0.007375685498118401,
0.06422916054725647,
0.004791436716914177,
-0.056467216461896896,
-0.04447483271360397,
-0.001760002225637436,
0.022789211943745613,
0.034818384796381,
-0.009959934279322624,
-0.026026422157883644,
-0.01807134971022606,
-0.06853317469358444,
0.07806087285280228,
0.021409720182418823,
0.024150311946868896,
-0.07129216194152832,
-0.00606516795232892,
0.05231034755706787,
0.01778625324368477,
0.06356700509786606,
0.04186299443244934,
-0.009610462933778763,
0.013574204407632351,
-0.05926298722624779,
-0.031801894307136536,
0.0021899440325796604,
0.004412075970321894,
0.01262695249170065,
0.01041976548731327,
0.029705068096518517,
0.024702109396457672,
0.007085992023348808,
0.0016266513848677278,
-0.01566183567047119,
0.01986468955874443,
0.005908825434744358,
0.005563952028751373,
0.010548518039286137,
-0.029521135613322258,
0.009509299881756306,
-0.05569470301270485,
-0.0007213595090433955,
0.017905810847878456,
0.01800697296857834,
0.02532747946679592,
0.017390798777341843,
-0.00770216528326273,
-0.038956861943006516,
0.013923675753176212,
-0.04241478815674782,
-0.0046190000139176846,
0.07077714800834656,
0.019294498488307,
-0.020030228421092033,
-0.05525326356291771,
-0.014034034684300423,
0.04484269767999649,
-0.014806550927460194,
-0.0020761359483003616,
0.030790267512202263,
0.03943508490920067,
-0.05183212459087372,
-0.0395454466342926,
0.05142747238278389,
0.019092174246907234,
0.021483292803168297,
-0.015073252841830254,
-0.020545238628983498,
0.04565199837088585,
-0.029134877026081085,
-0.018236888572573662,
0.05510611832141876,
0.04167906194925308,
-0.003338371403515339,
0.0014772063586860895,
-0.012249891646206379,
-0.004278725478798151,
-0.034156229346990585,
0.03888329118490219,
-0.03711754083633423,
0.004791436716914177,
-0.09498264640569687,
-0.06926890462636948,
-0.024867648258805275,
-0.07747228443622589,
0.013408665545284748,
0.01242462731897831,
0.028160035610198975,
-0.019809508696198463,
0.030955806374549866,
-0.02742430754005909,
-0.0018531179521232843,
-0.03395390510559082,
0.026927689090371132,
0.019294498488307,
0.0061893220990896225,
-0.01747356913983822,
0.0037568174302577972,
0.020471666008234024,
-0.08718391507863998,
0.05790188908576965,
-0.000981738674454391,
0.019000208005309105,
-0.030477583408355713,
-0.0407961867749691,
0.004614401608705521,
0.051979269832372665,
-0.05234713479876518,
0.044953055679798126,
0.08821393549442291,
0.035443756729364395,
0.030385617166757584,
-0.011219870299100876,
0.056062567979097366,
0.001081177033483982,
-0.030606335029006004,
-0.021280968561768532,
0.04498984292149544,
-0.02920844964683056,
0.05999871715903282,
-0.04373910278081894,
0.020508451387286186,
0.01437431015074253,
0.016618283465504646,
0.03102938085794449,
0.0269828699529171,
-0.05444396287202835,
0.021979911252856255,
0.004658085759729147,
-0.013215536251664162,
0.05017673224210739,
-0.043224092572927475,
0.0341930165886879,
-0.022862786427140236,
0.033530861139297485,
-0.006524998694658279,
0.034064263105392456,
0.032776735723018646,
0.04039153456687927,
0.011817650869488716,
0.01870591565966606,
0.05400252342224121,
0.041311196982860565,
0.026247140020132065,
-0.03559090197086334,
-0.002097977790981531,
-0.04723381623625755,
-0.007771139964461327,
-0.044695548713207245,
-0.02880379930138588,
-0.004683376289904118,
-0.0442541129887104,
-0.021593652665615082,
-0.018742702901363373,
0.05874797701835632,
0.03612430393695831,
-0.04050189256668091,
-0.03840506449341774,
-0.017905810847878456,
0.057092588394880295,
-0.025143546983599663,
0.05455432087182999,
0.005320242140442133,
-0.05010316148400307,
-0.016480334103107452,
0.0599251464009285,
0.01044735498726368,
0.03422980383038521,
-0.015275578014552593,
0.0407961867749691,
-0.05790188908576965,
0.03698878735303879,
-0.008419501595199108,
-0.012617756612598896,
0.018209299072623253,
0.040832970291376114,
-0.01731722615659237,
0.020011834800243378,
0.018034562468528748,
-0.022678853943943977,
-0.010428961366415024,
-0.038331493735313416,
0.003214217023923993,
-0.04616700857877731,
0.025180332362651825,
0.03818434849381447,
0.03564608097076416,
-0.07162324339151382,
0.023138683289289474,
0.03360443189740181,
0.028068069368600845,
0.011744077317416668,
0.02413191832602024,
-0.04568878561258316,
0.052199989557266235,
0.003211917821317911,
0.019662363454699516,
-0.029079698026180267,
0.040244389325380325,
0.0053294384852051735,
-0.02328583039343357,
-0.023304224014282227,
0.02915327064692974,
0.05374502018094063,
0.021005069836974144,
-0.055363625288009644,
-0.043040160089731216,
0.023672087118029594,
-0.0033958503045141697,
0.001955430256202817,
0.022513315081596375,
-0.0006535344873555005,
0.04565199837088585,
-0.03844185173511505,
0.02227420173585415,
-0.06124945729970932,
-0.014190377667546272,
-0.02413191832602024,
-0.0015588263049721718,
0.016333188861608505,
-0.00535702845081687,
-0.05701901391148567,
-0.07493402063846588,
-0.031102953478693962,
0.03818434849381447,
-0.021097036078572273,
-0.04050189256668091,
0.01460422482341528,
0.055363625288009644,
0.0019611781463027,
0.03991331160068512,
0.02030612714588642,
-0.016829805448651314,
0.03172832354903221,
-0.0000530601610080339,
-0.004161468241363764,
-0.025014793500304222,
0.042966585606336594,
0.0000539223437954206,
0.007950473576784134,
0.008419501595199108,
0.01870591565966606,
-0.06536953896284103,
-0.021446507424116135,
-0.05139068514108658,
0.02861986681818962,
-0.05801225081086159,
-0.034560881555080414,
-0.00458911107853055,
-0.0032349093817174435,
0.016645872965455055,
-0.0014335224404931068,
0.03571965545415878,
-0.07324184477329254,
-0.02729555405676365,
-0.04649808630347252,
0.05635685846209526,
-0.03697039186954498,
0.055216480046510696,
-0.026191961020231247,
-0.008741382509469986,
0.020949888974428177,
0.001436971127986908,
0.011615324765443802,
-0.037172719836235046,
0.019883083179593086,
0.08762534707784653,
-0.03400908410549164,
0.004051108844578266,
0.0069204531610012054,
0.08652175962924957,
-0.02089470997452736,
0.003531500231474638,
0.05506933107972145,
-0.06845960766077042,
0.042561937123537064,
-0.06231626495718956,
0.04351838305592537,
-0.0032533027697354555,
-0.01433752290904522,
-0.013261519372463226,
-0.0012875261018052697,
0.02999935857951641,
-0.00130591937340796,
0.026191961020231247,
0.015413527376949787,
-0.006612366531044245,
-0.048962779343128204,
-0.027902530506253242,
-0.022053483873605728,
0.007357292342931032,
-0.03503910452127457,
-0.01888984814286232,
0.0034349358174949884,
0.04510020092129707,
0.036952000111341476,
0.014024837873876095,
0.021317753940820694,
-0.04145834222435951,
-0.016765430569648743,
-0.009463316760957241,
0.023304224014282227,
0.001376043539494276,
0.00873678456991911,
-0.006051372736692429,
-0.040244389325380325,
0.021722406148910522,
0.03376997262239456,
-0.000030032697395654395,
-0.003322277218103409,
0.04804311692714691,
0.0395454466342926,
-0.03551732748746872,
0.05834332853555679,
0.007853909395635128,
0.02249492146074772,
-0.03360443189740181,
-0.011560145765542984,
-0.056467216461896896,
-0.029980964958667755,
0.00669973436743021,
-0.006961837876588106,
0.00774354999884963,
0.04057546705007553,
0.11543591320514679,
0.003736125072464347,
0.03454248607158661,
-0.04377589002251625,
0.010760040022432804,
-0.05289893224835396,
-0.043812673538923264,
0.06062408909201622,
-0.051353901624679565,
-0.040244389325380325,
-0.025842489674687386,
0.005232874304056168,
-0.028380755335092545,
-0.04609343409538269,
-0.021446507424116135,
0.03185707703232765,
-0.005674311425536871,
0.07761943340301514,
0.02632071264088154,
0.029833819717168808,
-0.04053867980837822,
0.035186249762773514,
-0.019717542454600334,
-0.021391326561570168,
-0.00747684808447957,
0.0395454466342926,
0.009546087123453617,
-0.06235305219888687,
-0.04053867980837822,
-0.006860674824565649,
0.038515426218509674,
0.01769428700208664,
-0.03268476948142052,
0.024922827258706093,
0.010199046693742275,
-0.019165746867656708,
0.030238471925258636,
-0.006111151073127985,
-0.020195767283439636,
0.010741646401584148,
0.01807134971022606,
0.03391711786389351,
0.01923931948840618,
0.08872894197702408,
-0.02729555405676365,
-0.004333904944360256,
0.010208242572844028,
0.001243842183612287,
-0.06062408909201622,
-0.04609343409538269,
-0.012516593560576439,
-0.06327271461486816,
0.00796886719763279,
-0.030348829925060272,
0.01109111774712801,
-0.007964269258081913,
0.017767861485481262,
0.02733234129846096,
0.013840906322002411,
-0.002489983569830656,
0.0007845862419344485,
-0.014981286600232124,
0.011468179523944855,
-0.0009420783026143909,
-0.007651583757251501,
0.017243653535842896,
-0.008322936482727528,
-0.006097355857491493,
-0.16274330019950867,
0.026375893503427505,
0.027221981436014175,
0.05650400370359421,
-0.043444812297821045,
0.03818434849381447,
-0.028104856610298157,
-0.02858307957649231,
0.0010294461390003562,
0.008603434078395367,
0.04782240092754364,
0.004239639732986689,
-0.02218223549425602,
-0.00205199490301311,
-0.006101954262703657,
0.025989634916186333,
0.039361514151096344,
-0.012902851216495037,
0.03281352296471596,
0.025713736191391945,
-0.032427266240119934,
0.012259088456630707,
-0.02547462470829487,
0.019294498488307,
0.04907314106822014,
-0.037172719836235046,
-0.024389423429965973,
-0.03345728665590286,
0.025750523433089256,
-0.042194072157144547,
0.032868701964616776,
-0.012921244837343693,
-0.035443756729364395,
0.061580535024404526,
0.03969259187579155,
0.0737200677394867,
0.01082441583275795,
-0.053009290248155594,
0.0183564443141222,
0.025529803708195686,
-0.023451369255781174,
0.036418598145246506,
-0.013978855684399605,
0.035535722970962524,
-0.03571965545415878,
0.028656654059886932,
0.011615324765443802,
-0.006143338978290558,
0.006685939151793718,
-0.0329422764480114,
0.003145242342725396,
-0.07114501297473907,
0.06801816821098328,
-0.03599555045366287,
0.026651790365576744,
-0.037264686077833176,
0.03329174593091011,
0.0019462336786091328,
-0.00961965974420309,
0.03840506449341774,
-0.008598835207521915,
0.019460037350654602,
-0.013298305682837963,
-0.0025152743328362703,
0.02595284767448902,
0.10506213456392288,
-0.06077123433351517,
0.030827054753899574,
0.012948834337294102,
-0.0015875657554715872,
0.020747564733028412,
-0.006607768125832081,
-0.05150104686617851,
0.003989032004028559,
-0.03443212807178497,
-0.019092174246907234,
-0.00787690095603466,
-0.012746509164571762,
-0.023101897910237312
] |
10,098 | torch.nn.modules.module | xpu | Move all model parameters and buffers to the XPU.
This also makes associated parameters and buffers different objects. So
it should be called before constructing optimizer if the module will
live on XPU while being optimized.
.. note::
This method modifies the module in-place.
Arguments:
device (int, optional): if specified, all parameters will be
copied to that device
Returns:
Module: self
| def xpu(self: T, device: Optional[Union[int, device]] = None) -> T:
r"""Move all model parameters and buffers to the XPU.
This also makes associated parameters and buffers different objects. So
it should be called before constructing optimizer if the module will
live on XPU while being optimized.
.. note::
This method modifies the module in-place.
Arguments:
device (int, optional): if specified, all parameters will be
copied to that device
Returns:
Module: self
"""
return self._apply(lambda t: t.xpu(device))
| (self: ~T, device: Union[int, torch.device, NoneType] = None) -> ~T | [
0.023983636870980263,
-0.02352847345173359,
-0.02158527448773384,
0.020499883219599724,
-0.022478096187114716,
-0.007645878475159407,
-0.05083831027150154,
-0.05567004904150963,
-0.004238713998347521,
-0.04222520813345909,
0.03655316308140755,
-0.07555720955133438,
-0.0014552115462720394,
0.06218239292502403,
-0.0009442463051527739,
0.04085971415042877,
-0.009050759486854076,
0.01339232362806797,
0.006827458739280701,
0.009024499915540218,
0.02233804576098919,
0.03359459713101387,
-0.028430238366127014,
0.04236525669693947,
-0.052658963948488235,
0.015895724296569824,
0.013103469274938107,
-0.017156178131699562,
0.011230294592678547,
-0.06347785890102386,
0.013908758759498596,
0.03548527881503105,
0.05465468391776085,
-0.031143715605139732,
0.014687789604067802,
0.02372104302048683,
0.018486658111214638,
0.07338643074035645,
-0.03226412087678909,
-0.05517987161874771,
-0.017173685133457184,
-0.0908927321434021,
0.021795349195599556,
0.0014267638325691223,
0.030933640897274017,
0.026294469833374023,
0.05531992390751839,
0.02729232981801033,
0.03555530682206154,
0.032281626015901566,
0.015965750440955162,
0.01755882427096367,
-0.02540164813399315,
0.024351270869374275,
-0.03242167830467224,
-0.017611343413591385,
0.013401076197624207,
0.0002289496478624642,
-0.0194495040923357,
-0.002023072447627783,
-0.007020028308033943,
0.01747129298746586,
0.00016070240235421807,
-0.04845745116472244,
0.048142340034246445,
-0.01894182153046131,
-0.00022676135995425284,
-0.01632463000714779,
-0.03291185200214386,
0.06347785890102386,
-0.03324447199702263,
-0.021095097064971924,
0.0013425147626549006,
0.022740690037608147,
0.05339422821998596,
-0.022390563040971756,
-0.018101518973708153,
0.012683317996561527,
-0.05003301799297333,
-0.07569726556539536,
-0.0022692547645419836,
0.06312773376703262,
-0.05910128355026245,
0.02557671070098877,
-0.025524191558361053,
-0.013357310555875301,
-0.016350889578461647,
-0.01705114170908928,
-0.04205014556646347,
-0.02039484493434429,
-0.016429666429758072,
0.015309263952076435,
0.012228153645992279,
0.06288264691829681,
0.06375796347856522,
0.01108149066567421,
-0.02319585345685482,
0.02737986110150814,
-0.07338643074035645,
-0.006394177675247192,
-0.005444461014121771,
0.039774324744939804,
-0.04450102522969246,
0.005523239262402058,
0.0246488768607378,
-0.009654726833105087,
0.008306741714477539,
0.010915180668234825,
0.03464497625827789,
-0.012333191931247711,
-0.06914990395307541,
0.07954864948987961,
-0.011055231094360352,
0.019677085801959038,
-0.02771248109638691,
-0.06071186438202858,
-0.053009092807769775,
0.018819278106093407,
0.015335522592067719,
0.040964752435684204,
-0.05024309456348419,
0.05073327198624611,
-0.019396984949707985,
-0.01535302959382534,
-0.0025931214913725853,
0.017926456406712532,
0.06078188866376877,
0.0074270498007535934,
-0.024508826434612274,
-0.05780581757426262,
-0.06529852002859116,
-0.04471110180020332,
-0.005413824692368507,
-0.005444461014121771,
0.007413920015096664,
-0.025209078565239906,
0.008109795860946178,
-0.0024443177971988916,
-0.005637030117213726,
0.019326960667967796,
-0.013943771831691265,
0.025051523000001907,
0.0167885459959507,
0.04296047240495682,
0.024193713441491127,
-0.013873746618628502,
0.004687312990427017,
0.024018650874495506,
-0.057420678436756134,
-0.055810101330280304,
-0.04663679748773575,
0.0331394337117672,
0.07450683414936066,
-0.021427717059850693,
-0.05805090814828873,
0.032456688582897186,
-0.023335903882980347,
-0.007816565223038197,
-0.004844869952648878,
-0.030723564326763153,
-0.06799449026584625,
-0.0014584939926862717,
-0.0057902103289961815,
0.055389948189258575,
0.008254222571849823,
-0.05637030303478241,
-0.02583930641412735,
-0.019852150231599808,
-0.007348271552473307,
0.02524409070611,
0.037148378789424896,
-0.054444607347249985,
0.1217738538980484,
0.04544636607170105,
-0.05209876224398613,
0.06606879085302353,
0.007532087620347738,
-0.05227382481098175,
0.019064366817474365,
0.0304434634745121,
0.049927979707717896,
0.032876841723918915,
0.03777860477566719,
-0.01757632941007614,
-0.026136912405490875,
-0.00269815931096673,
0.0016412161057814956,
0.026049381121993065,
0.01894182153046131,
-0.015983255580067635,
0.09558442234992981,
0.022635651752352715,
0.007702773902565241,
-0.01665724813938141,
0.009164550341665745,
0.015300510451197624,
-0.00007467532850569114,
-0.01048627682030201,
0.031178729608654976,
0.03690329194068909,
-0.021095097064971924,
-0.02839522622525692,
0.056405313313007355,
0.035782888531684875,
-0.061342090368270874,
-0.007934732362627983,
0.013339804485440254,
0.013462348841130733,
-0.007838447578251362,
-0.013191000558435917,
0.07282622903585434,
0.0029126114677637815,
0.013331050984561443,
0.01087141502648592,
-0.003696018597111106,
-0.010678846389055252,
0.016954855993390083,
0.014241378754377365,
0.00019639886158984154,
-0.028937922790646553,
0.018136531114578247,
0.005300033837556839,
-0.05339422821998596,
-0.03837382048368454,
-0.0033524574246257544,
-0.009059512987732887,
-0.04418591409921646,
-0.07076048105955124,
-0.03669321537017822,
-0.04103477671742439,
0.07667761296033859,
-0.03812873363494873,
-0.056160226464271545,
-0.005908377934247255,
0.04646173119544983,
0.004260596819221973,
-0.011764236725866795,
-0.0006367918103933334,
-0.02037733793258667,
-0.05654536560177803,
0.007584606762975454,
-0.006315399426966906,
0.0219879187643528,
-0.021095097064971924,
-0.026557063683867455,
0.03277180343866348,
-0.019904669374227524,
0.02225051261484623,
0.01577318087220192,
-0.011414110660552979,
0.006560487672686577,
0.000496741384267807,
-0.017672615125775337,
0.03588792309165001,
-0.0492977537214756,
-0.015536845661699772,
-0.011851768009364605,
-0.008551829494535923,
-0.0012856192188337445,
0.005947767291218042,
-0.03907407075166702,
0.010530042462050915,
0.009715999476611614,
0.026802152395248413,
0.06004662439227104,
-0.021042577922344208,
-0.04828238859772682,
-0.011869275011122227,
0.00013314365060068667,
0.06137710437178612,
-0.024876458570361137,
0.07758793979883194,
-0.000493732513859868,
0.007952239364385605,
0.017795158550143242,
0.003400599816814065,
-0.03945920988917351,
0.06806451082229614,
0.03427734598517418,
0.0015088246436789632,
0.0018370678881183267,
-0.0867612436413765,
-0.003593169152736664,
-0.0069456263445317745,
-0.035957951098680496,
-0.03327948600053787,
-0.003153323195874691,
0.03623805195093155,
0.04656676948070526,
-0.037708580493927,
-0.0008589031058363616,
0.04971790686249733,
-0.02900794707238674,
-0.014425194822251797,
0.017873937264084816,
-0.009444651193916798,
-0.09215319156646729,
0.05276400223374367,
0.025699255988001823,
0.004376576282083988,
0.0325092077255249,
0.013829980976879597,
-0.07090053707361221,
0.0612020418047905,
0.0730363056063652,
0.05416450649499893,
0.05686047673225403,
-0.01491537131369114,
-0.04478112608194351,
0.005833975970745087,
0.02669711410999298,
-0.00030362498364411294,
0.024456307291984558,
0.013427335768938065,
0.0365181528031826,
-0.04180505499243736,
0.06155216693878174,
0.01295466534793377,
-0.007260739803314209,
0.009348366409540176,
-0.03693830221891403,
0.0131384814158082,
0.014591504819691181,
0.027152279391884804,
-0.0256817489862442,
0.04782722517848015,
0.008661244064569473,
-0.007711527403444052,
-0.05297407880425453,
-0.012867134064435959,
-0.048912614583969116,
0.021935399621725082,
-0.02669711410999298,
0.020447364076972008,
-0.021515248343348503,
-0.029025454074144363,
0.02011474408209324,
0.00720822112634778,
0.041665006428956985,
0.012193141505122185,
0.02030731365084648,
0.04985795542597771,
-0.03886399790644646,
-0.006805575918406248,
-0.0017725133802741766,
-0.02932306006550789,
-0.01193930022418499,
-0.003269302425906062,
0.0043393755331635475,
0.017287475988268852,
0.015020409598946571,
0.075417160987854,
0.007186338305473328,
0.012306932359933853,
0.09278341382741928,
-0.008669997565448284,
-0.05679045245051384,
0.04922772943973541,
-0.021812856197357178,
-0.0033787167631089687,
0.006547357887029648,
0.002776937559247017,
-0.00586461229249835,
0.01587821915745735,
0.0457264669239521,
-0.024508826434612274,
-0.046356696635484695,
-0.03522268682718277,
-0.01790894940495491,
0.022110462188720703,
-0.01411008182913065,
-0.03711336478590965,
0.01909937895834446,
0.02531411685049534,
0.002481518778949976,
0.03949422389268875,
-0.07527711242437363,
-0.007610865868628025,
-0.02839522622525692,
-0.006967509165406227,
0.0831199362874031,
-0.044991202652454376,
0.07674764096736908,
-0.032281626015901566,
0.012858380563557148,
0.007203844375908375,
0.02787003666162491,
-0.03308691456913948,
0.013155988417565823,
-0.02209295704960823,
0.007514581549912691,
0.02046487107872963,
-0.040649641305208206,
0.028097618371248245,
-0.009952334687113762,
0.04240027070045471,
-0.03198402002453804,
-0.0000025900442324200412,
-0.04155996814370155,
-0.06767937541007996,
-0.009374625980854034,
-0.027589935809373856,
-0.003976119682192802,
0.04222520813345909,
0.00026067980797961354,
-0.052238814532756805,
0.017943961545825005,
0.008980734273791313,
0.00189177505671978,
0.05917131155729294,
-0.017208697274327278,
0.04338062182068825,
-0.01978212408721447,
0.00724761001765728,
0.004348128568381071,
-0.007733410224318504,
0.07037534564733505,
0.0038207510951906443,
0.06347785890102386,
0.01909937895834446,
-0.012394463643431664,
0.06746929883956909,
-0.012263166718184948,
-0.01764635555446148,
0.02081499621272087,
-0.0007511298754252493,
0.055389948189258575,
-0.02506902813911438,
-0.014967890456318855,
0.0700952410697937,
-0.04782722517848015,
0.025174066424369812,
-0.023423435166478157,
0.022215500473976135,
0.05279901623725891,
-0.031668905168771744,
0.0731063261628151,
0.003400599816814065,
-0.009479664266109467,
0.02916550450026989,
0.023826081305742264,
-0.011492889374494553,
0.045831505209207535,
-0.048807576298713684,
-0.03191399201750755,
0.015825700014829636,
-0.08536074310541153,
0.03289434686303139,
-0.07450683414936066,
0.041069790720939636,
0.07863832265138626,
0.001714523765258491,
0.1021667942404747,
-0.04492117837071419,
0.03079359047114849,
-0.08248970657587051,
-0.027519911527633667,
-0.08206955343484879,
0.027309834957122803,
-0.003566909581422806,
0.0007292469963431358,
-0.0051993727684021,
0.012228153645992279,
-0.06424813717603683,
-0.011501641944050789,
0.0831199362874031,
0.03434737026691437,
-0.017121165990829468,
0.048317402601242065,
0.006254127249121666,
0.027327341958880424,
-0.012420723214745522,
-0.0008911803015507758,
-0.03161638602614403,
-0.04698692262172699,
-0.03949422389268875,
-0.03819875791668892,
0.0368332639336586,
0.023003283888101578,
-0.06386300176382065,
-0.035957951098680496,
-0.021865375339984894,
0.07471691071987152,
0.06106198951601982,
-0.0024771420285105705,
0.07737787067890167,
0.07527711242437363,
-0.024333763867616653,
0.016858572140336037,
0.018644215539097786,
-0.025104040279984474,
0.007470815442502499,
-0.0013140670489519835,
-0.04373075067996979,
-0.08248970657587051,
-0.0028994816821068525,
0.005343799479305744,
-0.0007330765365622938,
0.01275334320962429,
0.007273869588971138,
0.02251310832798481,
0.014845346100628376,
-0.020499883219599724,
-0.05714057758450508,
0.009392132982611656,
0.014862853102385998,
-0.007729033473879099,
0.010092385113239288,
-0.038688935339450836,
0.012175635434687138,
-0.04530631750822067,
-0.040124449878931046,
-0.03973931074142456,
-0.014083822257816792,
-0.0005580134456977248,
-0.002424623118713498,
-0.029655680060386658,
0.03275429457426071,
-0.02013225108385086,
-0.039879363030195236,
0.04117482900619507,
0.051538560539484024,
0.008845060132443905,
0.015099188312888145,
0.01461776439100504,
0.019344467669725418,
-0.03212406858801842,
0.013742449693381786,
0.021847868338227272,
0.0044728610664606094,
-0.018609201535582542,
-0.059486422687768936,
-0.013724942691624165,
0.017287475988268852,
0.03068855218589306,
-0.037043340504169464,
-0.005685172509402037,
-0.01109024416655302,
-0.017156178131699562,
-0.03112621046602726,
-0.03847885876893997,
-0.018871797248721123,
0.05665040388703346,
-0.02932306006550789,
-0.028202656656503677,
-0.022828221321105957,
-0.038688935339450836,
0.05482974648475647,
-0.05952143669128418,
-0.004801104310899973,
-0.0692199319601059,
-0.05801589414477348,
-0.004431283567100763,
0.04544636607170105,
0.029988300055265427,
0.02352847345173359,
0.028955427929759026,
0.08220960944890976,
0.0005634842091239989,
0.024858953431248665,
-0.005155606660991907,
-0.02403615601360798,
0.031108703464269638,
0.028587795794010162,
0.04033452644944191,
0.02601436898112297,
-0.04593654349446297,
-0.004564769100397825,
-0.013576139695942402,
0.012096856720745564,
0.03648313879966736,
-0.032614246010780334,
-0.023265879601240158,
0.015545598231256008,
-0.0010859379544854164,
-0.016018269583582878,
0.04043956473469734,
0.07471691071987152,
-0.04474611580371857,
-0.025191573426127434,
-0.0038054329343140125,
0.030636033043265343,
-0.01398753747344017,
-0.03928414732217789,
0.00673992745578289,
-0.05398944392800331,
0.03531021624803543,
0.01462651789188385,
0.050453171133995056,
-0.07800809293985367,
0.02541915513575077,
0.01674478128552437,
-0.036973316222429276,
-0.006774940062314272,
0.01543180737644434,
-0.019291948527097702,
-0.09957586228847504,
0.00405270978808403,
0.05409448221325874,
0.020657438784837723,
-0.03378716856241226,
0.05094334855675697,
0.069780133664608,
-0.028972934931516647,
0.011632939800620079,
-0.07492698729038239,
-0.07233604788780212,
0.03268427029252052,
0.018311595544219017,
-0.010845155455172062,
0.03819875791668892,
-0.045831505209207535,
-0.04709196090698242,
0.0496128685772419,
-0.04782722517848015,
-0.05115342140197754,
-0.0182590764015913,
0.010433757677674294,
0.018101518973708153,
-0.0481073260307312,
-0.008880073204636574,
0.029953287914395332,
-0.029305554926395416,
-0.010600067675113678,
-0.010705105029046535,
0.04198011755943298,
0.016902336850762367,
-0.029393086209893227,
0.017322488129138947,
0.05833100900053978,
0.013584892265498638,
-0.06760934740304947,
0.030846109613776207,
0.021095097064971924,
-0.057105567306280136,
-0.06914990395307541,
-0.06410808861255646,
0.0304434634745121,
0.005234385374933481,
-0.04145492985844612,
0.04050958901643753,
0.04863251373171806,
0.04138490557670593,
-0.03991437330842018,
0.018801771104335785,
-0.04141991585493088,
-0.018048999831080437,
0.01902935281395912,
-0.0005902906996197999,
-0.007759669795632362,
-0.010512536391615868,
-0.014757814817130566,
-0.021515248343348503,
-0.03690329194068909,
0.017322488129138947,
0.036973316222429276,
-0.021865375339984894,
0.007024404592812061,
0.03749850392341614,
-0.015239238739013672,
-0.006669902242720127,
-0.0011958994437009096,
0.05864612013101578,
0.0032364781945943832,
0.02667960897088051,
0.0329468660056591,
-0.0472320094704628,
-0.03264926001429558,
-0.08522069454193115,
-0.0109939593821764,
-0.037148378789424896,
0.003107369178906083,
-0.036623191088438034,
-0.04436097666621208,
-0.011913040652871132,
-0.023773562163114548,
0.029813237488269806,
-0.02550668641924858,
-0.06137710437178612,
-0.004538509529083967,
0.0061140768229961395,
-0.0066611492075026035,
0.02233804576098919,
-0.009225822985172272,
-0.04908767715096474,
-0.01680605299770832,
-0.05013805627822876,
0.048912614583969116,
-0.008543076924979687,
-0.06274259835481644,
0.006293516606092453,
0.04145492985844612,
0.04513125494122505,
0.010853908956050873,
-0.037393465638160706,
-0.01318224798887968,
0.021007565781474113,
-0.014556492678821087,
0.028780365362763405,
0.025524191558361053,
-0.010346226394176483,
-0.04537634178996086,
-0.04352067410945892,
-0.010223682038486004,
0.023738550022244453,
0.04425593838095665,
-0.012945912778377533,
-0.013164740987122059,
-0.03291185200214386,
-0.009488416835665703,
0.07933857291936874,
0.002234242158010602,
-0.015361782163381577,
-0.008122925646603107,
0.04744208604097366,
0.005418201442807913,
-0.0516786128282547,
0.025769280269742012,
-0.0022736312821507454,
0.04894762858748436,
-0.018364114686846733,
0.007855954580008984,
0.02158527448773384,
0.008906332775950432,
0.0036697592586278915,
-0.007173208519816399,
0.013698683120310307,
-0.015930738300085068,
0.06375796347856522,
0.026889683678746223,
0.018871797248721123,
0.025104040279984474,
0.001495694974437356,
-0.03634309023618698,
0.040299512445926666,
-0.01614956557750702,
0.007059417199343443,
-0.016858572140336037,
-0.02804510109126568,
0.039529237896203995,
-0.02687217853963375,
0.005610770545899868,
-0.007339518517255783,
-0.017191192135214806,
0.009050759486854076,
0.006468579638749361,
0.019729604944586754,
-0.00456039234995842,
0.04222520813345909,
0.032036539167165756,
0.0412798672914505,
0.04212016984820366,
0.04282042011618614,
0.05728062987327576,
0.0974050834774971,
-0.022968271747231483,
0.03280681371688843,
0.027187291532754898,
-0.03718339279294014,
-0.10776881128549576,
-0.04544636607170105,
-0.03037343919277191,
-0.03566034138202667,
0.02643452025949955,
-0.001616050722077489,
0.0041030403226614,
0.03959926217794418,
-0.003022025804966688
] |
10,099 | torch.nn.modules.module | zero_grad | Reset gradients of all model parameters.
See similar function under :class:`torch.optim.Optimizer` for more context.
Args:
set_to_none (bool): instead of setting to zero, set the grads to None.
See :meth:`torch.optim.Optimizer.zero_grad` for details.
| def zero_grad(self, set_to_none: bool = True) -> None:
r"""Reset gradients of all model parameters.
See similar function under :class:`torch.optim.Optimizer` for more context.
Args:
set_to_none (bool): instead of setting to zero, set the grads to None.
See :meth:`torch.optim.Optimizer.zero_grad` for details.
"""
if getattr(self, '_is_replica', False):
warnings.warn(
"Calling .zero_grad() from a module created with nn.DataParallel() has no effect. "
"The parameters are copied (in a differentiable manner) from the original module. "
"This means they are not leaf nodes in autograd and so don't accumulate gradients. "
"If you need gradients in your forward method, consider using autograd.grad instead.")
for p in self.parameters():
if p.grad is not None:
if set_to_none:
p.grad = None
else:
if p.grad.grad_fn is not None:
p.grad.detach_()
else:
p.grad.requires_grad_(False)
p.grad.zero_()
| (self, set_to_none: bool = True) -> NoneType | [
-0.03355675935745239,
0.012698894366621971,
0.021143335849046707,
0.04018707200884819,
-0.08140552788972855,
-0.0006146854138933122,
-0.07252827286720276,
-0.021051248535513878,
0.03237803652882576,
0.00796558614820242,
-0.03974505141377449,
-0.015912754461169243,
0.04420209676027298,
0.04464411735534668,
0.015093174763023853,
0.04302337393164635,
-0.030462611466646194,
0.03611679747700691,
0.07355965673923492,
-0.0010532530723139644,
0.02064606361091137,
-0.061514586210250854,
-0.0008218827424570918,
0.05112709105014801,
-0.06254597008228302,
-0.046117521822452545,
-0.009862593375146389,
0.026318665593862534,
0.025397788733243942,
0.03871367126703262,
0.014632736332714558,
-0.0060869972221553326,
-0.008619409054517746,
0.024734755977988243,
0.05576831102371216,
-0.008771353401243687,
0.015212888829410076,
0.07481204718351364,
-0.026760686188936234,
-0.0031563059892505407,
0.03051786497235298,
-0.0489538237452507,
0.004825395531952381,
0.011750390753149986,
0.008145157247781754,
-0.0050003621727228165,
0.04317071661353111,
0.07978478819131851,
0.0005735337035730481,
0.010636129416525364,
0.032488539814949036,
0.008085300214588642,
-0.020572392269968987,
-0.003669694997370243,
0.002958317520096898,
0.032709550112485886,
0.03598787263035774,
-0.015820667147636414,
-0.005239790305495262,
-0.034956492483615875,
0.037479694932699203,
-0.02642917074263096,
0.006920390762388706,
-0.055915653705596924,
0.04755409061908722,
-0.024955768138170242,
-0.022156301885843277,
0.030536282807588577,
0.07551191747188568,
0.022119466215372086,
-0.04243401437997818,
0.0066855670884251595,
-0.01490899920463562,
0.0397082157433033,
0.04003973305225372,
-0.03180709108710289,
-0.006846720818430185,
-0.005074032582342625,
-0.07403851300477982,
-0.06604529917240143,
-0.029504898935556412,
0.04512297362089157,
-0.06169876083731651,
0.031954433768987656,
-0.03423820808529854,
-0.011962192133069038,
-0.017588751390576363,
0.007537378463894129,
0.0608883872628212,
-0.06140407919883728,
-0.0046228026039898396,
0.026042401790618896,
0.019725186750292778,
-0.004533017054200172,
0.0542580746114254,
0.02456899918615818,
-0.06228812038898468,
-0.0031355861574411392,
-0.05624716728925705,
-0.05403706431388855,
-0.0076202573254704475,
0.011253117583692074,
0.011464918963611126,
0.01950417459011078,
0.05923081189393997,
-0.07757467776536942,
-0.0013594446936622262,
-0.014107836410403252,
0.06471923738718033,
-0.02479000948369503,
-0.0657506212592125,
0.047185737639665604,
0.01462352741509676,
-0.018914813175797462,
-0.01935683563351631,
-0.008817397058010101,
-0.01177801750600338,
-0.013039618730545044,
-0.008274080231785774,
0.024053307250142097,
-0.0034348713234066963,
0.059304479509592056,
-0.07271245121955872,
-0.039192527532577515,
0.014476186595857143,
0.011805643327534199,
0.006404699757695198,
0.06140407919883728,
0.06457189470529556,
-0.11367306113243103,
-0.017441410571336746,
0.02753422223031521,
-0.04711207002401352,
0.005585119128227234,
-0.01694413647055626,
-0.014835328795015812,
-0.011464918963611126,
0.02178795076906681,
-0.0044754622504115105,
0.0066165016032755375,
0.00046533066779375076,
-0.03996606171131134,
0.022874584421515465,
0.06453505903482437,
0.03622730076313019,
0.0604463666677475,
0.040592260658741,
0.004070276394486427,
-0.03212019056081772,
0.0012708102585747838,
0.018933231011033058,
0.045638665556907654,
0.006786863785237074,
-0.0428023636341095,
-0.07201258093118668,
0.03622730076313019,
-0.03282005712389946,
0.01835307851433754,
-0.03556426987051964,
-0.0047333077527582645,
-0.026852773502469063,
0.003478612983599305,
0.009641582146286964,
-0.004588269628584385,
0.023169266059994698,
-0.048548635095357895,
0.030094260349869728,
-0.029431229457259178,
-0.005138493608683348,
0.012533136643469334,
-0.0038147331215441227,
-0.08619409054517746,
0.07403851300477982,
0.0366140715777874,
0.046817388385534286,
0.061956606805324554,
0.007850476540625095,
-0.045675501227378845,
-0.07293345779180527,
0.053226690739393234,
0.046596378087997437,
-0.002896158257499337,
0.01689809374511242,
-0.03316998854279518,
0.021032830700278282,
0.00844904687255621,
-0.05359504371881485,
-0.027718398720026016,
-0.005539075471460819,
-0.006639523431658745,
0.05827309936285019,
0.021106502041220665,
-0.008200409822165966,
-0.011722764931619167,
0.03922935947775841,
-0.00004989283115719445,
0.047406747937202454,
-0.0397082157433033,
0.04795927554368973,
-0.005686415825039148,
0.02068289741873741,
-0.03153083100914955,
0.0055620972998440266,
-0.00681449007242918,
-0.0864887684583664,
0.002333272248506546,
-0.040076568722724915,
0.05186379328370094,
-0.0014285105280578136,
0.010442745871841908,
0.040997445583343506,
0.0056726024486124516,
0.012487092055380344,
0.028620857745409012,
0.0044225119054317474,
-0.019172659143805504,
0.017662420868873596,
0.005838360171765089,
0.024421658366918564,
0.05580514669418335,
-0.05495794117450714,
-0.06298799067735672,
0.014669571071863174,
-0.018233364447951317,
0.017570333555340767,
0.021161753684282303,
-0.011612258851528168,
-0.05444224923849106,
0.006036349106580019,
-0.046117521822452545,
0.07153372466564178,
-0.00825105793774128,
-0.06416670978069305,
-0.006013326812535524,
0.07079702615737915,
-0.013048827648162842,
-0.016824422404170036,
-0.0007764144684188068,
-0.0520479679107666,
-0.043428558856248856,
-0.041660476475954056,
-0.03252537548542023,
-0.03329891338944435,
0.027810486033558846,
0.012929113581776619,
0.06424038112163544,
0.01694413647055626,
0.01305803656578064,
-0.0014400214422494173,
0.03060995228588581,
0.0005188566283322871,
-0.037332355976104736,
-0.04670688137412071,
0.0072058625519275665,
0.008421420119702816,
-0.026502840220928192,
0.028197254985570908,
0.021806368604302406,
-0.020922325551509857,
-0.00761104840785265,
0.01400653924793005,
-0.08368930220603943,
-0.0648665800690651,
0.014982669614255428,
0.04873281344771385,
0.0012765657156705856,
0.021032830700278282,
-0.014724823646247387,
-0.047259408980607986,
0.04383374750614166,
0.097023606300354,
-0.0076202573254704475,
0.010120438411831856,
-0.014015748165547848,
0.019043736159801483,
0.050353556871414185,
-0.04427576810121536,
0.01711910404264927,
0.04692789167165756,
0.03392510861158371,
0.07831138372421265,
-0.0697288066148758,
-0.03974505141377449,
-0.026502840220928192,
0.004820791073143482,
0.01299357507377863,
-0.0018820423865690827,
0.02709220163524151,
0.006266568321734667,
0.010461162775754929,
0.0696919709444046,
0.06066737696528435,
0.04081327095627785,
-0.0076616969890892506,
0.03444080054759979,
0.013131706044077873,
0.028528770431876183,
0.029633821919560432,
0.016161391511559486,
-0.0028339989949017763,
0.0542580746114254,
-0.027460552752017975,
-0.014107836410403252,
-0.016078513115644455,
0.0432443842291832,
-0.03674299269914627,
0.05934131518006325,
0.011400457471609116,
0.041660476475954056,
-0.0007021687342785299,
-0.015277349390089512,
-0.0167599618434906,
-0.008909485302865505,
-0.014522230252623558,
0.047885604202747345,
-0.05311618745326996,
0.027810486033558846,
-0.015047130174934864,
0.02368495613336563,
0.03026001900434494,
-0.03981872275471687,
0.02346394583582878,
-0.012956739403307438,
0.0511639267206192,
-0.008987760171294212,
0.020701315253973007,
0.0005720948684029281,
0.05466325953602791,
-0.06471923738718033,
0.029486482962965965,
-0.0006020233267918229,
0.010857139714062214,
0.016437655314803123,
0.0014112440403550863,
-0.025287283584475517,
0.003073427127674222,
0.03657723590731621,
0.0011251965770497918,
-0.017174355685710907,
-0.01813206821680069,
0.0031286797020584345,
0.013868408277630806,
-0.03003900870680809,
-0.011409666389226913,
-0.03267271816730499,
0.06810806691646576,
-0.002246940042823553,
-0.005451592151075602,
0.0820685625076294,
-0.015341810882091522,
-0.0015873617958277464,
0.08553105592727661,
-0.0034233604092150927,
0.046964727342128754,
0.06390886753797531,
0.011529380455613136,
-0.03630097210407257,
0.04401792213320732,
0.03736918792128563,
-0.05632083863019943,
-0.027718398720026016,
-0.015489151701331139,
-0.020756568759679794,
0.041844651103019714,
0.06074104830622673,
-0.010378284379839897,
-0.02725796028971672,
-0.009369923733174801,
-0.018150486052036285,
-0.030591534450650215,
0.0083799809217453,
-0.09621322900056839,
-0.023408694192767143,
-0.028786616399884224,
-0.03344625234603882,
0.011170238256454468,
-0.018113650381565094,
0.00611001905053854,
0.06273014098405838,
0.02409014292061329,
-0.033059485256671906,
-0.062177617102861404,
0.03937670215964317,
0.005819942802190781,
0.002525505144149065,
-0.015028713271021843,
0.021953707560896873,
-0.03304106742143631,
0.0644245594739914,
-0.04950634762644768,
0.07639595866203308,
-0.028160419315099716,
-0.0016207435401156545,
0.03392510861158371,
0.033851440995931625,
0.026263412088155746,
0.055915653705596924,
0.028031496331095695,
-0.03348308801651001,
-0.06678200513124466,
-0.015249723568558693,
-0.0869307890534401,
-0.013002783991396427,
0.039892394095659256,
-0.012717311270534992,
-0.024679504334926605,
0.01547994278371334,
-0.0042498474940657616,
0.018426749855279922,
0.023574450984597206,
0.012275290675461292,
0.0009508055518381298,
-0.05495794117450714,
0.0383821539580822,
0.0569101981818676,
0.018822725862264633,
0.017542706802487373,
0.022745663300156593,
0.09098265320062637,
0.058788787573575974,
0.045675501227378845,
0.01109656784683466,
0.02099599689245224,
0.020369799807667732,
0.020609227940440178,
0.00505101028829813,
-0.002850114367902279,
-0.02589506097137928,
-0.02311401255428791,
0.051237598061561584,
-0.007836663164198399,
-0.0397082157433033,
0.00816357508301735,
-0.014448560774326324,
-0.025176778435707092,
0.05587881803512573,
0.012744938023388386,
0.056615520268678665,
-0.022874584421515465,
-0.017717674374580383,
0.04110794886946678,
-0.07378067076206207,
-0.010516415350139141,
-0.06505075097084045,
-0.005847569089382887,
-0.001981036737561226,
0.023445529863238335,
-0.014964251779019833,
-0.09415046870708466,
0.016115348786115646,
-0.020369799807667732,
0.028399847447872162,
-0.0007280684076249599,
-0.013067244552075863,
-0.026392335072159767,
-0.002184780780225992,
-0.016833631321787834,
-0.015995634719729424,
0.021198589354753494,
0.012330543249845505,
0.02200896106660366,
0.029302306473255157,
-0.049469511955976486,
-0.023058760911226273,
0.01711910404264927,
-0.00822803657501936,
0.03948720544576645,
-0.015074756927788258,
-0.059083469212055206,
-0.023740209639072418,
-0.013638189062476158,
-0.06228812038898468,
0.004514599684625864,
-0.04317071661353111,
-0.041402630507946014,
0.0043649571016430855,
-0.028860285878181458,
0.009825757704675198,
-0.001565490965731442,
-0.045454490929841995,
-0.03908202052116394,
-0.04538081958889961,
0.04825395718216896,
0.05989384278655052,
0.011989818885922432,
0.001799163524992764,
-0.05164278298616409,
-0.012514718808233738,
-0.02184320241212845,
0.037866462022066116,
-0.0034624976105988026,
-0.06147775053977966,
-0.0025278073735535145,
-0.0432443842291832,
-0.026944860816001892,
0.026097655296325684,
0.025066273286938667,
0.007790619507431984,
0.01649290695786476,
0.02399805560708046,
0.025692468509078026,
0.008292497135698795,
-0.03388827294111252,
0.031328234821558,
-0.01795710250735283,
-0.01045195385813713,
-0.03827165067195892,
0.01931999996304512,
-0.03287531062960625,
0.013905243016779423,
-0.014853746630251408,
-0.01645607315003872,
-0.006257359404116869,
-0.0071414015255868435,
-0.013905243016779423,
-0.05429491028189659,
-0.006243546027690172,
0.03361201286315918,
0.004261358641088009,
-0.06597162783145905,
-0.010019142180681229,
0.08973025530576706,
-0.06405620276927948,
0.04803294688463211,
-0.014089418575167656,
0.0388241745531559,
-0.010893975384533405,
0.0031747235916554928,
0.04283919930458069,
-0.045196644961833954,
0.0608883872628212,
-0.0038492658641189337,
0.007574213668704033,
0.08346829563379288,
0.006183688994497061,
-0.04998520389199257,
0.015627283602952957,
-0.1151464655995369,
-0.05241632089018822,
-0.037166595458984375,
-0.006648731883615255,
0.049027491360902786,
-0.0010647641029208899,
-0.024071725085377693,
0.007030895911157131,
0.0014043374685570598,
-0.04379691183567047,
0.05650501325726509,
-0.012468675151467323,
-0.004171573091298342,
-0.05554730072617531,
-0.005382526200264692,
-0.0019407483050599694,
0.006238942034542561,
0.02659492753446102,
0.02333502285182476,
0.020351381972432137,
0.05786791071295738,
0.023629704490303993,
0.03630097210407257,
-0.030812544748187065,
-0.05654184892773628,
0.022469399496912956,
0.030996721237897873,
0.012008236721158028,
-0.0006728157750330865,
-0.01954101026058197,
-0.013122497126460075,
-0.010037560015916824,
0.003752573858946562,
0.008352354168891907,
-0.03543534874916077,
-0.042065661400556564,
0.027755234390497208,
0.006206711288541555,
0.019964613020420074,
-0.015783831477165222,
-0.043870583176612854,
-0.03449605405330658,
-0.018196530640125275,
-0.00005866993888048455,
-0.0569101981818676,
-0.034569721668958664,
-0.012818608433008194,
0.019209494814276695,
0.013932869769632816,
-0.030812544748187065,
0.044312603771686554,
0.01786501333117485,
-0.07867973297834396,
-0.023961219936609268,
0.01707305945456028,
0.02933914214372635,
-0.021290676668286324,
-0.06648731976747513,
0.015074756927788258,
-0.03003900870680809,
-0.03981872275471687,
0.0794164314866066,
0.02346394583582878,
-0.030407359823584557,
0.0021824785508215427,
0.04578600451350212,
-0.0035868159029632807,
-0.05274783447384834,
0.008278684690594673,
-0.05993067845702171,
0.05632083863019943,
0.047222573310136795,
-0.03823481500148773,
-0.024421658366918564,
0.0027557245921343565,
-0.0050418018363416195,
-0.026134489104151726,
-0.04379691183567047,
-0.04755409061908722,
0.006404699757695198,
0.0502798855304718,
-0.004199199378490448,
-0.037203431129455566,
-0.03477231785655022,
-0.025121524930000305,
-0.029873250052332878,
0.027847321704030037,
-0.029873250052332878,
0.024513745680451393,
-0.0133435083553195,
-0.06387203186750412,
-0.017745301127433777,
0.04136579483747482,
-0.024716340005397797,
-0.06608213484287262,
-0.020259294658899307,
0.06818173825740814,
0.021106502041220665,
-0.067960724234581,
0.018666177988052368,
0.029983755201101303,
-0.0014434747863560915,
-0.04987470060586929,
0.009963889606297016,
0.029891667887568474,
0.046780552715063095,
-0.03466181084513664,
-0.05090608075261116,
-0.04401792213320732,
0.0020029074512422085,
-0.007786015048623085,
0.034735482186079025,
-0.019964613020420074,
-0.04556499421596527,
0.02510310709476471,
0.0025738512631505728,
0.007192049641162157,
-0.003651277394965291,
0.0032000476494431496,
0.024679504334926605,
-0.018804308027029037,
0.022874584421515465,
-0.03904518485069275,
-0.0011430386221036315,
-0.011833270080387592,
0.04427576810121536,
0.028952373191714287,
0.01931999996304512,
-0.011013689450919628,
-0.005497635807842016,
-0.004742516670376062,
0.014568274840712547,
-0.007799828425049782,
-0.09503450989723206,
0.03908202052116394,
-0.04283919930458069,
0.008932506665587425,
0.021364346146583557,
-0.04313388094305992,
0.026852773502469063,
-0.03701925650238991,
-0.024366406723856926,
0.017146730795502663,
0.0076616969890892506,
0.05097975209355354,
-0.014218341559171677,
0.053484536707401276,
0.028399847447872162,
0.0600043460726738,
-0.008439837954938412,
0.00030590384267270565,
0.05687336623668671,
0.000694686605129391,
-0.02823408879339695,
-0.040334414690732956,
0.08479435741901398,
0.02889712154865265,
0.04538081958889961,
-0.027736816555261612,
-0.05668918788433075,
-0.04759092628955841,
0.002633708296343684,
-0.018288617953658104,
-0.005083241034299135,
0.01329746376723051,
-0.039855558425188065,
0.03677982836961746,
-0.007224280387163162,
0.013840781524777412,
-0.006390886381268501,
0.009144308976829052,
-0.062398627400398254,
-0.02548987604677677,
0.009687626734375954,
0.004346539732068777,
-0.04269186034798622,
-0.02769998088479042,
-0.002944504376500845,
-0.016870466992259026,
0.005741668399423361,
-0.024642668664455414,
-0.04398108646273613,
0.02311401255428791,
0.021253840997815132,
-0.03142032399773598,
0.033464670181274414,
0.01237658690661192,
0.026355501264333725,
-0.03095988556742668,
-0.022082630544900894,
-0.02665018104016781,
0.0042130122892558575,
0.00030360164237208664,
0.025379370898008347,
-0.022432563826441765,
0.08847786486148834,
-0.025471458211541176,
0.040113404393196106,
-0.02532411739230156,
0.07215992361307144,
0.03845582529902458,
-0.05761006474494934,
0.0011614561080932617,
-0.04597017914056778,
-0.012744938023388386,
-0.027460552752017975,
0.03587736934423447,
0.007606444414705038,
0.002672845497727394,
-0.05230581387877464,
-0.002900762716308236,
0.010921601206064224,
-0.019522592425346375,
0.02782890386879444,
0.042102497071027756,
0.026226578280329704,
-0.01228449959307909,
0.0807425007224083,
-0.02377704530954361,
-0.02188003808259964,
-0.004820791073143482,
-0.028252506628632545,
-0.07661696523427963,
-0.03930303081870079,
0.000449790881248191,
-0.013638189062476158,
0.008918694220483303,
0.03521433845162392,
0.011575424112379551,
0.04619119316339493,
-0.041181620210409164
] |
10,100 | sentence_transformers.datasets.SentencesDataset | SentencesDataset |
DEPRECATED: This class is no longer used. Instead of wrapping your List of InputExamples in a SentencesDataset
and then passing it to the DataLoader, you can pass the list of InputExamples directly to the dataset loader.
| class SentencesDataset(Dataset):
"""
DEPRECATED: This class is no longer used. Instead of wrapping your List of InputExamples in a SentencesDataset
and then passing it to the DataLoader, you can pass the list of InputExamples directly to the dataset loader.
"""
def __init__(self, examples: List[InputExample], model: SentenceTransformer):
self.examples = examples
def __getitem__(self, item):
return self.examples[item]
def __len__(self):
return len(self.examples)
| (examples: List[sentence_transformers.readers.InputExample.InputExample], model: <module 'sentence_transformers.SentenceTransformer' from '/usr/local/lib/python3.10/site-packages/sentence_transformers/SentenceTransformer.py'>) | [
-0.015980927273631096,
-0.02547602914273739,
-0.02117706649005413,
-0.03203662112355232,
-0.02259759232401848,
0.02986844815313816,
-0.0283544659614563,
0.010336202569305897,
0.11139921844005585,
0.031531959772109985,
-0.009747431613504887,
-0.02209293283522129,
-0.046428799629211426,
-0.001755799283273518,
0.029176875948905945,
0.0034134702291339636,
-0.004700822755694389,
-0.00759794982150197,
0.0007762665627524257,
-0.003988222684711218,
-0.027102159336209297,
0.0343543216586113,
-0.021999476477503777,
0.03274688497185707,
-0.010364239104092121,
0.05072776600718498,
0.020149054005742073,
-0.04859697446227074,
0.010794135741889477,
-0.014392180368304253,
-0.02345738559961319,
0.0047054956667125225,
-0.03145719692111015,
0.0323917530477047,
-0.0008300035842694342,
-0.014037049375474453,
-0.034410394728183746,
0.016887448728084564,
0.005513887386769056,
0.03259735554456711,
-0.013700608164072037,
-0.08104480057954788,
0.03371882438659668,
0.003203194821253419,
0.005392394959926605,
0.05356881767511368,
-0.02581246942281723,
0.012831469997763634,
-0.04018595814704895,
-0.06855911761522293,
0.02188733033835888,
0.003497580299153924,
0.024354560300707817,
0.01823321171104908,
-0.06003595516085625,
0.013382858596742153,
0.013831446878612041,
0.1267259567975998,
0.013784718699753284,
0.06732550263404846,
0.05887710303068161,
-0.00003066515637328848,
0.052372585982084274,
-0.009200715459883213,
-0.013625843450427055,
0.014794040471315384,
-0.01379406452178955,
0.01573794335126877,
-0.009794159792363644,
0.007686732802540064,
-0.021382668986916542,
-0.0020209799986332655,
-0.01900889351963997,
0.07046560943126678,
0.023345239460468292,
0.015074407681822777,
-0.04684000834822655,
0.02018643543124199,
0.03057871200144291,
0.012859506532549858,
0.01599961891770363,
-0.02254151925444603,
-0.010111908428370953,
0.008822220377624035,
-0.009691358543932438,
-0.0659797415137291,
0.019943449646234512,
-0.015289356000721455,
-0.024784456938505173,
0.046354036778211594,
-0.07797945290803909,
0.10040882229804993,
-0.007182071916759014,
0.008611944504082203,
0.004334008786827326,
-0.012728668749332428,
-0.02235460840165615,
-0.039176639169454575,
-0.005803599953651428,
0.011270759627223015,
0.03741966933012009,
0.04769979789853096,
0.051400646567344666,
0.016429515555500984,
-0.03332630917429924,
-0.04777456447482109,
-0.02201816812157631,
-0.03913925588130951,
-0.009354917332530022,
0.013551079668104649,
-0.0394756942987442,
0.03854113817214966,
0.012242699041962624,
0.04377466067671776,
-0.01940140686929226,
-0.045120421797037125,
0.020373346284031868,
0.00049005844630301,
-0.054129552096128464,
-0.004207843914628029,
-0.002738252514973283,
0.07797945290803909,
-0.11566080152988434,
0.012065133079886436,
-0.01607438363134861,
0.007686732802540064,
0.02123313955962658,
-0.03005535900592804,
0.02691524662077427,
-0.08747455477714539,
0.026148909702897072,
-0.027550745755434036,
-0.011195994913578033,
0.034728147089481354,
0.08328773826360703,
-0.05783040076494217,
0.08545590937137604,
0.03670940548181534,
-0.04889603331685066,
0.04684000834822655,
-0.001561878714710474,
0.03373751416802406,
0.06556852906942368,
0.049905356019735336,
-0.005481177940964699,
-0.028915200382471085,
-0.007210108917206526,
-0.04059716314077377,
-0.011457671411335468,
-0.008639981038868427,
-0.01824255660176277,
-0.00225345091894269,
0.0033714151941239834,
-0.03783087432384491,
-0.0019894386641681194,
0.004443819634616375,
-0.05984904244542122,
-0.12336155027151108,
0.05042870715260506,
-0.0435129813849926,
-0.0317375622689724,
-0.023737752810120583,
-0.04541948065161705,
0.05992380902171135,
-0.03431693837046623,
0.02057894878089428,
-0.038653284311294556,
-0.0394756942987442,
-0.04736335948109627,
0.01947617158293724,
0.023868590593338013,
-0.011728692799806595,
0.03626082092523575,
0.02476576529443264,
0.019700465723872185,
0.02646666020154953,
0.01718650758266449,
0.062241509556770325,
0.03641034662723541,
-0.03155064955353737,
0.004710168112069368,
0.033419765532016754,
-0.036092597991228104,
-0.021793873980641365,
0.011410943232476711,
0.004710168112069368,
-0.007579258643090725,
0.06429753452539444,
0.00728487316519022,
0.017205197364091873,
0.017550984397530556,
-0.03190578147768974,
-0.022167697548866272,
0.006583955604583025,
-0.021999476477503777,
-0.00152683281339705,
-0.04097098857164383,
-0.019382717087864876,
-0.022765813395380974,
0.005149410106241703,
-0.030634785071015358,
0.013962284661829472,
0.046877387911081314,
-0.04026072472333908,
-0.05169970542192459,
0.06867126375436783,
-0.04044763371348381,
0.04317654296755791,
-0.13106229901313782,
-0.047998856753110886,
0.02822362817823887,
-0.020410729572176933,
0.014504327438771725,
0.0038807487580925226,
0.08792313933372498,
-0.0722973421216011,
-0.0013037072494626045,
-0.016952866688370705,
-0.022971415892243385,
-0.04313915967941284,
0.11880090832710266,
-0.014326761476695538,
0.010373584926128387,
0.03584961220622063,
0.019719157367944717,
-0.008186721242964268,
0.0565967820584774,
-0.012495029717683792,
-0.013121183030307293,
-0.012373536825180054,
-0.008121302351355553,
-0.012111861258745193,
0.026092836633324623,
-0.0013621171237900853,
0.03691500797867775,
0.0007710097124800086,
0.030017977580428123,
0.0052895937114953995,
0.016756610944867134,
0.009906305931508541,
-0.021719109266996384,
0.028242317959666252,
0.016373442485928535,
-0.03429824858903885,
-0.003635427448898554,
0.046241890639066696,
0.03156934306025505,
0.006953105330467224,
-0.013672571629285812,
-0.006784885190427303,
0.022130314260721207,
0.01489684171974659,
-0.007845607586205006,
0.027064776048064232,
0.04811100289225578,
-0.027532054111361504,
0.0077428063377738,
-0.041270047426223755,
0.02168172597885132,
-0.041195280849933624,
-0.05592390149831772,
-0.009915651753544807,
-0.03248520940542221,
0.0974930077791214,
-0.044073715806007385,
0.023831209167838097,
0.011868876405060291,
0.011597855016589165,
0.014065085910260677,
0.009887615218758583,
0.13023988902568817,
0.10317511111497879,
0.022055549547076225,
-0.05562484264373779,
0.02484053000807762,
0.00862129032611847,
0.014280034229159355,
-0.04717644676566124,
0.015298700891435146,
0.044858746230602264,
0.03738228604197502,
-0.020485494285821915,
-0.033102016896009445,
-0.018139755353331566,
0.068260058760643,
-0.04549424350261688,
-0.016812684014439583,
0.03842899203300476,
-0.030242271721363068,
-0.015560377389192581,
0.007560567930340767,
0.023550841957330704,
0.05562484264373779,
-0.04239151254296303,
-0.03738228604197502,
-0.04003642871975899,
-0.0592135451734066,
0.048970796167850494,
0.03743836283683777,
-0.0112053407356143,
-0.02547602914273739,
-0.03026096150279045,
0.06399847567081451,
0.034541234374046326,
-0.0488586500287056,
-0.060148101300001144,
0.015831399708986282,
-0.014663202688097954,
-0.008224103599786758,
-0.03784956783056259,
0.050615616142749786,
0.03880281373858452,
-0.026485349982976913,
-0.019962141290307045,
-0.030074050650000572,
0.046354036778211594,
-0.013186601921916008,
0.022429373115301132,
0.029887139797210693,
0.042765337973833084,
-0.038653284311294556,
-0.02418634109199047,
0.021812565624713898,
-0.002167004393413663,
0.03366275131702423,
0.026354512199759483,
0.0960724800825119,
-0.023083562031388283,
-0.001181046711280942,
0.016569698229432106,
0.030485255643725395,
-0.04373727738857269,
0.0001969871373148635,
0.003740565152838826,
-0.04919509217143059,
0.010252092033624649,
0.0217564906924963,
0.0030536656267941,
0.03513935208320618,
-0.015261318534612656,
-0.016223913058638573,
-0.059176161885261536,
-0.02254151925444603,
0.028933890163898468,
-0.01175672933459282,
-0.04280272126197815,
0.018186483532190323,
-0.0181584469974041,
0.04448492079973221,
0.053942643105983734,
0.011728692799806595,
0.017691167071461678,
0.023046180605888367,
0.028410539031028748,
0.07218519598245621,
-0.024728383868932724,
0.019130386412143707,
-0.004981189966201782,
-0.03110206313431263,
-0.030541328713297844,
0.03654118627309799,
-0.033027250319719315,
0.03327023610472679,
0.0018305638805031776,
-0.026279747486114502,
0.010074527002871037,
0.030373109504580498,
-0.07738133519887924,
0.012859506532549858,
0.05364358425140381,
-0.04007381200790405,
-0.01900889351963997,
-0.009990416467189789,
0.03955046087503433,
0.06452182680368423,
-0.07136278599500656,
-0.03861590474843979,
0.0217564906924963,
-0.03409264609217644,
0.01255110278725624,
-0.07315713912248611,
-0.024410633370280266,
0.028840435668826103,
0.009429682046175003,
0.012177280150353909,
0.016513625159859657,
-0.011952986940741539,
0.03177494555711746,
0.015560377389192581,
-0.004492883570492268,
0.012924926355481148,
-0.050353940576314926,
-0.04766241833567619,
-0.032447826117277145,
-0.07259640097618103,
-0.039438314735889435,
-0.06743764877319336,
-0.006163404788821936,
0.014251996763050556,
-0.03788694739341736,
-0.016429515555500984,
-0.009551174938678741,
0.0025910597760230303,
0.0382794626057148,
-0.036242127418518066,
0.0422046035528183,
0.038914959877729416,
-0.01569121517241001,
-0.019943449646234512,
0.007401693146675825,
0.041008368134498596,
0.04358774796128273,
0.01992475986480713,
0.021775182336568832,
0.018130410462617874,
0.0034578617196530104,
-0.023831209167838097,
0.01489684171974659,
0.009803504683077335,
0.052372585982084274,
0.035550557076931,
0.036242127418518066,
0.03515804186463356,
0.007976445369422436,
0.019831303507089615,
0.015906162559986115,
-0.058316368609666824,
-0.010336202569305897,
0.0025466682855039835,
-0.03209269419312477,
-0.05756872147321701,
-0.0237751342356205,
-0.04784932732582092,
-0.06422276794910431,
-0.019102349877357483,
0.004502229392528534,
-0.028204936534166336,
-0.04343821853399277,
-0.016448207199573517,
0.023737752810120583,
0.012635213322937489,
-0.009775468148291111,
0.06702644377946854,
0.03005535900592804,
0.002843390218913555,
-0.05405478924512863,
-0.06769932061433792,
0.05095205828547478,
0.04130742698907852,
-0.0631386861205101,
0.02384989894926548,
0.012009060010313988,
0.0736057236790657,
0.009168006479740143,
0.00778953405097127,
-0.0035466444678604603,
0.026298439130187035,
-0.05308284983038902,
-0.01797153428196907,
0.0015011325012892485,
-0.0022955061867833138,
-0.013027727603912354,
0.03723276033997536,
-0.025961998850107193,
0.031139446422457695,
-0.0026751700788736343,
-0.013616498559713364,
-0.022915342822670937,
-0.020691096782684326,
-0.007060579489916563,
0.03332630917429924,
0.00839232373982668,
0.026036763563752174,
-0.06384894996881485,
-0.002323542721569538,
0.025924617424607277,
0.030765622854232788,
-0.009275480173528194,
-0.008411014452576637,
-0.028765670955181122,
0.021476123481988907,
-0.03691500797867775,
0.014924878254532814,
0.013990321196615696,
-0.03437301516532898,
-0.036952391266822815,
-0.0488586500287056,
-0.03678417205810547,
0.014317416585981846,
0.006350316107273102,
-0.010448349639773369,
0.030223580077290535,
0.04429801180958748,
-0.058652810752391815,
0.05304546654224396,
0.025046132504940033,
0.054652903228998184,
0.03366275131702423,
0.009317534975707531,
0.009443700313568115,
0.017102396115660667,
-0.022522827610373497,
0.00669610220938921,
-0.05592390149831772,
0.06698905676603317,
0.022055549547076225,
0.007710096891969442,
0.015644486993551254,
-0.040410254150629044,
-0.031924474984407425,
-0.06358727067708969,
-0.01581270806491375,
0.05072776600718498,
0.008798856288194656,
0.06168077513575554,
0.002901799976825714,
-0.05652201920747757,
0.07027870416641235,
0.012906234711408615,
0.05274640768766403,
0.030429182574152946,
0.04919509217143059,
-0.021195756271481514,
-0.030821695923805237,
-0.014223960228264332,
-0.036634642630815506,
-0.012495029717683792,
-0.045718539506196976,
0.029102111235260963,
0.05454075708985329,
0.014980952255427837,
-0.03235436975955963,
0.02654142491519451,
0.04627927392721176,
-0.011317487806081772,
0.057606104761362076,
0.008537179790437222,
-0.0074858032166957855,
0.06736288219690323,
0.012635213322937489,
0.005892382934689522,
0.009196043014526367,
0.030074050650000572,
-0.017952844500541687,
0.03269081190228462,
-0.020167743787169456,
-0.051325879991054535,
0.07173661142587662,
0.007055907044559717,
0.05203614383935928,
-0.05297069996595383,
-0.019326642155647278,
-0.018448159098625183,
-0.0567089319229126,
0.0647835060954094,
-0.03467207029461861,
-0.03383097052574158,
0.0015537013532593846,
-0.0064531173557043076,
0.026896556839346886,
-0.030541328713297844,
-0.03267211839556694,
0.0012698295759037137,
-0.0010326857445761561,
0.051325879991054535,
0.038728050887584686,
-0.0048877340741455555,
-0.03906448930501938,
-0.06788623332977295,
-0.05880234017968178,
0.0376252718269825,
-0.006579282693564892,
0.010560496710240841,
0.08171767741441727,
-0.029849756509065628,
0.04519518464803696,
-0.005869019310921431,
-0.021401360630989075,
-0.011588509194552898,
-0.03455992415547371,
-0.022691048681735992,
0.06097051128745079,
-0.0077241151593625546,
0.012794087640941143,
0.018709834665060043,
-0.024728383868932724,
-0.0028620813973248005,
0.003446179674938321,
-0.02745729126036167,
0.027401216328144073,
-0.007509166840463877,
0.004724186845123768,
-0.013065109960734844,
0.043027013540267944,
0.058316368609666824,
-0.011401597410440445,
-0.016186529770493507,
-0.04156910255551338,
0.00023816605971660465,
-0.013709953986108303,
-0.008532507345080376,
0.038391608744859695,
-0.03992428258061409,
0.01960700936615467,
0.06257794797420502,
-0.06246580183506012,
-0.0631386861205101,
0.0002613839751575142,
-0.02756943739950657,
0.01595289073884487,
-0.0230648722499609,
0.048185769468545914,
-0.016980905085802078,
-0.060409776866436005,
-0.021158374845981598,
-0.06900770217180252,
-0.026279747486114502,
0.010214709676802158,
0.050877295434474945,
-0.04646618291735649,
0.05312022939324379,
-0.0157566349953413,
0.015765979886054993,
-0.0038527119904756546,
-0.0738300159573555,
-0.059624750167131424,
-0.00332468724809587,
-0.028055407106876373,
-0.018121063709259033,
-0.05143802613019943,
0.034148719161748886,
-0.036242127418518066,
0.037662655115127563,
0.013672571629285812,
0.0329337939620018,
0.006929741706699133,
-0.0037148648407310247,
-0.021943403407931328,
0.032242223620414734,
0.01743883639574051,
-0.023943355306982994,
-0.009364263154566288,
-0.019719157367944717,
0.02654142491519451,
-0.03136374056339264,
-0.04280272126197815,
-0.04560638964176178,
-0.0013586125569418073,
0.031980548053979874,
-0.004086351487785578,
-0.006644701585173607,
0.026354512199759483,
-0.008574562147259712,
0.014233306050300598,
0.00034666230203583837,
0.013401550240814686,
0.01313052885234356,
-0.021270520985126495,
0.029831064864993095,
-0.05513887479901314,
-0.02018643543124199,
0.038578521460294724,
0.03312070667743683,
-0.005359685514122248,
0.03474683687090874,
-0.018831327557563782,
-0.003476552665233612,
0.007364310789853334,
0.017401454970240593,
0.023494767025113106,
-0.06411062180995941,
0.04130742698907852,
-0.038186006247997284,
0.004812969360500574,
0.04426062852144241,
-0.055587463080883026,
0.006247514858841896,
-0.05513887479901314,
0.007214781362563372,
-0.00007140600791899487,
0.008443724364042282,
0.008551198057830334,
0.019382717087864876,
-0.0067895581014454365,
-0.0580173097550869,
0.038055170327425,
0.0012266063131392002,
-0.031793635338544846,
-0.0058129457756876945,
-0.04373727738857269,
0.01678464747965336,
0.03497112914919853,
0.0016097747720777988,
-0.046877387911081314,
0.01293427124619484,
-0.04769979789853096,
-0.008625962771475315,
-0.06844697147607803,
-0.049307238310575485,
0.016522971913218498,
0.0022008821833878756,
0.029438551515340805,
-0.03764396533370018,
0.020747169852256775,
-0.0070839435793459415,
0.021775182336568832,
-0.08433444052934647,
0.014616474509239197,
-0.006093312986195087,
0.011233377270400524,
0.06747502833604813,
0.021401360630989075,
0.021251831203699112,
-0.005032590590417385,
0.01600896567106247,
-0.017298653721809387,
0.0335879847407341,
0.013635189272463322,
-0.008574562147259712,
0.01251372043043375,
0.04556901007890701,
-0.03861590474843979,
0.01915842294692993,
0.019233187660574913,
-0.06358727067708969,
-0.008985767140984535,
-0.017354726791381836,
-0.02170041762292385,
0.0048316605389118195,
-0.021719109266996384,
-0.0014310406986624002,
0.006364334374666214,
-0.03196185454726219,
-0.030821695923805237,
-0.017027631402015686,
-0.030036667361855507,
-0.02358822338283062,
-0.026821792125701904,
0.017803315073251724,
-0.01921449601650238,
-0.0009602575446479023,
0.007051234133541584,
0.02183125540614128,
0.04082145914435387,
-0.030728241428732872,
-0.04399895295500755,
0.03814862295985222,
-0.0083689596503973,
0.007551222108304501,
-0.03463469073176384,
0.027102159336209297,
0.03562531992793083,
-0.05925092473626137,
0.012943617068231106,
0.057867780327796936,
-0.04160648584365845,
0.044858746230602264,
-0.027008702978491783,
-0.030597401782870293,
-0.07850280404090881,
-0.01737341843545437,
-0.005523233208805323,
0.08463349938392639,
-0.018999548628926277,
-0.017663130536675453,
0.0052895937114953995,
0.017681822180747986,
0.037344906479120255
] |
10,102 | sentence_transformers.datasets.SentencesDataset | __getitem__ | null | def __getitem__(self, item):
return self.examples[item]
| (self, item) | [
0.06010652333498001,
-0.033480387181043625,
-0.05875544622540474,
-0.020282655954360962,
0.019673023372888565,
0.016435377299785614,
-0.01810774952173233,
0.016122322529554367,
0.0967504158616066,
0.02677442505955696,
-0.011410024017095566,
0.0324588418006897,
0.026560230180621147,
0.016550714150071144,
-0.013057680800557137,
0.015463260002434254,
-0.0008711986010894179,
0.0430697537958622,
-0.013074157759547234,
0.006178713403642178,
-0.04204820469021797,
0.04089484363794327,
0.048342254012823105,
-0.002434413181617856,
0.011714841239154339,
0.013173016719520092,
0.05107736587524414,
-0.05750322714447975,
0.0542738176882267,
-0.04942970722913742,
-0.04903427138924599,
-0.057140741497278214,
-0.02059571072459221,
0.07638537883758545,
-0.014441712759435177,
-0.008724343031644821,
-0.05338408425450325,
0.016270611435174942,
-0.00920216366648674,
0.04979219287633896,
-0.0029039953369647264,
-0.06109511852264404,
0.016311803832650185,
-0.037138186395168304,
0.0022984815295785666,
0.03888470306992531,
-0.02229279838502407,
0.026494324207305908,
0.010372000746428967,
-0.05437267944216728,
0.010907488875091076,
-0.02206212654709816,
0.0014859805814921856,
0.004662869032472372,
-0.05374656990170479,
0.025917643681168556,
-0.010783914476633072,
0.0767149031162262,
0.061853040009737015,
0.08297600597143173,
0.03839040547609329,
-0.009861227124929428,
0.006957231555134058,
0.0067183212377130985,
0.03260713070631027,
-0.018536141142249107,
-0.02034856379032135,
0.03145376965403557,
-0.0025394512340426445,
-0.023149579763412476,
0.031256053596735,
0.005742084234952927,
-0.0016764908796176314,
-0.01433461531996727,
-0.005832705646753311,
0.015125490725040436,
-0.07203555852174759,
-0.013947416096925735,
0.06577446311712265,
0.00026105064898729324,
-0.030053261667490005,
0.04649687930941582,
-0.009688222780823708,
0.004897660110145807,
-0.043794721364974976,
-0.04672754928469658,
0.01875033602118492,
-0.048572927713394165,
0.018256038427352905,
0.02695566788315773,
-0.02183145470917225,
0.05232958495616913,
-0.013173016719520092,
0.02990497276186943,
-0.015759838744997978,
-0.022441087290644646,
0.0460025817155838,
-0.0937846302986145,
0.00717966491356492,
0.0028751613572239876,
0.02524210512638092,
0.011129922233521938,
0.0123821422457695,
-0.0017526950687170029,
-0.02253994718194008,
-0.0028916378505527973,
-0.015520928427577019,
-0.0024714854080229998,
0.011096969246864319,
0.03175034746527672,
-0.025752877816557884,
0.02766416035592556,
-0.05888725817203522,
0.04471740871667862,
-0.01574336178600788,
-0.009622316807508469,
0.024088744074106216,
-0.003863755613565445,
-0.03222816810011864,
0.013263638131320477,
-0.0026589063927531242,
-0.0011008407454937696,
-0.05852477252483368,
0.02217746153473854,
0.030514607205986977,
0.0013201851397752762,
-0.03235998377203941,
0.013411927036941051,
-0.0014777423348277807,
-0.0802079364657402,
0.03166796639561653,
-0.041488002985715866,
-0.06626876443624496,
0.017564022913575172,
0.052065957337617874,
-0.00322322896681726,
0.051472801715135574,
-0.02283652499318123,
-0.02441827580332756,
0.0501217246055603,
-0.00671008275821805,
0.00994360912591219,
0.02576935477554798,
0.028751613572239876,
-0.017201539129018784,
-0.03941195458173752,
-0.015059584751725197,
0.05269206687808037,
0.0033900542184710503,
-0.024105221033096313,
-0.011953750625252724,
0.04537647217512131,
0.02247404120862484,
-0.028207886964082718,
-0.02217746153473854,
-0.015257303602993488,
-0.05549308657646179,
-0.03750067204236984,
0.008576054126024246,
-0.008324787020683289,
0.022012697532773018,
-0.027417011559009552,
-0.017185062170028687,
0.03845631331205368,
-0.026411941275000572,
0.05868953838944435,
-0.04158686101436615,
-0.0010761258890852332,
-0.031074808910489082,
0.037138186395168304,
-0.0022078603506088257,
-0.05667939782142639,
-0.06567560881376266,
-0.010306093841791153,
0.025802306830883026,
0.04702412709593773,
-0.032887231558561325,
0.07341959327459335,
0.044453784823417664,
-0.040433499962091446,
-0.03862107917666435,
0.020892290398478508,
-0.08627131581306458,
-0.03799496963620186,
-0.009119780734181404,
0.031404342502355576,
0.03061346523463726,
0.06392908841371536,
0.010067183524370193,
0.05496583506464958,
0.018206609413027763,
-0.026280127465724945,
0.0015065763145685196,
-0.01622942090034485,
-0.00155188690405339,
0.0027948380447924137,
-0.02094171941280365,
0.012233852408826351,
0.007060209754854441,
0.09385053813457489,
-0.02926238626241684,
-0.04152095317840576,
-0.010421429760754108,
0.053054552525281906,
-0.0406971275806427,
0.04040054976940155,
0.04063121974468231,
0.009160972200334072,
-0.10683407634496689,
-0.03476556017994881,
-0.047782052308321,
0.008658437058329582,
0.03339800611138344,
-0.007533911149948835,
0.08192150294780731,
-0.029690777882933617,
-0.05180233344435692,
-0.02972373180091381,
-0.005540246609598398,
0.033711060881614685,
0.01922815665602684,
-0.054702211171388626,
0.011311165057122707,
0.009754128754138947,
0.03519395366311073,
-0.0012851724168285728,
0.01863499917089939,
-0.007410337217152119,
-0.06860843300819397,
-0.0013819722225889564,
0.0589861199259758,
-0.02405579201877117,
0.0619189478456974,
-0.017712311819195747,
0.025275057181715965,
0.03310142830014229,
0.007492719683796167,
0.03674275055527687,
0.006792465690523386,
0.044157207012176514,
0.01456528715789318,
0.0607655867934227,
0.03013564459979534,
-0.005404314957559109,
-0.029460106045007706,
0.06251210719347,
0.041619814932346344,
0.016435377299785614,
-0.038851749151945114,
-0.011690125800669193,
0.0761217474937439,
0.041257329285144806,
0.014787720516324043,
0.0188821479678154,
0.02642841637134552,
-0.005672059021890163,
-0.02282004803419113,
-0.03545757755637169,
0.016196466982364655,
-0.053120460361242294,
-0.07124468684196472,
0.005750322714447975,
0.03196454420685768,
0.05285683274269104,
-0.07862618565559387,
0.05980994552373886,
0.04652983322739601,
0.07032199949026108,
0.02713690884411335,
0.019903695210814476,
0.04412425309419632,
0.07071743905544281,
-0.017003819346427917,
-0.025967072695493698,
0.01167364977300167,
0.02430293895304203,
0.03918128088116646,
0.008415407501161098,
-0.034798514097929,
0.015257303602993488,
0.04870473966002464,
0.010388476774096489,
-0.05473516508936882,
0.028801042586565018,
0.011278212070465088,
-0.0406971275806427,
0.0577998049557209,
0.09048932045698166,
0.01403803750872612,
0.011039301753044128,
0.022605853155255318,
0.006166356150060892,
0.017827648669481277,
-0.02455008774995804,
-0.004564009606838226,
-0.00911154318600893,
-0.08277828246355057,
0.04705708101391792,
0.01646009273827076,
0.0501217246055603,
-0.02435236983001232,
-0.036314357072114944,
-0.053351130336523056,
0.020793430507183075,
-0.02459951862692833,
0.03387582674622536,
0.04218001663684845,
-0.004016163758933544,
-0.023429682478308678,
-0.03941195458173752,
0.03888470306992531,
-0.007570983376353979,
-0.016023464500904083,
0.05918383598327637,
-0.05496583506464958,
-0.021106485277414322,
-0.03387582674622536,
0.04514579847455025,
0.02837265282869339,
0.07440818846225739,
-0.05503174290060997,
0.0031861565075814724,
-0.012703434564173222,
0.015537404455244541,
0.08857803791761398,
-0.032541222870349884,
-0.028455035760998726,
-0.02748291753232479,
-0.017201539129018784,
0.020068461075425148,
0.008847917430102825,
-0.034304216504096985,
0.003740181215107441,
-0.00805704202502966,
-0.021749071776866913,
0.020744001492857933,
-0.011657172814011574,
0.0401039682328701,
0.007340311538428068,
-0.043201565742492676,
-0.03339800611138344,
-0.06274277716875076,
-0.026873284950852394,
0.033595725893974304,
0.055954430252313614,
-0.011368832550942898,
0.019211679697036743,
0.019557688385248184,
0.015117252245545387,
-0.03397468477487564,
-0.0012892915401607752,
-0.014936010353267193,
0.05994175747036934,
0.050286490470170975,
0.01200318057090044,
0.004975923802703619,
0.013008251786231995,
-0.04593667387962341,
-0.018849195912480354,
0.027087479829788208,
0.056185100227594376,
-0.03809382766485214,
-0.009424597956240177,
-0.0009978621965274215,
-0.05143984779715538,
-0.03661093860864639,
0.004300384782254696,
-0.017596976831555367,
0.014186326414346695,
-0.03417240455746651,
-0.048638831824064255,
-0.024978479370474815,
-0.05934860184788704,
0.033365052193403244,
0.04201525077223778,
-0.06992655992507935,
-0.004934732336550951,
0.021221822127699852,
-0.025275057181715965,
-0.02997087873518467,
0.021436017006635666,
0.027103956788778305,
0.0025209151208400726,
0.046035535633563995,
-0.011335879564285278,
-0.029064668342471123,
-0.019689500331878662,
0.036775704473257065,
0.009449312463402748,
-0.00038127810694277287,
-0.027746543288230896,
-0.013098872266709805,
-0.0649176836013794,
-0.02105705626308918,
-0.050286490470170975,
-0.05710778757929802,
-0.002015290316194296,
-0.06320411711931229,
-0.0678175613284111,
-0.024681901559233665,
0.030778231099247932,
0.0016692824428901076,
-0.058491822332143784,
0.034798514097929,
0.008320667780935764,
-0.010413192212581635,
-0.010965157300233841,
0.07486952841281891,
-0.04652983322739601,
-0.008040565997362137,
-0.028817519545555115,
0.020892290398478508,
-0.040202829986810684,
-0.05549308657646179,
-0.022375181317329407,
-0.001955562736839056,
-0.02366035431623459,
0.0471888929605484,
-0.04557419195771217,
0.0760558471083641,
0.012958821840584278,
0.0025930001866072416,
0.034007638692855835,
0.0156280267983675,
-0.0032046926207840443,
-0.027631206437945366,
0.0026177149266004562,
-0.012423333711922169,
0.031223099678754807,
-0.010652102530002594,
-0.07743987441062927,
-0.05351589620113373,
0.0023891024757176638,
-0.019392922520637512,
0.018799765035510063,
-0.027202816680073738,
-0.05450449138879776,
-0.04204820469021797,
-0.013238923624157906,
0.03193159028887749,
0.07526496797800064,
0.02855389378964901,
0.029328294098377228,
0.03568824753165245,
-0.024681901559233665,
-0.024385321885347366,
-0.04455264285206795,
-0.004827634897083044,
0.04033464193344116,
-0.06689487397670746,
-0.033711060881614685,
-0.002382923848927021,
0.07203555852174759,
0.03137138858437538,
0.08165787905454636,
-0.0501217246055603,
-0.06972884386777878,
-0.025802306830883026,
0.046398017555475235,
-0.027351105585694313,
-0.011961989104747772,
0.01220913790166378,
-0.008246523328125477,
-0.06145760416984558,
0.014054513536393642,
0.015611549839377403,
0.00869962852448225,
0.03799496963620186,
-0.03413945063948631,
0.013947416096925735,
0.006203428376466036,
0.009325738064944744,
-0.03904946893453598,
-0.0831737220287323,
0.0012233852175995708,
0.018256038427352905,
-0.024204080924391747,
0.022605853155255318,
0.010190757922828197,
-0.039148326963186264,
-0.001307827653363347,
-0.0790216252207756,
0.022803571075201035,
0.00876553449779749,
-0.04257545620203018,
-0.01845375820994377,
-0.03440307825803757,
0.01988721825182438,
0.02252347022294998,
-0.041982296854257584,
0.029410677030682564,
0.01527377963066101,
0.007187903393059969,
0.010569719597697258,
0.00007433764403685927,
-0.011920797638595104,
0.009902418591082096,
0.00610456895083189,
0.02418760396540165,
0.03390878066420555,
0.05097850412130356,
0.010709770023822784,
0.012958821840584278,
-0.03519395366311073,
0.04099370539188385,
-0.012258567847311497,
-0.0024714854080229998,
0.00018188587273471057,
-0.039082422852516174,
-0.040730077773332596,
-0.007410337217152119,
-0.006537078879773617,
0.039675578474998474,
-0.024500658735632896,
0.05404314771294594,
0.00414179777726531,
-0.03545757755637169,
0.052461396902799606,
0.022309275344014168,
0.05569080263376236,
0.0690038725733757,
-0.034304216504096985,
-0.02000255510210991,
-0.0025909405667334795,
0.014375806786119938,
-0.013016489334404469,
-0.05466925725340843,
-0.027169862762093544,
-0.02158430591225624,
0.1008366048336029,
0.004522818140685558,
-0.03651207685470581,
-0.019129296764731407,
0.06257800757884979,
-0.027565300464630127,
0.05048421025276184,
0.05331818014383316,
-0.03283780440688133,
-0.009655269794166088,
0.06709259003400803,
0.05022058263421059,
-0.043629955500364304,
0.03280485048890114,
-0.08541453629732132,
0.07757169008255005,
-0.01197022758424282,
-0.05091260001063347,
-0.010124851949512959,
0.02642841637134552,
0.01669900305569172,
-0.019030436873435974,
-0.0566464439034462,
-0.02718633972108364,
-0.007628651801496744,
0.05236253887414932,
0.019788360223174095,
-0.04372881352901459,
-0.021436017006635666,
0.008370096795260906,
0.024171127006411552,
0.030168598517775536,
-0.021979743614792824,
0.024319415912032127,
0.03585301339626312,
0.008246523328125477,
0.027911309152841568,
-0.04145504906773567,
-0.010775675997138023,
-0.009037398733198643,
-0.06462110579013824,
0.019673023372888565,
-0.039148326963186264,
0.021024102345108986,
0.0660710409283638,
-0.027466440573334694,
0.03680865466594696,
0.010668578557670116,
-0.021188868209719658,
-0.006944873835891485,
-0.05450449138879776,
-0.01988721825182438,
0.03466670215129852,
0.08304190635681152,
-0.006112807430326939,
0.03404059261083603,
-0.02141954004764557,
0.030877090990543365,
0.01716858521103859,
-0.014408759772777557,
-0.012983536347746849,
0.003851398127153516,
-0.03638026490807533,
-0.06415975838899612,
0.04099370539188385,
0.10545004159212112,
-0.03496327996253967,
-0.049462661147117615,
-0.04712298884987831,
-0.03532576560974121,
0.014202802442014217,
0.009902418591082096,
0.010956918820738792,
0.03769839182496071,
-0.029756683856248856,
0.014384045265614986,
0.0026795021258294582,
0.015059584751725197,
-0.03295313939452171,
-0.004695822484791279,
-0.02889990247786045,
-0.016435377299785614,
0.0047370134852826595,
-0.02494552545249462,
-0.03102537989616394,
-0.009836511686444283,
-0.04587076976895332,
0.01129468809813261,
0.07150831073522568,
0.027927784249186516,
-0.015537404455244541,
0.004827634897083044,
0.011583028361201286,
-0.04030168801546097,
0.01309063471853733,
-0.038654033094644547,
-0.09253241121768951,
0.05938155576586723,
-0.040367595851421356,
0.015389115549623966,
-0.03196454420685768,
0.053878381848335266,
0.0018103630281984806,
0.0654449313879013,
-0.03283780440688133,
0.003027569502592087,
-0.00588213512673974,
0.05022058263421059,
-0.03031688742339611,
-0.023495588451623917,
0.05104441195726395,
-0.06099626049399376,
-0.00866667553782463,
0.008089995943009853,
0.019442351534962654,
0.00010889982513617724,
-0.0018268396379426122,
-0.037368860095739365,
0.007397979497909546,
0.03852221742272377,
0.005886254366487265,
-0.02471485361456871,
0.03148672357201576,
-0.04330042377114296,
0.03427126258611679,
0.002413817448541522,
-0.022721190005540848,
0.043564047664403915,
0.016797862946987152,
-0.051934145390987396,
-0.024319415912032127,
-0.08073519170284271,
0.033299148082733154,
-0.04494808241724968,
-0.04883655160665512,
0.042970892041921616,
-0.02224336937069893,
-0.014087466523051262,
-0.01506782229989767,
-0.0014262530021369457,
0.040795985609292984,
0.0010998110519722104,
0.003132607787847519,
-0.04702412709593773,
0.009539933875203133,
0.022721190005540848,
-0.022259844467043877,
0.028207886964082718,
-0.02441827580332756,
0.008370096795260906,
-0.01332954503595829,
0.028389129787683487,
0.0025518087204545736,
0.006005709525197744,
0.04840816184878349,
0.011756031773984432,
0.054174959659576416,
-0.009927133098244667,
-0.006079853978008032,
0.013955654576420784,
-0.06498359143733978,
-0.05756913498044014,
-0.0013232744531705976,
0.009704699739813805,
-0.03496327996253967,
-0.01774526573717594,
-0.008341263048350811,
0.005416672211140394,
-0.05740436911582947,
0.011187590658664703,
0.004980043042451143,
0.00781401339918375,
0.0068418956361711025,
0.013263638131320477,
-0.03802792355418205,
0.026032978668808937,
0.0020430944859981537,
-0.0377642959356308,
0.00027289317222312093,
-0.03700637444853783,
-0.046332113444805145,
0.019310539588332176,
0.038851749151945114,
-0.022638807073235512,
-0.0145982401445508,
0.03703932836651802,
0.019079867750406265,
-0.018272515386343002,
0.03387582674622536,
-0.027268722653388977,
0.023792166262865067,
0.022078603506088257,
-0.022737665101885796,
0.021221822127699852,
0.0542738176882267,
-0.00017094440408982337,
-0.01241509523242712,
-0.024138174951076508,
-0.05634986609220505,
-0.057074837386608124,
0.055064693093299866,
0.007711034268140793,
-0.041982296854257584,
-0.000709522282704711,
-0.013757935725152493,
-0.039082422852516174,
-0.011986704543232918,
-0.0008820113725960255,
-0.009210402145981789,
0.05084669217467308,
0.008683152496814728,
-0.01332954503595829,
0.051340989768505096,
-0.011154637672007084,
-0.0061210454441607,
-0.038192689418792725,
-0.023512063547968864,
0.011302926577627659,
-0.0009968323865905404,
-0.0025476894807070494,
-0.02117239125072956,
0.03374401479959488,
0.06827890127897263,
-0.01628708839416504,
0.06069968268275261,
0.05852477252483368,
-0.020628664642572403,
0.01893157884478569,
-0.02885047346353531,
0.02293538488447666,
-0.017596976831555367,
-0.0619189478456974,
-0.007636889815330505,
0.02506086230278015,
0.04593667387962341,
-0.06386318057775497,
0.0156280267983675,
-0.020859336480498314,
0.036479122936725616
] |
10,103 | sentence_transformers.datasets.SentencesDataset | __init__ | null | def __init__(self, examples: List[InputExample], model: SentenceTransformer):
self.examples = examples
| (self, examples: List[sentence_transformers.readers.InputExample.InputExample], model: <module 'sentence_transformers.SentenceTransformer' from '/usr/local/lib/python3.10/site-packages/sentence_transformers/SentenceTransformer.py'>) | [
0.004021109081804752,
0.003660038812085986,
0.007871774956583977,
-0.03216887265443802,
-0.04858522117137909,
0.020453158766031265,
-0.0405116081237793,
0.013285581953823566,
0.06882308423519135,
0.06767483800649643,
0.007849347777664661,
0.02025580406188965,
-0.0177619531750679,
0.021852584555745125,
-0.002444511279463768,
0.035613615065813065,
0.031971514225006104,
-0.029100896790623665,
0.019699620082974434,
-0.024292610585689545,
-0.02572792023420334,
0.001861416851170361,
-0.008033246733248234,
0.04732932522892952,
0.022893184795975685,
0.02129640243947506,
-0.005485572852194309,
-0.04395635053515434,
0.011141588911414146,
-0.03604420647025108,
-0.01305234432220459,
-0.010495699942111969,
-0.03889688476920128,
0.019269028678536415,
0.027934707701206207,
-0.03543420135974884,
-0.036564506590366364,
0.046252842992544174,
-0.04976935312151909,
0.03685156628489494,
0.05719707906246185,
-0.04083454981446266,
0.006624849513173103,
0.03832275792956352,
-0.03584685176610947,
0.03299417346715927,
-0.010854527354240417,
0.01064820121973753,
-0.005158143118023872,
-0.05974475294351578,
-0.02624822035431862,
-0.013007490895688534,
0.03215092793107033,
-0.003469411749392748,
-0.042556922882795334,
0.020668454468250275,
0.01134791411459446,
0.08848682045936584,
0.040260426700115204,
0.044566355645656586,
0.025279385969042778,
0.02802441455423832,
0.058237675577402115,
0.041157495230436325,
0.005063951015472412,
0.04104984924197197,
-0.011437620967626572,
0.023323776200413704,
0.026660870760679245,
-0.004736520815640688,
-0.011213354766368866,
-0.03408859670162201,
-0.030231203883886337,
0.0762866884469986,
0.04377693682909012,
0.020219920203089714,
-0.07151428610086441,
0.016640618443489075,
0.016218995675444603,
0.01080070249736309,
-0.006521686911582947,
0.029405901208519936,
-0.037533339112997055,
0.0031374965328723192,
0.0033213954884558916,
-0.07025839388370514,
0.021942291408777237,
-0.03380153700709343,
0.012998520396649837,
0.05554647371172905,
-0.09465865045785904,
0.07025839388370514,
-0.03189975023269653,
0.014433830045163631,
0.01589605025947094,
0.03182798624038696,
0.025279385969042778,
-0.06218477711081505,
0.011464533396065235,
0.000610006449278444,
0.028060298413038254,
0.06720835715532303,
-0.012155275791883469,
-0.0038529084995388985,
-0.04915934428572655,
-0.02056080661714077,
-0.04772403463721275,
-0.051742903888225555,
0.0049697584472596645,
0.02522556111216545,
-0.010917321778833866,
0.049876999109983444,
-0.007741699926555157,
0.05360880494117737,
-0.017304448410868645,
-0.0360083244740963,
0.04557107016444206,
0.008894432336091995,
-0.016945620998740196,
-0.001861416851170361,
0.030733561143279076,
0.017331359907984734,
-0.11496827751398087,
0.0028549199923872948,
0.011518357321619987,
0.02809618040919304,
0.020883750170469284,
-0.035685379058122635,
0.017519744113087654,
-0.10915527492761612,
0.019771385937929153,
-0.06125182658433914,
-0.0011157287517562509,
0.028203828260302544,
0.039973367005586624,
-0.048621103167533875,
0.002010554540902376,
-0.014514565467834473,
-0.03548802435398102,
0.05019994452595711,
-0.010109960101544857,
0.06430185586214066,
0.05131230875849724,
0.006391611881554127,
-0.028975307941436768,
0.015842227265238762,
-0.020740220323204994,
-0.0037542309146374464,
0.001846839440986514,
0.021421991288661957,
-0.020614631474018097,
0.025189679116010666,
-0.004211735911667347,
-0.033980950713157654,
-0.014559418894350529,
0.0005233833217062056,
-0.01670341193675995,
-0.07434902340173721,
0.06602422893047333,
0.006786322221159935,
-0.011141588911414146,
-0.008966198191046715,
-0.004059234168380499,
0.02764764614403248,
-0.010253490880131721,
0.034734487533569336,
-0.05748413875699043,
0.005436234176158905,
-0.0317382775247097,
0.03735392540693283,
-0.02352113276720047,
-0.043597523123025894,
-0.016210025176405907,
0.002937898738309741,
0.08224322646856308,
0.01279219426214695,
0.050558771938085556,
0.07894201576709747,
-0.004691667389124632,
-0.0020441943779587746,
-0.011823360808193684,
0.04675520211458206,
-0.047508738934993744,
-0.006436465308070183,
0.00040031675598584116,
0.022516416385769844,
-0.005373439285904169,
0.06638305634260178,
-0.033478591591119766,
-0.013958383351564407,
0.021278461441397667,
0.006674188654869795,
0.007687875535339117,
-0.011823360808193684,
-0.03419624641537666,
0.0369592159986496,
-0.02077610231935978,
-0.029387958347797394,
-0.035900674760341644,
0.0409780815243721,
-0.008629797026515007,
0.007921113632619381,
0.025907333940267563,
-0.0511687770485878,
-0.012469249777495861,
0.06204124540090561,
-0.04273633658885956,
0.06272301822900772,
-0.09264922142028809,
-0.0741337314248085,
0.044709887355566025,
-0.03832275792956352,
0.027468232437968254,
0.004911449272185564,
0.0803055614233017,
-0.042054563760757446,
-0.0030836723744869232,
-0.017286507412791252,
-0.015375751070678234,
-0.033101823180913925,
0.0788702517747879,
0.00734250433743,
-0.03130768612027168,
-0.019035790115594864,
0.023862017318606377,
0.002267340198159218,
0.03225857764482498,
-0.013769999146461487,
-0.04704226553440094,
-0.03247387334704399,
-0.008356191217899323,
-0.04632461071014404,
0.0019129982683807611,
-0.0016640617977827787,
-0.002417599083855748,
-0.0002487963065505028,
0.009293627925217152,
0.00907384604215622,
-0.027163229882717133,
-0.0309129748493433,
-0.014783686026930809,
0.02456173114478588,
0.017986221238970757,
-0.0480828620493412,
0.038430407643318176,
0.0488005168735981,
0.03735392540693283,
-0.03224063664674759,
-0.051814667880535126,
-0.043597523123025894,
0.031469158828258514,
0.016398409381508827,
-0.015851197764277458,
0.014729862101376057,
0.029603255912661552,
0.0005662743933498859,
0.047975216060876846,
-0.04632461071014404,
0.03062591329216957,
-0.038645703345537186,
-0.05339350923895836,
-0.03186386823654175,
-0.000614491815213114,
0.085759736597538,
-0.055869415402412415,
0.020130213350057602,
-0.012666605412960052,
0.029782669618725777,
0.0238081943243742,
-0.02402349002659321,
0.1349908411502838,
0.041013963520526886,
-0.017663275822997093,
-0.006414038594812155,
0.010917321778833866,
-0.03595449775457382,
0.0051805698312819,
-0.038789235055446625,
-0.032653287053108215,
0.05486470088362694,
0.056910015642642975,
-0.028203828260302544,
-0.002946869470179081,
-0.001757132587954402,
0.050092294812202454,
-0.026445575058460236,
0.004041292704641819,
0.042269859462976456,
-0.038430407643318176,
-0.05152760446071625,
0.004153426270931959,
0.04298751428723335,
0.06828483939170837,
-0.029387958347797394,
-0.026014981791377068,
-0.05777120217680931,
-0.0440639965236187,
0.06089299917221069,
0.005243364255875349,
-0.04474576935172081,
-0.017187830060720444,
-0.011186442337930202,
0.05533117428421974,
0.017878571525216103,
-0.06257949024438858,
-0.03224063664674759,
-0.02395172417163849,
-0.022354943677783012,
0.02264200523495674,
-0.03803569823503494,
0.06677776575088501,
0.08260205388069153,
-0.02373642846941948,
0.02766558714210987,
-0.0381433442234993,
0.05346527323126793,
0.013249699026346207,
-0.00846832524985075,
0.027916766703128815,
0.05249644070863724,
-0.004196037072688341,
-0.0021451145876199007,
0.027109405025839806,
-0.02752205729484558,
0.02285730093717575,
0.008392074145376682,
0.05141995847225189,
-0.031845927238464355,
-0.02100934088230133,
-0.0014375520404428244,
0.008100527338683605,
-0.01064820121973753,
0.025925274938344955,
0.006005872506648302,
-0.07535374164581299,
-0.02432849444448948,
-0.019645797088742256,
0.0009486497729085386,
-0.014505594968795776,
-0.050092294812202454,
0.019358735531568527,
-0.062005363404750824,
-0.05274761840701103,
0.035900674760341644,
0.020829927176237106,
-0.02314436249434948,
-0.01224498264491558,
0.007777582388371229,
0.03521890193223953,
-0.01453250739723444,
0.021134929731488228,
0.034573014825582504,
0.059708867222070694,
0.04348987340927124,
0.022014057263731956,
0.023610839620232582,
-0.02567409537732601,
0.00897965393960476,
0.013106168247759342,
-0.04711402952671051,
0.02989031746983528,
-0.023054655641317368,
-0.020578747615218163,
-0.023844076320528984,
-0.014676038175821304,
-0.004128756932914257,
0.06972014904022217,
-0.03868158534169197,
0.024507906287908554,
0.04664755240082741,
-0.019627856090664864,
-0.01840784214437008,
-0.026499398052692413,
0.03419624641537666,
0.02736058458685875,
-0.031684454530477524,
-0.05719707906246185,
0.025620272383093834,
-0.0070599280297756195,
0.00006360074621625245,
-0.026607047766447067,
0.013680292293429375,
0.06480421870946884,
0.004142213147133589,
-0.011222325265407562,
-0.029854433611035347,
0.014702950604259968,
0.08317618072032928,
0.032653287053108215,
0.009248774498701096,
0.017591509968042374,
-0.06961250305175781,
-0.04327457770705223,
-0.07399019598960876,
-0.0002787920238915831,
-0.02470526285469532,
-0.04399223253130913,
0.03717451170086861,
-0.04711402952671051,
-0.039004530757665634,
0.0049249050207436085,
0.01472089160233736,
0.017896514385938644,
0.03674392029643059,
-0.06003181263804436,
0.04162397235631943,
0.004839683882892132,
0.049231112003326416,
-0.009822898544371128,
0.01871284656226635,
-0.006849116645753384,
0.018031073734164238,
0.011823360808193684,
-0.03868158534169197,
-0.024149080738425255,
0.010531581938266754,
-0.003758716396987438,
-0.0068670581094920635,
-0.019556090235710144,
-0.00479034474119544,
0.028670303523540497,
0.05863238871097565,
0.04212632775306702,
0.027199111878871918,
0.03817922994494438,
0.023036714643239975,
-0.030751502141356468,
-0.008782299235463142,
0.04650402441620827,
-0.01769915781915188,
-0.07169370353221893,
0.0010731180664151907,
-0.029567372053861618,
-0.03527272865176201,
0.014110884629189968,
0.00991260539740324,
-0.011859243735671043,
-0.04054749011993408,
-0.005319615360349417,
0.027557939291000366,
-0.013168963603675365,
-0.023628780618309975,
0.05805826187133789,
0.038932766765356064,
-0.0026059835217893124,
-0.02987237647175789,
-0.041982799768447876,
0.0240414310246706,
-0.01738518476486206,
-0.04779580235481262,
0.038932766765356064,
-0.000038195488741621375,
0.055725887417793274,
0.0016640617977827787,
0.051814667880535126,
-0.0312718041241169,
0.037676870822906494,
-0.011536299251019955,
-0.0040682051330804825,
0.010181725956499577,
0.002536460757255554,
-0.018910201266407967,
0.057950615882873535,
-0.022749653086066246,
-0.01750180311501026,
0.006934338249266148,
0.024310551583766937,
-0.01080070249736309,
-0.027629705145955086,
-0.008105012588202953,
0.03810746222734451,
0.02034551091492176,
0.014209562912583351,
-0.017178859561681747,
-0.03706686571240425,
0.014559418894350529,
0.03875335305929184,
-0.06308184564113617,
-0.021798761561512947,
-0.030733561143279076,
0.008961712941527367,
-0.05978063493967056,
0.028221769258379936,
0.035990383476018906,
-0.03342476487159729,
-0.011069823056459427,
-0.035308610647916794,
-0.06864366680383682,
0.03469860181212425,
-0.021870525553822517,
-0.04653990641236305,
0.036582447588443756,
0.021547582000494003,
-0.024884676560759544,
0.002442268654704094,
-0.012137334793806076,
0.027916766703128815,
0.010809673927724361,
0.00505049480125308,
-0.00045245885848999023,
0.0028952881693840027,
0.005440719425678253,
-0.010370110161602497,
-0.08468325436115265,
0.052029963582754135,
0.03489596024155617,
-0.01878461055457592,
-0.05167113617062569,
-0.07137075811624527,
-0.005929621867835522,
-0.009813928045332432,
-0.02676851861178875,
-0.010531581938266754,
-0.007687875535339117,
0.038932766765356064,
-0.02212170511484146,
-0.028006473556160927,
0.014433830045163631,
0.02736058458685875,
0.03792804852128029,
0.022588180378079414,
0.019556090235710144,
-0.0032698141876608133,
-0.013644409365952015,
0.030051790177822113,
-0.007495006080716848,
-0.028526773676276207,
-0.025171738117933273,
0.05640765652060509,
0.07585609704256058,
0.04040395841002464,
-0.07937260717153549,
-0.017134005203843117,
0.07000721246004105,
-0.04585813358426094,
0.03796393424272537,
0.018820494413375854,
-0.07477961480617523,
0.016811061650514603,
0.033693887293338776,
0.0013635439099743962,
-0.0005247849621810019,
0.0007782067987136543,
0.00726625369861722,
0.03374771028757095,
-0.01254101563245058,
-0.03451918810606003,
0.04424341022968292,
-0.04872875288128853,
0.013222787529230118,
-0.042628686875104904,
-0.04531989246606827,
-0.053429391235113144,
0.016990475356578827,
0.04079866781830788,
-0.020076390355825424,
-0.029549431055784225,
-0.01167983002960682,
0.012756312265992165,
0.044351059943437576,
0.008472810499370098,
-0.012980579398572445,
0.003155437996610999,
-0.0007686754106543958,
0.038789235055446625,
0.06207713112235069,
-0.018802553415298462,
-0.05594118312001228,
-0.05145584046840668,
-0.022893184795975685,
0.03417830541729927,
-0.03060797229409218,
0.031702395528554916,
0.08712327480316162,
-0.03947100788354874,
0.016694441437721252,
0.005718810483813286,
0.047149911522865295,
-0.01627282053232193,
-0.03954277187585831,
-0.006943309213966131,
0.02079404518008232,
-0.046468138694763184,
-0.02204993925988674,
0.054541755467653275,
-0.05228114500641823,
0.025243503972887993,
0.010998058132827282,
-0.03432183340191841,
0.0011045153951272368,
0.0050549800507724285,
0.02596115879714489,
-0.04937463998794556,
0.07908554375171661,
0.02529732696712017,
-0.03503948822617531,
-0.02863442152738571,
-0.06405068188905716,
-0.026822343468666077,
0.01826431229710579,
-0.013527791015803814,
0.042269859462976456,
-0.006005872506648302,
0.014227503910660744,
0.03868158534169197,
-0.05332174152135849,
-0.030930915847420692,
-0.02337760105729103,
0.014774715527892113,
0.04976935312151909,
0.028580596670508385,
0.02048904076218605,
-0.00972422119230032,
-0.0611082948744297,
-0.026194395497441292,
-0.04040395841002464,
-0.02316230535507202,
0.036133911460638046,
0.0566229522228241,
-0.039614539593458176,
0.06789012998342514,
-0.005813003052026033,
-0.0011807662667706609,
0.01398529578000307,
-0.0739184319972992,
-0.02152964100241661,
-0.00035686499904841185,
-0.07521021366119385,
-0.01603958196938038,
-0.03868158534169197,
0.09135743975639343,
-0.024202903732657433,
0.02639175020158291,
-0.03261740505695343,
0.037748634815216064,
-0.005660501308739185,
0.01401220727711916,
-0.029549431055784225,
0.019197262823581696,
0.014909275807440281,
-0.09501747786998749,
-0.022947007790207863,
0.02544085867702961,
0.028885601088404655,
-0.041695736348629,
-0.021942291408777237,
-0.04912346228957176,
-0.02011227235198021,
0.0120207155123353,
0.029980024322867393,
0.00003533958806656301,
0.04395635053515434,
-0.022659946233034134,
0.033604178577661514,
-0.009455100633203983,
-0.006553084123879671,
-0.009320540353655815,
0.009742162190377712,
0.04162397235631943,
-0.04521224647760391,
-0.05791473388671875,
0.05134819075465202,
0.051886431872844696,
0.0184796079993248,
0.02020197920501232,
-0.01864108070731163,
0.02020197920501232,
-0.008387588895857334,
-0.011733653955161572,
0.04061925411224365,
-0.05457763746380806,
-0.004285743925720453,
-0.02624822035431862,
-0.0007765247719362378,
0.02669675461947918,
-0.02197817526757717,
0.02811412140727043,
-0.03141533210873604,
0.022516416385769844,
-0.027486173436045647,
0.013644409365952015,
0.007934569381177425,
0.02883177623152733,
-0.056838251650333405,
-0.034285951405763626,
0.021188754588365555,
-0.028867660090327263,
0.047149911522865295,
0.03643891587853432,
-0.060605935752391815,
-0.07151428610086441,
0.03986571729183197,
0.00010575594933470711,
-0.04962582141160965,
0.021834643557667732,
-0.000014472235307039227,
-0.05145584046840668,
-0.09121391177177429,
-0.002509548794478178,
0.010998058132827282,
0.04395635053515434,
0.012639692984521389,
-0.04804698005318642,
0.0017100365366786718,
-0.011814390309154987,
0.014442800544202328,
-0.04535577446222305,
0.021547582000494003,
-0.004458429757505655,
-0.043884582817554474,
0.06240007281303406,
0.014990012161433697,
0.022839359939098358,
-0.06089299917221069,
0.019340792670845985,
0.03557772934436798,
0.06103653088212013,
0.06161065399646759,
-0.018587255850434303,
-0.007696846500039101,
0.062005363404750824,
-0.036725979298353195,
0.026445575058460236,
-0.025422917678952217,
-0.014595301821827888,
-0.01731341890990734,
-0.05992416664958,
-0.0022404282353818417,
0.028060298413038254,
-0.05777120217680931,
-0.002213516039773822,
0.008894432336091995,
-0.03024914488196373,
-0.021206695586442947,
-0.06756718456745148,
-0.03130768612027168,
-0.01683797314763069,
-0.0002422084507998079,
0.008845093660056591,
-0.04040395841002464,
0.025620272383093834,
-0.017322389408946037,
0.03276093676686287,
0.017564598470926285,
-0.02499232441186905,
-0.013438084162771702,
0.05167113617062569,
-0.0468987338244915,
0.03179210051894188,
-0.037102747708559036,
0.010056136175990105,
0.012442338280379772,
-0.018892260268330574,
0.005351012572646141,
0.05278350040316582,
-0.020740220323204994,
0.035613615065813065,
-0.009867751970887184,
-0.04413576424121857,
-0.03661832958459854,
-0.018802553415298462,
-0.04126514494419098,
0.10377286374568939,
-0.018551373854279518,
0.04919522628188133,
0.014218533411622047,
0.034124478697776794,
0.037461575120687485
] |
10,104 | sentence_transformers.datasets.SentencesDataset | __len__ | null | def __len__(self):
return len(self.examples)
| (self) | [
0.010118266567587852,
-0.006048963870853186,
-0.016529761254787445,
0.013442141935229301,
0.01717335358262062,
0.05152006447315216,
-0.029002439230680466,
0.004144660197198391,
0.05181334540247917,
0.044057637453079224,
0.00424853153526783,
-0.01573137938976288,
0.02230580896139145,
-0.004549961071461439,
0.02791077457368374,
0.009401352144777775,
0.033727556467056274,
-0.018297607079148293,
0.018362781032919884,
0.004606988746672869,
-0.055626027286052704,
0.04760962352156639,
0.020366881042718887,
-0.02056240290403366,
-0.01753181219100952,
0.033369097858667374,
0.029067613184452057,
-0.0611984059214592,
0.03802904114127159,
0.02978452667593956,
-0.09241676330566406,
-0.019992129877209663,
-0.0017057262593880296,
0.056212592869997025,
0.033434271812438965,
-0.015201840549707413,
-0.018558302894234657,
0.01705930009484291,
-0.010794446803629398,
0.03418377414345741,
0.00040148216066882014,
-0.06357725709676743,
0.0011965542798861861,
-0.008383008651435375,
0.007629433646798134,
-0.004289265256375074,
-0.00368029554374516,
0.006366686895489693,
-0.058135226368904114,
-0.07781778275966644,
0.011307692155241966,
0.02844846062362194,
0.014240523800253868,
0.05256284773349762,
-0.030566615983843803,
0.036823321133852005,
0.02996375598013401,
0.06478297710418701,
0.02237098291516304,
0.03864819556474686,
-0.011804644018411636,
0.003741396125406027,
0.055691201239824295,
-0.03721436485648155,
0.024032920598983765,
0.006252632476389408,
-0.030322212725877762,
0.07195211946964264,
0.05122677981853485,
0.011226224713027477,
-0.002142595825716853,
0.01792285591363907,
-0.006920666433870792,
0.06602128595113754,
-0.020236533135175705,
0.0017159098060801625,
-0.0530516542494297,
0.030289625748991966,
0.06468521803617477,
-0.055626027286052704,
-0.00722616957500577,
0.03604123368859291,
0.018818998709321022,
0.03532432019710541,
0.03936510905623436,
-0.04490489885210991,
0.01325476635247469,
-0.001406333176419139,
0.007503158878535032,
0.0350310355424881,
-0.05138971656560898,
0.10851474106311798,
0.049206383526325226,
-0.009279151447117329,
-0.003448113100603223,
-0.008611117489635944,
-0.0376054085791111,
-0.07873021811246872,
0.027193859219551086,
-0.06116581708192825,
-0.01904710754752159,
0.05165041238069534,
0.04946708306670189,
0.033955663442611694,
-0.006892152596265078,
0.0057271672412753105,
-0.026411771774291992,
-0.056277766823768616,
-0.022403569892048836,
0.024195855483412743,
-0.0014725255314260721,
0.014240523800253868,
0.004664015956223011,
0.029947461560368538,
0.01656234823167324,
-0.03995167464017868,
0.04666459932923317,
0.0004383971099741757,
-0.029409777373075485,
-0.011633562855422497,
0.03253813087940216,
0.055919308215379715,
-0.05226956307888031,
-0.0615568608045578,
0.06621680408716202,
0.05666881054639816,
-0.011715030297636986,
-0.0020000278018414974,
-0.02090456709265709,
-0.08355309069156647,
0.07195211946964264,
-0.0028982071671634912,
-0.01904710754752159,
0.05578896030783653,
0.06038372963666916,
-0.018297607079148293,
0.07279937714338303,
-0.028920970857143402,
-0.011690589599311352,
0.03307581692934036,
-0.0237722247838974,
0.043112613260746,
0.06589093804359436,
0.032033029943704605,
-0.024912768974900246,
0.029458656907081604,
-0.01310812495648861,
0.024635780602693558,
-0.0066436766646802425,
-0.013662103563547134,
0.013368820771574974,
-0.009947184473276138,
0.02698204480111599,
-0.07762225717306137,
-0.036888495087623596,
0.0064766681753098965,
-0.023381179198622704,
-0.06403347849845886,
0.03672556206583977,
-0.09007049351930618,
-0.03714919090270996,
-0.0012525632046163082,
-0.046110618859529495,
0.0010672245407477021,
-0.050021059811115265,
0.054452892392873764,
-0.01509593240916729,
-0.009482819586992264,
-0.059145424515008926,
0.08642075210809708,
0.026705054566264153,
-0.03175603970885277,
-0.015869874507188797,
0.004407393280416727,
0.025368986651301384,
0.05350787192583084,
0.00014167711196932942,
0.048684991896152496,
0.0026558414101600647,
-0.026656175032258034,
-0.035943470895290375,
-0.02488018199801445,
-0.06139392778277397,
-0.03499845042824745,
0.044253159314394,
0.014916704036295414,
0.014134615659713745,
0.0401797853410244,
-0.0076620206236839294,
0.017596986144781113,
-0.027144979685544968,
-0.044057637453079224,
-0.022647971287369728,
0.01404500100761652,
0.001103885006159544,
-0.028399579226970673,
0.011136610992252827,
0.010069386102259159,
-0.0037495428696274757,
0.02031800150871277,
-0.06162203475832939,
-0.026721348986029625,
-0.00751945236697793,
-0.056571051478385925,
0.011364719830453396,
0.03415118530392647,
-0.040277544409036636,
0.03441188111901283,
-0.0564081147313118,
-0.06579317152500153,
0.0026171442586928606,
-0.05402926355600357,
0.043014854192733765,
0.035128798335790634,
0.08387896418571472,
-0.04933673515915871,
0.010297494940459728,
-0.03894147649407387,
-0.03340168669819832,
-0.009051041677594185,
0.07547151297330856,
-0.010843327268958092,
-0.005617185961455107,
-0.021051209419965744,
-0.008619263768196106,
-0.009271004237234592,
0.027780426666140556,
0.03643227741122246,
-0.041841719299554825,
-0.05184593424201012,
0.025971846655011177,
0.02044834941625595,
0.010598924942314625,
0.026411771774291992,
0.01644829288125038,
0.036530040204524994,
0.0065499888733029366,
0.040505655109882355,
-0.020366881042718887,
-0.014273110777139664,
-0.046632010489702225,
-0.010460429824888706,
0.020627576857805252,
-0.02937719039618969,
-0.03041997365653515,
-0.0025275300722569227,
0.02043205499649048,
0.020513523370027542,
-0.0020102111157029867,
-0.022696852684020996,
0.008330054581165314,
-0.04907603561878204,
-0.04392728954553604,
-0.04145067557692528,
0.0586240328848362,
-0.04555663838982582,
-0.012342330068349838,
-0.02971935272216797,
0.023446353152394295,
-0.057385724037885666,
0.006187458522617817,
-0.010297494940459728,
-0.0030041150748729706,
0.08316204696893692,
-0.05354045704007149,
0.051780760288238525,
0.04992330074310303,
0.02652582712471485,
-0.02189847081899643,
0.008374861441552639,
0.014615274034440517,
0.03672556206583977,
-0.0420372448861599,
-0.059373531490564346,
-0.029540125280618668,
-0.00993089098483324,
0.037768345326185226,
-0.0009154913132078946,
-0.009670195169746876,
0.030517734587192535,
0.03988650068640709,
-0.025955554097890854,
-0.01472118217498064,
-0.0226642657071352,
-0.01056633796542883,
0.023935159668326378,
0.002674171468243003,
0.03923476114869118,
-0.03362979367375374,
-0.02352782152593136,
0.030289625748991966,
0.015079638920724392,
0.031918976455926895,
-0.01056633796542883,
0.02259909175336361,
-0.04343848302960396,
-0.04773997142910957,
0.05774418264627457,
0.009947184473276138,
0.03286400064826012,
-0.07123520225286484,
-0.03470516577363014,
-0.034314122051000595,
-0.002778042573481798,
-0.04112480580806732,
-0.017368877306580544,
0.05764641985297203,
-0.0270960982888937,
0.04298226535320282,
-0.021246731281280518,
0.02867656946182251,
0.06895411014556885,
-0.003670111997053027,
0.056440699845552444,
0.04627355560660362,
0.040505655109882355,
0.003393122460693121,
0.016008369624614716,
-0.0110632898285985,
0.08146752417087555,
-0.027959654107689857,
0.022224340587854385,
0.007474645506590605,
-0.01909598708152771,
0.019193749874830246,
-0.03072955086827278,
0.045165594667196274,
-0.017971735447645187,
-0.010509311221539974,
-0.023690756410360336,
-0.025776324793696404,
-0.06602128595113754,
0.04725116491317749,
0.004334072582423687,
-0.0475444495677948,
-0.0038758176378905773,
0.020871980115771294,
-0.007038793992251158,
-0.013042951002717018,
-0.006839198991656303,
0.006908446084707975,
-0.04998847469687462,
-0.041092220693826675,
0.028578808531165123,
0.050966084003448486,
-0.022403569892048836,
0.024375082924962044,
-0.015780258923768997,
0.051129020750522614,
-0.021817002445459366,
0.013539902865886688,
0.03802904114127159,
0.04118997976183891,
0.06497849524021149,
0.048847928643226624,
-0.0009796470403671265,
0.014191643334925175,
0.05064021423459053,
-0.002213879954069853,
0.052595432847738266,
0.010199734009802341,
-0.015454389154911041,
-0.0008044918067753315,
0.014713034965097904,
-0.0056660664267838,
-0.003922661300748587,
0.017434051260352135,
-0.048098426312208176,
-0.04888051375746727,
-0.01694524474442005,
-0.053410109132528305,
-0.04519818350672722,
-0.037931278347969055,
-0.008456328883767128,
0.054224785417318344,
-0.012211982160806656,
-0.06396830081939697,
0.025417868047952652,
-0.02144225314259529,
-0.013914653100073338,
-0.025743737816810608,
0.024228442460298538,
-0.012391210533678532,
-0.010167147032916546,
-0.0427541583776474,
-0.0023381179198622704,
-0.05751607194542885,
0.009808690287172794,
-0.014566393569111824,
0.012505264952778816,
0.008167119696736336,
-0.0010224174475297332,
-0.10271425545215607,
-0.04956484213471413,
-0.05979716405272484,
0.013784305192530155,
-0.023690756410360336,
-0.00680253840982914,
-0.021360784769058228,
-0.011796497739851475,
0.05696209520101547,
-0.01633423939347267,
-0.003460333216935396,
0.07319042831659317,
-0.045589227229356766,
0.01898193359375,
0.01834648661315441,
0.020546110346913338,
-0.05823298543691635,
-0.004183357581496239,
-0.0015580664621666074,
0.021116383373737335,
-0.018542008474469185,
-0.015649911016225815,
-0.007772001903504133,
-0.03943028301000595,
0.0025153099559247494,
-0.016717135906219482,
0.048098426312208176,
0.06967102736234665,
0.03669297322630882,
0.05536533147096634,
0.06074218824505806,
0.1046694740653038,
0.011079583317041397,
0.02826923131942749,
-0.03408601135015488,
-0.003036702051758766,
0.03169086575508118,
-0.03030592016875744,
-0.06791132688522339,
0.026835402473807335,
0.006350393407046795,
-0.013311794027686119,
-0.023234538733959198,
-0.022762026637792587,
-0.04118997976183891,
-0.03025703877210617,
-0.009759809821844101,
0.040538240224123,
0.05507204681634903,
-0.0032688844949007034,
0.033140990883111954,
0.06286033987998962,
0.032505542039871216,
-0.04164619743824005,
-0.002696575131267309,
-0.03323874995112419,
0.030208159238100052,
-0.04399246349930763,
-0.03864819556474686,
-0.02582520619034767,
0.03894147649407387,
-0.00926285795867443,
0.034248948097229004,
0.0009883028687909245,
-0.048326537013053894,
-0.023153070360422134,
-0.042558636516332626,
-0.057841941714286804,
-0.006146724801510572,
0.04565440118312836,
-0.028839504346251488,
-0.013759865425527096,
-0.010085679590702057,
-0.037344712764024734,
0.02248503640294075,
0.005792341195046902,
-0.020643871277570724,
0.040212370455265045,
0.07455907762050629,
-0.006924739573150873,
0.0004101380764041096,
-0.06051407754421234,
0.036530040204524994,
0.01938927173614502,
-0.010827033780515194,
0.033955663442611694,
0.0060571106150746346,
-0.04040789231657982,
-0.004839171189814806,
-0.01302665751427412,
-0.00017833750462159514,
0.007425765041261911,
-0.029654178768396378,
-0.03346686065196991,
-0.09574063867330551,
-0.027601197361946106,
0.03639968857169151,
-0.039397694170475006,
-0.005837148055434227,
-0.019812902435660362,
0.007914570160210133,
-0.03201673924922943,
0.02307160384953022,
0.0023401547223329544,
0.07364664226770401,
-0.007095821667462587,
-0.017906561493873596,
0.024733541533350945,
-0.00395932188257575,
0.04483972489833832,
0.012065340764820576,
-0.041027046740055084,
-0.009645755402743816,
-0.0038574873469769955,
0.03382531553506851,
-0.057907115668058395,
-0.027959654107689857,
0.002511236583814025,
-0.014264963567256927,
-0.02517346478998661,
0.02196364477276802,
0.012130514718592167,
0.07625360041856766,
0.004973592236638069,
0.006191532127559185,
0.026623588055372238,
0.014525659382343292,
0.0700620710849762,
0.022452449426054955,
-0.009311738424003124,
-0.026721348986029625,
-0.016782309859991074,
-0.020529815927147865,
0.00294301426038146,
-0.0449700728058815,
-0.04835912212729454,
0.021800709888339043,
0.08687696605920792,
0.05220438912510872,
-0.04575216397643089,
0.006998060271143913,
0.06126357987523079,
-0.03913699835538864,
0.03362979367375374,
0.014036854729056358,
-0.04767479747533798,
0.027014631778001785,
0.08818045258522034,
0.024554312229156494,
-0.05520239472389221,
0.026085902005434036,
-0.04193948209285736,
-0.01904710754752159,
0.035487253218889236,
0.02114897035062313,
-0.005230214912444353,
0.05275836959481239,
0.018704943358898163,
-0.04060341417789459,
0.004399246536195278,
0.004077449440956116,
-0.0134584354236722,
0.08557348698377609,
0.018770117312669754,
0.020823098719120026,
-0.0446116179227829,
0.04060341417789459,
0.030566615983843803,
0.014150909148156643,
-0.05331235006451607,
0.0213770791888237,
-0.008602970279753208,
0.016546053811907768,
0.04314520210027695,
-0.010387109592556953,
0.006814758293330669,
-0.027666371315717697,
-0.008106018416583538,
-0.030468855053186417,
-0.0038574873469769955,
-0.02277831919491291,
0.019845489412546158,
0.00573938712477684,
0.013865772634744644,
-0.029474951326847076,
0.02494535595178604,
-0.013507315889000893,
-0.07716604322195053,
-0.037181779742240906,
0.020138772204518318,
0.0637727752327919,
-0.027438262477517128,
0.010770007036626339,
-0.0070550874806940556,
-0.03744247555732727,
-0.002364594954997301,
-0.020236533135175705,
0.011087730526924133,
-0.045165594667196274,
0.015185547061264515,
-0.05608224496245384,
-0.020627576857805252,
0.05764641985297203,
0.012668199837207794,
-0.03470516577363014,
-0.06276258081197739,
-0.014207936823368073,
0.0526931956410408,
0.0420372448861599,
0.019014520570635796,
-0.02382110431790352,
0.02142595872282982,
0.005535718519240618,
-0.03366238251328468,
0.00829339399933815,
0.05396408960223198,
0.00951540656387806,
0.015193693339824677,
0.007633507251739502,
-0.002171109663322568,
0.010973676107823849,
-0.11855154484510422,
-0.039853911846876144,
-0.03685590997338295,
-0.009425792843103409,
0.05249767377972603,
0.06569541245698929,
0.020823098719120026,
0.03385790437459946,
0.0050550601445138454,
-0.0052913157269358635,
0.01909598708152771,
-0.08387896418571472,
-0.044057637453079224,
-0.005853441543877125,
-0.015486976131796837,
-0.019845489412546158,
-0.04555663838982582,
0.04431833326816559,
-0.040505655109882355,
0.06171979755163193,
-0.05839592218399048,
0.02779671922326088,
-0.051715586334466934,
0.005287242587655783,
-0.020594989880919456,
0.010810740292072296,
0.024423964321613312,
-0.03877854347229004,
-0.013157005421817303,
-0.016195744276046753,
0.023804811760783195,
-0.03698625788092613,
0.004936932120472193,
-0.022093992680311203,
0.004452200140804052,
0.011250665411353111,
-0.05138971656560898,
-0.001563158119097352,
0.012684493325650692,
0.015992075204849243,
-0.002030577976256609,
-0.0082037802785635,
-0.0589824877679348,
0.02919796109199524,
0.022028818726539612,
-0.042558636516332626,
-0.06546730548143387,
-0.03043626807630062,
-0.0015988001832738519,
0.01559288427233696,
-0.036530040204524994,
0.06771580874919891,
-0.0005366672994568944,
0.028986144810914993,
-0.01538921520113945,
0.005222068168222904,
0.007910496555268764,
-0.028513634577393532,
0.06201308220624924,
0.0038656340911984444,
0.005951202940195799,
0.006635529920458794,
0.013344381004571915,
-0.01681489683687687,
-0.015267014503479004,
0.01735258288681507,
-0.025091998279094696,
-0.003623268101364374,
0.046110618859529495,
-0.027894480153918266,
-0.0482613630592823,
0.030403681099414825,
0.03252183645963669,
-0.05129195377230644,
0.018818998709321022,
0.08883219212293625,
-0.060416318476200104,
-0.0817933976650238,
-0.019943250343203545,
0.028546221554279327,
-0.009751662611961365,
-0.004843244329094887,
-0.002023449633270502,
-0.016374971717596054,
-0.006973620038479567,
0.013678397983312607,
-0.012040900066494942,
0.018900465220212936,
0.032326314598321915,
-0.02815517596900463,
-0.029654178768396378,
0.0024867961183190346,
0.027878187596797943,
-0.06116581708192825,
0.0033340584486722946,
-0.043894704431295395,
-0.02435879036784172,
0.005083573516458273,
0.11509732156991959,
-0.024847595021128654,
-0.0892232358455658,
-0.02458689920604229,
0.010550044476985931,
0.05520239472389221,
0.06504367291927338,
-0.00290635391138494,
0.02675393596291542,
0.02347894012928009,
0.024309908971190453,
0.02365816943347454,
0.014118322171270847,
-0.048619817942380905,
0.0147456219419837,
-0.023576701059937477,
-0.03260330483317375,
-0.01850942149758339,
-0.028073709458112717,
-0.0025356768164783716,
-0.030941365286707878,
-0.01758069172501564,
0.008774052374064922,
-0.053182002156972885,
0.01839536800980568,
0.008749612607061863,
-0.018150964751839638,
0.039690978825092316,
-0.03884371742606163,
0.057613834738731384,
0.0020814952440559864,
0.04813101515173912,
0.0012749667512252927,
0.03506362438201904,
-0.04145067557692528,
0.02289237454533577,
0.020529815927147865,
0.005450177472084761,
-0.052236977964639664,
0.03499845042824745,
0.02921425551176071,
0.012081634253263474,
-0.031104302033782005,
0.021768122911453247,
0.02926313504576683,
0.011943139135837555,
-0.03714919090270996,
-0.03169086575508118,
-0.01798802986741066,
-0.03877854347229004,
-0.04122256860136986,
0.03773575648665428,
0.04340589791536331,
-0.031739749014377594,
0.06882376223802567,
0.00018393839127384126,
0.021914765238761902
] |
10,111 | sentence_transformers.quantization | quantize_embeddings |
Quantizes embeddings to a lower precision. This can be used to reduce the memory footprint and increase the
speed of similarity search. The supported precisions are "float32", "int8", "uint8", "binary", and "ubinary".
:param embeddings: Unquantized (e.g. float) embeddings with to quantize to a given precision
:param precision: The precision to convert to. Options are "float32", "int8", "uint8", "binary", "ubinary".
:param ranges: Ranges for quantization of embeddings. This is only used for int8 quantization, where the ranges
refers to the minimum and maximum values for each dimension. So, it's a 2D array with shape (2, embedding_dim).
Default is None, which means that the ranges will be calculated from the calibration embeddings.
:type ranges: Optional[np.ndarray]
:param calibration_embeddings: Embeddings used for calibration during quantization. This is only used for int8
quantization, where the calibration embeddings can be used to compute ranges, i.e. the minimum and maximum
values for each dimension. Default is None, which means that the ranges will be calculated from the query
embeddings. This is not recommended.
:type calibration_embeddings: Optional[np.ndarray]
:return: Quantized embeddings with the specified precision
| def quantize_embeddings(
embeddings: Union[Tensor, np.ndarray],
precision: Literal["float32", "int8", "uint8", "binary", "ubinary"],
ranges: Optional[np.ndarray] = None,
calibration_embeddings: Optional[np.ndarray] = None,
) -> np.ndarray:
"""
Quantizes embeddings to a lower precision. This can be used to reduce the memory footprint and increase the
speed of similarity search. The supported precisions are "float32", "int8", "uint8", "binary", and "ubinary".
:param embeddings: Unquantized (e.g. float) embeddings with to quantize to a given precision
:param precision: The precision to convert to. Options are "float32", "int8", "uint8", "binary", "ubinary".
:param ranges: Ranges for quantization of embeddings. This is only used for int8 quantization, where the ranges
refers to the minimum and maximum values for each dimension. So, it's a 2D array with shape (2, embedding_dim).
Default is None, which means that the ranges will be calculated from the calibration embeddings.
:type ranges: Optional[np.ndarray]
:param calibration_embeddings: Embeddings used for calibration during quantization. This is only used for int8
quantization, where the calibration embeddings can be used to compute ranges, i.e. the minimum and maximum
values for each dimension. Default is None, which means that the ranges will be calculated from the query
embeddings. This is not recommended.
:type calibration_embeddings: Optional[np.ndarray]
:return: Quantized embeddings with the specified precision
"""
if isinstance(embeddings, Tensor):
embeddings = embeddings.cpu().numpy()
elif isinstance(embeddings, list):
if isinstance(embeddings[0], Tensor):
embeddings = [embedding.cpu().numpy() for embedding in embeddings]
embeddings = np.array(embeddings)
if embeddings.dtype in (np.uint8, np.int8):
raise Exception("Embeddings to quantize must be float rather than int8 or uint8.")
if precision == "float32":
return embeddings.astype(np.float32)
if precision.endswith("int8"):
# Either use the 1. provided ranges, 2. the calibration dataset or 3. the provided embeddings
if ranges is None:
if calibration_embeddings is not None:
ranges = np.vstack((np.min(calibration_embeddings, axis=0), np.max(calibration_embeddings, axis=0)))
else:
if embeddings.shape[0] < 100:
logger.warning(
f"Computing {precision} quantization buckets based on {len(embeddings)} embedding{'s' if len(embeddings) != 1 else ''}."
f" {precision} quantization is more stable with `ranges` calculated from more embeddings "
"or a `calibration_embeddings` that can be used to calculate the buckets."
)
ranges = np.vstack((np.min(embeddings, axis=0), np.max(embeddings, axis=0)))
starts = ranges[0, :]
steps = (ranges[1, :] - ranges[0, :]) / 255
if precision == "uint8":
return ((embeddings - starts) / steps).astype(np.uint8)
elif precision == "int8":
return ((embeddings - starts) / steps - 128).astype(np.int8)
if precision == "binary":
return (np.packbits(embeddings > 0).reshape(embeddings.shape[0], -1) - 128).astype(np.int8)
if precision == "ubinary":
return np.packbits(embeddings > 0).reshape(embeddings.shape[0], -1)
raise ValueError(f"Precision {precision} is not supported")
| (embeddings: Union[torch.Tensor, numpy.ndarray], precision: Literal['float32', 'int8', 'uint8', 'binary', 'ubinary'], ranges: Optional[numpy.ndarray] = None, calibration_embeddings: Optional[numpy.ndarray] = None) -> numpy.ndarray | [
-0.014457719400525093,
-0.05295403674244881,
-0.06685495376586914,
-0.015590528957545757,
-0.014611320570111275,
0.03784351423382759,
-0.03690270707011223,
-0.051802027970552444,
0.014534519985318184,
0.06409013271331787,
-0.01003208290785551,
0.04588837921619415,
-0.03678750619292259,
-0.029549043625593185,
-0.04089633747935295,
0.03335067629814148,
0.04439076781272888,
-0.06608694791793823,
0.010368085466325283,
-0.02567061223089695,
-0.000866407179273665,
0.038592319935560226,
-0.03308187425136566,
0.08609351515769958,
0.007824065163731575,
0.008193667978048325,
0.025017807260155678,
-0.019497761502861977,
-0.07599423080682755,
0.02672662027180195,
0.016003333032131195,
0.028742637485265732,
-0.0022152182646095753,
0.03742111101746559,
-0.015043324790894985,
-0.05840688198804855,
0.04404516518115997,
-0.027187425643205643,
0.02396179735660553,
-0.013363310135900974,
-0.046963587403297424,
-0.023692995309829712,
0.017193742096424103,
-0.05952049419283867,
0.011865697801113129,
0.08448069542646408,
-0.0056928470730781555,
0.022944189608097076,
-0.03121945820748806,
0.03838111832737923,
0.039437126368284225,
-0.06305332481861115,
0.036653101444244385,
0.02751382812857628,
-0.06293812394142151,
0.07726144045591354,
0.00006757555820513517,
0.01922895945608616,
-0.003271227004006505,
-0.03603869676589966,
-0.008966473862528801,
0.03313947468996048,
0.04450596868991852,
-0.020006565377116203,
-0.037382710725069046,
0.03456028550863266,
-0.013056107796728611,
-0.034176282584667206,
-0.007684863638132811,
0.011769697070121765,
-0.028339434415102005,
-0.02140817791223526,
-0.007161659188568592,
-0.03432988375425339,
-0.006864056922495365,
0.04815400019288063,
0.02332819253206253,
-0.004831240046769381,
-0.04039713367819786,
-0.03229466825723648,
0.0850951075553894,
0.021350577473640442,
0.07495742291212082,
-0.03087385557591915,
0.08901193737983704,
-0.009878481738269329,
-0.0181441493332386,
0.09415757656097412,
0.07956545799970627,
-0.08286788314580917,
0.021446578204631805,
0.007526462431997061,
0.07380541414022446,
0.04258595407009125,
0.013478511944413185,
0.01817294955253601,
-0.03970592841506004,
-0.07626303285360336,
-0.016300935298204422,
-0.033024273812770844,
0.007536062505096197,
0.0638597309589386,
0.03513628989458084,
0.025497810915112495,
0.0031152258161455393,
0.004404036328196526,
-0.03492508828639984,
-0.051034022122621536,
0.00513604236766696,
0.01998736523091793,
0.024499403312802315,
-0.0056112464517354965,
0.016502536833286285,
-0.015254526399075985,
-0.04323875904083252,
-0.014832123182713985,
-0.01725134253501892,
0.04919080808758736,
0.022790588438510895,
-0.0027528228238224983,
0.022636987268924713,
-0.0014352118596434593,
0.04588837921619415,
0.024518603459000587,
0.014102516695857048,
-0.026112215593457222,
0.04389156401157379,
0.08256068080663681,
-0.030777854844927788,
-0.03191066533327103,
0.03475228697061539,
-0.016742538660764694,
-0.01991056464612484,
0.04108833894133568,
0.053952448070049286,
-0.001707614166662097,
0.048691604286432266,
0.016262535005807877,
-0.008251268416643143,
-0.022771388292312622,
0.03477148711681366,
0.03185306489467621,
0.012048100121319294,
0.016953740268945694,
-0.023424193263053894,
0.024096200242638588,
0.024134600535035133,
-0.04615718126296997,
-0.037728313356637955,
-0.030048249289393425,
-0.0371331088244915,
-0.01290250662714243,
0.009897681884467602,
-0.002323219319805503,
0.036653101444244385,
-0.027225825935602188,
0.05533485859632492,
-0.06297652423381805,
-0.022982589900493622,
0.03093145601451397,
0.00023295193386729807,
0.04193314537405968,
-0.05214763060212135,
-0.02048656903207302,
-0.048192400485277176,
0.03926432505249977,
-0.00807366706430912,
-0.012307302094995975,
-0.04024353250861168,
0.02937624230980873,
0.05107242241501808,
0.03206426650285721,
0.007963266223669052,
-0.03029785118997097,
-0.012364902533590794,
0.0018936156993731856,
-0.021216176450252533,
-0.03248666971921921,
-0.032813072204589844,
0.01656973734498024,
0.004120834171772003,
-0.02417300082743168,
-0.012364902533590794,
-0.009465678595006466,
0.008712071925401688,
0.022809788584709167,
0.02367379516363144,
0.013276909478008747,
0.022502586245536804,
-0.05306923761963844,
0.013737713918089867,
-0.059059686958789825,
-0.002076017204672098,
0.03093145601451397,
0.0020052166655659676,
-0.013689713552594185,
-0.0014616120606660843,
0.002988024614751339,
-0.04642598330974579,
0.00904807448387146,
-0.02943384274840355,
-0.034099481999874115,
0.037862714380025864,
-0.04884520545601845,
-0.01337291020900011,
-0.03947552666068077,
-0.015024124644696712,
-0.03252507001161575,
-0.010550486855208874,
-0.042931556701660156,
-0.02390419691801071,
-0.019180959090590477,
0.015177725814282894,
-0.025689812377095222,
-0.006585654336959124,
0.06508854031562805,
-0.016425736248493195,
-0.032256267964839935,
-0.022579386830329895,
-0.032045066356658936,
0.036883506923913956,
0.018336152657866478,
-0.014304118230938911,
0.00375123112462461,
0.0020856172777712345,
0.03135386109352112,
0.03790111467242241,
0.05583406239748001,
0.04531237483024597,
-0.026496218517422676,
0.04158754274249077,
-0.007579262834042311,
-0.02083217166364193,
-0.02025616727769375,
0.040857937186956406,
-0.015820931643247604,
-0.018633754923939705,
0.0429699569940567,
0.09899602085351944,
-0.01788494735956192,
0.02240658551454544,
-0.02446100302040577,
-0.030816255137324333,
0.023020990192890167,
-0.021024173125624657,
-0.012182501144707203,
-0.02672662027180195,
0.013824114575982094,
0.04876840487122536,
0.0032568268943578005,
-0.0034848288632929325,
-0.05617966502904892,
-0.004245635122060776,
-0.01954576186835766,
0.07296060025691986,
-0.007348860614001751,
0.019046558067202568,
0.027840230613946915,
0.06059570237994194,
-0.0010536087211221457,
0.0007074058521538973,
0.013132908381521702,
0.03778591379523277,
0.039513926953077316,
-0.026361817494034767,
-0.016579337418079376,
0.003547229338437319,
-0.00014820123033132404,
-0.025190608575940132,
0.013987315818667412,
-0.04727078974246979,
0.07895105332136154,
0.012172901071608067,
-0.025421010330319405,
0.017193742096424103,
-0.004785639699548483,
0.08279108256101608,
0.02595861442387104,
0.022790588438510895,
0.051955629140138626,
0.03350427746772766,
-0.009859281592071056,
0.05041961744427681,
-0.007584062870591879,
0.09400397539138794,
0.027225825935602188,
-0.07388221472501755,
-0.039782728999853134,
0.03690270707011223,
-0.02603541500866413,
0.008860873058438301,
0.0342530831694603,
0.05610286444425583,
-0.02616981603205204,
-0.011846497654914856,
-0.007857665419578552,
0.008347269147634506,
-0.04930600896477699,
0.0550660565495491,
0.029529843479394913,
-0.022156983613967896,
0.01607053354382515,
0.10106963664293289,
0.06493493914604187,
-0.023692995309829712,
0.027936231344938278,
0.026688219979405403,
-0.006705655716359615,
0.013526512309908867,
-0.006547254044562578,
-0.009878481738269329,
-0.034733086824417114,
0.004072833806276321,
0.0063648526556789875,
0.000673205591738224,
0.02062097005546093,
0.05026601627469063,
0.00018345151329413056,
0.034099481999874115,
-0.005174442660063505,
0.06201651319861412,
0.05318443849682808,
-0.014275318011641502,
0.030605053529143333,
-0.023020990192890167,
-0.11043931543827057,
-0.026765020564198494,
-0.001454412005841732,
0.0069024572148919106,
-0.08355908840894699,
0.00048210399108938873,
-0.02440340258181095,
0.05871408432722092,
0.02062097005546093,
-0.040281932801008224,
0.003554429393261671,
0.024653004482388496,
0.004384836181998253,
-0.012988907285034657,
-0.021676979959011078,
0.025517011061310768,
0.01788494735956192,
-0.0034560286439955235,
0.03974432870745659,
-0.034809887409210205,
-0.007992066442966461,
0.024979406967759132,
-0.051302824169397354,
-0.019968165084719658,
-0.025229008868336678,
-0.01024328451603651,
-0.018134549260139465,
0.05084202066063881,
0.06209331378340721,
0.017654545605182648,
-0.03137306123971939,
0.029261041432619095,
-0.06827576458454132,
-0.020563369616866112,
0.01867215521633625,
0.03264027088880539,
0.00022590186563320458,
0.0006030049989931285,
-0.011760096997022629,
0.0023424194660037756,
0.04104993864893913,
-0.019968165084719658,
-0.052454832941293716,
-0.039283525198698044,
0.020563369616866112,
0.039302725344896317,
-0.01874895580112934,
-0.021715380251407623,
0.05978929623961449,
-0.014112116768956184,
0.004384836181998253,
-0.07326780259609222,
0.04488997161388397,
-0.06028850004076958,
-0.013056107796728611,
-0.011472094804048538,
-0.014371318742632866,
-0.06846776604652405,
0.027475427836179733,
0.07276859879493713,
0.008688071742653847,
-0.01560972910374403,
-0.044697970151901245,
0.04258595407009125,
0.030182650312781334,
-0.03655710071325302,
-0.0027336226776242256,
0.006028850097209215,
0.02112017385661602,
-0.05959729477763176,
0.007468861993402243,
-0.04197154566645622,
0.027686629444360733,
-0.024499403312802315,
0.027609828859567642,
-0.008683271706104279,
-0.050381217151880264,
-0.024633804336190224,
-0.01034888532012701,
0.01454412005841732,
0.008908873423933983,
0.02175378054380417,
-0.03191066533327103,
0.03555869311094284,
0.08486470580101013,
-0.052800435572862625,
0.01500492449849844,
0.010684888809919357,
0.019526561722159386,
-0.08340548723936081,
-0.032678671181201935,
-0.04692518711090088,
-0.06289972364902496,
-0.02296338975429535,
0.0029520243406295776,
0.04131874069571495,
0.011270493268966675,
0.05406764894723892,
0.036441899836063385,
0.007483262103050947,
-0.026477018371224403,
0.014448119327425957,
-0.012537703849375248,
0.03216026723384857,
-0.020006565377116203,
-0.05786927789449692,
-0.013180908747017384,
-0.007867265492677689,
-0.029894648119807243,
0.0009630079730413854,
0.020928172394633293,
-0.01059848815202713,
0.01664653792977333,
-0.07971905916929245,
-0.02438420243561268,
0.014515319839119911,
-0.04727078974246979,
-0.013814514502882957,
0.004092033952474594,
0.015158525668084621,
0.01099209114909172,
-0.03252507001161575,
0.03008664958178997,
-0.06750775873661041,
-0.009398478083312511,
0.02567061223089695,
-0.07415101677179337,
0.020889772102236748,
0.008001666516065598,
0.08448069542646408,
-0.0010872089769691229,
0.03252507001161575,
0.00760806305333972,
-0.042931556701660156,
-0.0650501400232315,
0.07031098008155823,
0.004744839388877153,
0.02156177908182144,
-0.007876865565776825,
0.019286559894680977,
0.10091603547334671,
-0.012201701290905476,
-0.01266250479966402,
-0.0035952297039330006,
0.011481694877147675,
0.1227274164557457,
0.04926760867238045,
0.03799711540341377,
-0.001623613410629332,
0.008856073021888733,
0.01425611786544323,
-0.01003208290785551,
0.042777955532073975,
-0.022022582590579987,
0.004017633385956287,
0.07261499762535095,
-0.0500740148127079,
-0.02916504070162773,
0.016502536833286285,
-0.02858903631567955,
-0.04193314537405968,
0.0035976297222077847,
-0.019737763330340385,
0.025651412084698677,
0.003921632654964924,
0.001398011576384306,
0.02795543149113655,
0.07453501969575882,
0.04615718126296997,
0.03014425002038479,
-0.03173786401748657,
0.06074930354952812,
0.02766742929816246,
-0.010416085831820965,
0.03114265762269497,
0.026899423450231552,
0.0405123345553875,
-0.07123258709907532,
-0.018028948456048965,
0.0534532405436039,
-0.019075358286499977,
-0.012748905457556248,
0.03206426650285721,
-0.02296338975429535,
-0.010953690856695175,
-0.048038799315690994,
-0.03029785118997097,
0.03342747688293457,
-0.044774770736694336,
0.014966524206101894,
0.03588509559631348,
0.005659246817231178,
-0.04535077512264252,
-0.014774521812796593,
0.012950506992638111,
-0.032102666795253754,
0.07234619557857513,
-0.021638579666614532,
-0.011088091880083084,
0.015177725814282894,
-0.037229109555482864,
-0.016128133982419968,
-0.03202586621046066,
-0.008376069366931915,
-0.006950457580387592,
-0.012412902899086475,
0.006451253313571215,
-0.012201701290905476,
0.02580501325428486,
-0.0008070066687650979,
0.08570951223373413,
-0.02993304841220379,
-0.03450268507003784,
0.14000755548477173,
0.025517011061310768,
-0.04930600896477699,
0.04638758301734924,
0.029069039970636368,
-0.018240150064229965,
0.026054615154862404,
0.04842280223965645,
0.002656822092831135,
0.029645046219229698,
0.050112415105104446,
0.04876840487122536,
-0.04101153835654259,
0.014323318377137184,
0.07618623226881027,
0.012028899975121021,
0.05383724719285965,
-0.041357140988111496,
0.06086450442671776,
-0.0050208414904773235,
0.001851615379564464,
0.01141449436545372,
0.023424193263053894,
-0.0009270076989196241,
0.06581814587116241,
-0.03532829135656357,
-0.06355252861976624,
-0.026496218517422676,
-0.04558117687702179,
-0.023500993847846985,
-0.01091529056429863,
0.039859529584646225,
-0.02417300082743168,
0.010521686635911465,
-0.03926432505249977,
-0.001761614577844739,
-0.06612534821033478,
-0.036960307508707047,
-0.026400217786431313,
-0.08793672919273376,
-0.008188867941498756,
-0.03838111832737923,
0.006912057287991047,
-0.031257860362529755,
-0.007742464076727629,
-0.06416693329811096,
0.04500517249107361,
0.03926432505249977,
-0.01746254414319992,
0.005068841855973005,
-0.015312126837670803,
0.03121945820748806,
0.02282898873090744,
0.0068448567762970924,
-0.004795239772647619,
0.01617613434791565,
-0.006264051888138056,
-0.011136092245578766,
-0.06036530062556267,
0.03588509559631348,
-0.00881287269294262,
-0.06347572803497314,
-0.028185833245515823,
0.04581157863140106,
-0.012883306480944157,
-0.011548895388841629,
0.032813072204589844,
-0.008620871230959892,
-0.02538261003792286,
0.03329307585954666,
0.034675486385822296,
-0.06689335405826569,
-0.04899880662560463,
0.0550660565495491,
-0.04680998623371124,
-0.05149482563138008,
-0.01290250662714243,
-0.03742111101746559,
-0.04131874069571495,
-0.008011266589164734,
0.0317186638712883,
-0.019296159967780113,
-0.0033960281871259212,
-0.0007230059709399939,
-0.02624661661684513,
-0.04323875904083252,
-0.02601621486246586,
-0.002692822366952896,
-0.04949801042675972,
-0.009019274264574051,
0.0030336251948028803,
-0.015619329176843166,
0.05729327350854874,
0.013315309770405293,
0.06001969799399376,
-0.022214584052562714,
-0.017692945897579193,
-0.0007716063992120326,
-0.012950506992638111,
0.0015996132278814912,
-0.027494627982378006,
-0.008380869403481483,
0.050803620368242264,
0.013420911505818367,
-0.02282898873090744,
0.016876939684152603,
0.03363867849111557,
-0.02895383909344673,
-0.0033792280592024326,
-0.024633804336190224,
0.0013632113113999367,
0.03845791891217232,
-0.02161937952041626,
-0.0019416160648688674,
0.014803322032094002,
-0.03584669530391693,
0.02845463529229164,
0.027110625058412552,
-0.011654496192932129,
0.030336251482367516,
-0.002714422531425953,
-0.02672662027180195,
-0.0024240200873464346,
0.012940906919538975,
-0.06608694791793823,
0.03563549369573593,
-0.028397034853696823,
-0.0072000594809651375,
-0.010521686635911465,
-0.018220949918031693,
-0.007564862724393606,
0.046694785356521606,
-0.013123308308422565,
0.011779297143220901,
0.019603362306952477,
-0.008011266589164734,
-0.00549604557454586,
0.041126739233732224,
-0.02304019033908844,
0.0321410670876503,
0.00932167749851942,
-0.026342617347836494,
-0.00677285622805357,
-0.012729705311357975,
-0.003657630179077387,
0.021715380251407623,
0.005712047219276428,
-0.019075358286499977,
-0.0613253079354763,
0.002464820398017764,
-0.023520193994045258,
0.02732182666659355,
0.04081953689455986,
-0.004804839845746756,
-0.004797639790922403,
-0.059635695070028305,
-0.010416085831820965,
0.0006696055643260479,
-0.02367379516363144,
-0.01738574355840683,
0.04039713367819786,
-0.0001522512611700222,
0.057638876140117645,
0.0463491827249527,
-0.04584997892379761,
-0.02851223573088646,
-0.019392160698771477,
0.04934440925717354,
-0.02062097005546093,
0.02211858332157135,
-0.004262435249984264,
0.00830886885523796,
0.037939514964818954,
0.0521860308945179,
-0.02559381164610386,
-0.033254675567150116,
-0.01864335499703884,
0.04565797746181488,
0.018163349479436874,
0.05502765625715256,
0.024691404774785042,
0.028493035584688187,
-0.03550109267234802,
0.0647045373916626,
-0.020640170201659203,
-0.05126442387700081,
-0.09899602085351944,
0.009004874154925346,
-0.00246242037974298,
0.017606545239686966,
0.028185833245515823,
-0.001620013383217156,
0.0011886098654940724,
0.04723238945007324,
-0.046541184186935425,
-0.027609828859567642,
-0.06601014733314514,
-0.03144986182451248,
-0.020217766985297203,
-0.06946617364883423,
-0.0029208241030573845,
-0.04826920107007027,
-0.05383724719285965,
0.019660962745547295,
-0.0033072272781282663,
0.02895383909344673,
-0.012422502972185612,
0.008515270426869392,
-0.016684938222169876,
-0.04289315640926361,
-0.01702094078063965,
-0.007857665419578552,
-0.016108933836221695,
0.034733086824417114,
-0.0323522686958313,
-0.06220851466059685,
-0.019468961283564568,
-0.0034584286622703075,
-0.002234418410807848,
-0.028627436608076096,
-0.05687087029218674,
-0.043776363134384155,
-0.06731575727462769,
-0.04623398184776306,
0.019814563915133476,
0.025478610768914223,
-0.05253163352608681,
0.0013356111012399197,
0.016800139099359512,
0.019737763330340385
] |
10,115 | tree_format._text | format_tree | null | def format_tree(node, format_node, get_children):
lines = itertools.chain(
[format_node(node)],
_format_tree(node, format_node, get_children),
[u''],
)
return u'\n'.join(lines)
| (node, format_node, get_children) | [
-0.012358465231955051,
-0.03997385501861572,
0.07297717779874802,
-0.01561256404966116,
-0.02656625397503376,
-0.020964935421943665,
-0.017106249928474426,
-0.025197042152285576,
0.06547319144010544,
-0.03344787284731865,
0.04264114797115326,
-0.048829272389411926,
0.017613034695386887,
0.019346777349710464,
-0.014590101316571236,
0.021053845062851906,
-0.03958265110850334,
-0.05811145901679993,
0.06277032941579819,
0.08969222754240036,
0.0036964258179068565,
0.038835808634757996,
0.07262153923511505,
-0.04829581454396248,
0.01480348501354456,
0.007383960299193859,
-0.015070214867591858,
-0.014750138856470585,
-0.0446682944893837,
-0.018617715686559677,
0.04139641299843788,
-0.04363694041967392,
-0.043565813452005386,
-0.03655971959233284,
-0.01808425784111023,
0.05900055542588234,
-0.05377265810966492,
0.04417039826512337,
-0.024716930463910103,
-0.03794671222567558,
-0.024485765025019646,
-0.047726791352033615,
-0.012091735377907753,
-0.037626635283231735,
-0.0187777541577816,
-0.015416963025927544,
0.09154155105352402,
0.046837691217660904,
-0.1081143394112587,
-0.059462886303663254,
0.0446682944893837,
0.014483409933745861,
-0.008068566210567951,
-0.0029140193946659565,
-0.026299525052309036,
-0.035919565707445145,
0.020484821870923042,
-0.049540553241968155,
0.09716065227985382,
0.009611151181161404,
0.027508698403835297,
0.07454199343919754,
-0.009424440562725067,
0.02766873501241207,
-0.043281301856040955,
-0.007739599794149399,
-0.030851706862449646,
-0.021053845062851906,
0.003574174828827381,
0.06554432213306427,
-0.028433360159397125,
0.02462802082300186,
0.021391702815890312,
0.024094561114907265,
0.02900238335132599,
0.047015514224767685,
-0.019435686990618706,
-0.003989828284829855,
-0.006223687436431646,
0.018155384808778763,
-0.02900238335132599,
0.020840462297201157,
0.020751552656292915,
0.029731443151831627,
0.03663084656000137,
-0.06977642327547073,
0.044383782893419266,
0.03437253460288048,
-0.018724408000707626,
0.019471250474452972,
-0.05423498898744583,
-0.029162419959902763,
0.002874010009691119,
0.005756910890340805,
-0.04392145201563835,
0.032167572528123856,
0.03565283864736557,
-0.010846997611224651,
-0.05010957270860672,
0.011407129466533661,
0.05163882300257683,
0.025232607498764992,
-0.020733769983053207,
0.00449439138174057,
-0.022547530010342598,
-0.023970087990164757,
-0.041574232280254364,
0.040365058928728104,
0.020858243107795715,
0.05291912332177162,
-0.05800476670265198,
-0.04367250204086304,
0.057115666568279266,
-0.03922701254487038,
0.05576423928141594,
-0.021267229691147804,
-0.028451142832636833,
-0.021036064252257347,
0.020840462297201157,
-0.06657567620277405,
0.0324876494705677,
-0.045592956244945526,
0.010882562026381493,
-0.02149839513003826,
-0.07361733168363571,
0.029767008498311043,
-0.015932640060782433,
0.0375555083155632,
0.012038389220833778,
-0.05910724774003029,
0.025712719187140465,
0.052670177072286606,
-0.022885387763381004,
0.01931121200323105,
0.05754243582487106,
-0.013025288470089436,
-0.058147020637989044,
-0.02192516066133976,
-0.0006451518856920302,
0.029767008498311043,
0.011620513163506985,
-0.1145869791507721,
0.022067416459321976,
-0.0032763269264250994,
-0.045806340873241425,
-0.023365501314401627,
0.002400565193966031,
0.060458678752183914,
-0.009860099293291569,
0.01080254279077053,
0.011549385264515877,
0.0055702002719044685,
0.06358830630779266,
0.010446904227137566,
0.028326667845249176,
0.01849324256181717,
-0.043992578983306885,
-0.047833483666181564,
0.031385164707899094,
0.013274235650897026,
0.005063414108008146,
-0.0011702755000442266,
0.016990667209029198,
0.033092234283685684,
0.003456369275227189,
0.052385665476322174,
-0.05138987675309181,
-0.03616851568222046,
-0.018511025235056877,
-0.005307916086167097,
0.025090351700782776,
-0.04285453259944916,
-0.07340394705533981,
0.059427324682474136,
0.06138334050774574,
0.0012891923543065786,
0.02110719121992588,
0.036204077303409576,
-0.03286106884479523,
-0.010313538834452629,
-0.016546117141842842,
-0.005512408912181854,
0.04299679026007652,
0.036026258021593094,
-0.005325698293745518,
-0.0377688929438591,
-0.012785231694579124,
-0.015034650452435017,
-0.010473576374351978,
-0.02462802082300186,
-0.017097357660531998,
0.004403258673846722,
0.005512408912181854,
-0.008455323986709118,
0.009104365482926369,
-0.022494183853268623,
-0.03271881490945816,
-0.0281666312366724,
0.016528336331248283,
-0.018617715686559677,
-0.016812846064567566,
0.04353024810552597,
0.014021078124642372,
0.02889569103717804,
0.01948903314769268,
-0.00984231662005186,
-0.00918438471853733,
0.027348659932613373,
-0.06803379207849503,
0.020360348746180534,
0.014305589720606804,
0.025392644107341766,
-0.016012659296393394,
-0.004321017302572727,
-0.03131403774023056,
-0.04413483291864395,
0.012029498815536499,
0.04374363273382187,
-0.10334877669811249,
0.01524803414940834,
-0.04452603682875633,
0.00018337649817112833,
0.03769776225090027,
-0.02302764356136322,
-0.016430534422397614,
-0.014278916642069817,
0.015648128464818,
-0.009957900270819664,
0.017444105818867683,
0.007357287686318159,
0.008041893132030964,
-0.022778695449233055,
-0.029962608590722084,
-0.010740306228399277,
-0.05231453850865364,
-0.04797573760151863,
0.026388434693217278,
-0.04587746784090996,
0.01738186925649643,
0.006703800521790981,
-0.05021626502275467,
-0.03515494242310524,
0.03584843873977661,
-0.0597829632461071,
0.03609738498926163,
-0.037235431373119354,
0.05355927720665932,
-0.0159682035446167,
-0.009513351134955883,
0.013967732898890972,
-0.08008996397256851,
0.031385164707899094,
0.011949479579925537,
-0.0030229338444769382,
-0.005988076329231262,
-0.047940175980329514,
0.00024241818755399436,
0.01957794278860092,
0.0014036637730896473,
0.06458409130573273,
0.007406188175082207,
-0.048935964703559875,
-0.019364558160305023,
0.013185326009988785,
-0.009362204000353813,
-0.04132528603076935,
-0.002496143104508519,
-0.045095060020685196,
-0.0014736802550032735,
0.04239220172166824,
-0.005841375328600407,
0.0072728232480585575,
-0.008126357570290565,
0.025712719187140465,
0.01464344747364521,
-0.009682279080152512,
-0.009780080057680607,
0.025428207591176033,
-0.018653281033039093,
-0.04043618589639664,
-0.037519942969083786,
-0.018813317641615868,
-0.034194715321063995,
0.04139641299843788,
-0.040578443557024,
-0.032665468752384186,
-0.02628174237906933,
0.0649752989411354,
-0.029927045106887817,
0.02617505006492138,
0.03951152414083481,
-0.013976623304188251,
-0.04655318334698677,
0.013469837605953217,
0.05259905010461807,
-0.04797573760151863,
0.012305119074881077,
-0.01443895511329174,
0.020467041060328484,
-0.03716430440545082,
-0.03353678435087204,
-0.016892865300178528,
0.08862531185150146,
-0.009202166460454464,
0.02980257198214531,
-0.00007098893547663465,
-0.03666640818119049,
-0.032878849655389786,
-0.01819094829261303,
0.007103894371539354,
-0.060458678752183914,
-0.004323239903897047,
0.029855918139219284,
-0.017435215413570404,
0.018955573439598083,
0.02768651768565178,
-0.04118302837014198,
0.0035675065591931343,
0.03195418789982796,
0.01725739613175392,
-0.07347507774829865,
0.005734683480113745,
0.014927959069609642,
0.043601375073194504,
0.05224341154098511,
-0.03079836070537567,
0.026744073256850243,
0.03111843764781952,
0.0051256511360406876,
0.06415732949972153,
0.008530897088348866,
-0.00818859413266182,
0.005547972861677408,
0.01231401041150093,
-0.04605528712272644,
-0.02302764356136322,
0.04274784028530121,
-0.041858743876218796,
-0.07326169312000275,
-0.01444784551858902,
0.0024227926041930914,
0.06319709867238998,
0.00002745437996054534,
-0.014634556137025356,
-0.03465704619884491,
0.04242776706814766,
0.0301048643887043,
0.06995424628257751,
0.013852150179445744,
0.06113439053297043,
-0.01577260158956051,
0.03556392714381218,
0.012660758569836617,
-0.013220890425145626,
-0.043601375073194504,
-0.024290163069963455,
0.009362204000353813,
-0.0222274549305439,
-0.05917837470769882,
0.08058786392211914,
0.014883504249155521,
0.02292095124721527,
0.012847469188272953,
0.018653281033039093,
0.0337679497897625,
-0.015719255432486534,
0.0009580033365637064,
0.024716930463910103,
0.06262807548046112,
0.021036064252257347,
0.0047566755674779415,
-0.017657490447163582,
0.039831601083278656,
-0.059462886303663254,
-0.027224186807870865,
0.06028085947036743,
0.015674801543354988,
-0.016812846064567566,
-0.03070945106446743,
-0.04537957161664963,
-0.012002825736999512,
0.025801628828048706,
0.018013129010796547,
-0.0010330210207030177,
-0.039333704859018326,
-0.043067917227745056,
0.08570906519889832,
0.01959572359919548,
-0.023294372484087944,
-0.021356139332056046,
-0.06959860771894455,
0.01252739317715168,
0.028646744787693024,
-0.021693995222449303,
-0.06995424628257751,
-0.02244083769619465,
0.022760914638638496,
-0.025819411501288414,
0.012340682558715343,
-0.034905996173620224,
0.03527941554784775,
0.03492377698421478,
-0.025783848017454147,
-0.05444837361574173,
-0.007664026692509651,
0.017630817368626595,
-0.0010769201908260584,
0.04545069858431816,
-0.020235875621438026,
0.005943621508777142,
0.004930049646645784,
0.011442693881690502,
-0.019168956205248833,
0.027615390717983246,
0.043494682759046555,
-0.03663084656000137,
-0.00842865090817213,
0.10135719180107117,
-0.041040774434804916,
-0.027402006089687347,
-0.048935964703559875,
0.002253863960504532,
-0.02576606534421444,
0.06202349066734314,
0.07151906192302704,
-0.046802129596471786,
-0.005645773373544216,
0.03362569212913513,
0.006317042745649815,
0.06600665301084518,
0.03314558044075966,
-0.04385032132267952,
0.04224994778633118,
-0.04665987193584442,
0.036417461931705475,
-0.0505007766187191,
0.01808425784111023,
0.0015214693266898394,
0.0012758559314534068,
0.06309040635824203,
0.05988965556025505,
0.03289663419127464,
0.025730501860380173,
-0.08570906519889832,
0.03487043082714081,
0.027739863842725754,
0.009122147224843502,
0.00621479656547308,
-0.007939646951854229,
-0.01617269590497017,
0.004065401386469603,
0.05341701954603195,
-0.029340241104364395,
-0.041254155337810516,
-0.0015392513014376163,
-0.006574881263077259,
0.08400199562311172,
-0.009771189652383327,
0.010073482990264893,
0.05010957270860672,
0.006179232615977526,
0.07902304828166962,
0.057008977979421616,
0.04993175342679024,
0.01576371118426323,
-0.12824352085590363,
0.023383282124996185,
-0.014625665731728077,
-0.016786174848675728,
-0.03325227275490761,
0.05149656906723976,
0.001151382108218968,
-0.06522424519062042,
0.03584843873977661,
0.02887791022658348,
0.038231223821640015,
-0.028326667845249176,
-0.0668957456946373,
-0.08037447929382324,
-0.028628962114453316,
-0.030976181849837303,
0.00409429706633091,
0.03634633496403694,
-0.044099271297454834,
-0.02688632905483246,
0.0024116788990795612,
0.05089198052883148,
0.03079836070537567,
0.042890097945928574,
-0.043885886669158936,
-0.036310769617557526,
-0.002994038164615631,
-0.03816009312868118,
-0.024076778441667557,
-0.007317278068512678,
-0.010784761048853397,
-0.048544760793447495,
-0.07738710939884186,
-0.03865798935294151,
-0.02473471127450466,
0.0410052090883255,
0.00429656682536006,
0.045806340873241425,
-0.041254155337810516,
0.02201407216489315,
0.041040774434804916,
0.03908475860953331,
0.0440281443297863,
0.02786433696746826,
0.0008274170104414225,
0.03030046634376049,
-0.012225099839270115,
0.002034923527389765,
-0.002460579155012965,
-0.09061688929796219,
0.034692611545324326,
-0.03222091868519783,
0.03364347666501999,
0.05391491577029228,
0.03958265110850334,
-0.036524154245853424,
0.015141342766582966,
0.019008919596672058,
0.009122147224843502,
-0.0014192230300977826,
0.02242305688560009,
0.021533958613872528,
0.06337492167949677,
-0.03666640818119049,
-0.023312155157327652,
0.0036986484192311764,
-0.005948066711425781,
0.0299981739372015,
-0.027117494493722916,
-0.07909417897462845,
0.016323842108249664,
-0.01867106184363365,
0.0688517615199089,
0.012669648975133896,
-0.013976623304188251,
0.0690651461482048,
0.012153971940279007,
-0.0505007766187191,
-0.03330561891198158,
-0.02130279317498207,
0.020769333466887474,
0.07966320216655731,
-0.011389347724616528,
0.08492665737867355,
0.009780080057680607,
0.004341022111475468,
0.02779320999979973,
0.02050260454416275,
0.07333281636238098,
0.030940616503357887,
-0.014865721575915813,
-0.02868230827152729,
0.0073128328658640385,
0.024574674665927887,
-0.026904111728072166,
-0.02779320999979973,
0.061952363699674606,
-0.023489974439144135,
-0.012100626714527607,
0.06373056024312973,
0.01646609790623188,
-0.019275648519396782,
0.06607777625322342,
0.03179415315389633,
0.023810049518942833,
0.047015514224767685,
0.008557570166885853,
0.03294998034834862,
-0.02453910931944847,
-0.026655163615942,
-0.023418845608830452,
-0.052990254014730453,
-0.010998144745826721,
0.00923772994428873,
0.009477786719799042,
-0.045592956244945526,
-0.04249889403581619,
-0.010793652385473251,
0.000800188397988677,
0.02302764356136322,
0.014385608956217766,
0.031883060932159424,
0.00883763562887907,
-0.0009996797889471054,
0.013612093403935432,
-0.03865798935294151,
-0.007668471895158291,
0.06828273832798004,
0.015345835126936436,
0.09381764382123947,
-0.016439424827694893,
0.008646479807794094,
0.013345363549888134,
-0.0321497917175293,
-0.001013571978546679,
0.007912973873317242,
0.018333204090595245,
0.012731886468827724,
0.05619100481271744,
-0.00014864611148368567,
-0.017648600041866302,
0.056724466383457184,
-0.06931409239768982,
-0.03655971959233284,
0.034603700041770935,
-0.023561101406812668,
0.02827332355082035,
0.056013185530900955,
-0.02494809590280056,
-0.03143851086497307,
-0.022760914638638496,
-0.024485765025019646,
-0.039760470390319824,
-0.03040715865790844,
-0.05210115388035774,
0.02786433696746826,
0.031456295400857925,
-0.05430611968040466,
0.0013736566761508584,
-0.02274313196539879,
-0.0010958135826513171,
-0.007539552636444569,
-0.042285509407520294,
-0.024610238149762154,
-0.06870950758457184,
0.023667793720960617,
-0.02706414833664894,
-0.039547089487314224,
-0.04577077552676201,
-0.07425747811794281,
-0.022494183853268623,
0.0012614080915227532,
-0.0002454744535498321,
-0.04655318334698677,
0.022067416459321976,
-0.014154443517327309,
-0.0023272144608199596,
-0.05665333569049835,
-0.05686672031879425,
-0.011336001567542553,
-0.009717843495309353,
-0.026228396221995354,
-0.004867812618613243,
-0.046837691217660904,
-0.008624252863228321,
-0.05547972768545151,
0.0172662865370512,
0.010046809911727905,
0.03442588075995445,
0.03869355469942093,
0.03252321109175682,
0.008077457547187805,
0.007170577067881823,
-0.006588217802345753,
0.030727233737707138,
0.040578443557024,
-0.010011245496571064,
-0.019560160115361214,
0.022476403042674065,
-0.03038937598466873,
-0.06963416934013367,
-0.013211999088525772,
0.03958265110850334,
0.03371460363268852,
-0.010117937810719013,
0.008206376805901527,
-0.0006001412984915078,
-0.018226513639092445,
-0.003958709537982941,
-0.023614447563886642,
-0.0047166659496724606,
0.043779194355010986,
0.06099213659763336,
0.021089408546686172,
-0.0043121264316141605,
0.0033585685305297375,
0.03890693560242653,
-0.053879350423812866,
0.00489448569715023,
0.00024380740069318563,
-0.00038814693107269704,
-0.048117995262145996,
0.030976181849837303,
0.013941059820353985,
-0.02715305984020233,
-0.006583772134035826,
-0.03648858889937401,
-0.006028085947036743,
-0.0042121028527617455,
0.014927959069609642,
0.0688517615199089,
0.017942002043128014,
-0.003640857059508562,
0.013789912685751915,
0.0015248034615069628,
0.04730002582073212,
-0.0476912260055542,
-0.0020149187184870243,
0.0029384696390479803,
0.02274313196539879,
-0.038124531507492065,
-0.011931697838008404,
0.042570021003484726,
-0.03986716270446777,
0.03663084656000137,
-0.02918020263314247,
0.07183913141489029,
0.008397532626986504,
-0.0021382812410593033,
-0.04150310531258583,
-0.05537303537130356,
0.007575116585940123,
-0.01459899265319109,
0.01658168062567711,
-0.020929371938109398,
-0.0386224240064621,
0.04242776706814766,
0.025481553748250008,
-0.007886300794780254,
0.0060858773067593575,
0.07589342445135117,
-0.0004364916530903429,
-0.023080989718437195,
-0.051674388349056244,
-0.05846709758043289,
-0.015532545745372772,
0.044490475207567215,
0.0021493949461728334,
-0.032078664749860764,
0.02779320999979973,
-0.01368322130292654,
-0.025072569027543068,
0.019969144836068153,
0.005463508423417807,
-0.012758559547364712,
0.013709894381463528,
0.06671793013811111,
0.01779085583984852,
0.02233414724469185,
0.021338356658816338,
-0.040542878210544586,
0.028148848563432693,
0.045913029462099075,
-0.02818441204726696,
0.0030807252041995525,
0.009966790676116943,
-0.0034119142219424248,
-0.0025517118629068136,
0.02941136807203293,
0.06543762981891632,
-0.014625665731728077,
-0.011842788197100163,
0.027188623324036598,
-0.015834838151931763,
0.017035121098160744,
0.01656389981508255,
-0.00013565694098360837,
0.010695851407945156,
-0.008250831626355648,
0.02788211964070797,
0.004396590404212475,
-0.028148848563432693,
0.021338356658816338
] |
10,116 | tree_format._text | print_tree | null | def print_tree(*args, **kwargs):
print(format_tree(*args, **kwargs))
| (*args, **kwargs) | [
-0.0013808506773784757,
0.007915105670690536,
0.07359085977077484,
-0.028651375323534012,
0.02948540449142456,
0.008238088339567184,
-0.023287419229745865,
-0.03148053586483002,
0.048929743468761444,
-0.033884502947330475,
0.019934946671128273,
-0.04055674001574516,
0.00778427766636014,
0.0053435140289366245,
-0.055078670382499695,
-0.011488351039588451,
0.011341169476509094,
-0.02070356160402298,
0.029697999358177185,
0.08392629027366638,
0.003988215699791908,
0.050401560962200165,
0.06616635620594025,
-0.013777844607830048,
-0.006643619388341904,
-0.021014278754591942,
-0.00659047020599246,
-0.03911763057112694,
-0.05677943676710129,
0.0018643017392605543,
0.003744957037270069,
-0.047196272760629654,
-0.04153795167803764,
-0.004623958840966225,
-0.04405639320611954,
0.0019910417031496763,
-0.019493401050567627,
0.056550487875938416,
-0.08124431222677231,
-0.036926258355379105,
-0.032837875187397,
-0.015135186724364758,
-0.052854590117931366,
-0.024464871734380722,
-0.04297706112265587,
-0.02323835901916027,
0.09831738471984863,
0.012976521626114845,
-0.07568410784006119,
-0.017841694876551628,
0.03489842265844345,
-0.004016834311187267,
-0.007273229770362377,
-0.03252715989947319,
-0.03342660516500473,
-0.01733473502099514,
0.030989928171038628,
-0.04863538220524788,
0.09602789580821991,
-0.020801683887839317,
0.047523342072963715,
0.07457207143306732,
-0.0023222004529088736,
0.011259401217103004,
-0.06217610090970993,
-0.03718791529536247,
-0.017612745985388756,
-0.002273139776661992,
-0.05468618497252464,
0.02948540449142456,
-0.03816912695765495,
-0.009599518962204456,
0.02991059608757496,
0.04019696265459061,
0.016525236889719963,
0.039706356823444366,
-0.042846232652664185,
-0.02076897583901882,
0.017923463135957718,
0.03226550295948982,
-0.06139113008975983,
-0.03924845904111862,
-0.008585600182414055,
0.03391721099615097,
-0.01914997771382332,
-0.041603367775678635,
0.02578950859606266,
0.03843078389763832,
0.0427154041826725,
0.027719223871827126,
-0.04621506109833717,
0.009926589205861092,
-0.005323071964085102,
0.033720966428518295,
-0.06276482343673706,
0.030041424557566643,
0.06178361549973488,
-0.02333647944033146,
-0.05478430539369583,
0.011218518018722534,
0.010817856527864933,
-0.008160408586263657,
0.0022240793332457542,
-0.017808988690376282,
-0.05511137843132019,
-0.026247406378388405,
-0.05151360109448433,
0.017972523346543312,
0.005772794131189585,
0.050074491649866104,
-0.08353380113840103,
-0.022894933819770813,
0.07509538531303406,
-0.002992694964632392,
0.05534032732248306,
-0.028978444635868073,
-0.012428678572177887,
-0.017972523346543312,
-0.004677108023315668,
-0.04006613418459892,
0.026476355269551277,
-0.02825888991355896,
0.06718027591705322,
-0.02127593569457531,
-0.029943302273750305,
0.051448188722133636,
-0.002867999253794551,
0.0025981662329286337,
-0.016410762444138527,
-0.04726168513298035,
0.09216846525669098,
0.006586382165551186,
-0.036272116005420685,
0.005298541858792305,
0.10806408524513245,
-0.007101518101990223,
-0.022060904651880264,
-0.057139214128255844,
0.020687207579612732,
0.0385943166911602,
0.0009791672928258777,
-0.10911071300506592,
-0.016165459528565407,
-0.015437726862728596,
-0.03901951014995575,
-0.0035405380185693502,
-0.013287238776683807,
0.004202855750918388,
-0.013704253360629082,
0.03489842265844345,
0.017939815297722816,
-0.013156410306692123,
0.048929743468761444,
0.01708943210542202,
-0.00308059505186975,
0.012420501559972763,
-0.003967773634940386,
-0.05677943676710129,
0.017514623701572418,
0.024579346179962158,
0.007256876211613417,
0.007060633972287178,
0.0369589664041996,
0.023549074307084084,
-0.017154846340417862,
0.035617977380752563,
-0.04503760486841202,
-0.02405603416264057,
-0.018201472237706184,
-0.0000735269786673598,
0.02964893914759159,
-0.025495143607258797,
-0.07738487422466278,
0.04055674001574516,
0.024448519572615623,
-0.005834119860082865,
0.004983736667782068,
0.04739251360297203,
-0.029256455600261688,
0.013606132008135319,
-0.017694514244794846,
-0.0386270247399807,
0.007395881228148937,
0.024579346179962158,
0.0166397113353014,
-0.052952710539102554,
0.00419059069827199,
0.013450773432850838,
0.011872658506035805,
-0.01708943210542202,
-0.006480083800852299,
0.004366390872746706,
0.016737831756472588,
0.00911709014326334,
0.04922410845756531,
-0.033050473779439926,
-0.025756800547242165,
-0.04647671803832054,
0.06253587454557419,
0.004991913214325905,
0.021243227645754814,
-0.006373785901814699,
0.017056725919246674,
-0.021406764164566994,
0.03852890431880951,
0.0027126409113407135,
0.02884761616587639,
0.03352472558617592,
0.009534104727208614,
-0.03983718529343605,
0.030499322339892387,
0.014023147523403168,
0.039215750992298126,
-0.009828467853367329,
-0.030433908104896545,
-0.007886487059295177,
-0.04157065972685814,
-0.011063159443438053,
-0.053606852889060974,
-0.020654501393437386,
0.030662858858704567,
0.029877889901399612,
0.003906447906047106,
0.008765488862991333,
-0.008340297266840935,
-0.03321400657296181,
0.05641965940594673,
-0.019182683899998665,
0.015560378320515156,
-0.011848128400743008,
0.034309692680835724,
-0.04709814861416817,
-0.03738415613770485,
0.022616924718022346,
-0.03653377294540405,
-0.05612529441714287,
-0.0017692468827590346,
-0.01864301785826683,
-0.00652914447709918,
-0.0024366751313209534,
-0.01864301785826683,
0.016876837238669395,
0.005985389929264784,
-0.0632881373167038,
0.030286727473139763,
-0.05386850982904434,
0.02513536624610424,
-0.01495529804378748,
0.01906820945441723,
0.008336208760738373,
-0.06335355341434479,
0.001643529161810875,
-0.00879001896828413,
0.02448122575879097,
-0.01191354263573885,
-0.025331608951091766,
-0.00019790319493040442,
0.005793236196041107,
0.006197985727339983,
0.050728633999824524,
-0.022371621802449226,
-0.019575169309973717,
-0.015053419396281242,
0.06966601312160492,
0.018037937581539154,
-0.022960348054766655,
-0.027163203805685043,
-0.09243012219667435,
0.024203216657042503,
-0.014325687661767006,
0.020589087158441544,
0.016508882865309715,
0.008144055493175983,
0.06371333450078964,
-0.003595731221139431,
-0.031022636219859123,
0.005981301423162222,
0.014660934917628765,
-0.04732710123062134,
-0.01278027892112732,
0.013581601902842522,
-0.04543009027838707,
-0.06518514454364777,
0.0015586953377351165,
-0.029027504846453667,
-0.007342732511460781,
0.007718863431364298,
0.07162843644618988,
-0.01539684273302555,
-0.0016445512883365154,
0.03489842265844345,
0.010924153961241245,
-0.010891446843743324,
0.024922771379351616,
0.0336882583796978,
-0.022633276879787445,
-0.011880835518240929,
0.005609259009361267,
-0.024513933807611465,
0.016320817172527313,
-0.016124574467539787,
-0.05897080898284912,
0.09184139221906662,
-0.03220009058713913,
0.06502161175012589,
0.06541410088539124,
-0.004975559655576944,
0.0005171801894903183,
-0.03457134962081909,
0.007735216990113258,
-0.030826393514871597,
-0.000991432461887598,
0.03444052115082741,
0.02556055784225464,
-0.045397382229566574,
0.008336208760738373,
-0.0197223499417305,
-0.030989928171038628,
0.01145564392209053,
-0.002902750624343753,
-0.033720966428518295,
0.02817712165415287,
0.0007497068727388978,
0.03301776573061943,
0.011553765274584293,
-0.033295776695013046,
-0.011774537153542042,
0.06420394033193588,
0.029060212895274162,
0.03960823640227318,
-0.02915833331644535,
0.01800522953271866,
0.03875785320997238,
0.009313331916928291,
-0.009346039034426212,
0.03512737154960632,
0.0008600931614637375,
0.010212776251137257,
-0.04837372526526451,
-0.006112129893153906,
0.03013954497873783,
0.02989424206316471,
0.0013828949304297566,
0.0017017886275425553,
-0.003804238513112068,
0.07032015174627304,
0.017874402925372124,
0.03744957223534584,
0.03653377294540405,
0.06139113008975983,
-0.0007645272416993976,
0.04130900278687477,
-0.005016443785279989,
-0.03170948475599289,
-0.028128061443567276,
-0.0062756650149822235,
0.05206962302327156,
-0.008180850185453892,
-0.057041093707084656,
0.016181811690330505,
0.057531699538230896,
-0.008307590149343014,
-0.021946430206298828,
0.005049150437116623,
0.05406475067138672,
-0.049322228878736496,
0.015306898392736912,
0.03174218907952309,
0.05821854621171951,
-0.002397835487499833,
-0.0004550879239104688,
-0.041603367775678635,
-0.003031534608453512,
-0.024677468463778496,
-0.05929787829518318,
0.09753242135047913,
-0.0015494964318349957,
-0.01898644119501114,
-0.05076133832335472,
-0.041930437088012695,
-0.001241845777258277,
0.008601954206824303,
0.040622156113386154,
-0.016795068979263306,
-0.006361520849168301,
-0.06044262647628784,
0.006864391732960939,
0.053116247057914734,
-0.01142293680459261,
-0.002273139776661992,
-0.040622156113386154,
-0.004717991687357426,
0.03473488613963127,
0.014284803532063961,
-0.03048297017812729,
-0.022387973964214325,
0.01833230070769787,
-0.0037613105960190296,
-0.08700075000524521,
-0.04281352832913399,
0.017547331750392914,
-0.02004942111670971,
-0.08673909306526184,
-0.06266670674085617,
0.035945046693086624,
0.007158755324780941,
-0.006868480239063501,
0.03718791529536247,
0.002837336389347911,
0.043173305690288544,
0.058447495102882385,
0.014104914851486683,
-0.03679542988538742,
0.05534032732248306,
0.05079404637217522,
-0.01939528062939644,
0.021831955760717392,
0.10158809274435043,
-0.027980880811810493,
-0.048504553735256195,
0.017874402925372124,
-0.02405603416264057,
0.01913362368941307,
0.048668090254068375,
0.12716500461101532,
-0.0028046295046806335,
-0.012747571803629398,
0.026803426444530487,
0.0845804288983345,
0.08248717337846756,
-0.05838208273053169,
-0.05432640761137009,
-0.0008580489666201174,
0.03262528032064438,
0.056386951357126236,
-0.011553765274584293,
-0.0152006009593606,
-0.03424428030848503,
0.01882290653884411,
0.06629718840122223,
0.02309117652475834,
0.0004494664026424289,
0.026410941034555435,
-0.06861938536167145,
-0.027392152696847916,
0.026639891788363457,
0.005903622135519981,
-0.008610130287706852,
-0.02366355061531067,
0.019264452159404755,
0.018593957647681236,
0.029436344280838966,
0.0012040282599627972,
-0.0541955791413784,
-0.01756368577480316,
-0.05874186009168625,
-0.014979828149080276,
0.0427154041826725,
-0.010637967847287655,
-0.002007395029067993,
-0.014399277977645397,
-0.019755057990550995,
0.05517679080367088,
0.05439182370901108,
0.014906237833201885,
-0.05308353900909424,
0.003534405492246151,
0.039968013763427734,
-0.06659155339002609,
-0.08680450916290283,
0.07189009338617325,
0.011880835518240929,
-0.09243012219667435,
0.02153759077191353,
0.024988185614347458,
0.043990980833768845,
-0.04196314513683319,
-0.07993602752685547,
-0.09655120968818665,
-0.0541955791413784,
-0.06341896951198578,
0.0025899894535541534,
0.05298541858792305,
-0.014358394779264927,
-0.01446469221264124,
-0.0030274461023509502,
0.03829995542764664,
0.005449811927974224,
0.010924153961241245,
-0.05534032732248306,
-0.030597444623708725,
-0.0042887115851044655,
-0.03359013795852661,
-0.05641965940594673,
-0.005073681008070707,
-0.004403186496347189,
-0.05099028721451759,
-0.010147362016141415,
-0.06875021755695343,
-0.017154846340417862,
0.007551239803433418,
0.020883450284600258,
0.08562705665826797,
-0.020719915628433228,
0.00010150683374376968,
0.02134134992957115,
0.09288801997900009,
0.04696732014417648,
0.019934946671128273,
0.031333353370428085,
0.010539846494793892,
-0.051055703312158585,
0.025658680126070976,
0.03434240072965622,
-0.020016713067889214,
0.06060616299510002,
0.006083511281758547,
0.04320601001381874,
0.03879056125879288,
0.020556380972266197,
-0.0035548473242670298,
-0.04395827278494835,
-0.002581812674179673,
-0.003383135423064232,
0.03895409405231476,
0.026410941034555435,
0.044972192496061325,
0.07529162615537643,
-0.017514623701572418,
0.015462256968021393,
0.05027073249220848,
0.017302028834819794,
0.018773846328258514,
-0.01596921682357788,
-0.05547115579247475,
0.050728633999824524,
-0.00998382642865181,
0.03509466350078583,
0.015527671203017235,
0.036141287535429,
0.0566813163459301,
0.002637005876749754,
-0.04196314513683319,
-0.006365609355270863,
-0.01335265301167965,
-0.02003306709229946,
0.03836536779999733,
-0.02243703603744507,
0.08595412224531174,
0.025576911866664886,
0.008642837405204773,
-0.06184902787208557,
0.010891446843743324,
0.06704945117235184,
0.006733563728630543,
0.05128465220332146,
-0.014448339119553566,
0.007592123467475176,
0.02956717275083065,
-0.04660754278302193,
0.008552893064916134,
0.06292836368083954,
0.008050022646784782,
0.01723661459982395,
0.040458619594573975,
-0.013925026170909405,
-0.02727767825126648,
0.030172253027558327,
-0.0001607244776096195,
0.03174218907952309,
0.027163203805685043,
0.0018162633059546351,
0.0029845181852579117,
-0.012273319996893406,
-0.0394119955599308,
0.007387704681605101,
0.006766270846128464,
0.04255187138915062,
-0.005171801894903183,
-0.0026697127614170313,
-0.008847257122397423,
-0.035356320440769196,
-0.02268233895301819,
-0.002303802641108632,
-0.017040371894836426,
0.0345059372484684,
0.032576221972703934,
-0.03121887892484665,
-0.0017467607976868749,
-0.02785005234181881,
-0.001660904847085476,
-0.027212264016270638,
0.027882758527994156,
0.018921026960015297,
0.0533779039978981,
-0.009803937748074532,
-0.02333647944033146,
0.005817766301333904,
0.0189046747982502,
-0.04294435679912567,
-0.03489842265844345,
0.030662858858704567,
-0.004578986670821905,
0.02348366007208824,
-0.022616924718022346,
-0.0020329474937170744,
0.0945233702659607,
-0.021504884585738182,
-0.012167022563517094,
0.024088742211461067,
0.0010307830525562167,
0.0033442957792431116,
0.03836536779999733,
-0.021259581670165062,
-0.04278082028031349,
-0.028389718383550644,
0.04222479835152626,
-0.03007413074374199,
-0.03558526933193207,
-0.011938072741031647,
-0.034048039466142654,
0.015756620094180107,
-0.06750734895467758,
-0.0006377874524332583,
-0.00023725385835859925,
0.022698691114783287,
-0.04091651737689972,
-0.024988185614347458,
0.041439831256866455,
-0.0534106120467186,
0.015437726862728596,
-0.018528543412685394,
-0.03829995542764664,
-0.028128061443567276,
-0.05864373967051506,
-0.09655120968818665,
-0.0011457687942311168,
-0.022191733121871948,
-0.10413924604654312,
-0.022224439308047295,
-0.05520949885249138,
-0.017024019733071327,
-0.05694297328591347,
-0.02439945749938488,
0.014660934917628765,
-0.0024652937427163124,
-0.06511973589658737,
0.015920156612992287,
0.03689355030655861,
-0.007424499839544296,
-0.007412234786897898,
0.0034342401195317507,
-0.0007057567709125578,
0.07542245090007782,
-0.003687719814479351,
0.057956889271736145,
0.012355087324976921,
-0.002788275945931673,
0.03954282030463219,
0.02858596108853817,
-0.001285795820876956,
-0.031660422682762146,
-0.0038778295274823904,
0.0051595368422567844,
-0.03180760517716408,
-0.04150524362921715,
-0.018626663833856583,
-0.0072936718352139,
-0.00367749878205359,
-0.007097429595887661,
-0.04320601001381874,
0.006475995760411024,
0.04157065972685814,
-0.03277246281504631,
-0.04471053555607796,
-0.022976702079176903,
0.040851105004549026,
0.04879891499876976,
0.049583885818719864,
0.000920396763831377,
-0.01564214564859867,
0.020670855417847633,
-0.010924153961241245,
-0.024742882698774338,
-0.013630662113428116,
0.06332084536552429,
-0.056158002465963364,
0.0599520206451416,
0.013998616486787796,
-0.006578205153346062,
-0.035683389753103256,
-0.06502161175012589,
0.023140236735343933,
-0.013172764331102371,
-0.02036013826727867,
0.05740087106823921,
0.03509466350078583,
-0.04700002819299698,
0.014979828149080276,
-0.039804477244615555,
0.0299760103225708,
-0.003360649337992072,
0.0011968736071139574,
0.0026492709293961525,
-0.010556199587881565,
-0.02019660174846649,
-0.017972523346543312,
0.04098193347454071,
-0.0043868329375982285,
0.013082819059491158,
-0.0369916707277298,
0.03973906487226486,
0.008642837405204773,
-0.017302028834819794,
-0.052363984286785126,
-0.006901187356561422,
-0.022191733121871948,
0.017302028834819794,
0.010703382082283497,
-0.02621470019221306,
-0.05167713761329651,
0.016876837238669395,
0.00878184288740158,
-0.019591521471738815,
0.04346766695380211,
0.060409918427467346,
0.0022383886389434338,
-0.05184067040681839,
0.020818036049604416,
-0.019019149243831635,
0.017972523346543312,
0.049976371228694916,
-0.015936508774757385,
-0.03663189336657524,
-0.00854471605271101,
-0.025576911866664886,
-0.011292108334600925,
-0.002326288726180792,
0.043402254581451416,
-0.008115436881780624,
0.012232435867190361,
0.0739833414554596,
0.011112219654023647,
-0.013728783465921879,
0.029877889901399612,
-0.03705708682537079,
0.009640402160584927,
0.06073698773980141,
0.000008727735803404357,
0.005384397692978382,
0.03148053586483002,
0.00973034743219614,
0.00003593303699744865,
0.01800522953271866,
0.040360499173402786,
0.043663911521434784,
-0.006561851594597101,
-0.015176070854067802,
0.021177813410758972,
-0.030760979279875755,
-0.026083871722221375,
-0.02858596108853817,
-0.008156320080161095,
-0.004623958840966225,
0.04418722167611122,
0.0184794832020998,
-0.007068810984492302,
0.012060724198818207
] |
10,117 | importlib.metadata | metadata | Get the metadata for the named package.
:param distribution_name: The name of the distribution package to query.
:return: A PackageMetadata containing the parsed metadata.
| def metadata(distribution_name) -> _meta.PackageMetadata:
"""Get the metadata for the named package.
:param distribution_name: The name of the distribution package to query.
:return: A PackageMetadata containing the parsed metadata.
"""
return Distribution.from_name(distribution_name).metadata
| (distribution_name) -> importlib.metadata._meta.PackageMetadata | [
0.05632796138525009,
0.03629983589053154,
-0.014017856679856777,
-0.054165732115507126,
0.07388234883546829,
-0.025561973452568054,
0.018104108050465584,
0.020248014479875565,
0.05182025954127312,
0.018168242648243904,
-0.029428336769342422,
0.03633648529648781,
-0.018488911911845207,
0.005309377796947956,
-0.002798990346491337,
0.004134351387619972,
0.019753267988562584,
0.07043743878602982,
0.014952380210161209,
0.051600370556116104,
-0.00927194207906723,
0.018406454473733902,
-0.011846463195979595,
-0.026184989139437675,
-0.017242880538105965,
0.013953723013401031,
0.04962138086557388,
-0.016290031373500824,
0.017471930012106895,
-0.009565126150846481,
-0.039616480469703674,
-0.053249530494213104,
0.018800418823957443,
0.06768883764743805,
-0.06340102851390839,
0.05310294032096863,
0.032323528081178665,
-0.05607142671942711,
-0.0466528944671154,
-0.001927455305121839,
0.04504038020968437,
0.02728443033993244,
0.015053162351250648,
-0.0537259541451931,
0.04947478696703911,
0.009065796621143818,
-0.042328428477048874,
-0.043904293328523636,
-0.04009290412068367,
0.059223152697086334,
0.0504276379942894,
0.03085760958492756,
0.003916753921657801,
-0.008804679848253727,
0.012313725426793098,
0.02765090949833393,
0.041925303637981415,
0.07043743878602982,
-0.02706454135477543,
0.06358426809310913,
0.055521707981824875,
0.014136962592601776,
-0.02043125592172146,
-0.08209150284528732,
-0.049914564937353134,
0.004580998793244362,
0.048925068229436874,
-0.06233823299407959,
-0.05544841289520264,
-0.043244630098342896,
-0.004661166574805975,
0.010646241717040539,
0.0078014410100877285,
-0.020119747146964073,
-0.03250676766037941,
-0.051600370556116104,
-0.0004540915251709521,
-0.03131571039557457,
0.026020074263215065,
0.0022687397431582212,
-0.04716596379876137,
0.010646241717040539,
-0.012790149077773094,
-0.010728699155151844,
0.030912579968571663,
0.010078197345137596,
0.0013559756334871054,
-0.000900166283827275,
0.01281763520091772,
0.03593335673213005,
-0.01705963909626007,
0.012048027478158474,
0.04738585278391838,
0.09249953180551529,
0.03131571039557457,
0.010719537734985352,
0.009354399517178535,
-0.017132936045527458,
-0.007764793001115322,
0.07849999517202377,
-0.011095179244875908,
0.0417054146528244,
0.040276143699884415,
0.054239027202129364,
-0.012267915531992912,
0.005868259817361832,
-0.03851703926920891,
-0.00365105620585382,
0.0037106091622263193,
0.0008629456860944629,
-0.025122197344899178,
-0.0037541287019848824,
0.015318860299885273,
-0.019753267988562584,
0.052223388105630875,
-0.05944304168224335,
-0.014311040751636028,
-0.033313024789094925,
-0.015914389863610268,
0.007709821220487356,
0.0023282926995307207,
0.04155882075428963,
0.060176003724336624,
-0.005822449456900358,
-0.0022664491552859545,
0.009775851853191853,
-0.0044023399241268635,
-0.06567320227622986,
0.032488442957401276,
0.009711718186736107,
0.006399655714631081,
-0.008589372970163822,
0.013513946905732155,
0.03717938810586929,
0.024132702499628067,
-0.0323418527841568,
0.0702175498008728,
-0.028658729046583176,
-0.003330386243760586,
0.03818720579147339,
-0.0774005576968193,
0.024645773693919182,
0.03285492584109306,
-0.03171883523464203,
0.01969829574227333,
-0.08047898858785629,
0.041888654232025146,
-0.027174485847353935,
-0.006935632321983576,
-0.1002689078450203,
0.0028058618772774935,
-0.06318113952875137,
0.03932329639792442,
0.020284663885831833,
-0.047898925840854645,
-0.010747023858129978,
0.03688620403409004,
0.010829481296241283,
-0.031004201620817184,
0.04551680386066437,
0.02603839710354805,
-0.015932714566588402,
-0.018525559455156326,
-0.04932819679379463,
0.001883935765363276,
-0.06446381658315659,
0.017774276435375214,
-0.04034943878650665,
-0.026624765247106552,
-0.013312382623553276,
-0.01532802265137434,
0.0241510272026062,
-0.0009763254201970994,
-0.01603349670767784,
-0.03606162220239639,
0.004777981899678707,
0.021695610135793686,
0.06919141113758087,
0.037637487053871155,
-0.0011618558783084154,
-0.013339868746697903,
-0.052589867264032364,
-0.07051073759794235,
0.04115569591522217,
-0.02488398551940918,
0.054165732115507126,
-0.029886437579989433,
0.055888187140226364,
0.026313258334994316,
0.013797968626022339,
0.04152217507362366,
-0.011525793001055717,
-0.00521317683160305,
0.05226003751158714,
0.017911706119775772,
-0.06123879551887512,
-0.04529691860079765,
0.010966910980641842,
-0.02043125592172146,
0.023289797827601433,
0.044893790036439896,
-0.013358192518353462,
0.018323995172977448,
0.07732725888490677,
0.012277076952159405,
-0.025323761627078056,
-0.04811881110072136,
0.008745127357542515,
-0.0564379058778286,
-0.020999299362301826,
-0.0006258789799176157,
0.005923231597989798,
-0.016482433304190636,
0.019991479814052582,
-0.03745424747467041,
0.0127535006031394,
-0.01417361106723547,
-0.042255133390426636,
0.040276143699884415,
-0.053579363971948624,
-0.009194064885377884,
-0.002096952171996236,
0.0822380930185318,
0.07571475207805634,
0.0008096915553323925,
0.008635182864964008,
0.02101762220263481,
0.006505018565803766,
0.05108730122447014,
-0.030142972245812416,
0.00851607695221901,
0.023289797827601433,
0.025232141837477684,
-0.004828372970223427,
0.04254831746220589,
-0.051893554627895355,
-0.023014938458800316,
0.011232608929276466,
0.019826563075184822,
-0.01788421906530857,
0.008855070918798447,
0.020083099603652954,
-0.02241024747490883,
0.05302964523434639,
-0.03721603378653526,
-0.07871988415718079,
-0.046909429132938385,
0.006578314583748579,
0.009949930012226105,
-0.04042273387312889,
-0.010582107119262218,
0.019001983106136322,
0.010646241717040539,
0.0477156862616539,
0.04874182865023613,
-0.09022735804319382,
-0.05577824264764786,
-0.0471293181180954,
0.0711703971028328,
-0.015547910705208778,
0.023931138217449188,
-0.035695143043994904,
-0.030912579968571663,
0.023821193724870682,
0.01244199275970459,
-0.0017865896224975586,
0.03241514787077904,
0.005666695535182953,
-0.04511367902159691,
-0.02076108753681183,
0.1404350996017456,
0.03881022334098816,
0.0024577060248702765,
-0.09807002544403076,
-0.006724906619638205,
-0.057464051991701126,
0.04009290412068367,
0.002819604938849807,
-0.052516572177410126,
0.030894257128238678,
0.024242646992206573,
-0.010188141837716103,
-0.02995973266661167,
0.025452030822634697,
0.024114377796649933,
0.019826563075184822,
-0.041961949318647385,
-0.016097629442811012,
-0.016555730253458023,
0.06695587933063507,
-0.03756419196724892,
-0.01765516959130764,
-0.032323528081178665,
-0.07479855418205261,
-0.03811391070485115,
-0.0186446662992239,
-0.0070501575246453285,
0.0032914476469159126,
0.005662114825099707,
-0.00763194402679801,
0.01957002654671669,
0.05105065181851387,
0.012212943285703659,
0.013541433028876781,
-0.007906803861260414,
0.06299789994955063,
0.02290499396622181,
-0.01458590105175972,
-0.018067460507154465,
0.012680204585194588,
0.04639635607600212,
0.008213731460273266,
-0.021109243854880333,
0.06277801096439362,
-0.04071591794490814,
-0.021457398310303688,
-0.019881535321474075,
-0.005744572728872299,
0.0022263654973357916,
0.04119234159588814,
-0.012203780934214592,
0.008648926392197609,
0.026643089950084686,
-0.021695610135793686,
0.016885561868548393,
-0.00475965766236186,
-0.05112394690513611,
0.04800887033343315,
-0.004837534856051207,
-0.01977159082889557,
-0.01563953049480915,
-0.017829248681664467,
0.028365544974803925,
0.0405326783657074,
-0.0020030417945235968,
0.05127054080367088,
-0.000488735327962786,
-0.08172502368688583,
0.006601219531148672,
-0.0032845763489603996,
0.03811391070485115,
-0.07813351601362228,
-0.029116829857230186,
0.0015563943888992071,
0.026606442406773567,
-0.011031045578420162,
0.032946545630693436,
-0.09169327467679977,
0.017068801447749138,
-0.08231139183044434,
-0.009546801447868347,
0.028933588415384293,
-0.05929645150899887,
-0.026771357282996178,
0.042914796620607376,
-0.023088235408067703,
0.0015323441475629807,
0.035658497363328934,
-0.08319094032049179,
0.03538363426923752,
-0.03538363426923752,
-0.03633648529648781,
0.023106558248400688,
-0.060139354318380356,
-0.08480345457792282,
-0.025452030822634697,
-0.04350116476416588,
0.0816517248749733,
0.04599322751164436,
0.018424777314066887,
-0.008873394690454006,
-0.017673494294285774,
-0.03884687274694443,
0.042291782796382904,
-0.027339400723576546,
-0.02534208633005619,
-0.014393498189747334,
-0.019643323495984077,
-0.06794537603855133,
-0.014787464402616024,
-0.031169116497039795,
-0.01483327429741621,
-0.025195494294166565,
0.030069677159190178,
0.012570261023938656,
-0.024279294535517693,
0.0023981528356671333,
-0.053542714565992355,
-0.06952124089002609,
-0.004157256335020065,
0.005258986726403236,
-0.03415592759847641,
0.044967085123062134,
0.06446381658315659,
-0.02105427160859108,
-0.023967785760760307,
-0.01252445112913847,
-0.014952380210161209,
-0.05936974659562111,
-0.00027457362739369273,
0.010554621927440166,
-0.07754714787006378,
-0.012295400723814964,
-0.0235646590590477,
0.002263013506308198,
-0.045883286744356155,
0.029355041682720184,
-0.024279294535517693,
-0.010224789381027222,
-0.007485352456569672,
0.022886671125888824,
-0.06779878586530685,
0.007100548129528761,
-0.03983636572957039,
0.03712441399693489,
0.06831185519695282,
0.036849554628133774,
-0.025030577555298805,
0.029611576348543167,
-0.009175741113722324,
0.0061843483708798885,
-0.032525092363357544,
-0.023876165971159935,
-0.0010078197810798883,
-0.056474555283784866,
-0.001858740346506238,
-0.031205764040350914,
0.027339400723576546,
-0.014366012997925282,
0.033972688019275665,
-0.02253851480782032,
-0.00937272422015667,
-0.027137838304042816,
-0.019350139424204826,
0.012762662954628468,
-0.008158759213984013,
-0.023674601688981056,
0.006372169591486454,
-0.0477156862616539,
-0.022263655439019203,
-0.005442226771265268,
0.002631783951073885,
0.04016619920730591,
-0.02121918648481369,
-0.06281466037034988,
-0.0074761901050806046,
0.01685807667672634,
-0.017077963799238205,
0.026276610791683197,
-0.06171521916985512,
-0.0510140024125576,
-0.0006573733408004045,
0.05603477731347084,
-0.035292014479637146,
0.005451388657093048,
-0.014805788174271584,
0.019716618582606316,
-0.0433545745909214,
-0.027266105636954308,
0.0087771937251091,
-0.09220634400844574,
-0.006234739441424608,
0.0001888230472104624,
-0.029721520841121674,
0.06812861561775208,
-0.0789397731423378,
-0.004461892880499363,
-0.0361715666949749,
-0.05559500306844711,
0.010435516014695168,
0.047898925840854645,
0.0033853582572191954,
0.029098505154252052,
0.029446661472320557,
-0.03217693790793419,
-0.045260269194841385,
-0.038553688675165176,
0.027009569108486176,
0.0145217664539814,
0.008648926392197609,
0.021475723013281822,
0.0192035473883152,
0.023637954145669937,
0.003458654275164008,
0.04199859872460365,
-0.03521871939301491,
0.0296299010515213,
-0.050904061645269394,
0.013852940872311592,
-0.003559436183422804,
0.006582895293831825,
0.023014938458800316,
0.07483519613742828,
-0.005565913859754801,
0.04082586243748665,
0.04573669284582138,
0.024700745940208435,
0.06834850460290909,
0.015667015686631203,
0.01442098431289196,
-0.030142972245812416,
-0.03023459203541279,
0.003463235218077898,
-0.0613853856921196,
0.024645773693919182,
-0.03303816542029381,
0.005914069712162018,
0.003529659705236554,
0.0801125094294548,
0.020174719393253326,
-0.014466794207692146,
0.009313170798122883,
-0.042255133390426636,
0.019130252301692963,
0.01940511167049408,
0.010609593242406845,
-0.06996101886034012,
0.01953337900340557,
-0.05302964523434639,
0.006949375383555889,
-0.003669380210340023,
0.03514542430639267,
0.0010582107352092862,
-0.018763771280646324,
-0.02591012977063656,
0.008864233270287514,
0.006436303723603487,
-0.003974016755819321,
-0.028493814170360565,
-0.0022412536200135946,
0.011012721806764603,
0.01542880479246378,
-0.03498050943017006,
0.0004821501497644931,
0.004516865126788616,
-0.022391922771930695,
-0.08260457217693329,
0.057464051991701126,
-0.056474555283784866,
0.010197303257882595,
0.024957282468676567,
-0.029025210067629814,
0.015694502741098404,
0.0009379595285281539,
0.03230520337820053,
0.03518206998705864,
-0.02788912132382393,
-0.009427695535123348,
0.07630112022161484,
-0.0008423311519436538,
-0.012414507567882538,
-0.026313258334994316,
-0.001177316764369607,
-0.029428336769342422,
0.03131571039557457,
0.040569327771663666,
0.00841529481112957,
-0.05592483654618263,
-0.004294686485081911,
-0.06274136155843735,
0.027742529287934303,
0.009555963799357414,
0.05247992277145386,
0.025525325909256935,
-0.03115079365670681,
0.0265697930008173,
-0.03444911167025566,
-0.0071692634373903275,
-0.02200711891055107,
0.013550594449043274,
0.009995739907026291,
-0.006729487329721451,
0.034339167177677155,
0.032085318118333817,
0.024242646992206573,
-0.021200863644480705,
0.044234126806259155,
0.006422560662031174,
0.06222828850150108,
0.005730829667299986,
0.059552986174821854,
-0.04841199517250061,
0.020321311429142952,
0.04701937362551689,
-0.06101890653371811,
0.020577847957611084,
-0.05280975624918938,
0.00243021990172565,
0.09118020534515381,
0.026844654232263565,
0.016574054956436157,
-0.04269491136074066,
0.04339122027158737,
0.0177925992757082,
0.04152217507362366,
-0.01586857996881008,
-0.01973494328558445,
-0.010499649681150913,
0.03906675800681114,
-0.044600605964660645,
-0.008351161144673824,
0.02233695052564144,
-0.04273155704140663,
-0.007948033511638641,
-0.018030811101198196,
0.028695376589894295,
-0.006857755593955517,
0.002698208438232541,
0.029098505154252052,
-0.035860057920217514,
-0.06567320227622986,
-0.03851703926920891,
-0.01883706822991371,
-0.004299267660826445,
0.0329282209277153,
0.007746469229459763,
0.009867471642792225,
-0.016922209411859512,
-0.010921101085841656,
-0.03094922937452793,
0.04570004716515541,
0.048192109912633896,
0.042914796620607376,
0.007114291191101074,
0.009349819272756577,
0.0033212241251021624,
0.004700104705989361,
-0.02134745568037033,
-0.0023351642303168774,
-0.03435749188065529,
-0.0030394927598536015,
-0.021274158731102943,
0.0394698865711689,
-0.023088235408067703,
0.025818509981036186,
0.011626575142145157,
-0.005190271884202957,
-0.012496965005993843,
0.005396416876465082,
-0.010151493363082409,
0.03300151601433754,
0.021952146664261818,
-0.029245097190141678,
0.024938957765698433,
0.010325571522116661,
-0.04775233194231987,
-0.0009408226469531655,
0.007457866333425045,
0.02372957393527031,
-0.06391409784555435,
-0.011654061265289783,
0.004530607722699642,
-0.0021496338304132223,
0.022721754387021065,
0.0329282209277153,
0.01850723661482334,
-0.04698272421956062,
0.02953828126192093,
-0.06098225712776184,
-0.022062091156840324,
0.06629621982574463,
-0.020138071849942207,
-0.01409115269780159,
0.006069823633879423,
0.06208169832825661,
-0.06002940982580185,
-0.04672618955373764,
-0.03406430780887604,
0.002565359463915229,
0.0022034605499356985,
0.012863445095717907,
0.12430998682975769,
0.08780858665704727,
-0.0684584453701973,
0.02006477490067482,
0.016592377796769142,
0.04969467595219612,
0.021933821961283684,
0.02620331384241581,
0.052589867264032364,
0.024462534114718437,
0.023766223341226578,
0.050207749009132385,
0.053909193724393845,
-0.044930435717105865,
0.015282212756574154,
0.025287114083766937,
0.007865575142204762,
-0.06160527467727661,
0.00844736211001873,
0.008181664161384106,
-0.03201201930642128,
0.03514542430639267,
-0.020486226305365562,
0.057464051991701126,
0.017930028960108757,
0.0153463464230299,
0.06483029574155807,
0.012790149077773094,
-0.05442226678133011,
-0.007288369350135326,
0.027339400723576546,
-0.00004130056913709268,
0.01894701085984707,
-0.04141223058104515,
-0.020339636132121086,
-0.000668825872708112,
0.03155392035841942,
-0.04639635607600212,
-0.043940942734479904,
-0.01953337900340557,
-0.0005800689687021077,
0.021970471367239952,
0.004150385037064552,
0.05574159324169159,
0.009152836166322231,
-0.01745360530912876,
0.0718667134642601,
0.04570004716515541,
-0.038626983761787415,
0.013275735080242157,
0.014622548595070839,
0.022850023582577705,
0.0547887459397316,
-0.056474555283784866,
0.02686297707259655,
-0.018983660265803337,
-0.01324824895709753,
-0.022850023582577705,
0.034797266125679016,
0.01149830687791109,
0.01130590494722128,
-0.03600665181875229,
-0.017334500327706337,
0.0175543874502182,
-0.0001546087150927633,
0.0378207266330719,
0.010307247750461102,
0.01450344268232584,
0.019148575142025948,
-0.04537021368741989,
0.08113865554332733,
-0.0471293181180954,
-0.0033120622392743826,
0.014778302982449532,
-0.040276143699884415,
-0.04247502237558365,
-0.016491595655679703,
-0.0537259541451931,
0.0077876984141767025,
0.046542949974536896,
0.019313491880893707,
-0.029410013929009438,
-0.009473505429923534,
-0.016115954145789146,
-0.025653593242168427,
0.04104575142264366,
0.01021562796086073,
0.05676773935556412,
-0.030472805723547935,
-0.041668765246868134,
0.010508811101317406,
0.010435516014695168,
-0.05072081834077835,
-0.028090685606002808,
-0.03210363909602165,
-0.013055847026407719,
-0.0045374794863164425
] |
10,119 | pygments.formatter | Formatter |
Converts a token stream to text.
Formatters should have attributes to help selecting them. These
are similar to the corresponding :class:`~pygments.lexer.Lexer`
attributes.
.. autoattribute:: name
:no-value:
.. autoattribute:: aliases
:no-value:
.. autoattribute:: filenames
:no-value:
You can pass options as keyword arguments to the constructor.
All formatters accept these basic options:
``style``
The style to use, can be a string or a Style subclass
(default: "default"). Not used by e.g. the
TerminalFormatter.
``full``
Tells the formatter to output a "full" document, i.e.
a complete self-contained document. This doesn't have
any effect for some formatters (default: false).
``title``
If ``full`` is true, the title that should be used to
caption the document (default: '').
``encoding``
If given, must be an encoding name. This will be used to
convert the Unicode token strings to byte strings in the
output. If it is "" or None, Unicode strings will be written
to the output file, which most file-like objects do not
support (default: None).
``outencoding``
Overrides ``encoding`` if given.
| class Formatter:
"""
Converts a token stream to text.
Formatters should have attributes to help selecting them. These
are similar to the corresponding :class:`~pygments.lexer.Lexer`
attributes.
.. autoattribute:: name
:no-value:
.. autoattribute:: aliases
:no-value:
.. autoattribute:: filenames
:no-value:
You can pass options as keyword arguments to the constructor.
All formatters accept these basic options:
``style``
The style to use, can be a string or a Style subclass
(default: "default"). Not used by e.g. the
TerminalFormatter.
``full``
Tells the formatter to output a "full" document, i.e.
a complete self-contained document. This doesn't have
any effect for some formatters (default: false).
``title``
If ``full`` is true, the title that should be used to
caption the document (default: '').
``encoding``
If given, must be an encoding name. This will be used to
convert the Unicode token strings to byte strings in the
output. If it is "" or None, Unicode strings will be written
to the output file, which most file-like objects do not
support (default: None).
``outencoding``
Overrides ``encoding`` if given.
"""
#: Full name for the formatter, in human-readable form.
name = None
#: A list of short, unique identifiers that can be used to lookup
#: the formatter from a list, e.g. using :func:`.get_formatter_by_name()`.
aliases = []
#: A list of fnmatch patterns that match filenames for which this
#: formatter can produce output. The patterns in this list should be unique
#: among all formatters.
filenames = []
#: If True, this formatter outputs Unicode strings when no encoding
#: option is given.
unicodeoutput = True
def __init__(self, **options):
"""
As with lexers, this constructor takes arbitrary optional arguments,
and if you override it, you should first process your own options, then
call the base class implementation.
"""
self.style = _lookup_style(options.get('style', 'default'))
self.full = get_bool_opt(options, 'full', False)
self.title = options.get('title', '')
self.encoding = options.get('encoding', None) or None
if self.encoding in ('guess', 'chardet'):
# can happen for e.g. pygmentize -O encoding=guess
self.encoding = 'utf-8'
self.encoding = options.get('outencoding') or self.encoding
self.options = options
def get_style_defs(self, arg=''):
"""
This method must return statements or declarations suitable to define
the current style for subsequent highlighted text (e.g. CSS classes
in the `HTMLFormatter`).
The optional argument `arg` can be used to modify the generation and
is formatter dependent (it is standardized because it can be given on
the command line).
This method is called by the ``-S`` :doc:`command-line option <cmdline>`,
the `arg` is then given by the ``-a`` option.
"""
return ''
def format(self, tokensource, outfile):
"""
This method must format the tokens from the `tokensource` iterable and
write the formatted version to the file object `outfile`.
Formatter options can control how exactly the tokens are converted.
"""
if self.encoding:
# wrap the outfile in a StreamWriter
outfile = codecs.lookup(self.encoding)[3](outfile)
return self.format_unencoded(tokensource, outfile)
# Allow writing Formatter[str] or Formatter[bytes]. That's equivalent to
# Formatter. This helps when using third-party type stubs from typeshed.
def __class_getitem__(cls, name):
return cls
| (**options) | [
-0.005523779895156622,
-0.04893825948238373,
0.03159116208553314,
-0.00975774321705103,
0.032862283289432526,
-0.004911584313958883,
-0.017094744369387627,
0.012757969088852406,
0.02194557525217533,
0.00917826034128666,
0.0018494381802156568,
-0.022225970402359962,
-0.0050704749301075935,
0.024824297055602074,
0.002663751831278205,
0.04153583571314812,
-0.009869901463389397,
-0.004488655366003513,
0.03041350282728672,
0.05103187635540962,
-0.015337602235376835,
-0.019665030762553215,
0.025983262807130814,
-0.015094593167304993,
0.010767164640128613,
0.035890549421310425,
-0.003565688617527485,
-0.04609692469239235,
-0.04362944886088371,
-0.046769872307777405,
-0.00018386312876828015,
-0.04620908200740814,
0.011860704980790615,
0.02540377900004387,
0.019478101283311844,
-0.06826681643724442,
-0.07578139752149582,
0.06108870729804039,
0.002001318847760558,
-0.004327428061515093,
-0.006103262770920992,
-0.0018716361373662949,
0.007551969960331917,
-0.04276956990361214,
-0.03471289202570915,
0.03854495659470558,
-0.02121654897928238,
0.02362794429063797,
-0.06908930838108063,
-0.07391209900379181,
0.03531106561422348,
-0.014683347195386887,
-0.01168312132358551,
-0.0035283027682453394,
-0.04273218661546707,
-0.015524531714618206,
0.028151649981737137,
0.03289967030286789,
0.013935627415776253,
0.01311313547194004,
0.00038729546940885484,
0.06277107447385788,
0.09503518790006638,
-0.0056265913881361485,
-0.048639170825481415,
-0.005991104990243912,
0.016543300822377205,
0.0010152632603421807,
-0.023852260783314705,
0.054434001445770264,
0.03289967030286789,
-0.03665696084499359,
0.007640761323273182,
0.004063389729708433,
0.00412414176389575,
-0.009869901463389397,
-0.12666372954845428,
0.0234410148113966,
-0.0031100469641387463,
0.022151198238134384,
0.03252581134438515,
0.038395412266254425,
-0.0014744099462404847,
-0.01284208707511425,
0.04594738036394119,
-0.07286529242992401,
-0.016029242426156998,
0.0024043864104896784,
-0.00014998207916505635,
0.022805454209446907,
-0.035273682326078415,
0.003979271277785301,
0.03792808577418327,
0.010776511393487453,
-0.07353824377059937,
-0.03243234381079674,
0.00459146685898304,
-0.03746075928211212,
0.026338430121541023,
0.003509609727188945,
0.0007605712162330747,
0.02960970252752304,
0.025927184149622917,
-0.024506516754627228,
-0.003215195145457983,
-0.008748321793973446,
-0.04194708168506622,
0.010197028517723083,
0.026992684230208397,
0.004266676027327776,
0.010785858146846294,
-0.0674443244934082,
0.04306865856051445,
-0.008355768397450447,
0.04931211844086647,
-0.06146256625652313,
-0.03861972689628601,
0.006757517345249653,
0.011552270501852036,
-0.023740103468298912,
0.005668650381267071,
-0.0013482322683557868,
-0.025740252807736397,
0.011916783638298512,
-0.027273079380393028,
-0.02168387360870838,
0.002126328181475401,
0.004254993051290512,
0.08912819623947144,
0.005869600456207991,
0.007318307179957628,
0.05776135250926018,
-0.017066704109311104,
-0.012384109199047089,
0.11365340650081635,
-0.00740242563188076,
-0.0344511903822422,
0.02781517617404461,
-0.06064007431268692,
0.09047409147024155,
0.0670330822467804,
-0.05458354577422142,
0.01172985415905714,
-0.040339481085538864,
-0.09249293804168701,
-0.005196652375161648,
0.028020799160003662,
0.010458730161190033,
0.0030002256389707327,
0.038208480924367905,
0.014758119359612465,
0.039105743169784546,
0.03112383559346199,
0.0584716871380806,
0.04198446497321129,
0.028301194310188293,
-0.009851207956671715,
-0.006626666523516178,
0.003766638459637761,
0.009645584970712662,
0.01408517174422741,
-0.019309863448143005,
0.01801070012152195,
-0.013234640471637249,
0.03671304136514664,
0.07978170365095139,
-0.02426350675523281,
-0.026338430121541023,
-0.021328706294298172,
-0.004509685095399618,
-0.013449609279632568,
-0.020207127556204796,
-0.05099448934197426,
0.08621209114789963,
0.015664730221033096,
0.049013033509254456,
-0.0018716361373662949,
0.09301634132862091,
-0.015636689960956573,
-0.03342307358980179,
0.005603224970400333,
-0.035367146134376526,
-0.06101393327116966,
-0.05536865070462227,
0.028656359761953354,
0.001370430109091103,
0.020711837336421013,
0.0025375739205628633,
0.020637065172195435,
-0.0182724017649889,
0.07533276826143265,
-0.039554376155138016,
0.0004322754975873977,
-0.02620757929980755,
-0.023646637797355652,
-0.009281071834266186,
-0.05118142068386078,
-0.027964720502495766,
0.08658595383167267,
-0.027497395873069763,
-0.012440187856554985,
0.07148201018571854,
-0.0028296520467847586,
-0.016720883548259735,
0.021347399801015854,
0.02540377900004387,
0.013000978156924248,
0.002043378073722124,
-0.0966801643371582,
0.02603934146463871,
-0.006584607530385256,
-0.08748321235179901,
0.008935251273214817,
0.02979663386940956,
0.009538100101053715,
-0.07088383287191391,
0.09032455086708069,
0.03710559383034706,
-0.047741908580064774,
0.02826380729675293,
0.12733668088912964,
0.012963592074811459,
-0.024730831384658813,
0.019235091283917427,
0.022973690181970596,
-0.025646788999438286,
0.038040243089199066,
-0.028749825432896614,
0.024188734591007233,
-0.04493796080350876,
0.028562895953655243,
-0.05701363459229469,
-0.03187155723571777,
0.07249142974615097,
-0.04183492064476013,
-0.02310454100370407,
0.0689023807644844,
-0.015804927796125412,
-0.06123825162649155,
-0.006201400887221098,
0.012514960020780563,
0.03824586793780327,
0.0372738316655159,
-0.0151132857427001,
-0.00755664287135005,
-0.0543966144323349,
0.0392552874982357,
0.00999140553176403,
-0.009552120231091976,
0.006135975476354361,
-0.00022270951012615114,
0.03275012597441673,
-0.021982962265610695,
0.022693295031785965,
-0.021179161965847015,
-0.04594738036394119,
-0.06673399358987808,
-0.014496417716145515,
0.01319725438952446,
0.004911584313958883,
-0.025983262807130814,
-0.0099446726962924,
0.032413654029369354,
0.03396517038345337,
0.034563347697257996,
-0.00851933192461729,
0.0015211424324661493,
-0.0397786907851696,
-0.01087932288646698,
0.01738448441028595,
0.013907588087022305,
0.00828566960990429,
-0.02932930923998356,
0.0062200939282774925,
-0.0625467598438263,
-0.03426425904035568,
0.004530714359134436,
0.008374461904168129,
-0.014832891523838043,
0.0000060880015553266276,
-0.00012573959247674793,
-0.036956049501895905,
-0.0006875516846776009,
-0.006369637791067362,
0.07017350196838379,
0.013449609279632568,
-0.01917901262640953,
0.007594028953462839,
0.011898091062903404,
-0.003425491275265813,
0.05125619098544121,
0.007692167069762945,
0.010112910531461239,
-0.010860630311071873,
0.05903247743844986,
0.013318758457899094,
-0.018608875572681427,
-0.025796333327889442,
0.02274937368929386,
-0.09189476072788239,
-0.07499629259109497,
-0.020207127556204796,
0.0704725906252861,
0.025366393849253654,
-0.030637817457318306,
-0.002301574917510152,
-0.012365415692329407,
-0.03506805747747421,
-0.003687193151563406,
0.0010701739229261875,
0.02345970831811428,
0.03966653347015381,
0.026787061244249344,
0.006051857024431229,
-0.028301194310188293,
0.007056605536490679,
-0.00891655869781971,
0.009206299670040607,
0.037591613829135895,
0.053275033831596375,
-0.05518171936273575,
-0.013580460101366043,
-0.026637516915798187,
-0.05656500160694122,
0.0554434210062027,
-0.01176724024116993,
-0.022001653909683228,
0.02888067625463009,
0.005121880676597357,
0.008701588958501816,
-0.03770377114415169,
-0.05581727996468544,
-0.002395039889961481,
0.0091876070946455,
-0.06497684866189957,
-0.03888142853975296,
-0.011355994269251823,
0.01802004687488079,
-0.02818903513252735,
-0.0524151585996151,
0.037853315472602844,
0.010468076914548874,
-0.01114102452993393,
-0.01791723445057869,
-0.07039781659841537,
-0.00798658188432455,
0.013627192936837673,
-0.00412180507555604,
0.0638926550745964,
0.009047409519553185,
0.024581287056207657,
-0.002317931270226836,
0.024805603548884392,
0.03989085182547569,
0.02790863998234272,
-0.08920297026634216,
-0.011346647515892982,
-0.017319058999419212,
-0.027703018859028816,
-0.04964859411120415,
-0.0344511903822422,
0.007122030947357416,
0.005729402881115675,
-0.009229665622115135,
0.005949045531451702,
0.011019520461559296,
0.00771086011081934,
-0.003439510939642787,
0.014253408648073673,
-0.009785782545804977,
0.02069314569234848,
0.02514207735657692,
0.0037339257542043924,
-0.0921938493847847,
-0.028749825432896614,
-0.0007775117410346866,
-0.004717644304037094,
0.0468820296227932,
-0.09458655118942261,
-0.042320940643548965,
0.05118142068386078,
0.08015555888414383,
0.012458880431950092,
0.047293275594711304,
0.012720583006739616,
-0.04673248529434204,
-0.056415457278490067,
0.007421118672937155,
0.03086213394999504,
0.036881279200315475,
-0.04351729154586792,
-0.0397786907851696,
-0.016496567055583,
-0.00944463536143303,
-0.05151789262890816,
-0.023160619661211967,
-0.02407657727599144,
0.03996562212705612,
-0.024207428097724915,
-0.009010023437440395,
0.030525660142302513,
-0.006117282435297966,
0.018590183928608894,
0.000932313094381243,
-0.006748171057552099,
0.028301194310188293,
0.07708991318941116,
0.06748171150684357,
-0.021328706294298172,
0.05716317892074585,
0.02674967609345913,
-0.04336774721741676,
-0.006056530401110649,
0.006435063201934099,
0.016300290822982788,
-0.01666480489075184,
0.017141476273536682,
0.009739050641655922,
-0.017898542806506157,
-0.008449233137071133,
-0.04762975126504898,
0.020113661885261536,
0.02435697242617607,
0.047854065895080566,
0.04138629138469696,
-0.01908554695546627,
-0.0408255010843277,
0.004474635701626539,
-0.007229515817016363,
-0.005089167971163988,
-0.003652143757790327,
-0.04340513423085213,
0.018412599340081215,
-0.003848420223221183,
-0.015505839139223099,
-0.027759097516536713,
-0.037853315472602844,
-0.028488123789429665,
0.03888142853975296,
-0.0021006253082305193,
0.024151349440217018,
-0.013552420772612095,
0.0021660507190972567,
0.0468820296227932,
-0.018861232325434685,
-0.013701965101063251,
-0.04389115050435066,
0.090623639523983,
-0.004451269283890724,
-0.03772246465086937,
0.017954621464014053,
0.057125791907310486,
-0.01934724859893322,
-0.04183492064476013,
0.015346948988735676,
-0.051368348300457,
0.05892032012343407,
-0.008037988096475601,
0.020094968378543854,
0.03718036785721779,
0.029740555211901665,
0.019365942105650902,
0.02772171050310135,
0.01891731098294258,
-0.0256841741502285,
-0.03183417022228241,
0.07166893780231476,
0.007051932159811258,
-0.04430239647626877,
-0.02729177288711071,
0.018160244449973106,
0.007313634268939495,
-0.06303277611732483,
0.0007278584525920451,
-0.033123984932899475,
0.04172276332974434,
-0.02658143825829029,
-0.08262303471565247,
-0.10812027752399445,
-0.03559146076440811,
-0.02596456930041313,
-0.03561015427112579,
-0.016206827014684677,
0.0031824824400246143,
0.0036638269666582346,
-0.0008616301929578185,
0.0992971882224083,
-0.05589205399155617,
0.03630179539322853,
-0.002675434807315469,
-0.019833266735076904,
0.028936754912137985,
-0.0009101151954382658,
-0.02398311160504818,
0.017552722245454788,
0.033217452466487885,
0.008449233137071133,
-0.008229590952396393,
-0.03850756958127022,
-0.04654555767774582,
0.028675053268671036,
-0.0755944699048996,
-0.012814047746360302,
-0.015374988317489624,
0.09391360729932785,
-0.011253182776272297,
-0.0041288151405751705,
0.021197855472564697,
-0.005785482004284859,
-0.026338430121541023,
-0.03265666216611862,
0.011084945872426033,
0.008393154479563236,
0.017636841163039207,
0.004977009724825621,
-0.040975045412778854,
-0.03159116208553314,
-0.002598326187580824,
0.026058034971356392,
0.011393380351364613,
-0.02996486984193325,
-0.0015725481789559126,
-0.03854495659470558,
-0.048564400523900986,
-0.0085613913834095,
0.05611636862158775,
0.01695454679429531,
0.03753553330898285,
-0.00038320638122968376,
-0.03426425904035568,
0.0117205074056983,
-0.010935401543974876,
-0.012823394499719143,
-0.024674752727150917,
-0.013430916704237461,
0.039367444813251495,
0.030301343649625778,
0.04291911423206329,
0.04699418693780899,
0.03691866248846054,
0.0335165411233902,
0.07017350196838379,
-0.06602365523576736,
-0.04430239647626877,
0.014860930852591991,
-0.04037686809897423,
-0.041161973029375076,
-0.032507117837667465,
0.05234038457274437,
-0.0016239539254456758,
0.00022373178217094392,
-0.019010774791240692,
0.0071640899404883385,
0.05708840489387512,
0.014879623427987099,
0.02159040793776512,
0.0030703244265168905,
0.04243309795856476,
0.08202485740184784,
0.046956803649663925,
-0.001968605909496546,
0.05331242084503174,
-0.050433699041604996,
-0.04860178753733635,
0.00999140553176403,
0.04946166276931763,
0.030880827456712723,
0.013580460101366043,
-0.06034098565578461,
-0.019926732406020164,
0.006551894824951887,
0.01621617190539837,
0.03652611002326012,
-0.027329158037900925,
-0.03344176709651947,
0.07529538124799728,
-0.003194165416061878,
0.04389115050435066,
0.013440263457596302,
-0.0070799714885652065,
0.018664954230189323,
0.04075072705745697,
-0.01639375649392605,
-0.07376255840063095,
-0.0005987599724903703,
-0.021553022786974907,
-0.03220802918076515,
-0.025628095492720604,
-0.009935326874256134,
0.04183492064476013,
-0.03183417022228241,
-0.04318081587553024,
0.019384635612368584,
-0.020562294870615005,
0.022992383688688278,
0.04430239647626877,
0.017150823026895523,
-0.036974743008613586,
0.022319436073303223,
-0.003546995809301734,
-0.011243836022913456,
-0.026095420122146606,
-0.07578139752149582,
0.005771461874246597,
0.04523704573512077,
0.02861897461116314,
0.06991180032491684,
0.0018342500552535057,
-0.0012103713816031814,
0.0033366994466632605,
-0.016365716233849525,
0.009010023437440395,
-0.000006302496331045404,
-0.029628396034240723,
-0.028058184310793877,
0.010711085982620716,
0.02719830721616745,
-0.020992232486605644,
0.003021255135536194,
-0.0000013234786138127674,
0.02674967609345913,
0.05447138473391533,
-0.01713212952017784,
-0.011982209980487823,
-0.02559071034193039,
0.0024978513829410076,
-0.03772246465086937,
-0.004133488517254591,
-0.01854345016181469,
-0.04467625543475151,
0.019141625612974167,
-0.00044804770732298493,
0.008187531493604183,
-0.05170482397079468,
-0.003596064867451787,
0.036881279200315475,
-0.006664052605628967,
0.0034067982342094183,
-0.016655458137392998,
0.006463102996349335,
0.025927184149622917,
-0.08703458309173584,
-0.019403329119086266,
0.017122782766819,
-0.05563035234808922,
-0.01818828284740448,
-0.014197329059243202,
-0.005322830285876989,
0.036974743008613586,
0.017954621464014053,
0.021702567115426064,
0.05174220725893974,
-0.010056830942630768,
-0.00015377908130176365,
-0.050957102328538895,
0.01172985415905714,
-0.007533276919275522,
-0.0027361870743334293,
0.05357412248849869,
-0.008626816794276237,
0.01315986830741167,
0.01587035320699215,
0.009701664559543133,
0.027684325352311134,
-0.03155377507209778,
-0.049723364412784576,
-0.05196652561426163,
0.05002245306968689,
0.027759097516536713,
0.008365115150809288,
-0.005813521333038807,
0.0417601503431797,
-0.013599153608083725,
-0.04220878332853317,
-0.04422762617468834,
-0.008393154479563236,
0.0629580020904541,
-0.0023634955286979675,
0.028693746775388718,
-0.031516388058662415,
-0.028020799160003662,
0.05806044116616249,
-0.011972863227128983,
0.0068229432217776775,
-0.030731283128261566,
0.043292976915836334,
-0.0034932533744722605,
-0.03149769455194473,
0.05716317892074585,
-0.05196652561426163,
-0.011972863227128983,
-0.007075298577547073,
0.01021572109311819,
-0.026001956313848495,
-0.012430841103196144,
0.007654781453311443,
-0.014776811935007572,
-0.0927172526717186,
-0.006229440215975046,
-0.061574723571538925,
0.05278901755809784,
-0.026637516915798187,
0.05103187635540962,
-0.013804776594042778,
-0.0035353126004338264,
0.013701965101063251,
-0.0047573670744895935,
-0.007916483096778393,
0.01748729683458805,
-0.005182632710784674,
0.024469129741191864,
0.02665621042251587,
0.05323764681816101,
0.05237777158617973,
0.030189186334609985,
-0.046956803649663925,
0.005089167971163988,
0.037685077637434006,
0.05589205399155617,
0.03467550501227379,
-0.008715609088540077,
0.01226260419934988,
0.012328029610216618,
0.047031573951244354,
-0.02863766811788082,
0.013094442896544933,
-0.06194858253002167,
-0.020300591364502907,
0.001991972327232361,
-0.0790339782834053,
0.03590924292802811,
0.06034098565578461,
-0.04699418693780899,
-0.01060827448964119,
-0.023497093468904495,
-0.0337221622467041,
0.03413340821862221,
-0.0032385613303631544,
0.06710784882307053,
0.01810416579246521,
-0.03486243635416031,
0.025179464370012283,
-0.09391360729932785,
0.08262303471565247,
-0.0028623647522181273,
0.00999140553176403,
0.06250937283039093,
0.028207728639245033,
-0.011337300762534142,
0.06135040894150734,
0.00851933192461729,
-0.04138629138469696,
-0.07110815495252609,
0.02559071034193039,
0.040788114070892334,
-0.012328029610216618,
0.02809557132422924,
-0.002684781327843666,
-0.019403329119086266,
-0.01261777151376009,
0.00032829571864567697,
-0.028319885954260826,
0.03032003715634346,
-0.0017676563002169132,
0.057125791907310486,
0.023291470482945442,
-0.033385686576366425,
0.020001504570245743
] |
10,120 | pygments.formatter | __init__ |
As with lexers, this constructor takes arbitrary optional arguments,
and if you override it, you should first process your own options, then
call the base class implementation.
| def __init__(self, **options):
"""
As with lexers, this constructor takes arbitrary optional arguments,
and if you override it, you should first process your own options, then
call the base class implementation.
"""
self.style = _lookup_style(options.get('style', 'default'))
self.full = get_bool_opt(options, 'full', False)
self.title = options.get('title', '')
self.encoding = options.get('encoding', None) or None
if self.encoding in ('guess', 'chardet'):
# can happen for e.g. pygmentize -O encoding=guess
self.encoding = 'utf-8'
self.encoding = options.get('outencoding') or self.encoding
self.options = options
| (self, **options) | [
-0.02602398581802845,
-0.012278670445084572,
0.0538007877767086,
-0.04578790441155434,
0.008299058303236961,
-0.00487837940454483,
-0.03348240628838539,
0.002913166070356965,
0.051153674721717834,
-0.0211232490837574,
-0.0012128875823691487,
0.01886962540447712,
-0.03065643273293972,
0.06342340260744095,
-0.028993044048547745,
0.024736199527978897,
0.018002158030867577,
0.012690046802163124,
-0.00011458154767751694,
0.023984992876648903,
0.010722597129642963,
0.015623333863914013,
0.0022122622467577457,
0.02131999284029007,
0.017420867457985878,
0.03371492400765419,
-0.028152408078312874,
-0.038561999797821045,
-0.01759972609579563,
-0.03770347684621811,
-0.016857462003827095,
0.01454123668372631,
-0.008808805607259274,
0.04657488316297531,
0.017394037917256355,
-0.054587770253419876,
-0.03455555811524391,
0.0427115298807621,
-0.053908105939626694,
0.004695049021393061,
-0.019692376255989075,
-0.018002158030867577,
0.004035506397485733,
-0.000589116825722158,
-0.04671797156333923,
-0.016204625368118286,
-0.01963871903717518,
-0.008808805607259274,
-0.021516738459467888,
-0.04771958291530609,
0.05351461470127106,
-0.010293335653841496,
0.013682713732123375,
-0.0387408621609211,
-0.07172246277332306,
0.008272228762507439,
0.0013123779790475965,
0.050044748932123184,
0.013056707568466663,
0.027222340926527977,
0.0004183623823337257,
0.047361865639686584,
0.05630481615662575,
-0.019316771999001503,
-0.03274908289313316,
-0.02296549640595913,
0.03164015710353851,
-0.022643549367785454,
0.004994637798517942,
0.017859071493148804,
0.025201233103871346,
-0.004185300786048174,
-0.03292794153094292,
0.00034122943179681897,
0.039706699550151825,
0.0009306257707066834,
-0.12334117293357849,
0.0008602000307291746,
0.017009491100907326,
0.031282439827919006,
-0.018959054723381996,
0.05136830732226372,
-0.016177797690033913,
-0.007735651917755604,
0.014308720827102661,
-0.04911468178033829,
0.014898954890668392,
-0.015104643069207668,
0.05530320480465889,
0.0333750918507576,
-0.05022360756993294,
0.01776069961488247,
0.03575391694903374,
0.034466128796339035,
-0.052763406187295914,
-0.015355045907199383,
0.0322125069797039,
-0.01675908826291561,
0.016052596271038055,
0.006452338770031929,
-0.03834737092256546,
0.05215528607368469,
0.0017863543471321464,
-0.0471472330391407,
-0.02081918902695179,
0.0027007709722965956,
-0.011768922209739685,
-0.011473805643618107,
0.0322125069797039,
-0.018350934609770775,
-0.03321411833167076,
-0.080057293176651,
0.05072441324591637,
0.034269385039806366,
0.013119308277964592,
-0.021641939878463745,
-0.05258454754948616,
0.0003085317730437964,
0.006698269862681627,
-0.014174575917422771,
-0.03945629671216011,
0.006461281795054674,
-0.0444643497467041,
-0.003825346939265728,
-0.009238068014383316,
0.016508685424923897,
0.029690595343708992,
-0.017474524676799774,
0.06199252977967262,
0.038633543998003006,
0.018547678366303444,
0.024736199527978897,
-0.022106973454356194,
-0.07057776302099228,
0.044142402708530426,
-0.026775192469358444,
-0.02226794697344303,
0.007069402374327183,
-0.05762837082147598,
0.04729032143950462,
0.03562871366739273,
-0.034430358558893204,
0.01584690809249878,
-0.03414418548345566,
-0.11840466409921646,
0.012529073283076286,
0.015471303835511208,
-0.051189448684453964,
0.02552318014204502,
0.06478273123502731,
0.038561999797821045,
-0.005473085679113865,
0.006237708032131195,
0.03011985681951046,
0.024789858609437943,
0.0009669564897194505,
-0.034197840839624405,
-0.03441247344017029,
0.02851012535393238,
0.05737796798348427,
0.03738153353333473,
-0.03210519254207611,
-0.008316943421959877,
-0.01469326764345169,
0.005410484969615936,
0.01744769513607025,
0.008871406316757202,
-0.06585588306188583,
0.0050617097876966,
0.020121637731790543,
0.02471831440925598,
-0.04653911292552948,
-0.04045790806412697,
0.04721877723932266,
0.013673771172761917,
0.041924551129341125,
0.013959945179522038,
0.12284036725759506,
-0.04124488681554794,
-0.018851738423109055,
0.03770347684621811,
-0.021641939878463745,
-0.07461997866630554,
-0.05927387252449989,
0.05541051924228668,
-0.006134863942861557,
0.06124132499098778,
0.06524776667356491,
0.01799321547150612,
0.018189961090683937,
0.03666609525680542,
-0.06302991509437561,
-0.004435703158378601,
-0.02487928792834282,
0.0013414425775408745,
-0.024396369233727455,
0.006327137351036072,
-0.03895549103617668,
0.02951173670589924,
0.009542128071188927,
-0.021838683634996414,
0.07301024347543716,
0.005562514998018742,
-0.04450011998414993,
-0.01906636916100979,
0.03273119777441025,
-0.009881960228085518,
-0.0029958882369101048,
-0.045144014060497284,
0.008218571543693542,
-0.0057637314312160015,
-0.0769093707203865,
0.03528888151049614,
0.031711701303720474,
-0.004829192999750376,
-0.06928998231887817,
0.03877663239836693,
0.036379922181367874,
-0.019549289718270302,
0.03816851228475571,
0.1196209043264389,
-0.010838855989277363,
0.007529964204877615,
0.006000719498842955,
0.012269727885723114,
-0.03112146630883217,
0.022035429254174232,
-0.052763406187295914,
0.0011301652994006872,
0.018529793247580528,
-0.03723844513297081,
-0.06492581963539124,
-0.0023676459677517414,
0.048363473266363144,
-0.015873737633228302,
-0.044035088270902634,
0.042461127042770386,
-0.00003486353307380341,
-0.0698980987071991,
-0.026095528155565262,
0.017859071493148804,
0.05104636028409004,
0.009425869211554527,
-0.01126811746507883,
-0.007637279573827982,
0.011822580359876156,
0.034698646515607834,
0.03206941857933998,
-0.004377574194222689,
0.019012711942195892,
-0.04196032136678696,
-0.03519945219159126,
-0.01913791336119175,
0.028760528191924095,
0.0044245244935154915,
-0.002472725696861744,
-0.04911468178033829,
-0.01660705916583538,
-0.005710073746740818,
-0.00891612097620964,
-0.021266335621476173,
0.0333750918507576,
0.008880349807441235,
0.07268829643726349,
0.06238602101802826,
-0.009729930199682713,
0.025022374466061592,
-0.01544447522610426,
-0.005146667826920748,
0.004663748666644096,
0.024092307314276695,
0.03562871366739273,
-0.0163387693464756,
0.04993743449449539,
-0.025630494579672813,
0.008509216830134392,
-0.025344321504235268,
-0.03019140101969242,
-0.02196388505399227,
0.00041472932207398117,
0.047433409839868546,
-0.014612780883908272,
0.00901449378579855,
0.004936508368700743,
0.047326091676950455,
-0.002179844072088599,
-0.005589344073086977,
-0.005893404129892588,
-0.01475586835294962,
-0.005629586987197399,
0.019871234893798828,
0.058916155248880386,
0.0006852535880170763,
0.005821860395371914,
0.07483460754156113,
-0.01049008034169674,
0.041924551129341125,
0.005410484969615936,
-0.02514757588505745,
-0.05494548752903938,
-0.016633886843919754,
-0.08935795724391937,
0.04768380895256996,
0.02464677020907402,
-0.06524776667356491,
0.013477026484906673,
-0.03546774014830589,
0.008764090947806835,
0.04321233555674553,
-0.0010703593725338578,
0.023716704919934273,
0.0778394415974617,
0.00540601322427392,
0.017698097974061966,
-0.06181367114186287,
0.04675374552607536,
0.00753890722990036,
-0.042461127042770386,
0.0373457595705986,
0.04993743449449539,
-0.08120198547840118,
-0.06750138849020004,
-0.007248261012136936,
-0.09322131425142288,
-0.007270618341863155,
0.0012307735159993172,
-0.011500634253025055,
-0.018315162509679794,
0.0336076058447361,
-0.00024187886447180063,
-0.021713484078645706,
0.0022916309535503387,
-0.011777865700423717,
-0.030137741938233376,
-0.0867108479142189,
-0.06657132506370544,
-0.0016455028671771288,
0.04861387610435486,
0.00058967579388991,
-0.045716360211372375,
0.076551653444767,
0.005790560506284237,
-0.03146129846572876,
-0.023984992876648903,
-0.006765341851860285,
-0.029225561767816544,
-0.03332143276929855,
-0.03888394683599472,
0.036183178424835205,
-0.011554291471838951,
-0.008808805607259274,
-0.009027908556163311,
0.002007692353799939,
0.012654274702072144,
0.02108747698366642,
-0.07132896780967712,
-0.014863183721899986,
-0.015390817075967789,
0.0009831655770540237,
-0.046217165887355804,
-0.0202468391507864,
0.02498660236597061,
-0.046217165887355804,
0.047361865639686584,
-0.024736199527978897,
-0.03246290981769562,
0.031014151871204376,
0.015560733154416084,
-0.03189055994153023,
0.009622614830732346,
0.02387767657637596,
-0.0181452464312315,
-0.0271329116076231,
-0.04864965006709099,
-0.005133253522217274,
0.009568956680595875,
-0.034537672996520996,
0.015355045907199383,
-0.03441247344017029,
-0.051117904484272,
0.024825630709528923,
0.04339119419455528,
0.00023950338072609156,
0.014290834777057171,
-0.04321233555674553,
-0.0716509148478508,
-0.02904670313000679,
0.058343809098005295,
0.0828474909067154,
0.020443584769964218,
-0.042890388518571854,
-0.036415692418813705,
0.014550180174410343,
-0.016249340027570724,
-0.028062978759407997,
0.025809355080127716,
0.009407984092831612,
0.03112146630883217,
-0.032355595380067825,
-0.009470583871006966,
0.04800575599074364,
-0.024467911571264267,
0.008849048987030983,
0.0047800070606172085,
0.009622614830732346,
0.008965307846665382,
0.05143985152244568,
0.07712399959564209,
0.005271869245916605,
0.062099847942590714,
0.03639780730009079,
-0.03988555818796158,
-0.02105170488357544,
-0.028223950415849686,
-0.053299982100725174,
-0.03482384979724884,
0.061634812504053116,
0.022822409868240356,
-0.02242891862988472,
-0.014264005236327648,
-0.017581840977072716,
0.04489361122250557,
0.005240568891167641,
0.02893938682973385,
0.06031125783920288,
0.026095528155565262,
-0.012698989361524582,
-0.02471831440925598,
-0.002351996023207903,
-0.03816851228475571,
-0.0449293814599514,
-0.01175103709101677,
-0.0058576324954628944,
-0.018619222566485405,
-0.015873737633228302,
0.008853521198034286,
-0.04228226840496063,
0.007856382057070732,
-0.01454123668372631,
0.02893938682973385,
0.05033092573285103,
-0.023931335657835007,
0.02108747698366642,
0.06657132506370544,
0.0382758267223835,
-0.0044625322334468365,
-0.0351279079914093,
0.03122878260910511,
-0.029744252562522888,
-0.03600431606173515,
0.014398150146007538,
0.07905568182468414,
-0.009774644859135151,
-0.027544286102056503,
0.010418537072837353,
-0.0542658232152462,
-0.015292445197701454,
0.030710091814398766,
-0.014630666933953762,
0.03949206694960594,
0.005566986743360758,
0.009054737165570259,
0.023054925724864006,
0.02598821371793747,
-0.056662533432245255,
0.05977467820048332,
0.022554120048880577,
0.057127565145492554,
-0.06395997852087021,
-0.034501902759075165,
-0.0480773001909256,
0.009765701368451118,
-0.036523010581731796,
-0.0031233252957463264,
-0.03927743807435036,
0.006125920917838812,
-0.03435881435871124,
-0.08613849431276321,
-0.03870508819818497,
-0.027186568826436996,
-0.03773925080895424,
-0.025702038779854774,
-0.006617783103138208,
-0.014380264095962048,
-0.000012637156942219008,
-0.01844036392867565,
0.0666428655385971,
-0.047826897352933884,
0.01505992840975523,
0.018091589212417603,
-0.015220900997519493,
0.06410306692123413,
-0.004044449422508478,
0.016741203144192696,
0.06088360399007797,
0.04339119419455528,
0.0009865191532298923,
0.0006779874092899263,
0.006206407677382231,
-0.05544629320502281,
0.040744081139564514,
-0.07129319757223129,
-0.018198903650045395,
-0.04217495396733284,
0.06603474169969559,
0.012582731433212757,
-0.036344148218631744,
0.028581669554114342,
-0.005137724801898003,
-0.0033916139509528875,
-0.05927387252449989,
-0.00010480020137038082,
0.03206941857933998,
0.0018221260979771614,
0.030209286138415337,
-0.004091399721801281,
-0.05490971356630325,
0.044607434421777725,
0.034501902759075165,
0.021981772035360336,
0.005982833914458752,
0.010874627158045769,
-0.04489361122250557,
-0.08513688296079636,
-0.015390817075967789,
0.0400286465883255,
0.0022614486515522003,
0.02005009539425373,
0.057127565145492554,
-0.011107143945991993,
0.0005407690186984837,
-0.05644790083169937,
-0.014523351565003395,
0.009027908556163311,
-0.00931855384260416,
0.059345416724681854,
0.0059738908894360065,
0.07229480892419815,
0.0698980987071991,
0.026703650131821632,
0.053299982100725174,
0.041316431015729904,
-0.004605619236826897,
-0.03042391687631607,
0.01940620131790638,
-0.023126469925045967,
-0.03646935150027275,
0.00737793417647481,
0.0024101249873638153,
0.028688983991742134,
-0.018959054723381996,
-0.040314819663763046,
-0.039098579436540604,
0.05272763594985008,
0.006273479666560888,
-0.017277779057621956,
0.004923094063997269,
0.04367736726999283,
0.10588452965021133,
0.03130032494664192,
0.012582731433212757,
0.023931335657835007,
-0.07011272758245468,
-0.06256487965583801,
-0.013843687251210213,
0.047969985753297806,
0.014094089157879353,
-0.00798158347606659,
-0.03324988856911659,
0.028903614729642868,
0.05050978437066078,
0.013539626263082027,
-0.014424978755414486,
0.037059586495161057,
-0.023126469925045967,
0.02498660236597061,
0.04217495396733284,
0.06649977713823318,
-0.015122529119253159,
0.011375432834029198,
0.019316771999001503,
0.03723844513297081,
-0.04546595737338066,
-0.03287428617477417,
-0.010364878922700882,
-0.02058667130768299,
-0.0031903975177556276,
0.00832141563296318,
0.011151858605444431,
-0.019459860399365425,
-0.026506904512643814,
-0.04378468543291092,
0.020926503464579582,
-0.01695583388209343,
-0.009962446987628937,
0.012198184616863728,
0.029458077624440193,
-0.08778399974107742,
-0.006345023401081562,
-0.015641219913959503,
-0.025058146566152573,
0.0409587137401104,
-0.06886071711778641,
0.04385622963309288,
0.036952272057533264,
0.012868905439972878,
0.04432126134634018,
0.061670586466789246,
-0.012913620099425316,
0.004440174903720617,
-0.009729930199682713,
-0.03292794153094292,
-0.0016924532828852534,
-0.03130032494664192,
-0.04882850870490074,
0.004636919591575861,
0.006537296809256077,
-0.014487579464912415,
0.039170123636722565,
-0.012913620099425316,
0.0204793568700552,
0.021373651921749115,
-0.020497241988778114,
0.016776975244283676,
-0.04940085858106613,
0.012815247289836407,
0.02021106705069542,
-0.008522631600499153,
-0.03274908289313316,
-0.04764803871512413,
0.05322844162583351,
-0.009873016737401485,
0.0009831655770540237,
-0.0809873566031456,
-0.022858180105686188,
0.05759260058403015,
0.005227154586464167,
0.029171904549002647,
0.022589892148971558,
0.03838314116001129,
-0.013942059129476547,
-0.047433409839868546,
0.03562871366739273,
0.010230734944343567,
-0.026989823207259178,
0.009873016737401485,
-0.05415850505232811,
0.03049546107649803,
0.04374891147017479,
0.017903786152601242,
0.0331425741314888,
0.049651261419057846,
-0.0052047972567379475,
0.011759979650378227,
-0.024324825033545494,
0.040779851377010345,
-0.014496522024273872,
0.010856742039322853,
0.05040246620774269,
-0.03351817652583122,
-0.03292794153094292,
0.033428747206926346,
0.026381703093647957,
0.0180289875715971,
0.038633543998003006,
-0.008290114812552929,
-0.018619222566485405,
0.0006025312468409538,
-0.004820249974727631,
-0.028295494616031647,
-0.014022545889019966,
0.04153105989098549,
-0.032284051179885864,
-0.0066133118234574795,
-0.029332876205444336,
-0.003443035762757063,
0.029154017567634583,
-0.051726024597883224,
0.07182977348566055,
-0.026703650131821632,
-0.027919890359044075,
0.03773925080895424,
-0.006979972589761019,
-0.04170991852879524,
-0.022679321467876434,
0.03441247344017029,
-0.023716704919934273,
0.018172074109315872,
0.021409422159194946,
-0.05308535322546959,
-0.043534282594919205,
0.0368807278573513,
-0.005285283550620079,
-0.004518425557762384,
0.011035600677132607,
-0.02951173670589924,
-0.057127565145492554,
-0.14194250106811523,
0.02893938682973385,
-0.061098236590623856,
0.08556614816188812,
-0.02139153704047203,
-0.007632807828485966,
-0.006966558285057545,
0.0015940809389576316,
0.01910214126110077,
0.026882508769631386,
0.005710073746740818,
0.037953879684209824,
0.026310158893465996,
0.014988384209573269,
0.01947774551808834,
0.05201219767332077,
0.03206941857933998,
0.03367915004491806,
-0.05866575241088867,
0.031979989260435104,
0.029744252562522888,
-0.01894116774201393,
0.0027656073216348886,
0.021445194259285927,
-0.0166875459253788,
-0.009390098042786121,
0.06843145191669464,
0.02360938861966133,
-0.010481137782335281,
-0.07086393982172012,
-0.034770190715789795,
0.005177968181669712,
-0.08220359683036804,
-0.015820078551769257,
0.013959945179522038,
-0.06431769579648972,
-0.020389925688505173,
-0.04428549110889435,
-0.04603830724954605,
0.05308535322546959,
-0.01393311657011509,
0.07862641662359238,
0.026882508769631386,
-0.01652657240629196,
-0.0017774113221094012,
-0.0716509148478508,
0.04196032136678696,
0.014380264095962048,
0.020998047664761543,
0.04593099281191826,
0.008683605119585991,
-0.0006304779672063887,
0.04006441682577133,
0.01699160598218441,
-0.028867842629551888,
-0.01285996288061142,
0.059917766600847244,
0.017152579501271248,
0.012806304730474949,
0.028295494616031647,
-0.008227514103055,
-0.0027767859864979982,
-0.0023900035303086042,
-0.03459133207798004,
-0.07186555117368698,
0.021212678402662277,
-0.0028885728679597378,
0.04675374552607536,
0.0006779874092899263,
0.028867842629551888,
0.027222340926527977
] |
10,121 | pygments.formatter | format |
This method must format the tokens from the `tokensource` iterable and
write the formatted version to the file object `outfile`.
Formatter options can control how exactly the tokens are converted.
| def format(self, tokensource, outfile):
"""
This method must format the tokens from the `tokensource` iterable and
write the formatted version to the file object `outfile`.
Formatter options can control how exactly the tokens are converted.
"""
if self.encoding:
# wrap the outfile in a StreamWriter
outfile = codecs.lookup(self.encoding)[3](outfile)
return self.format_unencoded(tokensource, outfile)
| (self, tokensource, outfile) | [
-0.029273975640535355,
-0.021338259801268578,
-0.002214285312220454,
-0.001665398245677352,
0.011938843876123428,
-0.029256340116262436,
-0.057948362082242966,
0.014231384731829166,
0.04041924700140953,
-0.007283224258571863,
-0.007486025802791119,
-0.07738205045461655,
-0.041159916669130325,
0.0027113696560263634,
0.028074800968170166,
0.09402941912412643,
-0.0008376589394174516,
0.0038642529398202896,
0.02733413316309452,
0.052763696759939194,
-0.022413989529013634,
0.01106591522693634,
-0.002325605833902955,
-0.05833633244037628,
0.038832105696201324,
0.0007445244700647891,
-0.007865176536142826,
-0.06274506449699402,
-0.055585283786058426,
-0.03142543509602547,
-0.012855860404670238,
-0.04761429876089096,
0.05029480531811714,
0.020562322810292244,
-0.0005742372595705092,
-0.049554139375686646,
-0.054280299693346024,
0.04768483713269234,
-0.026628736406564713,
-0.0032205781899392605,
-0.019839290529489517,
-0.03371797502040863,
0.010307613760232925,
0.032853864133358,
0.012406169436872005,
0.013076297007501125,
-0.03438810259103775,
-0.02971484884619713,
0.018234511837363243,
-0.05523258447647095,
0.01610950380563736,
-0.04324083775281906,
-0.026399482041597366,
-0.006436747498810291,
-0.013146836310625076,
0.011912391521036625,
0.03354162722826004,
0.0456039160490036,
0.034776072949171066,
0.004726159851998091,
0.016038963571190834,
0.029450325295329094,
0.06859985738992691,
-0.010792573913931847,
-0.016823718324303627,
0.02715778537094593,
-0.022678513079881668,
0.019733481109142303,
-0.01978638581931591,
0.07632395625114441,
0.01207110658288002,
-0.03206029534339905,
0.005806298926472664,
0.020403608679771423,
0.04835496470332146,
0.04592134431004524,
-0.09346510469913483,
0.020385973155498505,
-0.022907767444849014,
0.008323684334754944,
-0.0010602999245747924,
-0.0027995442505925894,
0.017343949526548386,
0.03872629627585411,
0.03606342151761055,
-0.08083849400281906,
-0.019169162958860397,
0.004673255141824484,
-0.03216610476374626,
0.008768966421484947,
-0.011506788432598114,
-0.004589489195495844,
0.010104811750352383,
0.015650996938347816,
-0.059464968740940094,
-0.044016774743795395,
-0.00733172008767724,
-0.006864394526928663,
-0.032853864133358,
0.004313943441957235,
0.012221002951264381,
0.008204649202525616,
-0.035111136734485626,
-0.015254209749400616,
0.05724296718835831,
-0.03639848530292511,
-0.0005072796484455466,
0.026540562510490417,
0.028233515098690987,
0.01612713932991028,
-0.055373664945364,
-0.08909164369106293,
0.05167033150792122,
-0.024900514632463455,
0.06690690666437149,
-0.07456046342849731,
-0.017352765426039696,
0.06154588982462883,
0.03385905548930168,
-0.03689226508140564,
0.035463836044073105,
-0.03456445410847664,
0.023577895015478134,
-0.006494061090052128,
-0.006366207730025053,
-0.05318693444132805,
0.03036734089255333,
0.0024270066060125828,
0.08373062312602997,
-0.03507586568593979,
-0.033453453332185745,
0.055761631578207016,
0.012141645886003971,
-0.047226328402757645,
0.06151061877608299,
-0.036962803453207016,
-0.04980102926492691,
-0.022537434473633766,
-0.04309975728392601,
0.019416052848100662,
0.07801690697669983,
-0.03777400776743889,
-0.002951645525172353,
-0.052587345242500305,
-0.07230319082736969,
0.010845478624105453,
0.008323684334754944,
0.03876156359910965,
0.03541092947125435,
0.008508851751685143,
0.03142543509602547,
0.044369470328092575,
-0.005524140316992998,
-0.0391848050057888,
0.012185732834041119,
0.01844613254070282,
0.01466344017535448,
0.024724164977669716,
-0.003405744908377528,
0.024882879108190536,
0.04824915528297424,
0.02581753022968769,
-0.008932089433073997,
0.055126775056123734,
0.025870434939861298,
0.04648566246032715,
0.022943036630749702,
0.0007434223080053926,
-0.006657184101641178,
-0.04292340949177742,
-0.003588707186281681,
-0.05756039544939995,
-0.04962467774748802,
0.08852732181549072,
0.004250016994774342,
-0.004836378153413534,
-0.024688895791769028,
0.058971188962459564,
-0.03752712160348892,
0.0375976599752903,
0.01483978983014822,
-0.019010448828339577,
-0.030226262286305428,
-0.031443070620298386,
-0.023524990305304527,
-0.007221501786261797,
0.001707281218841672,
0.03306548297405243,
-0.022555069997906685,
-0.031619422137737274,
0.08535303920507431,
-0.051881950348615646,
-0.027104880660772324,
-0.04158315435051918,
-0.007873994298279285,
-0.05368071049451828,
-0.04183004051446915,
-0.014566448517143726,
0.051211822777986526,
-0.013305551372468472,
-0.03223664313554764,
0.03341818228363991,
-0.0010211723856627941,
-0.024036403745412827,
0.029238706454634666,
0.07554801553487778,
0.008685200475156307,
-0.002980302320793271,
-0.09896720200777054,
-0.002940623788163066,
0.053398553282022476,
-0.07851068675518036,
-0.01897517964243889,
0.030561326071619987,
0.03904372453689575,
-0.022572703659534454,
0.025517737492918968,
0.03653956577181816,
-0.08471818268299103,
0.03872629627585411,
0.05583217367529869,
-0.004624759312719107,
-0.031919214874506,
-0.015104313381016254,
0.03274805471301079,
0.013376090675592422,
0.01057213731110096,
-0.04137153550982475,
0.006401477847248316,
-0.011453883722424507,
0.020068544894456863,
-0.01164786797016859,
-0.04965994879603386,
0.0772409737110138,
-0.05403340980410576,
-0.03858521580696106,
0.044581089168787,
-0.05833633244037628,
-0.06697744876146317,
0.009805018082261086,
-0.03274805471301079,
-0.0038708660285919905,
0.03370034322142601,
-0.024424370378255844,
0.04916617274284363,
-0.012970487587153912,
0.01657683029770851,
-0.02296067215502262,
0.0265229269862175,
0.05382179096341133,
0.0033550444059073925,
0.027933720499277115,
-0.053433824330568314,
0.029062356799840927,
-0.026716912165284157,
-0.06479071825742722,
-0.04496905952692032,
-0.01133043970912695,
0.007640331517904997,
0.025235578417778015,
-0.001463698805309832,
0.004335987381637096,
0.030420245602726936,
-0.015800893306732178,
0.0032029433641582727,
-0.00642352132126689,
-0.013243828900158405,
-0.010192986577749252,
0.047896455973386765,
0.013790511526167393,
-0.0654255747795105,
0.04207693040370941,
-0.022043656557798386,
-0.010316431522369385,
-0.0466267429292202,
-0.00444620568305254,
-0.009893192909657955,
0.018745925277471542,
0.00595178734511137,
-0.030578959733247757,
0.05117655172944069,
0.004805516917258501,
-0.015060226432979107,
0.00130057567730546,
0.032624609768390656,
0.02601151540875435,
-0.018234511837363243,
-0.05773674324154854,
0.013693518936634064,
-0.02631130814552307,
0.022343449294567108,
0.025288483127951622,
0.015712717548012733,
0.04440474137663841,
0.000023507493096985854,
-0.004637985490262508,
0.043381914496421814,
-0.05413921922445297,
0.04140680283308029,
-0.04574499651789665,
-0.07709988951683044,
-0.010131264105439186,
0.05738404765725136,
0.0008657646249048412,
-0.010307613760232925,
0.005638767499476671,
-0.014989686198532581,
-0.039502233266830444,
-0.03267751634120941,
-0.013728789053857327,
0.005691672209650278,
0.025764625519514084,
-0.0000037241723020997597,
-0.012115193530917168,
0.014619353227317333,
0.023242831230163574,
-0.037632931023836136,
-0.007873994298279285,
0.048390235751867294,
-0.0015617930330336094,
-0.036645375192165375,
-0.05505623668432236,
0.05650230124592781,
-0.05064750462770462,
0.07279697060585022,
-0.0265229269862175,
-0.025605911388993263,
-0.029803022742271423,
0.023454450070858,
0.016003694385290146,
-0.006242763251066208,
-0.04511013999581337,
0.030614230781793594,
-0.009963732212781906,
-0.06641312688589096,
-0.05184667930006981,
-0.018499037250876427,
-0.02382478304207325,
0.003716560546308756,
-0.004686481319367886,
0.0006552477134391665,
-0.006057596765458584,
0.027916086837649345,
0.0015761214308440685,
-0.05664337798953056,
0.00021354791533667594,
-0.037174422293901443,
-0.0435582660138607,
0.02297830767929554,
0.040666136890649796,
-0.03422939032316208,
0.04697944223880768,
0.08443602174520493,
0.0661662369966507,
-0.0037782827857881784,
-0.048884011805057526,
-0.0027488439809530973,
-0.0013226193841546774,
-0.008341319859027863,
-0.03854994475841522,
-0.033453453332185745,
0.01978638581931591,
0.05452718958258629,
-0.007411077152937651,
0.027298863977193832,
0.006776220165193081,
0.007406668737530708,
-0.02128535509109497,
-0.007468390744179487,
0.0023586712777614594,
-0.032289545983076096,
-0.006485243793576956,
0.0198216550052166,
-0.0288507379591465,
-0.046027153730392456,
0.01466344017535448,
-0.05248153582215309,
0.03692753240466118,
-0.0955812931060791,
-0.044898517429828644,
0.043029218912124634,
0.07590071856975555,
0.007856358774006367,
0.023048847913742065,
0.019715845584869385,
-0.029732484370470047,
-0.0661662369966507,
0.0184284970164299,
-0.009011446498334408,
0.04408731311559677,
-0.06055833399295807,
-0.017864178866147995,
-0.006136953830718994,
-0.030772944912314415,
-0.06620150804519653,
0.001556282164528966,
-0.034476280212402344,
0.00370774301700294,
0.005515323020517826,
0.002594538265839219,
0.02920343540608883,
0.011004193685948849,
0.014469455927610397,
-0.00013508628762792796,
-0.0348995178937912,
-0.005043588578701019,
0.023260466754436493,
0.03301258012652397,
-0.024442005902528763,
0.03384141996502876,
0.026134958490729332,
-0.010289979167282581,
0.020915020257234573,
-0.013243828900158405,
-0.01878119446337223,
-0.00022787629859521985,
-0.03251880034804344,
0.02484760992228985,
-0.0030927250627428293,
0.023436814546585083,
-0.03214846923947334,
0.01778482273221016,
0.03558727726340294,
0.015298297628760338,
-0.015615725889801979,
-0.09029081463813782,
-0.03352399170398712,
-0.004540993366390467,
-0.04077194631099701,
0.008522077463567257,
-0.010210621170699596,
-0.04024289920926094,
0.002153665293008089,
0.03198975324630737,
0.02414221316576004,
0.013711154460906982,
-0.00830164086073637,
0.03200738877058029,
0.06239236518740654,
0.028744928538799286,
0.0836600810289383,
-0.0031808996573090553,
0.0412304550409317,
0.042182739824056625,
-0.007115692365914583,
-0.02412457764148712,
-0.055126775056123734,
0.007565382868051529,
-0.03556964546442032,
0.0012664080131798983,
0.0034917150624096394,
0.06055833399295807,
-0.021426433697342873,
-0.001939841778948903,
0.018887003883719444,
-0.05117655172944069,
0.07293804734945297,
-0.005850386340171099,
0.03408830985426903,
0.033259470015764236,
0.018075797706842422,
0.0386204868555069,
0.06415585428476334,
0.02900945208966732,
-0.008663157001137733,
-0.057454586029052734,
-0.005405104719102383,
0.017546750605106354,
0.018005259335041046,
-0.004986274987459183,
-0.002288131508976221,
0.014363646507263184,
-0.06524921953678131,
0.009734478779137135,
-0.027616292238235474,
0.0661662369966507,
0.006679228041321039,
-0.016876623034477234,
-0.051740869879722595,
0.007212684489786625,
-0.06613096594810486,
-0.00264303432777524,
-0.0078078629449009895,
0.0169383455067873,
0.01729104481637478,
0.023454450070858,
0.08584681898355484,
-0.07322020828723907,
0.016065416857600212,
0.030279166996479034,
0.008491216227412224,
0.0057798465713858604,
-0.007856358774006367,
-0.08556465804576874,
-0.00023696931020822376,
0.03223664313554764,
-0.023031212389469147,
-0.006317711900919676,
-0.047226328402757645,
-0.014645805582404137,
0.022854862734675407,
-0.05403340980410576,
-0.03237772360444069,
-0.06849405169487,
0.05614960193634033,
-0.006613096687942743,
0.029591403901576996,
0.016144772991538048,
-0.021549878641963005,
-0.023436814546585083,
-0.030596595257520676,
0.009558129124343395,
0.009505224414169788,
0.05555001273751259,
0.03137253224849701,
0.01761729083955288,
-0.04909563064575195,
0.030949292704463005,
0.004117755219340324,
0.044581089168787,
-0.046238772571086884,
-0.016038963571190834,
0.000007409596037177835,
-0.06292141228914261,
-0.025076864287257195,
0.00594737846404314,
-0.02733413316309452,
0.06433220952749252,
-0.034952420741319656,
-0.03174286335706711,
-0.017872996628284454,
0.003416766645386815,
0.006308894604444504,
-0.030720040202140808,
-0.02664637193083763,
0.04278232902288437,
0.0233133714646101,
0.035128772258758545,
0.024882879108190536,
0.03653956577181816,
-0.008209058083593845,
0.04444001242518425,
-0.06694217771291733,
-0.05353963375091553,
-0.008932089433073997,
-0.011189360171556473,
-0.04158315435051918,
-0.06330937892198563,
0.0281982459127903,
-0.009637486189603806,
-0.0032271912787109613,
-0.007234727963805199,
0.031125642359256744,
0.09720370918512344,
0.04447527974843979,
0.038655754178762436,
-0.023877687752246857,
0.09466427564620972,
0.04616823419928551,
0.03340054675936699,
0.022361084818840027,
0.058794841170310974,
-0.0008927680901251733,
-0.007098057307302952,
-0.02065049670636654,
0.04987156763672829,
-0.011718407273292542,
0.01643574982881546,
-0.07738205045461655,
0.05858322232961655,
0.0486723929643631,
-0.034811340272426605,
0.015827344730496407,
-0.05840687081217766,
0.006771811284124851,
0.026946164667606354,
0.005969421938061714,
0.024900514632463455,
-0.0005425494746305048,
0.012891130521893501,
-0.039854928851127625,
0.04394623264670372,
0.026399482041597366,
-0.0644027441740036,
0.04112464562058449,
0.024583086371421814,
0.0011043872218579054,
-0.017670195549726486,
0.05163506045937538,
0.06725960224866867,
-0.04098356515169144,
-0.011921209283173084,
0.01943368837237358,
-0.03394722938537598,
0.025923339650034904,
-0.012088741175830364,
-0.010210621170699596,
-0.022043656557798386,
-0.004809925798326731,
-0.02165568806231022,
0.01862248033285141,
-0.007680010050535202,
-0.054774075746536255,
0.06024090573191643,
0.05219937860965729,
-0.008522077463567257,
0.0009170161210931838,
-0.028409864753484726,
-0.016982432454824448,
0.02581753022968769,
-0.016894258558750153,
0.02900945208966732,
0.04673255234956741,
-0.03826778754591942,
0.0027598657179623842,
0.063838429749012,
0.04574499651789665,
-0.011718407273292542,
-0.005074449814856052,
0.013270281255245209,
0.07032807916402817,
0.04426366090774536,
-0.04144207388162613,
-0.021267719566822052,
0.03301258012652397,
0.03317129239439964,
-0.007199458312243223,
-0.009443501941859722,
-0.042676519602537155,
-0.05883010849356651,
-0.02816297486424446,
0.020897386595606804,
0.018234511837363243,
-0.03724496066570282,
-0.05854795128107071,
0.042993947863578796,
-0.015245392918586731,
-0.006229537073522806,
-0.044863250106573105,
0.0058018905110657215,
-0.005607906263321638,
-0.02299594320356846,
0.03320656344294548,
-0.03216610476374626,
-0.03795035928487778,
-0.019715845584869385,
-0.049236711114645004,
0.021832037717103958,
0.007120100781321526,
0.024283291772007942,
-0.01846376620233059,
0.06101683899760246,
-0.019839290529489517,
0.02731649950146675,
-0.012573701329529285,
0.007221501786261797,
0.031460706144571304,
-0.01392277330160141,
0.0574193149805069,
0.0006227332632988691,
0.01680608280003071,
0.020703401416540146,
0.046873629093170166,
-0.00675417622551322,
-0.07759366929531097,
-0.03574599325656891,
-0.04479270800948143,
0.03773874044418335,
-0.02902708761394024,
0.011630233377218246,
0.0008751331479288638,
0.007997438311576843,
-0.005903291050344706,
0.007803454529494047,
0.00838540680706501,
-0.03622213751077652,
0.07307913154363632,
-0.02147933840751648,
0.016735544428229332,
-0.023048847913742065,
0.030138086527585983,
0.02565881609916687,
0.02715778537094593,
-0.034458644688129425,
-0.05163506045937538,
0.037809278815984726,
-0.04260597750544548,
0.050929661840200424,
0.01575680635869503,
-0.03911426290869713,
0.01349953468888998,
-0.010889566503465176,
-0.030138086527585983,
-0.044545821845531464,
-0.028744928538799286,
0.07300858944654465,
-0.027140149846673012,
-0.021920211613178253,
0.018234511837363243,
-0.015060226432979107,
-0.015377654694020748,
-0.031072737649083138,
0.053574901074171066,
-0.0015033773379400373,
-0.012723598629236221,
-0.0355520099401474,
0.03190157935023308,
-0.03539329394698143,
-0.015580456703901291,
-0.03237772360444069,
0.017238140106201172,
-0.02211419679224491,
0.046697281301021576,
0.04659147188067436,
0.022008387371897697,
-0.05184667930006981,
-0.06754176318645477,
0.04193585366010666,
0.10284688323736191,
-0.017343949526548386,
-0.03236008808016777,
0.018393225967884064,
-0.015448193997144699,
-0.010863114148378372,
0.018199242651462555,
-0.016347575932741165,
-0.041195183992385864,
0.006807080935686827,
0.02281959354877472,
-0.04045451804995537,
0.03206029534339905,
0.07251480966806412,
-0.020562322810292244,
-0.004867239389568567,
-0.04465163126587868,
0.03558727726340294,
-0.0368569940328598,
0.01508667878806591,
0.06994011253118515,
0.05329274386167526,
0.014398916624486446,
0.06785919517278671,
-0.051211822777986526,
0.03678645193576813,
0.028427498415112495,
0.0029053539037704468,
0.05703134834766388,
-0.0023696930147707462,
-0.06602516025304794,
0.05622014030814171,
0.022907767444849014,
0.012520796619355679,
-0.025905704125761986,
0.023718973621726036,
0.07336128503084183,
0.028586214408278465,
0.04087775573134422,
-0.005771029274910688,
0.013005757704377174,
0.02417748235166073,
0.00717300595715642,
0.002129417145624757,
0.010916018858551979,
0.00846917275339365,
0.014487090520560741,
0.03274805471301079,
-0.03440573811531067,
0.0010669130133464932
] |
10,122 | pygments.formatter | get_style_defs |
This method must return statements or declarations suitable to define
the current style for subsequent highlighted text (e.g. CSS classes
in the `HTMLFormatter`).
The optional argument `arg` can be used to modify the generation and
is formatter dependent (it is standardized because it can be given on
the command line).
This method is called by the ``-S`` :doc:`command-line option <cmdline>`,
the `arg` is then given by the ``-a`` option.
| def get_style_defs(self, arg=''):
"""
This method must return statements or declarations suitable to define
the current style for subsequent highlighted text (e.g. CSS classes
in the `HTMLFormatter`).
The optional argument `arg` can be used to modify the generation and
is formatter dependent (it is standardized because it can be given on
the command line).
This method is called by the ``-S`` :doc:`command-line option <cmdline>`,
the `arg` is then given by the ``-a`` option.
"""
return ''
| (self, arg='') | [
-0.04349725320935249,
-0.04625841602683067,
0.00888860784471035,
-0.04575638473033905,
0.026177242398262024,
0.0026580658741295338,
-0.01478296983987093,
0.011483920738101006,
0.04044921696186066,
-0.012039738707244396,
0.0032161253038793802,
0.026231031864881516,
-0.028615670278668404,
-0.01684487611055374,
-0.035590291023254395,
-0.0214079637080431,
0.015096738003194332,
-0.01764274388551712,
0.015186386182904243,
-0.047836221754550934,
0.015625661239027977,
-0.009188929572701454,
0.03415592387318611,
-0.019901875406503677,
-0.0018265797989442945,
-0.010255741886794567,
-0.004011752083897591,
-0.038620397448539734,
-0.008884125389158726,
-0.015033984556794167,
-0.032165735960006714,
-0.03675571829080582,
-0.0579485259950161,
0.03872797638177872,
0.06408045440912247,
-0.032237451523542404,
-0.0017660673474892974,
0.052569638937711716,
0.016943488270044327,
-0.04321037977933884,
-0.02922527678310871,
0.01639663614332676,
0.02678684890270233,
-0.0018411476630717516,
-0.031233394518494606,
-0.019901875406503677,
0.03804665058851242,
-0.023720884695649147,
-0.045792244374752045,
-0.061857182532548904,
0.06512036919593811,
0.002541523426771164,
-0.022017570212483406,
-0.040054768323898315,
-0.008906537666916847,
-0.014325764961540699,
-0.02311127819120884,
0.015849782153964043,
0.032094016671180725,
-0.010291600599884987,
0.036181967705488205,
0.05561767518520355,
0.06286124140024185,
-0.015544978901743889,
0.0033461148850619793,
0.010506756603717804,
0.03958859667181969,
-0.0026154830120503902,
0.011806653812527657,
0.06096070259809494,
-0.046509429812431335,
-0.025424199178814888,
-0.01765170879662037,
-0.02375674434006214,
0.018341999500989914,
-0.01445127185434103,
-0.032811202108860016,
-0.002289388095960021,
0.012505908496677876,
0.016764191910624504,
-0.009422014467418194,
0.08728138357400894,
0.016575932502746582,
0.004238113295286894,
0.07286597043275833,
-0.053322684019804,
-0.03693501278758049,
0.02560349367558956,
0.038225945085287094,
-0.05920359864830971,
-0.029745236039161682,
0.016477318480610847,
0.003845903091132641,
0.01724829338490963,
-0.014935371465981007,
-0.008561392314732075,
-0.02225065603852272,
-0.05048980563879013,
0.006338119972497225,
-0.007848690263926983,
-0.03639712557196617,
0.07946407049894333,
0.0306058581918478,
-0.039337582886219025,
-0.0025572117883712053,
-0.04568466544151306,
-0.05163729935884476,
-0.004175359848886728,
0.013223093003034592,
-0.009466838091611862,
0.010354354046285152,
-0.022537529468536377,
0.07279425114393234,
-0.07211292535066605,
0.029332855716347694,
-0.017328975722193718,
-0.037688057869672775,
-0.00011409119906602427,
-0.002669271780177951,
0.005957115441560745,
-0.057446494698524475,
-0.04998777434229851,
0.030336912721395493,
0.029583869501948357,
-0.008175905793905258,
0.03447865694761276,
-0.08677934855222702,
0.02811364084482193,
0.05565353482961655,
0.01342928409576416,
0.06038695201277733,
-0.012299718335270882,
-0.024151194840669632,
-0.037688057869672775,
0.08147218078374863,
-0.008386578410863876,
0.005585075821727514,
0.026912355795502663,
-0.0009603551588952541,
0.047226615250110626,
0.08046812564134598,
-0.024061547592282295,
-0.02718130126595497,
-0.04647357016801834,
-0.08857231587171555,
0.03331322968006134,
0.01092810183763504,
-0.021156949922442436,
0.004495851695537567,
0.12364264577627182,
0.04428615793585777,
0.006719124503433704,
-0.010865348391234875,
0.017490342259407043,
-0.03890727087855339,
0.034335218369960785,
0.025962086394429207,
-0.023667095229029655,
0.04435787349939346,
0.016100797802209854,
0.030067969113588333,
-0.026643412187695503,
0.035267557948827744,
-0.03377940133213997,
0.0559404082596302,
0.0836237370967865,
-0.08606216311454773,
-0.019525354728102684,
0.036432985216379166,
-0.030390702188014984,
-0.008709311485290527,
-0.0025930709671229124,
-0.014585744589567184,
0.02390018105506897,
0.03483724594116211,
0.0024966993369162083,
-0.009395119734108448,
0.11668595671653748,
0.011017750017344952,
0.045469511300325394,
-0.009798536077141762,
-0.03593095391988754,
-0.031825073063373566,
-0.001726846327073872,
0.03969617560505867,
-0.010076445527374744,
0.04324623942375183,
0.0030502763111144304,
0.0032856024336069822,
-0.0042627668008208275,
0.06002835929393768,
-0.02508353628218174,
0.040054768323898315,
-0.009395119734108448,
-0.009162034839391708,
-0.03082101419568062,
-0.03214780613780022,
0.0028463269118219614,
0.01783100515604019,
-0.010201952420175076,
0.01843164674937725,
0.01712278462946415,
-0.05031050741672516,
0.021228667348623276,
0.05819953978061676,
0.02759368158876896,
0.017284151166677475,
-0.08240452408790588,
-0.09395119547843933,
0.051780737936496735,
-0.04174014925956726,
-0.04367654770612717,
-0.0001986265560844913,
0.005311649292707443,
0.04338967427611351,
-0.020852144807577133,
0.0625385046005249,
0.054613616317510605,
-0.08218936622142792,
-0.009538556449115276,
0.06045867130160332,
-0.05640657991170883,
0.05436260253190994,
0.036307476460933685,
0.01346514280885458,
-0.031645774841308594,
0.028741177171468735,
-0.019238479435443878,
0.01593046635389328,
-0.03067757561802864,
-0.012927254661917686,
-0.036038532853126526,
0.015903571620583534,
0.026840638369321823,
0.013752017170190811,
-0.03704259172081947,
0.01817166805267334,
-0.014639533124864101,
0.002649100963026285,
-0.029852813109755516,
-0.03998304903507233,
0.11152222752571106,
0.06590927392244339,
0.023792603984475136,
0.021300386637449265,
-0.00957441609352827,
0.042027026414871216,
0.016226304695010185,
-0.022860262542963028,
0.036630209535360336,
-0.056047987192869186,
-0.00010155447671422735,
-0.008408990688621998,
-0.004630323965102434,
-0.04313866049051285,
-0.014442306943237782,
-0.06863457709550858,
0.016611790284514427,
0.011188081465661526,
0.009296506643295288,
0.034729670733213425,
0.03152026981115341,
0.038943130522966385,
0.011035679839551449,
0.06149858981370926,
0.020583201199769974,
-0.02121073752641678,
-0.00029920050292275846,
-0.06042281165719032,
0.04959332197904587,
0.012380401603877544,
0.014603673480451107,
-0.017328975722193718,
0.004684112500399351,
-0.032237451523542404,
-0.017024172469973564,
-0.02133624628186226,
0.027575751766562462,
-0.02488631010055542,
0.010650193318724632,
0.03349252790212631,
-0.002324126660823822,
-0.020242538303136826,
0.05041808634996414,
0.024850450456142426,
0.0014679874293506145,
-0.0032430195715278387,
0.02212514914572239,
0.006562239956110716,
0.025119394063949585,
0.024904239922761917,
0.04970090091228485,
-0.03602060303092003,
-0.05310752987861633,
0.0954572856426239,
0.029476292431354523,
0.06070968508720398,
-0.026051735505461693,
-0.00388400349766016,
-0.0034828283824026585,
0.030641717836260796,
-0.05113527178764343,
0.008014539256691933,
0.019740508869290352,
-0.073726586997509,
0.006203647702932358,
0.018682662397623062,
-0.03363596275448799,
0.0026804779190570116,
-0.030695505440235138,
-0.044071000069379807,
0.012559697031974792,
0.011134292930364609,
0.031000308692455292,
-0.047047317028045654,
-0.06300467997789383,
-0.061785463243722916,
-0.012954149395227432,
-0.012532803229987621,
0.037688057869672775,
-0.10894035547971725,
-0.024258773773908615,
0.028131570667028427,
-0.08175905793905258,
0.05963391065597534,
0.03541099652647972,
-0.06110413745045662,
0.0316099151968956,
0.06659059971570969,
0.05239034444093704,
-0.045397792011499405,
-0.014056820422410965,
0.0029539044480770826,
0.04399928078055382,
-0.0076738763600587845,
-0.07024824619293213,
0.03580544888973236,
0.053286824375391006,
-0.06049453094601631,
-0.10062101483345032,
0.04995191469788551,
0.03679157793521881,
-0.008175905793905258,
0.0017279669409617782,
0.012299718335270882,
0.032685693353414536,
-0.00848967395722866,
0.011833547614514828,
0.025854509323835373,
-0.01697934791445732,
0.000874629186000675,
0.005163730122148991,
-0.00572851300239563,
0.09309057891368866,
0.07153917849063873,
0.05181659758090973,
0.003962445538491011,
-0.026553764939308167,
0.007230118382722139,
-0.04181186854839325,
-0.011923195794224739,
0.012523838318884373,
0.004119329620152712,
0.00948476791381836,
-0.04636599123477936,
0.053752996027469635,
-0.00829693116247654,
0.03594888374209404,
-0.012183175422251225,
0.00011430131417000666,
0.0260158758610487,
0.007682841271162033,
-0.015240175649523735,
-0.06906488537788391,
-0.00970888789743185,
0.005060634575784206,
-0.020654920488595963,
0.0061139995232224464,
-0.027288878336548805,
-0.06798911094665527,
-0.03890727087855339,
0.029655588790774345,
-0.005517839919775724,
-0.030301054939627647,
-0.02745024487376213,
-0.04625841602683067,
-0.04647357016801834,
-0.03101823851466179,
0.02660755254328251,
-0.0018277004128322005,
-0.008140046149492264,
-0.07279425114393234,
0.018915746361017227,
-0.013644439168274403,
-0.03998304903507233,
-0.06278952211141586,
0.06164202839136124,
0.059490472078323364,
0.01665661484003067,
-0.014827794395387173,
-0.0013402389595285058,
-0.028741177171468735,
0.014325764961540699,
-0.024796660989522934,
-0.03320565074682236,
-0.04600739851593971,
0.03589509427547455,
0.0579485259950161,
0.003426798153668642,
0.03858453780412674,
-0.011250834912061691,
-0.0645466223359108,
-0.0566217340528965,
0.005100976210087538,
-0.019991524517536163,
-0.004800655413419008,
0.02574693225324154,
0.03955273702740669,
-0.012084562331438065,
-0.03740118443965912,
-0.023918110877275467,
-0.05766165256500244,
0.06447490304708481,
0.11697282642126083,
0.049019575119018555,
0.030695505440235138,
-0.0348910354077816,
0.0286336001008749,
0.01690763048827648,
-0.008736206218600273,
-0.001066812314093113,
0.0187723096460104,
0.02257338911294937,
-0.05242620408535004,
0.006624993868172169,
-0.029117699712514877,
-0.015141562558710575,
-0.002516870154067874,
0.039265863597393036,
-0.015051914379000664,
0.02944043278694153,
-0.02192792296409607,
-0.020762497559189796,
0.08993496745824814,
0.01619044505059719,
-0.05282065272331238,
-0.010937066748738289,
0.026087593287229538,
0.003597129601985216,
-0.05213933065533638,
-0.06038695201277733,
0.042493194341659546,
-0.015778064727783203,
-0.013339635916054249,
0.0292969960719347,
-0.038476958870887756,
-0.030695505440235138,
0.014227151870727539,
-0.026356538757681847,
0.005499910097569227,
0.07731251418590546,
0.015894606709480286,
0.016163550317287445,
0.05450603738427162,
-0.03232710063457489,
-0.04457303136587143,
0.034926895052194595,
-0.008435885421931744,
-0.07064269483089447,
-0.06508451700210571,
0.015598767437040806,
-0.04629427194595337,
-0.06311225891113281,
-0.07021238654851913,
-0.03627161681652069,
0.0025235938373953104,
-0.038871411234140396,
-0.012972078286111355,
-0.03732946515083313,
-0.0051323529332876205,
-0.0034626575652509928,
-0.0316278450191021,
-0.03325944021344185,
0.025657283142209053,
-0.010210917331278324,
-0.0006454662652686238,
0.004220183938741684,
-0.07211292535066605,
-0.0004266688774805516,
-0.04489576444029808,
0.005665759090334177,
-0.03218366578221321,
-0.007839725352823734,
-0.043102800846099854,
0.02449185773730278,
0.008731723763048649,
0.08211764693260193,
0.0005843935068696737,
-0.040520936250686646,
-0.031036168336868286,
0.07774282246828079,
-0.08677934855222702,
-0.047298330813646317,
0.06436733156442642,
0.052641358226537704,
-0.0519958920776844,
0.010022656060755253,
0.0071135759353637695,
0.004047611262649298,
0.010228847153484821,
0.002649100963026285,
0.011699075810611248,
0.04062851518392563,
0.015598767437040806,
0.02653583511710167,
-0.030336912721395493,
-0.02831086702644825,
0.009520627558231354,
-0.00041210107156075537,
0.046724583953619,
-0.02857981063425541,
-0.002073112176731229,
-0.027217160910367966,
-0.00003563161226338707,
-0.01059640385210514,
0.042170461267232895,
0.023989828303456306,
0.0065218983218073845,
0.019632931798696518,
-0.03671985864639282,
0.019991524517536163,
0.0020988858304917812,
0.0071135759353637695,
-0.028275007382035255,
-0.01783997006714344,
0.04991605505347252,
0.028077781200408936,
0.0015184144722297788,
0.022609248757362366,
-0.03195057809352875,
0.048230674117803574,
0.014003031887114048,
0.006884973496198654,
0.00029051583260297775,
0.013115515932440758,
-0.007221153471618891,
-0.026123452931642532,
-0.04066437482833862,
0.023344362154603004,
-0.0011911989422515035,
-0.0044868867844343185,
-0.012514873407781124,
-0.008359684608876705,
0.008261071518063545,
-0.020690778270363808,
0.022483741864562035,
-0.019005395472049713,
0.02422291412949562,
0.05565353482961655,
0.02718130126595497,
0.020027384161949158,
-0.01817166805267334,
0.010309530422091484,
0.014424378052353859,
-0.03336701914668083,
0.01313344482332468,
0.021103160455822945,
0.03187886252999306,
-0.02237616293132305,
-0.037616338580846786,
0.0161366555839777,
0.0030233818106353283,
0.027468174695968628,
-0.017230363562703133,
-0.042708348482847214,
0.03428142890334129,
0.005271307658404112,
-0.037831492722034454,
0.018933676183223724,
0.02277061529457569,
0.023864321410655975,
-0.013940278440713882,
0.005006846040487289,
-0.017750320956110954,
-0.03270362317562103,
0.025191113352775574,
-0.10026242583990097,
-0.013958207331597805,
-0.006539828144013882,
0.032362960278987885,
0.01187837217003107,
0.01666557975113392,
0.02291405200958252,
-0.029906602576375008,
-0.04070023447275162,
0.033671822398900986,
0.06049453094601631,
-0.035446856170892715,
-0.046975597739219666,
-0.01882609911262989,
-0.01464849803596735,
0.04586396366357803,
0.0010774580296128988,
0.026446186006069183,
0.0029045981355011463,
0.030318984761834145,
0.09423807263374329,
-0.022161006927490234,
0.00826555397361517,
-0.02067285031080246,
-0.039732035249471664,
-0.02909976989030838,
-0.0008488553576171398,
-0.004334485158324242,
-0.03537513688206673,
0.03309807553887367,
0.016558002680540085,
0.001640559989027679,
-0.022286515682935715,
-0.008494156412780285,
0.020045312121510506,
0.040126483887434006,
0.004269490484148264,
-0.018449576571583748,
0.04812309518456459,
0.030050039291381836,
-0.030103828758001328,
-0.03786735236644745,
-0.023057488724589348,
-0.013214128091931343,
0.04356897249817848,
0.01346514280885458,
0.008467261679470539,
-0.046903882175683975,
0.02725301869213581,
0.09380776435136795,
0.0021616395097225904,
0.020457694306969643,
-0.02298576943576336,
-0.006409838330000639,
0.030641717836260796,
0.018844028934836388,
0.024455998092889786,
-0.0015979772433638573,
0.015096738003194332,
-0.005526804830878973,
-0.01896953582763672,
0.005862985271960497,
0.05292823165655136,
0.00015184145013336092,
0.024527717381715775,
0.0024518752470612526,
0.0013850629329681396,
-0.0012393848737701774,
-0.041632574051618576,
0.04127398133277893,
-0.05898844450712204,
-0.023129208013415337,
-0.0027768495492637157,
-0.036576420068740845,
0.009735782630741596,
0.04640185087919235,
-0.01797444187104702,
0.013536861166357994,
-0.06723606586456299,
-0.03397662565112114,
-0.0035455820616334677,
0.022555459290742874,
0.007776971906423569,
0.053035810589790344,
-0.0019162279786542058,
0.020421834662556648,
-0.03067757561802864,
-0.03869211673736572,
-0.05479291081428528,
-0.003823491046205163,
0.055868688970804214,
-0.01060536876320839,
0.05536666139960289,
-0.04206288233399391,
-0.030767224729061127,
0.015607732348144054,
-0.052569638937711716,
-0.006486039143055677,
0.044142719358205795,
0.04668872430920601,
-0.017893759533762932,
-0.03530341759324074,
0.04428615793585777,
0.022878192365169525,
-0.09438151121139526,
-0.004984433762729168,
0.013841665349900723,
0.003682295326143503,
0.045326072722673416,
-0.0004356337012723088,
-0.08068328350782394,
-0.07953578233718872,
0.02377467416226864,
-0.048947855830192566,
0.05239034444093704,
0.04489576444029808,
0.002052941359579563,
0.03028312511742115,
0.003213884076103568,
-0.005208554212003946,
0.0414891354739666,
-0.011035679839551449,
-0.009395119734108448,
-0.003774184500798583,
-0.02219686657190323,
0.026571694761514664,
0.047441769391298294,
0.07168260961771011,
-0.01758895441889763,
-0.07297354191541672,
0.04661700502038002,
0.0059257387183606625,
-0.008960326202213764,
-0.007055304478853941,
-0.02318299561738968,
-0.0020473382901400328,
0.03451451286673546,
0.0011497368104755878,
-0.006907385308295488,
0.012380401603877544,
-0.03652263060212135,
-0.014908477663993835,
-0.0032430195715278387,
-0.04482404515147209,
-0.0043479325249791145,
-0.008036951534450054,
0.004863408859819174,
0.01666557975113392,
-0.011017750017344952,
0.012891395017504692,
0.043031081557273865,
0.004231389611959457,
-0.02560349367558956,
-0.03646884113550186,
-0.0299603920429945,
-0.002758919959887862,
-0.0711088627576828,
0.05393229052424431,
-0.03476553037762642,
0.007817313075065613,
-0.006154341157525778,
0.01280174683779478,
0.026822708547115326,
0.030103828758001328,
0.02422291412949562,
-0.005665759090334177,
0.005154765211045742,
-0.02606966532766819,
-0.00656672241166234,
-0.019453635439276695,
0.0013503243681043386,
-0.014056820422410965,
0.008386578410863876,
0.03641505539417267,
0.04095124825835228,
-0.009260647930204868,
0.00840002577751875,
0.008583804592490196,
0.07867516577243805,
-0.013501002453267574,
-0.009628204628825188,
0.009341331198811531
] |
10,123 | pygments.formatters.html | HtmlFormatter |
Format tokens as HTML 4 ``<span>`` tags. By default, the content is enclosed
in a ``<pre>`` tag, itself wrapped in a ``<div>`` tag (but see the `nowrap` option).
The ``<div>``'s CSS class can be set by the `cssclass` option.
If the `linenos` option is set to ``"table"``, the ``<pre>`` is
additionally wrapped inside a ``<table>`` which has one row and two
cells: one containing the line numbers and one containing the code.
Example:
.. sourcecode:: html
<div class="highlight" >
<table><tr>
<td class="linenos" title="click to toggle"
onclick="with (this.firstChild.style)
{ display = (display == '') ? 'none' : '' }">
<pre>1
2</pre>
</td>
<td class="code">
<pre><span class="Ke">def </span><span class="NaFu">foo</span>(bar):
<span class="Ke">pass</span>
</pre>
</td>
</tr></table></div>
(whitespace added to improve clarity).
A list of lines can be specified using the `hl_lines` option to make these
lines highlighted (as of Pygments 0.11).
With the `full` option, a complete HTML 4 document is output, including
the style definitions inside a ``<style>`` tag, or in a separate file if
the `cssfile` option is given.
When `tagsfile` is set to the path of a ctags index file, it is used to
generate hyperlinks from names to their definition. You must enable
`lineanchors` and run ctags with the `-n` option for this to work. The
`python-ctags` module from PyPI must be installed to use this feature;
otherwise a `RuntimeError` will be raised.
The `get_style_defs(arg='')` method of a `HtmlFormatter` returns a string
containing CSS rules for the CSS classes used by the formatter. The
argument `arg` can be used to specify additional CSS selectors that
are prepended to the classes. A call `fmter.get_style_defs('td .code')`
would result in the following CSS classes:
.. sourcecode:: css
td .code .kw { font-weight: bold; color: #00FF00 }
td .code .cm { color: #999999 }
...
If you have Pygments 0.6 or higher, you can also pass a list or tuple to the
`get_style_defs()` method to request multiple prefixes for the tokens:
.. sourcecode:: python
formatter.get_style_defs(['div.syntax pre', 'pre.syntax'])
The output would then look like this:
.. sourcecode:: css
div.syntax pre .kw,
pre.syntax .kw { font-weight: bold; color: #00FF00 }
div.syntax pre .cm,
pre.syntax .cm { color: #999999 }
...
Additional options accepted:
`nowrap`
If set to ``True``, don't add a ``<pre>`` and a ``<div>`` tag
around the tokens. This disables most other options (default: ``False``).
`full`
Tells the formatter to output a "full" document, i.e. a complete
self-contained document (default: ``False``).
`title`
If `full` is true, the title that should be used to caption the
document (default: ``''``).
`style`
The style to use, can be a string or a Style subclass (default:
``'default'``). This option has no effect if the `cssfile`
and `noclobber_cssfile` option are given and the file specified in
`cssfile` exists.
`noclasses`
If set to true, token ``<span>`` tags (as well as line number elements)
will not use CSS classes, but inline styles. This is not recommended
for larger pieces of code since it increases output size by quite a bit
(default: ``False``).
`classprefix`
Since the token types use relatively short class names, they may clash
with some of your own class names. In this case you can use the
`classprefix` option to give a string to prepend to all Pygments-generated
CSS class names for token types.
Note that this option also affects the output of `get_style_defs()`.
`cssclass`
CSS class for the wrapping ``<div>`` tag (default: ``'highlight'``).
If you set this option, the default selector for `get_style_defs()`
will be this class.
.. versionadded:: 0.9
If you select the ``'table'`` line numbers, the wrapping table will
have a CSS class of this string plus ``'table'``, the default is
accordingly ``'highlighttable'``.
`cssstyles`
Inline CSS styles for the wrapping ``<div>`` tag (default: ``''``).
`prestyles`
Inline CSS styles for the ``<pre>`` tag (default: ``''``).
.. versionadded:: 0.11
`cssfile`
If the `full` option is true and this option is given, it must be the
name of an external file. If the filename does not include an absolute
path, the file's path will be assumed to be relative to the main output
file's path, if the latter can be found. The stylesheet is then written
to this file instead of the HTML file.
.. versionadded:: 0.6
`noclobber_cssfile`
If `cssfile` is given and the specified file exists, the css file will
not be overwritten. This allows the use of the `full` option in
combination with a user specified css file. Default is ``False``.
.. versionadded:: 1.1
`linenos`
If set to ``'table'``, output line numbers as a table with two cells,
one containing the line numbers, the other the whole code. This is
copy-and-paste-friendly, but may cause alignment problems with some
browsers or fonts. If set to ``'inline'``, the line numbers will be
integrated in the ``<pre>`` tag that contains the code (that setting
is *new in Pygments 0.8*).
For compatibility with Pygments 0.7 and earlier, every true value
except ``'inline'`` means the same as ``'table'`` (in particular, that
means also ``True``).
The default value is ``False``, which means no line numbers at all.
**Note:** with the default ("table") line number mechanism, the line
numbers and code can have different line heights in Internet Explorer
unless you give the enclosing ``<pre>`` tags an explicit ``line-height``
CSS property (you get the default line spacing with ``line-height:
125%``).
`hl_lines`
Specify a list of lines to be highlighted. The line numbers are always
relative to the input (i.e. the first line is line 1) and are
independent of `linenostart`.
.. versionadded:: 0.11
`linenostart`
The line number for the first line (default: ``1``).
`linenostep`
If set to a number n > 1, only every nth line number is printed.
`linenospecial`
If set to a number n > 0, every nth line number is given the CSS
class ``"special"`` (default: ``0``).
`nobackground`
If set to ``True``, the formatter won't output the background color
for the wrapping element (this automatically defaults to ``False``
when there is no wrapping element [eg: no argument for the
`get_syntax_defs` method given]) (default: ``False``).
.. versionadded:: 0.6
`lineseparator`
This string is output between lines of code. It defaults to ``"\n"``,
which is enough to break a line inside ``<pre>`` tags, but you can
e.g. set it to ``"<br>"`` to get HTML line breaks.
.. versionadded:: 0.7
`lineanchors`
If set to a nonempty string, e.g. ``foo``, the formatter will wrap each
output line in an anchor tag with an ``id`` (and `name`) of ``foo-linenumber``.
This allows easy linking to certain lines.
.. versionadded:: 0.9
`linespans`
If set to a nonempty string, e.g. ``foo``, the formatter will wrap each
output line in a span tag with an ``id`` of ``foo-linenumber``.
This allows easy access to lines via javascript.
.. versionadded:: 1.6
`anchorlinenos`
If set to `True`, will wrap line numbers in <a> tags. Used in
combination with `linenos` and `lineanchors`.
`tagsfile`
If set to the path of a ctags file, wrap names in anchor tags that
link to their definitions. `lineanchors` should be used, and the
tags file should specify line numbers (see the `-n` option to ctags).
The tags file is assumed to be encoded in UTF-8.
.. versionadded:: 1.6
`tagurlformat`
A string formatting pattern used to generate links to ctags definitions.
Available variables are `%(path)s`, `%(fname)s` and `%(fext)s`.
Defaults to an empty string, resulting in just `#prefix-number` links.
.. versionadded:: 1.6
`filename`
A string used to generate a filename when rendering ``<pre>`` blocks,
for example if displaying source code. If `linenos` is set to
``'table'`` then the filename will be rendered in an initial row
containing a single `<th>` which spans both columns.
.. versionadded:: 2.1
`wrapcode`
Wrap the code inside ``<pre>`` blocks using ``<code>``, as recommended
by the HTML5 specification.
.. versionadded:: 2.4
`debug_token_types`
Add ``title`` attributes to all token ``<span>`` tags that show the
name of the token.
.. versionadded:: 2.10
**Subclassing the HTML formatter**
.. versionadded:: 0.7
The HTML formatter is now built in a way that allows easy subclassing, thus
customizing the output HTML code. The `format()` method calls
`self._format_lines()` which returns a generator that yields tuples of ``(1,
line)``, where the ``1`` indicates that the ``line`` is a line of the
formatted source code.
If the `nowrap` option is set, the generator is the iterated over and the
resulting HTML is output.
Otherwise, `format()` calls `self.wrap()`, which wraps the generator with
other generators. These may add some HTML code to the one generated by
`_format_lines()`, either by modifying the lines generated by the latter,
then yielding them again with ``(1, line)``, and/or by yielding other HTML
code before or after the lines, with ``(0, html)``. The distinction between
source lines and other code makes it possible to wrap the generator multiple
times.
The default `wrap()` implementation adds a ``<div>`` and a ``<pre>`` tag.
A custom `HtmlFormatter` subclass could look like this:
.. sourcecode:: python
class CodeHtmlFormatter(HtmlFormatter):
def wrap(self, source, *, include_div):
return self._wrap_code(source)
def _wrap_code(self, source):
yield 0, '<code>'
for i, t in source:
if i == 1:
# it's a line of formatted code
t += '<br>'
yield i, t
yield 0, '</code>'
This results in wrapping the formatted lines with a ``<code>`` tag, where the
source lines are broken using ``<br>`` tags.
After calling `wrap()`, the `format()` method also adds the "line numbers"
and/or "full document" wrappers if the respective options are set. Then, all
HTML yielded by the wrapped generator is output.
| class HtmlFormatter(Formatter):
r"""
Format tokens as HTML 4 ``<span>`` tags. By default, the content is enclosed
in a ``<pre>`` tag, itself wrapped in a ``<div>`` tag (but see the `nowrap` option).
The ``<div>``'s CSS class can be set by the `cssclass` option.
If the `linenos` option is set to ``"table"``, the ``<pre>`` is
additionally wrapped inside a ``<table>`` which has one row and two
cells: one containing the line numbers and one containing the code.
Example:
.. sourcecode:: html
<div class="highlight" >
<table><tr>
<td class="linenos" title="click to toggle"
onclick="with (this.firstChild.style)
{ display = (display == '') ? 'none' : '' }">
<pre>1
2</pre>
</td>
<td class="code">
<pre><span class="Ke">def </span><span class="NaFu">foo</span>(bar):
<span class="Ke">pass</span>
</pre>
</td>
</tr></table></div>
(whitespace added to improve clarity).
A list of lines can be specified using the `hl_lines` option to make these
lines highlighted (as of Pygments 0.11).
With the `full` option, a complete HTML 4 document is output, including
the style definitions inside a ``<style>`` tag, or in a separate file if
the `cssfile` option is given.
When `tagsfile` is set to the path of a ctags index file, it is used to
generate hyperlinks from names to their definition. You must enable
`lineanchors` and run ctags with the `-n` option for this to work. The
`python-ctags` module from PyPI must be installed to use this feature;
otherwise a `RuntimeError` will be raised.
The `get_style_defs(arg='')` method of a `HtmlFormatter` returns a string
containing CSS rules for the CSS classes used by the formatter. The
argument `arg` can be used to specify additional CSS selectors that
are prepended to the classes. A call `fmter.get_style_defs('td .code')`
would result in the following CSS classes:
.. sourcecode:: css
td .code .kw { font-weight: bold; color: #00FF00 }
td .code .cm { color: #999999 }
...
If you have Pygments 0.6 or higher, you can also pass a list or tuple to the
`get_style_defs()` method to request multiple prefixes for the tokens:
.. sourcecode:: python
formatter.get_style_defs(['div.syntax pre', 'pre.syntax'])
The output would then look like this:
.. sourcecode:: css
div.syntax pre .kw,
pre.syntax .kw { font-weight: bold; color: #00FF00 }
div.syntax pre .cm,
pre.syntax .cm { color: #999999 }
...
Additional options accepted:
`nowrap`
If set to ``True``, don't add a ``<pre>`` and a ``<div>`` tag
around the tokens. This disables most other options (default: ``False``).
`full`
Tells the formatter to output a "full" document, i.e. a complete
self-contained document (default: ``False``).
`title`
If `full` is true, the title that should be used to caption the
document (default: ``''``).
`style`
The style to use, can be a string or a Style subclass (default:
``'default'``). This option has no effect if the `cssfile`
and `noclobber_cssfile` option are given and the file specified in
`cssfile` exists.
`noclasses`
If set to true, token ``<span>`` tags (as well as line number elements)
will not use CSS classes, but inline styles. This is not recommended
for larger pieces of code since it increases output size by quite a bit
(default: ``False``).
`classprefix`
Since the token types use relatively short class names, they may clash
with some of your own class names. In this case you can use the
`classprefix` option to give a string to prepend to all Pygments-generated
CSS class names for token types.
Note that this option also affects the output of `get_style_defs()`.
`cssclass`
CSS class for the wrapping ``<div>`` tag (default: ``'highlight'``).
If you set this option, the default selector for `get_style_defs()`
will be this class.
.. versionadded:: 0.9
If you select the ``'table'`` line numbers, the wrapping table will
have a CSS class of this string plus ``'table'``, the default is
accordingly ``'highlighttable'``.
`cssstyles`
Inline CSS styles for the wrapping ``<div>`` tag (default: ``''``).
`prestyles`
Inline CSS styles for the ``<pre>`` tag (default: ``''``).
.. versionadded:: 0.11
`cssfile`
If the `full` option is true and this option is given, it must be the
name of an external file. If the filename does not include an absolute
path, the file's path will be assumed to be relative to the main output
file's path, if the latter can be found. The stylesheet is then written
to this file instead of the HTML file.
.. versionadded:: 0.6
`noclobber_cssfile`
If `cssfile` is given and the specified file exists, the css file will
not be overwritten. This allows the use of the `full` option in
combination with a user specified css file. Default is ``False``.
.. versionadded:: 1.1
`linenos`
If set to ``'table'``, output line numbers as a table with two cells,
one containing the line numbers, the other the whole code. This is
copy-and-paste-friendly, but may cause alignment problems with some
browsers or fonts. If set to ``'inline'``, the line numbers will be
integrated in the ``<pre>`` tag that contains the code (that setting
is *new in Pygments 0.8*).
For compatibility with Pygments 0.7 and earlier, every true value
except ``'inline'`` means the same as ``'table'`` (in particular, that
means also ``True``).
The default value is ``False``, which means no line numbers at all.
**Note:** with the default ("table") line number mechanism, the line
numbers and code can have different line heights in Internet Explorer
unless you give the enclosing ``<pre>`` tags an explicit ``line-height``
CSS property (you get the default line spacing with ``line-height:
125%``).
`hl_lines`
Specify a list of lines to be highlighted. The line numbers are always
relative to the input (i.e. the first line is line 1) and are
independent of `linenostart`.
.. versionadded:: 0.11
`linenostart`
The line number for the first line (default: ``1``).
`linenostep`
If set to a number n > 1, only every nth line number is printed.
`linenospecial`
If set to a number n > 0, every nth line number is given the CSS
class ``"special"`` (default: ``0``).
`nobackground`
If set to ``True``, the formatter won't output the background color
for the wrapping element (this automatically defaults to ``False``
when there is no wrapping element [eg: no argument for the
`get_syntax_defs` method given]) (default: ``False``).
.. versionadded:: 0.6
`lineseparator`
This string is output between lines of code. It defaults to ``"\n"``,
which is enough to break a line inside ``<pre>`` tags, but you can
e.g. set it to ``"<br>"`` to get HTML line breaks.
.. versionadded:: 0.7
`lineanchors`
If set to a nonempty string, e.g. ``foo``, the formatter will wrap each
output line in an anchor tag with an ``id`` (and `name`) of ``foo-linenumber``.
This allows easy linking to certain lines.
.. versionadded:: 0.9
`linespans`
If set to a nonempty string, e.g. ``foo``, the formatter will wrap each
output line in a span tag with an ``id`` of ``foo-linenumber``.
This allows easy access to lines via javascript.
.. versionadded:: 1.6
`anchorlinenos`
If set to `True`, will wrap line numbers in <a> tags. Used in
| (**options) | [
0.010795585811138153,
-0.04226493462920189,
0.03955536708235741,
-0.00030219240579754114,
0.052740491926670074,
-0.0026362244971096516,
-0.04702267050743103,
0.002670894144102931,
-0.019756348803639412,
0.020353732630610466,
-0.010907595977187157,
-0.03140534088015556,
0.012673079036176205,
-0.01059823576360941,
0.0020881779491901398,
-0.01531863771378994,
-0.009062104858458042,
-0.06080517917871475,
0.021548502147197723,
-0.03027457930147648,
-0.020961785688996315,
-0.01718546450138092,
0.0359283946454525,
0.011115613393485546,
0.024556757882237434,
-0.024919455870985985,
-0.0036589782685041428,
-0.03127732872962952,
-0.01487059984356165,
-0.03789122775197029,
0.010747581720352173,
-0.024599429219961166,
-0.05423395335674286,
-0.012822424992918968,
0.04066479578614235,
-0.08632201701402664,
-0.024023380130529404,
0.027202317491173744,
0.037571199238300323,
0.007547309622168541,
-0.048345450311899185,
-0.00005637980211758986,
-0.012715749442577362,
-0.02713831141591072,
-0.021015122532844543,
0.026903623715043068,
0.06443215161561966,
0.017441485077142715,
-0.032322753220796585,
-0.06835782527923584,
0.042734306305646896,
-0.008459387347102165,
-0.005277782678604126,
-0.02235923707485199,
-0.04557188227772713,
-0.0410274937748909,
0.009835503995418549,
0.020183052867650986,
0.019756348803639412,
-0.0230632983148098,
0.003762987209483981,
0.07032065838575363,
0.06737640500068665,
0.043950408697128296,
-0.002018838655203581,
0.014369224198162556,
0.07224082201719284,
0.029378501698374748,
-0.012939768843352795,
0.021932534873485565,
-0.012886431068181992,
-0.01083825621753931,
0.02199654094874859,
0.00961148552596569,
0.014667916111648083,
0.008160695433616638,
-0.08286572247743607,
0.03769921138882637,
-0.012257044203579426,
0.025794196873903275,
0.03292013704776764,
0.05333787575364113,
0.057135533541440964,
-0.0019214969361200929,
0.06946724653244019,
-0.07044866681098938,
0.01116895116865635,
0.03168269991874695,
0.024556757882237434,
0.012097029946744442,
-0.025303488597273827,
0.022060545161366463,
-0.012321049347519875,
-0.04578523337841034,
-0.06878452748060226,
-0.01331313420087099,
0.03309081867337227,
-0.01935098133981228,
-0.005648481193929911,
-0.008432717993855476,
0.06959526240825653,
0.0524417981505394,
0.005037762224674225,
-0.024002043530344963,
-0.026732943952083588,
-0.016780095174908638,
-0.062426649034023285,
0.049753569066524506,
0.03712316229939461,
0.015542657114565372,
0.009302125312387943,
-0.07121673226356506,
0.03701648488640785,
-0.04983891174197197,
0.05675150081515312,
-0.05730621516704559,
-0.06976594030857086,
0.053081855177879333,
-0.005157772451639175,
-0.007189945783466101,
-0.010768917389214039,
-0.07061934471130371,
-0.03712316229939461,
-0.003176270518451929,
-0.05158839374780655,
-0.0011220956221222878,
-0.01857224851846695,
0.015073283575475216,
0.06003711372613907,
-0.021953869611024857,
0.03368820250034332,
0.030573271214962006,
0.0027162313926965,
-0.04497449845075607,
0.0648161843419075,
-0.0080700209364295,
-0.053423214703798294,
0.014411893673241138,
-0.009046103805303574,
0.043075669556856155,
0.08508457988500595,
-0.03554436191916466,
-0.024258065968751907,
-0.04813209921121597,
-0.0888395681977272,
0.01900961808860302,
0.02449275180697441,
0.03313348814845085,
0.0005433796322904527,
0.05760490521788597,
0.04309700429439545,
-0.025858202949166298,
0.08196964859962463,
0.03874463215470314,
0.007003263104707003,
0.03328283503651619,
0.011254291981458664,
-0.040430109947919846,
0.04328902065753937,
0.010843589901924133,
0.061402563005685806,
-0.004085681401193142,
0.09387466311454773,
-0.012182370759546757,
0.014230545610189438,
0.0905463770031929,
-0.06468817591667175,
-0.03678179904818535,
-0.020983120426535606,
-0.016673419624567032,
0.005787159316241741,
0.021473828703165054,
-0.01453990489244461,
0.05551405996084213,
-0.011392970569431782,
0.016737425699830055,
-0.02519681304693222,
0.08452986925840378,
-0.008102023042738438,
0.0035016315523535013,
-0.024791445583105087,
0.0091047752648592,
-0.009974182583391666,
0.005941839423030615,
0.003458961145952344,
0.011702329851686954,
0.057135533541440964,
-0.07010730355978012,
0.03983272612094879,
-0.008651403710246086,
0.056794170290231705,
-0.061743926256895065,
0.021004455164074898,
-0.059610411524772644,
-0.016342725604772568,
-0.0025455502327531576,
-0.022508583962917328,
-0.030231907963752747,
0.054489973932504654,
-0.034093569964170456,
-0.010763583704829216,
0.051503054797649384,
-0.030679946765303612,
0.004477714654058218,
-0.005675150081515312,
0.040771473199129105,
-0.02835441567003727,
0.016769427806138992,
-0.030231907963752747,
0.042712971568107605,
-0.005013760179281235,
-0.07894005626440048,
-0.009062104858458042,
0.0728382021188736,
0.02070576325058937,
-0.058757003396749496,
0.0297411996871233,
0.05453264340758324,
-0.08086021989583969,
0.0003836993419099599,
0.08017749339342117,
-0.00016434733697678894,
-0.007323290221393108,
-0.018177548423409462,
0.0202683936804533,
-0.03464828431606293,
0.04565722122788429,
-0.015179959125816822,
0.030210573226213455,
-0.07667852938175201,
0.008267370983958244,
-0.04454779252409935,
-0.039875395596027374,
0.05969575047492981,
-0.029314497485756874,
-0.056623488664627075,
0.059098366647958755,
0.0003490297240205109,
-0.04723602160811424,
-0.02713831141591072,
-0.00429636612534523,
0.05918370559811592,
0.08615133911371231,
-0.03748586028814316,
0.00832604244351387,
0.01178767066448927,
0.04211558774113655,
0.020599087700247765,
-0.024343406781554222,
0.01583068072795868,
-0.04299032688140869,
0.0009194116573780775,
0.011873011477291584,
0.01558532752096653,
-0.006800579372793436,
0.006283201742917299,
-0.014123869128525257,
0.020108379423618317,
0.010987602174282074,
-0.006133855786174536,
-0.027949046343564987,
-0.06182926520705223,
0.041454195976257324,
0.039512697607278824,
0.05410594120621681,
0.009062104858458042,
-0.01363316085189581,
-0.018796266987919807,
-0.00981950294226408,
0.0007693988736718893,
-0.05269782245159149,
0.02660493180155754,
-0.004056345671415329,
-0.01963900588452816,
-0.027863705530762672,
-0.04196624085307121,
-0.014753256924450397,
0.03541634976863861,
-0.0546179860830307,
0.02643425203859806,
-0.009398133493959904,
-0.03571504354476929,
-0.029314497485756874,
-0.01891360990703106,
0.045187849551439285,
-0.011841008439660072,
-0.03780588507652283,
0.0021348483860492706,
0.012833093293011189,
-0.016470735892653465,
0.030679946765303612,
0.020577752962708473,
-0.007067268714308739,
-0.019969699904322624,
0.09131444245576859,
-0.00072606181493029,
0.019948365166783333,
0.018124209716916084,
-0.04471847414970398,
-0.020236389711499214,
-0.026668937876820564,
-0.03411490470170975,
0.11657526344060898,
-0.01366516388952732,
-0.020673761144280434,
0.00403501046821475,
0.037272509187459946,
-0.022060545161366463,
0.01471058651804924,
-0.04213692247867584,
0.015617329627275467,
0.05018027499318123,
-0.004365704953670502,
-0.046425286680459976,
-0.047620054334402084,
-0.03588572144508362,
-0.007109938655048609,
0.014817262068390846,
0.01813487708568573,
0.03464828431606293,
-0.06605362892150879,
-0.03889397904276848,
-0.00427236407995224,
-0.028823787346482277,
0.07066202163696289,
-0.006181859876960516,
0.033005475997924805,
0.008870088495314121,
-0.014550572261214256,
0.008411383256316185,
0.0022521917708218098,
-0.04433444142341614,
0.0027709025889635086,
0.005941839423030615,
-0.05372190847992897,
-0.10061656683683395,
-0.0042883651331067085,
0.03330416977405548,
-0.05158839374780655,
-0.07659319043159485,
0.035672370344400406,
0.012043692171573639,
-0.02869577705860138,
-0.019649673253297806,
-0.028759783133864403,
-0.004987091291695833,
0.005691151134669781,
0.02466343343257904,
0.029719864949584007,
0.045017167925834656,
0.01714279316365719,
0.02643425203859806,
0.022615259513258934,
0.05039362609386444,
0.04390773922204971,
-0.060293134301900864,
0.02641291543841362,
-0.028653107583522797,
-0.021644510328769684,
-0.023468665778636932,
-0.028567766770720482,
0.04399308189749718,
-0.002682895166799426,
0.017121458426117897,
-0.011606321670114994,
0.016929442062973976,
-0.028034387156367302,
0.010176866315305233,
0.007632649969309568,
0.013494482263922691,
0.01663075014948845,
0.011040939949452877,
0.0028162398375570774,
-0.03823259100317955,
0.012395722791552544,
0.001198768732137978,
-0.0045443871058523655,
0.015265299938619137,
-0.04877215251326561,
-0.04311833903193474,
0.005349788814783096,
0.05965308099985123,
0.04239294305443764,
-0.02534615807235241,
-0.04471847414970398,
-0.01825222186744213,
-0.012150367721915245,
-0.035992398858070374,
0.005595143418759108,
-0.0223379023373127,
-0.04672398045659065,
-0.04072880372405052,
0.02158050425350666,
-0.002472210442647338,
-0.07633716613054276,
-0.012022357434034348,
0.009782166220247746,
0.02835441567003727,
0.03825392574071884,
-0.05730621516704559,
0.05862899497151375,
0.0028562431689351797,
0.028589101508259773,
-0.0016508072149008512,
0.0005110435304231942,
-0.027244986966252327,
0.0563247986137867,
0.03808324411511421,
0.000015042947779875249,
0.016246717423200607,
-0.014102534390985966,
-0.04736403375864029,
-0.05641013756394386,
0.027757029980421066,
0.013089114800095558,
-0.005365790333598852,
0.03590705990791321,
0.02745833806693554,
-0.048174768686294556,
-0.03223741054534912,
-0.04228626936674118,
-0.0006900587468408048,
0.043950408697128296,
0.04264896735548973,
0.019212303683161736,
-0.016993448138237,
-0.05018027499318123,
-0.010907595977187157,
-0.0009947513462975621,
0.005432462785393,
0.01910562627017498,
-0.04638261720538139,
0.05615411698818207,
0.0012014356907457113,
-0.028034387156367302,
-0.03947002813220024,
-0.03735784813761711,
-0.002470877021551132,
0.06502953916788101,
-0.03959804028272629,
0.006181859876960516,
-0.02816239930689335,
0.02019372023642063,
0.03343218192458153,
0.03099997341632843,
-0.025580845773220062,
0.001186767709441483,
0.042883653193712234,
-0.026818284764885902,
-0.03782721981406212,
-0.020385736599564552,
0.04732136428356171,
-0.044633135199546814,
-0.02517547830939293,
0.003400289686396718,
-0.05056430771946907,
-0.010704911313951015,
0.025644849985837936,
0.03697381541132927,
0.053807247430086136,
0.017036117613315582,
0.026860954239964485,
0.022572588175535202,
0.047620054334402084,
-0.036035068333148956,
-0.02922915667295456,
0.02515414170920849,
0.006128522101789713,
-0.05602610483765602,
-0.05282583087682724,
0.008352711796760559,
-0.005293784197419882,
-0.07373427599668503,
0.002054841723293066,
-0.027607684955000877,
0.058927685022354126,
-0.017196131870150566,
-0.08773013949394226,
-0.0716007649898529,
-0.02112179808318615,
-0.025218147784471512,
-0.02287128195166588,
-0.032834798097610474,
-0.03469095379114151,
-0.00013934519665781409,
0.011083610355854034,
0.07326490432024002,
-0.059439729899168015,
0.047108013182878494,
-0.0546179860830307,
-0.02058842033147812,
-0.005936505738645792,
-0.009499475359916687,
-0.014102534390985966,
0.007942009717226028,
0.027543678879737854,
0.041283514350652695,
-0.03010389767587185,
-0.02464209869503975,
-0.02978386916220188,
0.04608392342925072,
-0.036568447947502136,
-0.004405708517879248,
0.0492841973900795,
0.0844871923327446,
0.027052970603108406,
0.06392011046409607,
0.06793111562728882,
-0.011275626718997955,
-0.0234259944409132,
-0.048516131937503815,
-0.0061551909893751144,
0.0733075737953186,
0.018444238230586052,
-0.03298414126038551,
-0.03646177053451538,
-0.041496869176626205,
0.014155872166156769,
0.025111472234129906,
0.06413346529006958,
0.007296621333807707,
0.0030509266071021557,
0.009542145766317844,
-0.027949046343564987,
-0.049070846289396286,
0.10300610959529877,
0.023468665778636932,
0.03157602250576019,
-0.021644510328769684,
-0.0032962807454168797,
0.010011519305408001,
-0.033709537237882614,
0.00009050771041074768,
-0.02713831141591072,
-0.025751527398824692,
0.03415757417678833,
-0.010550231672823429,
-0.0031095980666577816,
0.10036054998636246,
0.007931342348456383,
0.005141771398484707,
0.02116446942090988,
-0.049241527915000916,
-0.0015067949425429106,
0.013558488339185715,
-0.0038749966770410538,
0.00362964253872633,
-0.016993448138237,
0.004021675791591406,
0.02816239930689335,
0.0383605994284153,
-0.02709564007818699,
0.0490281768143177,
0.01998036913573742,
0.038125913590192795,
0.03260010853409767,
0.0018868274055421352,
0.03454160690307617,
0.09822703152894974,
0.037869893014431,
0.05457531288266182,
0.0483027808368206,
-0.01551065407693386,
-0.06199994683265686,
-0.004784407559782267,
0.030509265139698982,
0.006491219624876976,
0.03097863867878914,
-0.04949754849076271,
-0.012523733079433441,
0.00393366813659668,
0.012395722791552544,
0.00880074966698885,
0.006635231897234917,
-0.03296280652284622,
0.07010730355978012,
-0.03099997341632843,
0.03799790143966675,
-0.011552983894944191,
-0.007995347492396832,
-0.0058404975570738316,
0.015809345990419388,
-0.0016774762189015746,
-0.039342015981674194,
-0.004741737153381109,
0.018614917993545532,
-0.09353329986333847,
-0.006891253404319286,
0.010976934805512428,
0.03415757417678833,
0.0008554061641916633,
-0.028418419882655144,
-0.007664652541279793,
-0.01269441470503807,
0.027244986966252327,
0.06413346529006958,
0.03362419828772545,
-0.00986750703305006,
0.00256155151873827,
-0.008043351583182812,
-0.012043692171573639,
-0.019286975264549255,
-0.06417613476514816,
-0.01823088526725769,
0.039726048707962036,
-0.010235538706183434,
0.10095793008804321,
-0.025794196873903275,
-0.01425188034772873,
-0.034797631204128265,
-0.02017238549888134,
0.024727439507842064,
-0.02833307906985283,
-0.0038643290754407644,
-0.061701253056526184,
0.01983102224767208,
0.02131381444633007,
0.005333787761628628,
-0.010427555069327354,
-0.050094932317733765,
0.03718716651201248,
0.021665845066308975,
-0.0072646187618374825,
0.010358215309679508,
0.03262144327163696,
0.013131785206496716,
-0.02626357041299343,
-0.03328283503651619,
-0.013057111762464046,
0.019671007990837097,
0.019820354878902435,
0.039704713970422745,
-0.022785941138863564,
-0.005232445430010557,
0.00519510917365551,
0.04185956344008446,
0.023319318890571594,
-0.007536641787737608,
-0.006917922291904688,
0.00965948961675167,
-0.018732262775301933,
-0.06908321380615234,
-0.016449401155114174,
-0.014998611062765121,
-0.017921525985002518,
-0.03358152508735657,
0.006037847604602575,
-0.004955088719725609,
0.043737057596445084,
0.03501098230481148,
0.030893297865986824,
0.006779244169592857,
-0.004152353852987289,
-0.03887264430522919,
-0.06737640500068665,
0.03157602250576019,
-0.021111130714416504,
-0.014123869128525257,
0.01944698952138424,
-0.006645899266004562,
0.00858206395059824,
0.020833773538470268,
-0.01834823004901409,
0.013099782168865204,
-0.002930916380137205,
-0.005229778587818146,
0.01840156689286232,
0.03580038249492645,
0.057178203016519547,
0.028269074857234955,
-0.03541634976863861,
0.04203024506568909,
-0.025772862136363983,
-0.028930464759469032,
-0.028674442321062088,
-0.04318234324455261,
0.050478965044021606,
-0.0031042643822729588,
0.0047204019501805305,
-0.05466065555810928,
-0.018540246412158012,
0.0704059973359108,
0.00744596729055047,
0.0016268051695078611,
-0.013195790350437164,
0.06801646202802658,
-0.01088626030832529,
-0.052740491926670074,
0.02410871908068657,
-0.022828610613942146,
-0.0577755868434906,
0.025303488597273827,
-0.00014067864685785025,
-0.0192976426333189,
-0.025644849985837936,
0.02043907344341278,
-0.028119727969169617,
-0.09506943076848984,
-0.016961444169282913,
-0.03648310899734497,
0.03537368029356003,
0.012225041165947914,
0.026711607351899147,
0.009856839664280415,
-0.024364741519093513,
0.041326187551021576,
0.029485177248716354,
-0.023511335253715515,
-0.025303488597273827,
-0.02534615807235241,
-0.0051924423314630985,
0.018241554498672485,
0.04284098371863365,
0.06707771122455597,
0.00305892713367939,
-0.04249962046742439,
0.0021788522135466337,
0.004877748899161816,
0.045315857976675034,
0.01126495935022831,
0.012555736117064953,
0.03324016556143761,
0.00040636793710291386,
0.023340653628110886,
-0.02041773870587349,
0.011019605211913586,
-0.026007547974586487,
-0.03242942690849304,
-0.030765287578105927,
-0.0861940085887909,
0.02799171768128872,
0.058543652296066284,
-0.029335832223296165,
-0.034434933215379715,
-0.017804183065891266,
-0.05905569717288017,
0.021868528798222542,
0.013515817932784557,
0.007765994872897863,
-0.0436943881213665,
-0.023895367980003357,
-0.05879967287182808,
-0.0711313933134079,
0.045187849551439285,
0.03294147178530693,
0.05611144378781319,
0.041112836450338364,
0.053636569529771805,
-0.009862173348665237,
0.0485588014125824,
0.0019374983385205269,
-0.045529209077358246,
-0.015531989745795727,
-0.012769087217748165,
0.021356485784053802,
0.0038883311208337545,
0.002325531328096986,
0.0035549693275243044,
-0.0014094533398747444,
0.0025588846765458584,
0.048686813563108444,
-0.03377354145050049,
0.01188367884606123,
0.008454053662717342,
0.0733075737953186,
0.024962125346064568,
-0.020961785688996315,
0.02660493180155754
] |
10,124 | pygments.formatters.html | __init__ | null | def __init__(self, **options):
Formatter.__init__(self, **options)
self.title = self._decodeifneeded(self.title)
self.nowrap = get_bool_opt(options, 'nowrap', False)
self.noclasses = get_bool_opt(options, 'noclasses', False)
self.classprefix = options.get('classprefix', '')
self.cssclass = self._decodeifneeded(options.get('cssclass', 'highlight'))
self.cssstyles = self._decodeifneeded(options.get('cssstyles', ''))
self.prestyles = self._decodeifneeded(options.get('prestyles', ''))
self.cssfile = self._decodeifneeded(options.get('cssfile', ''))
self.noclobber_cssfile = get_bool_opt(options, 'noclobber_cssfile', False)
self.tagsfile = self._decodeifneeded(options.get('tagsfile', ''))
self.tagurlformat = self._decodeifneeded(options.get('tagurlformat', ''))
self.filename = self._decodeifneeded(options.get('filename', ''))
self.wrapcode = get_bool_opt(options, 'wrapcode', False)
self.span_element_openers = {}
self.debug_token_types = get_bool_opt(options, 'debug_token_types', False)
if self.tagsfile:
if not ctags:
raise RuntimeError('The "ctags" package must to be installed '
'to be able to use the "tagsfile" feature.')
self._ctags = ctags.CTags(self.tagsfile)
linenos = options.get('linenos', False)
if linenos == 'inline':
self.linenos = 2
elif linenos:
# compatibility with <= 0.7
self.linenos = 1
else:
self.linenos = 0
self.linenostart = abs(get_int_opt(options, 'linenostart', 1))
self.linenostep = abs(get_int_opt(options, 'linenostep', 1))
self.linenospecial = abs(get_int_opt(options, 'linenospecial', 0))
self.nobackground = get_bool_opt(options, 'nobackground', False)
self.lineseparator = options.get('lineseparator', '\n')
self.lineanchors = options.get('lineanchors', '')
self.linespans = options.get('linespans', '')
self.anchorlinenos = get_bool_opt(options, 'anchorlinenos', False)
self.hl_lines = set()
for lineno in get_list_opt(options, 'hl_lines', []):
try:
self.hl_lines.add(int(lineno))
except ValueError:
pass
self._create_stylesheet()
| (self, **options) | [
-0.0053884959779679775,
-0.04128102958202362,
0.03941522166132927,
-0.011350340209901333,
-0.01755026914179325,
-0.037219010293483734,
-0.010572919622063637,
0.051037658005952835,
-0.04761700704693794,
0.018240230157971382,
0.003257877891883254,
0.002660235855728388,
0.0011138978879898787,
-0.00331375515088439,
-0.03784094378352165,
0.03002786822617054,
-0.014090747572481632,
-0.046256523579359055,
-0.014664094895124435,
-0.025926975533366203,
-0.01643272675573826,
-0.019357772544026375,
0.0035056807100772858,
0.017870955169200897,
0.044779423624277115,
0.03072754666209221,
-0.03850175440311432,
-0.00983922928571701,
-0.0024707396514713764,
-0.05675169825553894,
-0.017851518467068672,
-0.02942536771297455,
-0.046995073556900024,
0.01729760691523552,
0.01088388729840517,
-0.08427238464355469,
-0.030338836833834648,
-0.0016811719397082925,
0.03160214424133301,
0.044429585337638855,
0.023925118148326874,
0.007025938015431166,
0.013954699039459229,
-0.03214633837342262,
-0.0068510184064507484,
0.012642801739275455,
0.07338850200176239,
-0.002543622860684991,
-0.02897835150361061,
-0.08372819423675537,
0.029872383922338486,
0.0056168632581830025,
0.027190282940864563,
-0.012156913988292217,
-0.08279529213905334,
0.015392926521599293,
0.031271740794181824,
0.06526445597410202,
0.002745266305282712,
0.035042230039834976,
-0.03171875700354576,
0.05302008241415024,
0.06405945122241974,
0.016617363318800926,
-0.03364287316799164,
-0.005092104431241751,
0.033176422119140625,
0.007045373786240816,
-0.005806359928101301,
0.011952840723097324,
0.03745223581790924,
-0.0010968918213620782,
0.020873742178082466,
-0.007832512259483337,
-0.006685816682875156,
-0.024702537804841995,
-0.10961629450321198,
0.03214633837342262,
-0.00009444444731343538,
0.021145839244127274,
0.0075458381325006485,
0.09531176090240479,
0.039434656500816345,
-0.0012323330156505108,
0.08178464323282242,
-0.09010304510593414,
0.018104180693626404,
0.01990196667611599,
0.011564130894839764,
0.02668496035039425,
-0.02932818979024887,
-0.000018742743122857064,
0.0002734637528192252,
-0.05088217556476593,
-0.024022294208407402,
0.00740007171407342,
0.042563773691654205,
-0.02134019322693348,
0.029580852016806602,
-0.009921830147504807,
0.027967704460024834,
-0.01075755711644888,
-0.010621508583426476,
-0.03325416520237923,
-0.010446588508784771,
0.0034765275195240974,
-0.03727731481194496,
0.02654891088604927,
0.013128689490258694,
0.015451233834028244,
0.05387524515390396,
-0.07093962281942368,
0.02046559564769268,
0.00843015406280756,
0.03920143097639084,
-0.07051204144954681,
-0.0441574864089489,
0.01625780761241913,
0.007604144513607025,
-0.02380850352346897,
-0.02373076230287552,
-0.045556843280792236,
-0.05667395889759064,
0.01872611790895462,
-0.036091748625040054,
-0.013731190003454685,
-0.030047304928302765,
0.009785781614482403,
0.07859721779823303,
-0.04174748435616493,
0.04419635981321335,
0.019999142736196518,
0.004785995464771986,
-0.07307752966880798,
0.06452590227127075,
-0.05939492955803871,
-0.0023103966377675533,
0.03920143097639084,
-0.04392426088452339,
0.05317556485533714,
0.06149396672844887,
-0.03931804373860359,
-0.024760844185948372,
-0.03916256129741669,
-0.10238628834486008,
0.004059592727571726,
0.01411990076303482,
0.0022217221558094025,
-0.010164774022996426,
0.05080443248152733,
0.023264309391379356,
-0.02472197264432907,
0.046217650175094604,
0.06277670711278915,
0.07809189707040787,
-0.01505280565470457,
-0.009445659816265106,
-0.03383722901344299,
0.03307924419641495,
0.011330904439091682,
0.03836570307612419,
-0.018308253958821297,
0.044429585337638855,
-0.013080100528895855,
0.010096749290823936,
0.07074526697397232,
-0.03642215207219124,
-0.05232040211558342,
-0.03519771620631218,
0.010990782640874386,
-0.00009231868898496032,
-0.009552555158734322,
-0.022059308364987373,
0.0845056101679802,
-0.013740908354520798,
0.050260238349437714,
0.004776277579367161,
0.0996653139591217,
-0.04901636391878128,
0.014372562058269978,
0.003153412137180567,
0.025052377954125404,
-0.0032044302206486464,
-0.0061416225507855415,
0.016520187258720398,
0.01828881911933422,
0.055119115859270096,
-0.023711327463388443,
0.011350340209901333,
-0.027792785316705704,
0.07412704825401306,
-0.04715055599808693,
0.016286959871649742,
-0.0313689187169075,
-0.019280029460787773,
0.010504894889891148,
-0.049560561776161194,
-0.028142623603343964,
0.056907184422016144,
-0.021709468215703964,
-0.014829296618700027,
0.10510725528001785,
-0.019435513764619827,
-0.018104180693626404,
0.02668496035039425,
0.0424860343337059,
-0.024605359882116318,
0.015713613480329514,
-0.052514757961034775,
0.05970589816570282,
-0.029172705486416817,
-0.07898592948913574,
-0.01747252605855465,
0.05612976476550102,
0.004501750692725182,
-0.06903494149446487,
0.03729674965143204,
0.06985123455524445,
-0.07953011989593506,
0.006870454177260399,
0.09709982573986053,
0.01629667915403843,
-0.006948196329176426,
0.0026165060698986053,
-0.003257877891883254,
-0.019484102725982666,
0.06876284629106522,
-0.008721686899662018,
0.03801586478948593,
-0.026471169665455818,
-0.019328618422150612,
-0.045906681567430496,
-0.013060664758086205,
0.018590068444609642,
-0.03372061625123024,
-0.04306909814476967,
0.026782138273119926,
0.01388667430728674,
-0.06429267674684525,
-0.03558642417192459,
0.0048710256814956665,
0.04497377946972847,
0.04575119912624359,
-0.009333905763924122,
0.017326761037111282,
-0.007424366194754839,
0.02380850352346897,
0.00296634528785944,
-0.015324902720749378,
0.01429481990635395,
-0.047033943235874176,
0.020523902028799057,
0.005033798050135374,
0.04054248332977295,
-0.022001001983880997,
-0.02915327064692974,
0.013672883622348309,
-0.016753412783145905,
0.02242858335375786,
-0.0007573776529170573,
0.015917684882879257,
-0.022797858342528343,
0.08745981007814407,
0.04093119129538536,
0.04376877844333649,
0.020057450979948044,
0.0063116829842329025,
-0.04750039428472519,
-0.020543338730931282,
0.019007932394742966,
-0.012613648548722267,
0.005344766192138195,
0.016870025545358658,
0.03344851732254028,
-0.04174748435616493,
-0.03364287316799164,
-0.017530834302306175,
-0.007594427093863487,
-0.011690461076796055,
0.01158356573432684,
0.0312911756336689,
-0.006156199146062136,
0.008639086037874222,
0.0029274742119014263,
0.04046474024653435,
-0.024100037291646004,
-0.03842401131987572,
0.044779423624277115,
-0.00009391301136929542,
-0.02025180496275425,
-0.016238370910286903,
0.0312911756336689,
0.03263222798705101,
-0.00650603836402297,
0.09080272167921066,
-0.01253590639680624,
0.03076641820371151,
0.024041730910539627,
-0.036091748625040054,
-0.050998788326978683,
-0.041514258831739426,
-0.05356427654623985,
0.0921243354678154,
0.018269382417201996,
-0.0406590960919857,
0.02176777459681034,
-0.0025339052081108093,
0.0013823509216308594,
0.055080246180295944,
-0.014965345151722431,
0.05224265903234482,
0.059550415724515915,
0.013128689490258694,
-0.01881357654929161,
-0.03714126721024513,
0.00432440172880888,
-0.026140766218304634,
-0.0035615579690784216,
0.02528560347855091,
0.03340964764356613,
-0.0646425187587738,
-0.05815105885267258,
-0.021068096160888672,
-0.056907184422016144,
0.07272769510746002,
-0.02785109169781208,
0.036694251000881195,
0.0030708112753927708,
-0.014421151019632816,
-0.009032654576003551,
0.01090332306921482,
-0.019620150327682495,
0.021048661321401596,
-0.004064451903104782,
-0.05671282857656479,
-0.06802430003881454,
-0.010329975746572018,
0.024780280888080597,
-0.051426369696855545,
-0.0921243354678154,
0.06670268625020981,
0.021826082840561867,
-0.04450732469558716,
0.003223865758627653,
-0.04854991286993027,
-0.0323212593793869,
0.010291104204952717,
-0.017958413809537888,
0.050299108028411865,
0.010223080404102802,
0.04236942157149315,
-0.0039842803962528706,
0.016044016927480698,
0.05857864022254944,
0.038696106523275375,
-0.05978364124894142,
-0.009003501385450363,
-0.023497536778450012,
0.004734977148473263,
-0.02942536771297455,
-0.014809861779212952,
0.023478100076317787,
-0.010776991955935955,
0.0009256163612008095,
-0.0024330834858119488,
0.0033914970699697733,
-0.0012080386513844132,
0.0005192926037125289,
0.0037194713950157166,
0.006671240087598562,
0.02524673193693161,
0.014236513525247574,
0.024702537804841995,
-0.07914140820503235,
0.027093106880784035,
-0.022661808878183365,
-0.009596284478902817,
0.031660452485084534,
-0.046645231544971466,
-0.043341197073459625,
-0.00260678818449378,
0.06662493944168091,
0.024741409346461296,
-0.012613648548722267,
-0.05002701282501221,
-0.04567345604300499,
-0.030863596126437187,
0.0037972135469317436,
0.0812404453754425,
-0.007370918523520231,
-0.013410504907369614,
-0.015937121585011482,
0.02237027697265148,
-0.021087532863020897,
-0.061066385358572006,
-0.00936305895447731,
-0.005383637268096209,
0.027384638786315918,
0.014090747572481632,
-0.02612132951617241,
0.04913298040628433,
-0.016617363318800926,
0.040309254080057144,
0.0019921401981264353,
0.003889532294124365,
-0.01049517747014761,
0.05531347170472145,
0.03010561130940914,
0.012594212777912617,
0.0258492324501276,
0.019707610830664635,
-0.04435184225440025,
-0.03688860684633255,
-0.00022654520580545068,
-0.013770061545073986,
-0.010524330660700798,
0.04687846079468727,
0.019221723079681396,
-0.035877957940101624,
-0.06584752351045609,
-0.06518671661615372,
0.032437872141599655,
0.01733647845685482,
0.021087532863020897,
0.012565059587359428,
-0.011894534341990948,
-0.03679142892360687,
-0.012118042446672916,
0.02215648628771305,
-0.03506166860461235,
-0.03492561727762222,
0.001720043015666306,
-0.007259164471179247,
0.022875599563121796,
-0.02316713146865368,
-0.024916328489780426,
-0.05340879037976265,
-0.020543338730931282,
0.05904509127140045,
-0.013245302252471447,
0.02186495251953602,
-0.03593626618385315,
0.013546553440392017,
0.05235927551984787,
-0.003923544194549322,
-0.021456807851791382,
-0.008143479935824871,
0.04400200396776199,
-0.025790926069021225,
-0.038871027529239655,
0.016024580225348473,
0.07509882748126984,
-0.02408060058951378,
-0.033778924494981766,
-0.023847375065088272,
-0.05935605987906456,
0.004346266854554415,
0.01342993974685669,
0.008848018012940884,
0.019105110317468643,
0.012176349759101868,
0.019270312041044235,
0.0478113628923893,
0.014430869370698929,
-0.045906681567430496,
-0.01724901795387268,
0.060250092297792435,
-0.0016410861862823367,
-0.06483687460422516,
-0.047344911843538284,
0.01886216551065445,
-0.03280714899301529,
-0.044390711933374405,
0.02507181279361248,
-0.04376877844333649,
0.04567345604300499,
-0.004127617459744215,
-0.06604187935590744,
-0.08800400793552399,
-0.022797858342528343,
-0.005927831865847111,
-0.021456807851791382,
-0.030086174607276917,
-0.008736263029277325,
0.002452518790960312,
-0.0026116471271961927,
0.06503123044967651,
-0.0628933236002922,
0.04637313634157181,
-0.024177778512239456,
-0.04419635981321335,
0.007050232496112585,
-0.0497937873005867,
-0.0070696682669222355,
0.06343751400709152,
0.027034800499677658,
0.02820092998445034,
-0.004263665992766619,
-0.025266168639063835,
-0.0734662413597107,
0.005748053081333637,
-0.06219364330172539,
-0.005407931748777628,
-0.010281386785209179,
0.08046302944421768,
0.016102323308587074,
0.033565133810043335,
0.045517973601818085,
-0.023575277999043465,
-0.02433326281607151,
-0.029950127005577087,
-0.003668453311547637,
-0.0031218293588608503,
0.02911439910531044,
-0.0034255092032253742,
-0.022914471104741096,
-0.053991857916116714,
0.04120329022407532,
0.014907038770616055,
0.042952485382556915,
0.0359751358628273,
0.009503966197371483,
0.014994499273598194,
-0.06409832090139389,
-0.018784424290060997,
0.059511542320251465,
0.022836728021502495,
0.044818293303251266,
0.01872611790895462,
-0.01682143658399582,
0.01585937850177288,
-0.06277670711278915,
0.006714969873428345,
-0.030183352530002594,
-0.02750125154852867,
0.03546981140971184,
-0.015606717206537724,
0.012205502949655056,
0.040775708854198456,
-0.00604930380359292,
0.030824724584817886,
0.04792797565460205,
-0.02050446718931198,
-0.014586352743208408,
0.005990996956825256,
-0.017657164484262466,
-0.00324330129660666,
0.0031874242704361677,
0.01747252605855465,
0.02668496035039425,
0.06343751400709152,
-0.004584352020174265,
-0.0026942479889839888,
0.031835369765758514,
0.004018292296677828,
-0.000873990764375776,
0.0035931405145674944,
0.013731190003454685,
0.09329046308994293,
0.022486889734864235,
0.018706681206822395,
0.04862765595316887,
-0.046217650175094604,
-0.05317556485533714,
-0.020135192200541496,
0.03992054611444473,
0.012156913988292217,
0.0052184355445206165,
-0.05865637958049774,
0.029036657884716988,
-0.014236513525247574,
-0.0003625937970355153,
-0.002060164464637637,
0.00021956056298222393,
-0.033740051090717316,
0.04085344821214676,
-0.025402216240763664,
0.07953011989593506,
-0.012283245101571083,
-0.003901679301634431,
-0.012020865455269814,
0.0053058951161801815,
-0.02242858335375786,
-0.07416591793298721,
-0.021145839244127274,
-0.015256877988576889,
-0.055896539241075516,
-0.00037595571484416723,
0.01030082255601883,
0.013964416459202766,
0.00818721018731594,
-0.03451747074723244,
0.003430368145927787,
-0.025363344699144363,
0.002197427675127983,
0.03809360787272453,
0.057995572686195374,
-0.03679142892360687,
-0.01634526625275612,
0.005990996956825256,
-0.009377635084092617,
-0.016267525032162666,
-0.0754486620426178,
0.018969060853123665,
0.00983922928571701,
0.006739264354109764,
0.0993543490767479,
-0.015878815203905106,
-0.019357772544026375,
-0.015383209101855755,
-0.008857735432684422,
0.0014030011370778084,
0.018784424290060997,
-0.013089818879961967,
-0.03607231378555298,
0.0026723830960690975,
0.024527618661522865,
-0.003972133155912161,
0.0331181138753891,
-0.026315685361623764,
0.021145839244127274,
0.03679142892360687,
-0.002869167597964406,
0.01607316918671131,
-0.026490604504942894,
0.02021293342113495,
-0.016568776220083237,
-0.047733623534440994,
-0.024741409346461296,
0.009542836807668209,
0.046606361865997314,
0.02468310296535492,
-0.018696963787078857,
-0.057606860995292664,
-0.007492390461266041,
0.06608074903488159,
0.030183352530002594,
0.006656663492321968,
0.018784424290060997,
0.002156127244234085,
0.021145839244127274,
-0.11334791779518127,
-0.016627082601189613,
0.01271082554012537,
-0.020912611857056618,
-0.02141793631017208,
-0.03531432896852493,
-0.0016580922529101372,
0.03537263348698616,
0.017365630716085434,
0.053603146225214005,
0.023827940225601196,
-0.027870526537299156,
-0.014732119627296925,
-0.055857665836811066,
0.04093119129538536,
0.006729546468704939,
-0.013731190003454685,
0.014887603931128979,
-0.005767488852143288,
-0.00579178286716342,
0.02433326281607151,
-0.015665024518966675,
0.03154383972287178,
0.005189282353967428,
-0.03937635198235512,
0.014411433599889278,
0.026179637759923935,
0.03428424522280693,
0.005568274762481451,
-0.05282572656869888,
0.03910425305366516,
-0.04765588045120239,
0.01607316918671131,
-0.03828796371817589,
-0.025479959324002266,
0.030999643728137016,
-0.011904251761734486,
0.016782566905021667,
-0.0160828884691,
-0.025538265705108643,
0.06526445597410202,
-0.018045874312520027,
-0.045595716685056686,
-0.000963272643275559,
0.05057120695710182,
-0.004147052764892578,
-0.023866811767220497,
0.045595716685056686,
-0.05092104524374008,
-0.05861750990152359,
0.03646102547645569,
0.004173776600509882,
0.0021937836427241564,
0.024877456948161125,
0.006418578326702118,
-0.03914312645792961,
-0.11739050596952438,
0.017307324334979057,
-0.04450732469558716,
0.050998788326978683,
0.001317970803938806,
-0.0067003932781517506,
-0.009785781614482403,
-0.017628010362386703,
0.022059308364987373,
0.034614648669958115,
0.010485460050404072,
-0.005150411278009415,
0.009129832498729229,
0.00836212933063507,
0.052592501044273376,
0.05791782960295677,
0.026957057416439056,
0.01030082255601883,
-0.032262951135635376,
0.004827295895665884,
-0.01634526625275612,
0.028822867199778557,
0.012526188977062702,
0.011194855906069279,
0.033040374517440796,
0.004290389828383923,
0.020174063742160797,
0.00763815687969327,
0.015635870397090912,
-0.05970589816570282,
-0.030610933899879456,
-0.029036657884716988,
-0.081007219851017,
0.025907540693879128,
0.041514258831739426,
-0.0683741346001625,
-0.03142722696065903,
-0.03667481616139412,
-0.05302008241415024,
0.02936706133186817,
0.006860736291855574,
0.04283587262034416,
0.007594427093863487,
-0.03263222798705101,
-0.036908041685819626,
-0.0684518814086914,
0.04913298040628433,
0.020135192200541496,
0.04470168054103851,
0.0460621677339077,
0.028822867199778557,
-0.00030018758843652904,
0.05830654129385948,
-0.028920045122504234,
-0.03076641820371151,
-0.03679142892360687,
0.021670598536729813,
0.02207874320447445,
-0.03653876483440399,
0.014391997829079628,
0.014391997829079628,
0.010009289719164371,
0.010466024279594421,
0.0404258668422699,
-0.06351526081562042,
0.04396313056349754,
0.038657236844301224,
0.07105623930692673,
0.042874742299318314,
-0.014372562058269978,
0.023750197142362595
] |
10,125 | pygments.formatters.html | _create_stylesheet | null | def _create_stylesheet(self):
t2c = self.ttype2class = {Token: ''}
c2s = self.class2style = {}
for ttype, ndef in self.style:
name = self._get_css_class(ttype)
style = ''
if ndef['color']:
style += 'color: {}; '.format(webify(ndef['color']))
if ndef['bold']:
style += 'font-weight: bold; '
if ndef['italic']:
style += 'font-style: italic; '
if ndef['underline']:
style += 'text-decoration: underline; '
if ndef['bgcolor']:
style += 'background-color: {}; '.format(webify(ndef['bgcolor']))
if ndef['border']:
style += 'border: 1px solid {}; '.format(webify(ndef['border']))
if style:
t2c[ttype] = name
# save len(ttype) to enable ordering the styles by
# hierarchy (necessary for CSS cascading rules!)
c2s[name] = (style[:-2], ttype, len(ttype))
| (self) | [
-0.03314733877778053,
0.029114414006471634,
-0.026112737134099007,
-0.052151814103126526,
-0.008530836552381516,
-0.02609432302415371,
-0.05012614279985428,
0.02690459042787552,
-0.009502237662672997,
0.031195329502224922,
0.01678544469177723,
0.049905162304639816,
0.009925786405801773,
0.011785720475018024,
-0.021177466958761215,
0.005837614648044109,
0.03338673710823059,
-0.027917426079511642,
-0.012273723259568214,
-0.020717088133096695,
0.014465130865573883,
-0.034049682319164276,
0.0425390861928463,
-0.011877796612679958,
0.04010828211903572,
0.008392722345888615,
-0.023921329528093338,
0.052962083369493484,
0.038193102926015854,
-0.07896433025598526,
-0.051231056451797485,
0.007490377873182297,
-0.015174116007983685,
0.0344916470348835,
0.08198442310094833,
-0.013185274787247181,
-0.020901238545775414,
-0.013857429847121239,
0.06231699883937836,
0.032779037952423096,
0.09281255304813385,
0.04180247709155083,
-0.04647993668913841,
-0.00721415039151907,
0.0030638270545750856,
-0.01315765269100666,
0.01736552268266678,
0.011702852323651314,
-0.04161832854151726,
-0.06471097469329834,
-0.02723606489598751,
-0.03355247527360916,
-0.01970425248146057,
-0.03896654024720192,
-0.012660441920161247,
-0.03010883368551731,
-0.03837725520133972,
0.025505036115646362,
0.0022524078376591206,
-0.0016527632251381874,
0.00873800739645958,
0.06879914551973343,
0.020956484600901604,
-0.005345008336007595,
-0.0002634235133882612,
-0.000304426095681265,
0.0295932088047266,
0.015873892232775688,
0.00672614760696888,
0.05984936282038689,
0.03885604813694954,
-0.004062850959599018,
0.04463841766119003,
-0.03587278723716736,
-0.014640075154602528,
-0.017172163352370262,
0.0020463878754526377,
-0.033939193934202194,
0.009916579350829124,
0.002171841450035572,
-0.044454265385866165,
0.058818113058805466,
-0.03228182718157768,
-0.009833711199462414,
0.10076791048049927,
0.007573246490210295,
0.007425924763083458,
-0.008645931258797646,
-0.06769423186779022,
-0.03228182718157768,
-0.03167412430047989,
-0.004665948450565338,
-0.001416818588040769,
-0.05027346685528755,
0.026849346235394478,
-0.033755041658878326,
0.010063900612294674,
-0.0764598622918129,
-0.012899840250611305,
-0.014244148507714272,
-0.013406257145106792,
0.016002798452973366,
-0.020477689802646637,
-0.057676371186971664,
-0.003190431511029601,
-0.023092646151781082,
-0.038082610815763474,
0.03176620230078697,
0.018074508756399155,
0.02075391821563244,
0.0022397474385797977,
-0.02747546136379242,
0.07653352618217468,
-0.004562363028526306,
0.026131153106689453,
-0.04069756716489792,
-0.015349060297012329,
0.012282931245863438,
0.017549674957990646,
-0.04172881692647934,
-0.03856140375137329,
-0.025431375950574875,
0.003551829606294632,
0.03699611499905586,
-0.0471060536801815,
0.05016297474503517,
-0.05999668687582016,
0.05425114557147026,
0.061064764857292175,
0.028009502217173576,
-0.026517871767282486,
0.021416865289211273,
-0.00579157704487443,
-0.018369151279330254,
0.00968638900667429,
-0.030072003602981567,
-0.044859401881694794,
0.05078909173607826,
0.01937277801334858,
0.0033814890775829554,
0.08426790684461594,
-0.036241091787815094,
-0.017328692600131035,
-0.07218754291534424,
-0.08935049921274185,
0.019962064921855927,
0.0028681657277047634,
0.01608566753566265,
-0.022908495739102364,
0.05484043061733246,
-0.015220153145492077,
0.00334696052595973,
0.030661288648843765,
0.0024123897310346365,
-0.003897114424034953,
0.04438060522079468,
-0.013424673117697239,
-0.033073678612709045,
0.03837725520133972,
-0.005096403416246176,
0.0007463906076736748,
0.0036715283058583736,
0.013415465131402016,
-0.06312726438045502,
0.04334935545921326,
0.06677347421646118,
-0.007711360231041908,
-0.06408485770225525,
0.023074232041835785,
-0.046700917184352875,
-0.01873745396733284,
-0.056055836379528046,
0.00303850625641644,
0.037493325769901276,
0.016582878306508064,
-0.04099221155047417,
0.020532935857772827,
0.02999834343791008,
-0.010570318438112736,
0.036517318338155746,
-0.004511721432209015,
-0.03351564332842827,
-0.023866085335612297,
0.0025205789133906364,
0.02344253472983837,
-0.04257591813802719,
0.03701452910900116,
0.016012007370591164,
0.007338452618569136,
-0.005349612329155207,
0.05148886889219284,
-0.02292690984904766,
0.03154521808028221,
0.04806364327669144,
0.03253963962197304,
-0.003441338427364826,
0.04390180855989456,
0.02861720323562622,
-0.042612746357917786,
0.035725466907024384,
0.025541866198182106,
0.07167191803455353,
-0.015772609040141106,
0.023239968344569206,
0.06216967850923538,
-0.02108539082109928,
-0.01885715313255787,
-0.03751173987984657,
-0.06820985674858093,
0.04183930903673172,
-0.0034321309067308903,
-0.0008286834927275777,
-0.0022524078376591206,
0.030366646125912666,
-0.01660129241645336,
-0.023405704647302628,
0.045080382376909256,
0.033773455768823624,
-0.04843194782733917,
-0.002332974225282669,
0.01494392566382885,
-0.0029188073240220547,
0.015938345342874527,
-0.0074857743456959724,
-0.009870541281998158,
-0.030090417712926865,
-0.005036554299294949,
-0.05693976208567619,
-0.018138961866497993,
0.004912251606583595,
0.015837062150239944,
-0.018590133637189865,
0.029445886611938477,
0.06802570819854736,
-0.013995543122291565,
-0.040145110338926315,
0.011334548704326153,
0.004219380207359791,
-0.05660828948020935,
-0.01410603430122137,
-0.011085943318903446,
0.05668194964528084,
0.02349778078496456,
-0.051746681332588196,
0.02924332022666931,
0.07682816684246063,
0.10356701910495758,
0.0014870264567434788,
-0.061801373958587646,
-0.010450619272887707,
-0.05097324401140213,
0.009529860690236092,
0.01977791264653206,
0.029353810474276543,
-0.06544758379459381,
0.011399001814424992,
-0.07970093935728073,
-0.025505036115646362,
-0.007550227455794811,
-0.030661288648843765,
0.03414176031947136,
0.030385062098503113,
0.031121669337153435,
0.007356868125498295,
0.09730585664510727,
-0.010625563561916351,
-0.035596560686826706,
0.03484153747558594,
-0.09833710640668869,
0.023460950702428818,
0.06010717526078224,
0.021619431674480438,
0.028580373153090477,
0.00701158307492733,
-0.0012591385748237371,
-0.014280978590250015,
-0.002697825198993087,
0.03108483925461769,
-0.0054601035080850124,
-0.018175791949033737,
0.01568974182009697,
-0.016012007370591164,
0.04257591813802719,
-0.015174116007983685,
0.05454578995704651,
-0.017144540324807167,
-0.0021016334649175406,
-0.031121669337153435,
0.04798998311161995,
0.0067906007170677185,
-0.059444230049848557,
-0.010736054740846157,
-0.02316630817949772,
0.02119588293135166,
0.05005248263478279,
0.011573946103453636,
0.0545826181769371,
-0.002233992563560605,
-0.03316575661301613,
-0.018949229270219803,
0.027033496648073196,
-0.010275674983859062,
0.07564959675073624,
0.0014007053105160594,
-0.06272213160991669,
-0.020440859720110893,
0.028930261731147766,
-0.019612176343798637,
0.043017882853746414,
-0.014953133650124073,
-0.010202014818787575,
0.003411413636058569,
-0.006495957728475332,
0.04276006668806076,
0.005266744177788496,
-0.024952581152319908,
-0.03183986246585846,
-0.04338618367910385,
0.010616356506943703,
0.0855937972664833,
-0.0700882077217102,
-0.06703128665685654,
0.03546765446662903,
-0.05937056988477707,
0.06522659957408905,
-0.02005414105951786,
-0.028193654492497444,
0.007619284559041262,
0.03926118090748787,
0.03185827657580376,
-0.03769589215517044,
-0.0016953482991084456,
-0.0011221755994483829,
0.019243871793150902,
-0.015174116007983685,
-0.03427066653966904,
-0.00590667175129056,
0.029869437217712402,
-0.057050254195928574,
-0.0643794983625412,
0.04357033595442772,
-0.007264791987836361,
0.00749958585947752,
-0.024381710216403008,
-0.038119442760944366,
-0.03460213914513588,
-0.06286945194005966,
0.0016170837916433811,
-0.028138408437371254,
0.002884279005229473,
0.013489126227796078,
-0.007200338877737522,
0.00537263136357069,
0.10305139422416687,
0.03235548734664917,
-0.007053017150610685,
-0.020588181912899017,
-0.05134154483675957,
-0.0034344326704740524,
0.000013128015780239366,
-0.011288510635495186,
0.059517890214920044,
0.02506307139992714,
0.028709279373288155,
0.013608824461698532,
0.013424673117697239,
0.02541295997798443,
0.0505681075155735,
-0.012126401998102665,
0.007909324020147324,
0.04202346131205559,
-0.031011177226901054,
-0.02368193306028843,
-0.052446458488702774,
0.007559434976428747,
0.029409056529402733,
0.0367751307785511,
-0.013986336067318916,
0.020090971142053604,
-0.0885402262210846,
-0.01562528684735298,
0.0011831758311018348,
0.014327016659080982,
-0.04217078164219856,
-0.03121374547481537,
-0.04677458107471466,
0.0020532936323434114,
0.013424673117697239,
0.0043851169757544994,
0.011638399213552475,
-0.038414083421230316,
-0.005846822634339333,
0.05878128111362457,
-0.049684178084135056,
0.03815627098083496,
0.004470286890864372,
0.056571461260318756,
0.03283428028225899,
0.03609377145767212,
-0.04717971384525299,
-0.02384766936302185,
-0.07391856610774994,
0.03904020041227341,
0.007858681492507458,
-0.01301953848451376,
-0.07668084651231766,
0.029095998033881187,
0.04905806481838226,
0.0250078272074461,
0.06625784933567047,
-0.015008378773927689,
-0.05395650491118431,
-0.012310553342103958,
-0.017964016646146774,
0.010855753906071186,
0.00988895632326603,
0.01195145770907402,
0.03684879466891289,
0.009216802194714546,
-0.020845994353294373,
-0.030256155878305435,
-0.004723495803773403,
0.05436163768172264,
0.024271218106150627,
-0.01022963784635067,
0.005777765531092882,
-0.03040347620844841,
0.020477689802646637,
-0.025891754776239395,
0.014345431700348854,
0.013664070516824722,
0.03878238797187805,
-0.009258235804736614,
-0.02983260527253151,
-0.019446440041065216,
-0.028230484575033188,
-0.00497210118919611,
-0.028488297015428543,
0.01117801945656538,
-0.02010938711464405,
0.023939745500683784,
-0.0362042598426342,
-0.022484945133328438,
0.07579691708087921,
0.010404582135379314,
0.006809016223996878,
-0.02666519396007061,
-0.01166602224111557,
0.0019577648490667343,
-0.0010582979302853346,
-0.044564757496118546,
0.03029298596084118,
0.01752205193042755,
-0.028230484575033188,
0.018019262701272964,
0.026573117822408676,
-0.00878864899277687,
-0.05053127929568291,
-0.009092499502003193,
-0.01022963784635067,
0.019225457683205605,
0.014953133650124073,
0.061469901353120804,
0.054803602397441864,
-0.08235272765159607,
-0.060254499316215515,
-0.017770657315850258,
-0.016334272921085358,
0.006859657820314169,
-0.013194482773542404,
-0.05782369151711464,
-0.054693110287189484,
0.010524280369281769,
-0.0310295931994915,
-0.04902123287320137,
-0.0002582442539278418,
-0.018433604389429092,
-0.03684879466891289,
-0.020588181912899017,
-0.005358819849789143,
0.0298878513276577,
0.004092775750905275,
-0.04379132017493248,
0.00013552428572438657,
-0.023018985986709595,
0.06813620030879974,
0.005704104900360107,
-0.04202346131205559,
0.01994364894926548,
-0.03314733877778053,
-0.02777010388672352,
-0.007743586786091328,
-0.01758650504052639,
0.009566690772771835,
-0.009345708414912224,
0.010248052887618542,
0.008512420579791069,
0.02482367493212223,
-0.059112757444381714,
-0.033773455768823624,
0.06820985674858093,
-0.06986722350120544,
-0.07896433025598526,
0.05078909173607826,
0.028433050960302353,
0.01706167310476303,
-0.03034823201596737,
0.043533507734537125,
0.0010237693786621094,
-0.018433604389429092,
-0.019004475325345993,
0.021398449316620827,
-0.03465738520026207,
-0.010349336080253124,
-0.026536287739872932,
-0.023884499445557594,
-0.05815516784787178,
0.0367751307785511,
-0.01776145026087761,
0.014336224645376205,
0.02395816147327423,
-0.014630867168307304,
-0.06058597192168236,
-0.020901238545775414,
-0.03837725520133972,
0.1074710413813591,
0.018930813297629356,
0.01724582351744175,
0.03616743162274361,
-0.023866085335612297,
0.007099055219441652,
-0.03115849941968918,
0.017743034288287163,
-0.05693976208567619,
-0.031803030520677567,
-0.004824779462069273,
0.030035173520445824,
0.002688617678359151,
0.036590978503227234,
-0.07163508236408234,
0.034344326704740524,
0.033294662833213806,
-0.01223689317703247,
-0.027714859694242477,
0.013958713039755821,
-0.003947756253182888,
0.023460950702428818,
-0.05524556711316109,
-0.06353240460157394,
-0.0023065023124217987,
0.037346001714468,
0.015468758530914783,
-0.005418669432401657,
0.008779441006481647,
-0.03287111222743988,
-0.024621106684207916,
0.017494428902864456,
-0.033718209713697433,
0.0609174445271492,
0.04868976026773453,
-0.0017390843713656068,
-0.011988287791609764,
-0.03940850496292114,
0.011887004598975182,
-0.050604939460754395,
0.04614846408367157,
-0.021416865289211273,
0.009014234878122807,
-0.07502347975969315,
0.017678581178188324,
0.024786844849586487,
0.003056921297684312,
0.05145203694701195,
-0.02688617631793022,
0.03469421714544296,
-0.0006652487209066749,
-0.03167412430047989,
0.009483822621405125,
0.021343203261494637,
0.0025850320234894753,
-0.012061948888003826,
0.06577905267477036,
-0.0035265085753053427,
-0.0632009282708168,
0.01181334350258112,
-0.027733273804187775,
-0.07918531447649002,
0.021693091839551926,
0.0278805959969759,
-0.009750842116773129,
-0.011923834681510925,
0.01803767681121826,
0.0017943299608305097,
-0.020017310976982117,
-0.03294477239251137,
0.02677568420767784,
0.07318195700645447,
-0.009405557997524738,
-0.07808040082454681,
-0.000172210784512572,
-0.041176363825798035,
0.04924221336841583,
-0.04235493391752243,
0.05999668687582016,
-0.004889232572168112,
0.0033860928378999233,
0.07852236181497574,
-0.0292985662817955,
0.048542436212301254,
-0.038598235696554184,
0.03771430626511574,
-0.030661288648843765,
0.002121199620887637,
-0.007508793380111456,
0.004449570085853338,
0.01151870097965002,
-0.052446458488702774,
0.0072049424052238464,
-0.02780693583190441,
-0.04125002399086952,
-0.019906818866729736,
0.009318085387349129,
0.027843765914440155,
0.0626116394996643,
-0.0009817597456276417,
0.025302469730377197,
0.03246597945690155,
-0.025965416803956032,
0.012688064947724342,
-0.04776899889111519,
0.027567537501454353,
-0.008277627639472485,
-0.018986059352755547,
-0.057786863297224045,
0.013351012021303177,
0.1499733030796051,
0.017862733453512192,
0.031011177226901054,
0.043238863348960876,
-0.006426901090890169,
0.027143988758325577,
0.014501960948109627,
0.017604921013116837,
-0.027272894978523254,
0.006541995797306299,
-0.03298160433769226,
0.054693110287189484,
-0.06334824860095978,
0.008305249735713005,
-0.004783345386385918,
-0.0021706903353333473,
0.013562786392867565,
0.028893431648612022,
-0.031876690685749054,
-0.012614404782652855,
0.053698692470788956,
-0.030937517061829567,
-0.061690881848335266,
0.01315765269100666,
-0.04515404254198074,
0.004387418739497662,
0.02937222644686699,
0.021637847647070885,
0.019925234839320183,
-0.023313628509640694,
0.0024215972516685724,
0.033644549548625946,
0.0010899490443989635,
-0.014630867168307304,
-0.004833986982703209,
0.0013466107193380594,
0.044343773275613785,
-0.00988895632326603,
-0.03298160433769226,
-0.043128371238708496,
0.0037451889365911484,
0.021803583949804306,
-0.025652358308434486,
0.056055836379528046,
-0.036185845732688904,
-0.03270537406206131,
0.05259377881884575,
-0.029758945107460022,
-0.08493085205554962,
0.0339023619890213,
-0.02896709181368351,
0.006905695889145136,
-0.05638730898499489,
-0.013829806819558144,
0.014768981374800205,
-0.06246431916952133,
0.024584276601672173,
-0.0021614828146994114,
-0.005524556618183851,
-0.006845846306532621,
-0.015395097434520721,
-0.011675229296088219,
-0.04113953188061714,
0.01574498601257801,
-0.05391967296600342,
0.03769589215517044,
-0.04242859408259392,
-0.017945600673556328,
0.024271218106150627,
-0.0005944652948528528,
0.02729130908846855,
0.07321879267692566,
0.004760326351970434,
0.016849897801876068,
0.03379186987876892,
-0.013931090012192726,
0.019814742729067802,
0.09649559110403061,
0.03145314380526543,
-0.0022270868066698313,
-0.004861610010266304,
0.024786844849586487,
0.04371766000986099,
0.007347660139203072,
-0.04143417626619339,
0.028838185593485832,
0.022853249683976173,
0.05355136841535568,
0.0678047239780426,
0.007158904802054167,
-0.016232989728450775,
-0.008024418726563454,
-0.021932490170001984,
-0.030642874538898468,
-0.07089848071336746,
-0.0062611643224954605,
-0.004023718647658825,
-0.04172881692647934,
-0.00023709556262474507,
0.00068423937773332,
0.001222308143042028,
0.030329816043376923,
0.007168112322688103,
-0.03747490793466568,
0.027567537501454353,
-0.05988619476556778,
-0.00818555150181055,
-0.05064176768064499,
0.08146879822015762,
-0.041581496596336365,
0.035780712962150574,
0.021711507812142372,
-0.012844594195485115,
0.0574553906917572,
0.0643794983625412,
0.025302469730377197,
-0.021011730656027794,
-0.040476586669683456,
0.010791300795972347,
0.007987587712705135,
-0.023718763142824173,
0.048763420432806015,
-0.04920538514852524,
0.000013388777006184682,
-0.006541995797306299,
0.07638620585203171,
-0.049905162304639816,
0.040439754724502563,
0.044049132615327835,
0.07822772115468979,
-0.015956761315464973,
0.04003462195396423,
-0.01074526272714138
] |
10,126 | pygments.formatters.html | _decodeifneeded | null | def _decodeifneeded(self, value):
if isinstance(value, bytes):
if self.encoding:
return value.decode(self.encoding)
return value.decode()
return value
| (self, value) | [
0.06868314743041992,
0.00805553700774908,
-0.011458679102361202,
0.01902312971651554,
-0.04035522788763046,
-0.05024587735533714,
0.026105111464858055,
0.029292862862348557,
0.06837298721075058,
-0.0499357171356678,
0.051038507372140884,
0.07140566408634186,
-0.02038438618183136,
-0.015439062379300594,
0.06951024383306503,
0.0761614441871643,
-0.04176817834377289,
0.07133673876523972,
0.09304791688919067,
0.021521639078855515,
-0.02739744260907173,
0.006444429978728294,
-0.012656239792704582,
0.02884485572576523,
-0.01334548369050026,
0.005987805780023336,
0.007284445688128471,
-0.048970773816108704,
-0.04483531042933464,
0.042216185480356216,
0.027552522718906403,
-0.012053151614964008,
0.027673140168190002,
0.020573928952217102,
-0.004863476846367121,
0.02891377918422222,
-0.04073430970311165,
0.03111935965716839,
-0.04583471640944481,
-0.020832395181059837,
-0.06206640973687172,
0.008456160314381123,
-0.025760488584637642,
-0.0249678585678339,
-0.00939094740897417,
-0.01580953039228916,
-0.07064749300479889,
0.008632779121398926,
-0.03904566541314125,
0.06113592907786369,
0.025381404906511307,
0.009347870014607906,
0.025071244686841965,
0.029620254412293434,
0.010803896933794022,
0.0008965554879978299,
-0.0034763736184686422,
0.03325601667165756,
0.011777454055845737,
0.055346280336380005,
-0.012285771779716015,
0.015146133489906788,
-0.04059646278619766,
-0.05269269272685051,
-0.0293617881834507,
0.03246338665485382,
0.025674333795905113,
-0.037391480058431625,
-0.06396182626485825,
0.028190072625875473,
-0.03349725157022476,
-0.007288753520697355,
-0.08911922574043274,
0.033083703368902206,
0.052589304745197296,
-0.015645835548639297,
-0.014077805913984776,
-0.006431506481021643,
-0.011036517098546028,
0.0028302075807005167,
0.08202001452445984,
0.01331963762640953,
0.055587515234947205,
-0.012802704237401485,
0.021487176418304443,
0.00590165052562952,
0.039665982127189636,
0.07264630496501923,
0.05372655764222145,
0.07933196425437927,
0.06520246714353561,
-0.07285307347774506,
-0.008529393002390862,
0.08312280476093292,
-0.017403407022356987,
-0.002218503737822175,
0.03024057298898697,
0.013328253291547298,
-0.04586917906999588,
-0.032377228140830994,
0.016972629353404045,
0.07671283930540085,
-0.035840678960084915,
-0.0371847040951252,
0.022917358204722404,
0.00018779202946461737,
0.04442176595330238,
-0.01451719831675291,
0.0342898815870285,
-0.042112797498703,
-0.02114255540072918,
-0.033204320818185806,
-0.06468553841114044,
0.012475313618779182,
0.0057121082209050655,
-0.034169264137744904,
-0.036598846316337585,
-0.03215322643518448,
-0.0011049440363422036,
0.017636027187108994,
-0.03406587615609169,
0.05000464245676994,
-0.007926303893327713,
-0.026277421042323112,
0.038597654551267624,
0.04083769768476486,
0.019281595945358276,
-0.01661939173936844,
0.0667877271771431,
0.04435284063220024,
0.02572602592408657,
0.032377228140830994,
-0.049797866493463516,
-0.03198091313242912,
-0.001733879093080759,
-0.012949168682098389,
-0.04297435283660889,
0.02202134020626545,
0.0019180363742634654,
0.006586586590856314,
-0.0011178674176335335,
0.027156207710504532,
0.08188217133283615,
-0.04311220347881317,
0.0031231362372636795,
0.0023908144794404507,
0.03677115961909294,
-0.017799722030758858,
-0.05875803902745247,
-0.014543045312166214,
-0.023882299661636353,
-0.007038902956992388,
-0.03828749433159828,
0.03983829542994499,
0.025984492152929306,
0.011699914000928402,
-0.004798860289156437,
0.002248658100143075,
0.0043896217830479145,
0.015240904875099659,
0.03732255473732948,
0.012906091287732124,
0.0021883491426706314,
-0.05720723792910576,
0.037839487195014954,
0.007366293575614691,
0.059895291924476624,
-0.009416794404387474,
-0.01593014784157276,
-0.003741301828995347,
-0.028034992516040802,
0.009873418137431145,
-0.00035404518712311983,
0.030085494741797447,
0.027380211278796196,
-0.000886862981133163,
0.0033665255177766085,
0.03151567652821541,
-0.027035590261220932,
0.042457420378923416,
-0.025657102465629578,
0.02751806005835533,
-0.0010629432508721948,
-0.004098847042769194,
0.06640864163637161,
-0.017610181123018265,
0.02624296024441719,
0.04297435283660889,
0.047730136662721634,
-0.006789051927626133,
0.020332694053649902,
0.009046325460076332,
-0.015706144273281097,
-0.035599444061517715,
-0.00494532473385334,
-0.05238253250718117,
0.06475445628166199,
0.003808072302490473,
-0.03845980763435364,
-0.0056302607990801334,
-0.027742065489292145,
-0.04738551378250122,
0.03337663412094116,
0.0018835741793736815,
-0.10124991834163666,
-0.007921996526420116,
-0.00296590244397521,
0.032170455902814865,
0.012742395512759686,
-0.030705813318490982,
-0.054588112980127335,
-0.017799722030758858,
-0.007245676126331091,
-0.01674000918865204,
0.03353171423077583,
-0.08015906065702438,
-0.02360660210251808,
-0.04738551378250122,
0.02663927525281906,
0.033324938267469406,
-0.01744648441672325,
0.02369275689125061,
-0.03018888086080551,
0.006125654559582472,
0.02644973248243332,
0.027035590261220932,
-0.056069985032081604,
-0.023882299661636353,
0.05620783567428589,
0.0374259389936924,
0.01393995713442564,
0.03170521557331085,
0.016765857115387917,
0.030171649530529976,
0.053313013166189194,
0.029430711641907692,
0.05272715538740158,
-0.06430645287036896,
-0.06816621869802475,
-0.017213864251971245,
0.03024057298898697,
-0.061963021755218506,
-0.019677910953760147,
0.08477699011564255,
-0.008240771479904652,
0.015783684328198433,
0.019402213394641876,
0.07705745846033096,
-0.04135463014245033,
0.012492544949054718,
0.010338657535612583,
0.005893034860491753,
0.02241765521466732,
-0.019160978496074677,
0.016335079446434975,
-0.09008417278528214,
-0.02165948785841465,
-0.08408775180578232,
0.0626867264509201,
0.04535224661231041,
-0.01838557980954647,
-0.006823514122515917,
-0.0040923855267465115,
0.046971969306468964,
-0.04276758059859276,
-0.042698655277490616,
-0.006771820597350597,
0.00012169461842859164,
0.016300616785883904,
0.057379551231861115,
0.029017165303230286,
-0.07829809933900833,
0.004820398986339569,
-0.013491948135197163,
-0.01935052126646042,
-0.015439062379300594,
0.01826496236026287,
-0.017188018187880516,
0.011105441488325596,
0.0005115481908433139,
0.00461793364956975,
-0.003926536068320274,
0.0066210487857460976,
-0.01902312971651554,
0.02867254428565502,
-0.0006429352797567844,
0.010657432489097118,
-0.0851905420422554,
0.028620850294828415,
0.024399232119321823,
0.012854397296905518,
-0.046489495784044266,
-0.027742065489292145,
0.02357213944196701,
-0.012182384729385376,
-0.005651799496263266,
0.006431506481021643,
-0.045455630868673325,
0.045938100665807724,
-0.027466367930173874,
-0.008908476680517197,
0.0015529525699093938,
0.019178209826350212,
0.050176952034235,
0.026294652372598648,
0.030481809750199318,
-0.031102128326892853,
-0.009658029302954674,
-0.011570680886507034,
0.041182320564985275,
0.020608391612768173,
0.024313077330589294,
-0.006233348976820707,
0.015240904875099659,
-0.031687986105680466,
-0.003756379010155797,
0.03306647390127182,
0.0223831944167614,
0.0006946285720914602,
0.021401021629571915,
0.01922990381717682,
-0.060446687042713165,
-0.04845384135842323,
-0.001751110190525651,
0.0028495925944298506,
-0.01063158642500639,
0.014543045312166214,
-0.00016706086171325296,
0.02796606905758381,
0.01954006217420101,
-0.0056259529665112495,
-0.009589104913175106,
0.03163629397749901,
-0.039424747228622437,
0.04707535356283188,
-0.013896878808736801,
-0.031171053647994995,
-0.008559547364711761,
0.003760686842724681,
-0.011725760996341705,
0.03437603637576103,
-0.044731926172971725,
0.05772417038679123,
0.020608391612768173,
0.009787262417376041,
0.018971437588334084,
-0.019953608512878418,
0.0185923520475626,
0.016421234235167503,
-0.0032480615191161633,
-0.03618530184030533,
-0.026398038491606712,
-0.002737590344622731,
0.013474716804921627,
-0.034841276705265045,
-0.0252090934664011,
-0.025433097034692764,
0.001764033455401659,
0.007641991134732962,
-0.0035539136733859777,
0.04256080836057663,
-0.011699914000928402,
0.015551064163446426,
-0.003095135558396578,
0.0016757240518927574,
-0.0012320233508944511,
-0.08036582916975021,
0.0018168037058785558,
0.030464578419923782,
-0.0044757770374417305,
-0.027052821591496468,
0.03987275809049606,
-0.02162502519786358,
-0.04866061359643936,
-0.030929816886782646,
-0.037908412516117096,
-0.015059977769851685,
0.03365233168005943,
0.01057127770036459,
0.04490423575043678,
0.030223343521356583,
-0.005561336409300566,
-0.10545431077480316,
-0.005048711318522692,
0.047730136662721634,
0.036598846316337585,
-0.004682550206780434,
-0.031929221004247665,
0.005893034860491753,
-0.04025183990597725,
-0.014051958918571472,
0.0210563987493515,
0.017679104581475258,
-0.006293657701462507,
-0.01334548369050026,
0.027104513719677925,
-0.008783550933003426,
-0.005729339551180601,
0.03179137408733368,
0.029947645962238312,
-0.01974683627486229,
0.010140500031411648,
0.032928623259067535,
0.06547816842794418,
0.015473524108529091,
0.048040296882390976,
0.013207634910941124,
0.07443833351135254,
-0.036081913858652115,
0.02445092611014843,
0.003228676738217473,
-0.07891841977834702,
0.01418119203299284,
-0.08911922574043274,
-0.000510471232701093,
-0.005177944432944059,
-0.04490423575043678,
-0.013371330685913563,
0.02903439663350582,
-0.051314204931259155,
-0.026070648804306984,
0.04431837797164917,
-0.053829945623874664,
-0.031050434336066246,
-0.03932136297225952,
0.00664258748292923,
0.03704685717821121,
0.007603221107274294,
-0.015327059663832188,
0.02560540847480297,
0.03642653673887253,
-0.10628139972686768,
-0.030412884429097176,
-0.061721786856651306,
0.029465174302458763,
0.03666777163743973,
-0.04442176595330238,
-0.008275234140455723,
-0.005169328767806292,
0.003577606286853552,
-0.005130558740347624,
0.06265226751565933,
-0.00045420092646963894,
0.011010670103132725,
0.06327258795499802,
-0.00961495190858841,
-0.024278614670038223,
0.0790562704205513,
-0.01689508929848671,
-0.025639871135354042,
-0.030723044648766518,
-0.02732851915061474,
-0.0038253033999353647,
-0.026622043922543526,
-0.04231957346200943,
-0.0063798134215176105,
0.03949367254972458,
0.02090132050216198,
0.029620254412293434,
0.002530817175284028,
-0.050762809813022614,
-0.0046610115095973015,
-0.008456160314381123,
-0.042664192616939545,
0.011174365878105164,
0.06230764463543892,
-0.028224535286426544,
0.06406521797180176,
0.002804360818117857,
0.024157997220754623,
-0.030412884429097176,
-0.03925243765115738,
0.08064153045415878,
0.00927032995969057,
0.015671681612730026,
0.019057592377066612,
0.029068859294056892,
-0.018971437588334084,
-0.0009498641593381763,
-0.0518656000494957,
0.0009337100200355053,
-0.011630989611148834,
-0.03306647390127182,
-0.029413480311632156,
-0.0015281828818842769,
-0.037632714956998825,
0.03780502453446388,
0.002244350267574191,
0.03151567652821541,
0.07154351472854614,
-0.05906819924712181,
0.061652861535549164,
-0.03139505535364151,
0.024485386908054352,
0.0570349283516407,
-0.006388429086655378,
0.010424813255667686,
-0.04962555691599846,
0.04459407553076744,
-0.02648419514298439,
-0.0031640599481761456,
0.008202001452445984,
-0.015464908443391323,
-0.057896483689546585,
-0.0006483200122602284,
-0.042112797498703,
-0.007288753520697355,
0.02700112760066986,
0.006233348976820707,
0.019574524834752083,
-0.03387633338570595,
0.07119888812303543,
0.030895356088876724,
-0.009959573857486248,
-0.010760819539427757,
0.031929221004247665,
-0.016042150557041168,
-0.013371330685913563,
0.005475180689245462,
0.027690371498465538,
-0.014008881524205208,
0.026398038491606712,
0.006616740953177214,
-0.06740804761648178,
0.008469083346426487,
-0.04159586504101753,
-0.08946385234594345,
-0.016946783289313316,
0.0034612964373081923,
-0.05796540901064873,
-0.013388562016189098,
-0.03377294912934303,
0.014853204600512981,
-0.016722777858376503,
0.04390483349561691,
-0.04004506766796112,
-0.023916762322187424,
0.031222745776176453,
-0.06940685212612152,
-0.01926436461508274,
0.0018383425194770098,
0.033445555716753006,
-0.01551660243421793,
-0.006323812063783407,
-0.010821128264069557,
0.020074227824807167,
-0.036081913858652115,
0.0695447027683258,
-0.014017496258020401,
0.011553449556231499,
-0.09863079339265823,
0.03167075291275978,
0.017816953361034393,
0.021349327638745308,
0.004126847721636295,
-0.07995228469371796,
-0.032325536012649536,
0.0956670492887497,
-0.007689376827329397,
0.0210563987493515,
0.04152694344520569,
0.012759626843035221,
-0.06813175231218338,
0.004126847721636295,
-0.020763471722602844,
0.04490423575043678,
-0.03708131983876228,
-0.004992709960788488,
0.0049324012361466885,
-0.01433627214282751,
0.00022575428010895848,
-0.056380145251750946,
0.016162768006324768,
0.038356419652700424,
0.04228511080145836,
0.04128570482134819,
-0.006177348084747791,
0.012742395512759686,
-0.013586719520390034,
-0.028965473175048828,
-0.015266750939190388,
-0.037632714956998825,
0.03260123357176781,
0.0068967463448643684,
0.0036185302305966616,
-0.08084830641746521,
0.055863212794065475,
0.045214395970106125,
-0.00037450710078701377,
-0.05262376740574837,
-0.004294850863516331,
-0.031102128326892853,
0.02915501408278942,
0.002836669096723199,
0.05417456477880478,
0.006547816563397646,
-0.03139505535364151,
0.022073034197092056,
-0.044938698410987854,
-0.014629201032221317,
0.026105111464858055,
0.0036637617740780115,
0.03466896712779999,
0.02851746417582035,
0.0734044685959816,
0.04231957346200943,
-0.06861422210931778,
0.038873352110385895,
0.005557028576731682,
0.015232289209961891,
0.013819338753819466,
0.026535887271165848,
0.0031295977532863617,
-0.031532905995845795,
0.05072834715247154,
-0.012914706952869892,
-0.0249678585678339,
-0.06351382285356522,
-0.08036582916975021,
-0.021332096308469772,
0.04662734642624855,
0.05269269272685051,
-0.0440426804125309,
0.01910928636789322,
-0.02987872064113617,
0.00843462161719799,
-0.01046789065003395,
-0.008167539723217487,
-0.030137186869978905,
-0.040906623005867004,
0.02353767678141594,
0.027294056490063667,
0.008012459613382816,
0.04052753746509552,
-0.03615083917975426,
0.01057127770036459,
-0.009916495531797409,
-0.005509642884135246,
0.029137782752513885,
-0.007853072136640549,
-0.011872225441038609,
-0.028103917837142944,
-0.05365763232111931,
0.03263569623231888,
-0.060963619500398636,
-0.0019158824579790235,
0.011441447772085667,
-0.02281397208571434,
-0.04580025374889374,
0.037908412516117096,
0.001220177044160664,
0.028224535286426544,
0.0345311164855957,
0.010519584640860558,
0.038390882313251495,
0.01986745372414589,
0.07175028324127197,
0.02221088297665119,
-0.026949433609843254,
-0.005880111362785101,
-0.026311883702874184,
-0.035599444061517715,
-0.030929816886782646,
0.028569158166646957,
0.03818411007523537,
-0.03043011575937271,
-0.01795480214059353,
0.011053748428821564,
0.042939890176057816,
-0.0932546928524971,
0.02775929495692253,
0.024226920679211617,
-0.06885545700788498,
-0.022882895544171333,
-0.04025183990597725,
-0.03949367254972458,
-0.027466367930173874,
-0.03528928384184837,
0.0885678306221962,
0.02663927525281906,
-0.014482736587524414,
0.0028991319704800844,
-0.05906819924712181,
0.0596885159611702,
-0.02305520698428154,
-0.018420042470097542,
-0.01599045656621456,
-0.007969382219016552,
0.019367752596735954,
-0.08829213678836823,
0.03030949831008911,
-0.050521574914455414,
-0.061721786856651306,
-0.0007877841708250344,
-0.06337597221136093,
0.026622043922543526,
0.004923785571008921,
-0.025829413905739784,
0.06086023151874542,
0.049556631594896317,
-0.011105441488325596,
-0.08270926028490067,
0.01744648441672325,
-0.010028498247265816,
0.0012934091500937939,
-0.013871032744646072,
-0.029068859294056892,
-0.028775930404663086,
0.0004999710363335907,
0.007853072136640549,
-0.038907814770936966,
0.02086685784161091,
-0.048005834221839905,
-0.06272119283676147,
-0.01902312971651554,
0.005307177547365427,
-0.07223275303840637,
0.013311021961271763,
-0.008296772837638855,
0.02460600435733795,
0.004734243731945753,
0.003954536747187376,
0.01656769961118698,
0.06537477672100067,
0.011381139047443867,
0.019953608512878418,
-0.05324408784508705,
-0.010174962691962719,
0.005216714460402727,
0.050831735134124756,
0.018575120717287064,
0.0344104990363121,
-0.013750414364039898,
0.005781032610684633,
-0.06661541759967804,
-0.016696931794285774,
-0.040941085666418076,
0.024830009788274765,
0.0005260868929326534,
0.0021065014880150557,
-0.011182981543242931,
0.03246338665485382,
-0.03446219116449356,
0.10290410369634628,
-0.017972033470869064,
-0.042939890176057816,
0.04035522788763046,
0.03372125327587128,
0.008899861015379429,
-0.0035711447708308697,
-0.005401948466897011,
-0.0008760935161262751,
-0.06048114597797394,
0.04228511080145836,
0.03949367254972458,
0.002989595290273428,
-0.02165948785841465,
0.05627676099538803,
0.0014151037903502584,
-0.01019219309091568,
-0.028258997946977615,
0.05782755836844444,
-0.0006289349985308945,
-0.02314136177301407,
-0.056621380150318146,
-0.027862682938575745,
-0.013431639410555363,
0.015551064163446426
] |
10,127 | pygments.formatters.html | _format_lines |
Just format the tokens, without any wrapping tags.
Yield individual lines.
| def _format_lines(self, tokensource):
"""
Just format the tokens, without any wrapping tags.
Yield individual lines.
"""
nocls = self.noclasses
lsep = self.lineseparator
tagsfile = self.tagsfile
lspan = ''
line = []
for ttype, value in tokensource:
try:
cspan = self.span_element_openers[ttype]
except KeyError:
title = ' title="{}"'.format('.'.join(ttype)) if self.debug_token_types else ''
if nocls:
css_style = self._get_css_inline_styles(ttype)
if css_style:
css_style = self.class2style[css_style][0]
cspan = f'<span style="{css_style}"{title}>'
else:
cspan = ''
else:
css_class = self._get_css_classes(ttype)
if css_class:
cspan = f'<span class="{css_class}"{title}>'
else:
cspan = ''
self.span_element_openers[ttype] = cspan
parts = self._translate_parts(value)
if tagsfile and ttype in Token.Name:
filename, linenumber = self._lookup_ctag(value)
if linenumber:
base, filename = os.path.split(filename)
if base:
base += '/'
filename, extension = os.path.splitext(filename)
url = self.tagurlformat % {'path': base, 'fname': filename,
'fext': extension}
parts[0] = "<a href=\"%s#%s-%d\">%s" % \
(url, self.lineanchors, linenumber, parts[0])
parts[-1] = parts[-1] + "</a>"
# for all but the last line
for part in parts[:-1]:
if line:
# Also check for part being non-empty, so we avoid creating
# empty <span> tags
if lspan != cspan and part:
line.extend(((lspan and '</span>'), cspan, part,
(cspan and '</span>'), lsep))
else: # both are the same, or the current part was empty
line.extend((part, (lspan and '</span>'), lsep))
yield 1, ''.join(line)
line = []
elif part:
yield 1, ''.join((cspan, part, (cspan and '</span>'), lsep))
else:
yield 1, lsep
# for the last line
if line and parts[-1]:
if lspan != cspan:
line.extend(((lspan and '</span>'), cspan, parts[-1]))
lspan = cspan
else:
line.append(parts[-1])
elif parts[-1]:
line = [cspan, parts[-1]]
lspan = cspan
# else we neither have to open a new span nor set lspan
if line:
line.extend(((lspan and '</span>'), lsep))
yield 1, ''.join(line)
| (self, tokensource) | [
-0.011419295333325863,
-0.05044178292155266,
-0.020357847213745117,
0.015603088773787022,
0.000940738245844841,
-0.023311112076044083,
-0.035675451159477234,
0.04091257601976395,
-0.02128320373594761,
0.020850056782364845,
-0.0025004318449646235,
-0.014421782456338406,
0.045007772743701935,
0.023488309234380722,
-0.020338159054517746,
0.05599392205476761,
0.013535802252590656,
-0.030005181208252907,
-0.0025496529415249825,
-0.02758350409567356,
-0.03238748386502266,
0.034828849136829376,
0.025339022278785706,
-0.04508652538061142,
0.03496666997671127,
0.012905771844089031,
0.002366304397583008,
-0.008741667494177818,
-0.040361300110816956,
-0.044102106243371964,
-0.022129805758595467,
-0.05855342000722885,
-0.013270008377730846,
-0.02880418673157692,
0.0352226197719574,
-0.07123277336359024,
-0.046267833560705185,
-0.006639926228672266,
0.03888466954231262,
0.015366827137768269,
0.026717212051153183,
0.01493368111550808,
-0.003502081148326397,
-0.035675451159477234,
-0.044495873153209686,
0.0046046338975429535,
0.02774101123213768,
-0.008549705147743225,
-0.04760664701461792,
-0.06225484609603882,
0.04209388419985771,
0.019993610680103302,
0.024275846779346466,
0.00010044180817203596,
0.008894252590835094,
-0.037860870361328125,
-0.0012206832179799676,
0.021440710872411728,
-0.007560360711067915,
0.021046942099928856,
0.009484905749559402,
0.042881421744823456,
0.04351145029067993,
0.045204658061265945,
0.006162481848150492,
-0.01701081171631813,
0.015652310103178024,
-0.02201167494058609,
-0.006359366234391928,
0.05095368251204491,
0.016784394159913063,
0.01038565207272768,
0.0048655057325959206,
0.0018704017857089639,
-0.009164968505501747,
0.025713102892041206,
-0.06863389909267426,
0.06599564850330353,
0.05638769268989563,
-0.05138682574033737,
0.011458671651780605,
0.08828296512365341,
0.051819972693920135,
-0.014431626535952091,
0.08473904430866241,
-0.057332735508680344,
0.0018753238255158067,
0.026441574096679688,
-0.02128320373594761,
0.05819902941584587,
-0.014815551228821278,
0.03898311033844948,
0.021558841690421104,
-0.06800387054681778,
-0.013063279911875725,
-0.001188689493574202,
0.019284825772047043,
-0.013132189400494099,
-0.035892024636268616,
-0.012551380321383476,
0.05918344855308533,
0.01754239946603775,
-0.010228144004940987,
0.008894252590835094,
-0.019629374146461487,
-0.020692549645900726,
-0.04284204542636871,
0.013004214502871037,
0.04406272619962692,
0.023882078006863594,
-0.029808297753334045,
-0.11253912001848221,
0.0030615522991865873,
0.011173189617693424,
0.01652844436466694,
-0.08749542385339737,
-0.01968844048678875,
0.04792166128754616,
-0.0038515510968863964,
-0.06300300359725952,
0.021696660667657852,
-0.08028945326805115,
-0.04331456869840622,
0.02526026777923107,
-0.010592380538582802,
-0.045716557651758194,
0.04548029601573944,
0.009327398613095284,
0.026638459414243698,
-0.03400193527340889,
-0.017955856397747993,
0.03616766259074211,
0.02327173575758934,
-0.021421022713184357,
0.013427515514194965,
-0.038766536861658096,
-0.10868018865585327,
0.012147767469286919,
-0.029611412435770035,
0.013703154399991035,
0.06682256609201431,
-0.024236468598246574,
-0.023941142484545708,
-0.05134744942188263,
-0.07032710313796997,
0.015967324376106262,
0.012777796946465969,
0.05780525878071785,
0.0077769337221980095,
0.02884356491267681,
-0.00038915430195629597,
-0.0318165197968483,
0.08702290058135986,
0.04477151110768318,
0.01977703720331192,
0.014864771626889706,
-0.03709302097558975,
0.018123209476470947,
0.01823149435222149,
0.01520932000130415,
0.01679423823952675,
-0.02848917245864868,
0.0421726368367672,
0.011143656447529793,
-0.009327398613095284,
0.11143656820058823,
-0.07221719622612,
-0.04351145029067993,
-0.01323063112795353,
-0.032151222229003906,
0.018152741715312004,
0.020987875759601593,
-0.025319334119558334,
0.030576147139072418,
-0.020850056782364845,
0.0009727319702506065,
-0.017926324158906937,
0.0827701985836029,
-0.026087181642651558,
0.014608821831643581,
0.005453697871416807,
0.0014520224649459124,
-0.011438983492553234,
-0.01993454433977604,
-0.033017512410879135,
0.029138891026377678,
0.06300300359725952,
-0.07899001985788345,
-0.0023909148294478655,
-0.0024856654927134514,
0.003374106250703335,
-0.05296190455555916,
0.015288073569536209,
-0.03616766259074211,
-0.00693525280803442,
0.011143656447529793,
-0.05508825555443764,
-0.004338840022683144,
0.02843010611832142,
-0.015937792137265205,
-0.058592796325683594,
0.030300509184598923,
-0.04075507074594498,
-0.015130565501749516,
0.007949207909405231,
0.06087665632367134,
-0.013516114093363285,
0.009642412886023521,
-0.09009429812431335,
0.07910814881324768,
-0.03287969529628754,
-0.032997824251651764,
0.0016710562631487846,
0.07501295208930969,
0.023350490257143974,
-0.051623087376356125,
-0.002331849653273821,
0.0903305634856224,
-0.08844047039747238,
-0.029808297753334045,
0.05678145959973335,
-0.012364340014755726,
-0.015760596841573715,
-0.03652205690741539,
0.046779733151197433,
-0.021932922303676605,
0.07394977658987045,
-0.0026825498789548874,
0.011842596344649792,
0.013132189400494099,
0.01251200307160616,
-0.04091257601976395,
0.022444821894168854,
0.07690304517745972,
-0.020279092714190483,
-0.046976618468761444,
0.03851058706641197,
-0.017640842124819756,
-0.03081240877509117,
-0.013614555820822716,
-0.06134917959570885,
0.033903494477272034,
0.01940295659005642,
-0.030930539593100548,
0.02061379700899124,
-0.008283911272883415,
0.021401334553956985,
0.014195364899933338,
-0.026264378800988197,
-0.008392197079956532,
-0.030891161412000656,
0.0522531196475029,
0.011586646549403667,
-0.001514779287390411,
0.010592380538582802,
-0.08261269330978394,
-0.003081240924075246,
-0.006413509137928486,
0.00738808698952198,
-0.01933404803276062,
0.045755933970212936,
-0.010907395742833614,
0.01626265048980713,
0.012482470832765102,
0.04209388419985771,
0.02468930371105671,
0.023133916780352592,
-0.02758350409567356,
0.01198041532188654,
0.051071811467409134,
-0.004144416656345129,
0.02305516228079796,
-0.024945253506302834,
0.016449691727757454,
-0.02307485044002533,
0.012413561344146729,
-0.027957584708929062,
-0.0034553210716694593,
-0.03992815688252449,
-0.030733654275536537,
-0.019560465589165688,
0.02628406696021557,
-0.024039585143327713,
0.02612655982375145,
0.02468930371105671,
-0.04059756174683571,
-0.0489848367869854,
-0.05390694737434387,
-0.0019011650001630187,
-0.013348761945962906,
-0.005468463990837336,
0.0008059954852797091,
0.02203136309981346,
-0.014146143570542336,
0.09466201812028885,
-0.0068564992398023605,
0.02289765514433384,
0.024590861052274704,
-0.038569651544094086,
-0.05528513714671135,
-0.029591724276542664,
-0.01639062538743019,
0.07056336849927902,
0.018802460283041,
-0.019028877839446068,
-0.00445204833522439,
0.0041025783866643906,
-0.029591724276542664,
0.014687576331198215,
-0.04926047474145889,
0.02061379700899124,
0.03986908867955208,
0.0623335987329483,
-0.053080033510923386,
0.0004574485938064754,
0.0003177837352268398,
-0.030300509184598923,
0.046267833560705185,
0.04296017438173294,
0.045007772743701935,
-0.05004801228642464,
-0.00697462959215045,
0.03309626877307892,
0.0019060870399698615,
0.05457635596394539,
-0.004255163948982954,
0.033411283046007156,
-0.010375807993113995,
-0.024984629824757576,
0.011281476356089115,
-0.007954129949212074,
-0.024905875325202942,
-0.030320197343826294,
0.04067631810903549,
-0.07607612758874893,
-0.018044454976916313,
-0.03376567363739014,
0.007781855762004852,
0.0024364443961530924,
-0.10994024574756622,
0.021421022713184357,
0.016843460500240326,
-0.021027253940701485,
-0.008175624534487724,
-0.015553867444396019,
-0.026756590232253075,
0.04650409519672394,
-0.007589893415570259,
0.03026113100349903,
0.08655037730932236,
0.019304515793919563,
0.015790129080414772,
0.05638769268989563,
0.03561638668179512,
0.02862699143588543,
-0.03095022775232792,
0.0015578478341922164,
-0.05524576082825661,
-0.030871473252773285,
0.015396359376609325,
-0.0017141248099505901,
0.043393321335315704,
0.021736036986112595,
0.017178162932395935,
0.012472626753151417,
-0.024669615551829338,
0.0030615522991865873,
0.0009548893431201577,
0.031422749161720276,
0.023941142484545708,
-0.040184106677770615,
-0.00049221096560359,
0.02791820652782917,
-0.028567925095558167,
-0.014343027956783772,
-0.009194501675665379,
-0.01065144594758749,
0.0037235761992633343,
-0.03994784504175186,
-0.018812304362654686,
0.01769990660250187,
0.08899174630641937,
0.06134917959570885,
0.04047943279147148,
-0.04563780501484871,
-0.0580415204167366,
0.03931781277060509,
-0.02289765514433384,
0.006886031944304705,
0.008431574329733849,
-0.009366774931550026,
-0.011360229924321175,
0.015366827137768269,
0.02453179657459259,
-0.044495873153209686,
-0.04847293719649315,
0.01235449593514204,
-0.007048461586236954,
0.011763842776417732,
-0.03331283852458,
0.04083382338285446,
0.04327518865466118,
-0.007028772961348295,
-0.011616179719567299,
-0.03988878056406975,
-0.04362958297133446,
0.031186487525701523,
0.029591724276542664,
-0.02112569659948349,
0.021007565781474113,
-0.03610859811306,
-0.034828849136829376,
-0.00591145409271121,
-0.06548374891281128,
0.020259404554963112,
-0.009450451470911503,
-0.012728576548397541,
0.06776761263608932,
-0.005399554502218962,
0.013378295116126537,
-0.041621360927820206,
-0.0032732030376791954,
0.017355360090732574,
0.03327346220612526,
-0.017050188034772873,
-0.040873199701309204,
-0.036600809544324875,
-0.016705641523003578,
-0.031186487525701523,
-0.008554627187550068,
0.02275983616709709,
-0.03561638668179512,
-0.017020655795931816,
-0.012000104412436485,
-0.012324963696300983,
-0.017315981909632683,
-0.037486787885427475,
0.02862699143588543,
0.056112054735422134,
-0.019373424351215363,
0.01858588680624962,
0.020121585577726364,
0.014766329899430275,
0.05059928819537163,
0.07272909581661224,
-0.025831233710050583,
-0.023389866575598717,
0.009209267795085907,
-0.03350972384214401,
-0.026717212051153183,
-0.048787955194711685,
0.03654174506664276,
-0.01814289763569832,
-0.024945253506302834,
-0.027839453890919685,
-0.0384908989071846,
0.07926566153764725,
0.00935693085193634,
0.06048288568854332,
0.02990674041211605,
0.07182342559099197,
0.06524749100208282,
0.039829712361097336,
0.03817588463425636,
-0.009952506050467491,
-0.05099305883049965,
0.01738489232957363,
0.009297865442931652,
-0.020475978031754494,
-0.019028877839446068,
0.030930539593100548,
-0.002255556872114539,
-0.043944597244262695,
0.01549480203539133,
-0.031048668548464775,
0.035714831203222275,
-0.02969016693532467,
-0.03024144284427166,
-0.047331009060144424,
-0.0210863184183836,
-0.029985493049025536,
-0.03431694954633713,
-0.025181515142321587,
-0.008441418409347534,
-0.010169079527258873,
0.037348970770835876,
0.07083900272846222,
-0.04729163274168968,
0.025279955938458443,
-0.03591171279549599,
-0.03476978465914726,
-0.02130289189517498,
-0.024649927392601967,
-0.018310248851776123,
-0.0001432026328984648,
0.0367189384996891,
0.039829712361097336,
-0.006826966535300016,
0.003516847500577569,
-0.060758523643016815,
0.01575075089931488,
-0.04595281928777695,
-0.0040262858383357525,
-0.03156057000160217,
0.07910814881324768,
0.07284722477197647,
0.05087492987513542,
0.027150359004735947,
-0.06264861673116684,
-0.0030492471996694803,
0.004424976650625467,
0.014274118468165398,
0.009731011465191841,
0.009509515948593616,
-0.046464718878269196,
-0.030851785093545914,
-0.02149977535009384,
0.01694190315902233,
0.034257885068655014,
0.02289765514433384,
0.01672532968223095,
-0.012482470832765102,
0.01908794231712818,
-0.04240889847278595,
-0.0497329980134964,
0.042881421744823456,
-0.03061552345752716,
0.038412146270275116,
-0.007028772961348295,
-0.016754861921072006,
0.021007565781474113,
-0.0009647335391491652,
0.006467652507126331,
-0.06012849509716034,
0.00868260208517313,
0.019786881282925606,
0.01206901390105486,
-0.016075611114501953,
0.07324099540710449,
0.03756554424762726,
0.009760543704032898,
-0.021716348826885223,
-0.07221719622612,
0.037467099726200104,
-0.04236952215433121,
0.013693309389054775,
0.0270125400274992,
-0.06359366327524185,
-0.005050084553658962,
0.0025078149046748877,
0.02453179657459259,
0.01065144594758749,
0.013545646332204342,
0.05319816246628761,
-0.0009431993239559233,
0.007397931069135666,
-0.017601465806365013,
-0.0060295844450592995,
0.047527894377708435,
0.03313564509153366,
0.0762336403131485,
0.08993679285049438,
-0.04654347151517868,
-0.05961659550666809,
0.011163345538079739,
0.03022175468504429,
0.008928707800805569,
0.04725225642323494,
-0.013801596127450466,
0.07658802717924118,
0.015790129080414772,
-0.002501662354916334,
-0.011665400117635727,
0.0012231443542987108,
-0.016764706000685692,
0.0352226197719574,
-0.05004801228642464,
0.026540016755461693,
0.0017362742219120264,
-0.015268385410308838,
0.008441418409347534,
0.04067631810903549,
0.015780285000801086,
-0.08576284348964691,
0.030182378366589546,
-0.014451314695179462,
-0.05697834491729736,
0.017237229272723198,
0.021755725145339966,
0.06501122564077377,
-0.007063227705657482,
-0.0016685952432453632,
-0.0304186400026083,
-0.044653382152318954,
-0.0014778635231778026,
0.0061674038879573345,
0.052725642919540405,
0.0060689616948366165,
-0.09978101402521133,
0.015435736626386642,
0.0052420469000935555,
0.002133734757080674,
-0.04315705969929695,
0.05512763187289238,
0.0282725989818573,
-0.034986358135938644,
0.06449932605028152,
-0.054143209010362625,
-0.03577389568090439,
0.013309385627508163,
0.010484093800187111,
0.018812304362654686,
0.03782149404287338,
-0.007073071785271168,
-0.03528168424963951,
0.045716557651758194,
-0.025476841256022453,
0.014471002854406834,
0.0469372384250164,
-0.02685503102838993,
0.043078307062387466,
-0.02705191634595394,
-0.01968844048678875,
0.02738661877810955,
-0.024433353915810585,
0.03276156261563301,
0.027091292664408684,
-0.05741149187088013,
0.00652671791613102,
-0.02165728434920311,
-0.015051811933517456,
0.0002659477468114346,
-0.004498808644711971,
-0.06757072359323502,
-0.014845083467662334,
0.06422369182109833,
0.016754861921072006,
-0.017857415601611137,
0.013712998479604721,
-0.0179853904992342,
-0.0039007721934467554,
-0.06430244445800781,
-0.02431522309780121,
-0.02541777491569519,
-0.02579185552895069,
-0.033194709569215775,
-0.004392982926219702,
0.0009782693814486265,
0.032111845910549164,
0.045007772743701935,
0.044102106243371964,
0.07249283790588379,
-0.0021448093466460705,
-0.0278985183686018,
-0.013447204604744911,
0.05658457428216934,
-0.03224966302514076,
-0.034257885068655014,
-0.0015430814819410443,
-0.0009868830675259233,
0.029591724276542664,
-0.0021140461321920156,
0.005901610013097525,
0.02738661877810955,
-0.03868778422474861,
-0.013890193775296211,
0.011626023799180984,
0.07233532518148422,
0.045716557651758194,
-0.0162134300917387,
-0.04236952215433121,
0.027307866141200066,
-0.019058410078287125,
-0.01251200307160616,
-0.05516700819134712,
-0.05508825555443764,
0.049496736377477646,
0.013457048684358597,
-0.033903494477272034,
-0.016164209693670273,
-0.04705537110567093,
0.06627129018306732,
-0.012876239605247974,
-0.04122759401798248,
-0.008584159426391125,
0.016735173761844635,
-0.023901766166090965,
-0.012984526343643665,
0.036620497703552246,
-0.049654245376586914,
-0.02972954325377941,
-0.009927895851433277,
0.007166591938585043,
-0.02291734330356121,
-0.05508825555443764,
0.0060049742460250854,
0.003319963114336133,
-0.06044350937008858,
0.022818902507424355,
-0.019658906385302544,
0.03421850875020027,
-0.05812027305364609,
0.007717868313193321,
0.005793323274701834,
-0.02329142391681671,
-0.0050845397636294365,
0.0059311422519385815,
0.011872129514813423,
-0.01997392252087593,
0.04666160047054291,
0.001122856279835105,
0.003930304665118456,
0.027445685118436813,
0.0010625604772940278,
0.019304515793919563,
-0.07324099540710449,
-0.03199371322989464,
-0.008697368204593658,
0.07587924599647522,
0.03740803524851799,
0.009794998914003372,
0.07233532518148422,
0.029493283480405807,
0.02685503102838993,
-0.04079444706439972,
0.036246418952941895,
-0.020712237805128098,
0.01701081171631813,
-0.0176113098859787,
-0.07450105249881744,
0.012443093582987785,
0.052528757601976395,
-0.06603502482175827,
-0.020456288009881973,
-0.019589997828006744,
-0.006600549444556236,
-0.03526199609041214,
-0.0015073961112648249,
0.012649822048842907,
-0.004262547008693218,
-0.03388380631804466,
-0.00453572440892458,
-0.09584332257509232,
0.012374184094369411,
-0.030694277957081795,
0.02274014800786972,
0.08387275040149689,
0.03476978465914726,
-0.01512072142213583,
0.0061674038879573345,
0.021952610462903976,
-0.05461573228240013,
0.0023872232995927334,
0.0032879693899303675,
0.029316086322069168,
0.0026407120749354362,
0.05367068573832512,
-0.017227385193109512,
-0.028371041640639305,
0.0404006764292717,
0.053080033510923386,
0.0049122655764222145,
0.03152119368314743,
0.04370833560824394,
0.03289938345551491,
0.027071604505181313,
-0.05367068573832512,
0.0515049584209919
] |
10,128 | pygments.formatters.html | _get_css_class | Return the css class of this token type prefixed with
the classprefix option. | def _get_css_class(self, ttype):
"""Return the css class of this token type prefixed with
the classprefix option."""
ttypeclass = _get_ttype_class(ttype)
if ttypeclass:
return self.classprefix + ttypeclass
return ''
| (self, ttype) | [
0.0004433924041222781,
-0.0004108788853045553,
0.04747319966554642,
0.01812010444700718,
0.025117704644799232,
-0.020955974236130714,
-0.009621701203286648,
-0.004633608739823103,
0.03299921378493309,
-0.026130516082048416,
0.03067895583808422,
-0.011702567338943481,
0.010689756833016872,
-0.0004807973455172032,
0.011582870967686176,
-0.04043876752257347,
0.03786070644855499,
-0.014915939420461655,
0.011122502386569977,
-0.05579666048288345,
0.019353890791535378,
0.04703124612569809,
0.05281347408890724,
-0.013765018433332443,
-0.009101484902203083,
-0.0052942377515137196,
0.04784149304032326,
-0.011840677820146084,
-0.02764052525162697,
-0.0597742460668087,
-0.029795048758387566,
-0.010901525616645813,
-0.06051083654165268,
-0.002290333155542612,
0.03526422753930092,
-0.017659734934568405,
0.008456969633698463,
0.02458367682993412,
0.026701372116804123,
-0.016545644029974937,
-0.026977593079209328,
0.01213531382381916,
-0.07918338477611542,
-0.060915958136320114,
-0.003860189812257886,
0.00795977097004652,
0.026977593079209328,
0.006965375505387783,
-0.06150523200631142,
-0.0616157203912735,
0.020587678998708725,
-0.022281834855675697,
-0.01792674884200096,
-0.050419557839632034,
0.013792640529572964,
-0.022410739213228226,
-0.024325871840119362,
-0.020642923191189766,
-0.03091834858059883,
0.09708251059055328,
0.013599284924566746,
0.020329872146248817,
-0.0023870107252150774,
0.024012820795178413,
-0.006969979032874107,
0.020771825686097145,
0.007964374497532845,
0.03695838153362274,
-0.02537551149725914,
0.008613494224846363,
0.0013201066758483648,
-0.007315255235880613,
-0.0234972070902586,
-0.029555657878518105,
0.03557727858424187,
-0.05564934387803078,
-0.016803450882434845,
-0.03250201418995857,
-0.023810258135199547,
0.0210480485111475,
0.026259418576955795,
0.04415854439139366,
0.0652618408203125,
-0.020329872146248817,
0.0762370228767395,
-0.018018823117017746,
-0.010266217403113842,
-0.02079024165868759,
-0.12242119014263153,
-0.008489195257425308,
-0.04191194847226143,
-0.03859729319810867,
-0.007131108082830906,
-0.026627713814377785,
-0.034619711339473724,
-0.0058374726213514805,
0.010146521963179111,
-0.049572478979825974,
-0.015937957912683487,
-0.005911131389439106,
0.07653165608644485,
0.03948120027780533,
-0.0014018220826983452,
-0.015569662675261497,
0.015146123245358467,
-0.03340433910489082,
-0.07719458639621735,
0.053771041333675385,
0.020661337301135063,
0.009239595383405685,
0.015348685905337334,
-0.03264933452010155,
0.060842301696538925,
0.016425948590040207,
0.085370734333992,
-0.05093517154455185,
-0.007190955802798271,
0.036755818873643875,
0.014906731434166431,
0.009285632520914078,
0.026259418576955795,
0.0031857499852776527,
-0.001754003926180303,
0.037068869918584824,
-0.031157739460468292,
0.046147339046001434,
0.004371198825538158,
0.04890954867005348,
0.02769576944410801,
-0.0044287447817623615,
0.0031351095531135798,
0.04143316298723221,
-0.022429153323173523,
0.00888050813227892,
0.038155339658260345,
0.0732170045375824,
-0.03544837236404419,
0.0439375676214695,
-0.03649801388382912,
0.06563013046979904,
0.03555886074900627,
0.02898479998111725,
-0.001628553494811058,
-0.09236833453178406,
-0.058043260127305984,
0.0295924860984087,
-0.024694165214896202,
0.04124901816248894,
0.005690154619514942,
0.028763823211193085,
-0.02447318844497204,
-0.04091755300760269,
0.045963190495967865,
0.04585270211100578,
-0.007499402854591608,
0.04463732987642288,
-0.024012820795178413,
0.0005147494957782328,
0.0186080951243639,
-0.0243995301425457,
0.03268616273999214,
-0.026020027697086334,
0.019630111753940582,
-0.06662452965974808,
0.08699122816324234,
0.03239152580499649,
0.0038578880485147238,
-0.006279426161199808,
-0.021140120923519135,
-0.017788639292120934,
0.0072369929403066635,
-0.007692757528275251,
0.029629316180944443,
0.024252211675047874,
0.010293839499354362,
0.03531946986913681,
-0.026130516082048416,
0.0640096366405487,
0.03642435371875763,
0.03800802305340767,
0.008369498886168003,
0.009340876713395119,
-0.052187371999025345,
0.01598399505019188,
0.04544757679104805,
-0.0012337875086814165,
0.08014094829559326,
-0.0007020619814284146,
0.027677353471517563,
-0.008765416219830513,
0.0005679796449840069,
0.022245004773139954,
0.00460368487983942,
-0.010726585984230042,
0.033514827489852905,
-0.020771825686097145,
0.009630909189581871,
0.013903128914535046,
0.002063601743429899,
0.032115306705236435,
-0.02263171598315239,
0.056643739342689514,
0.0022638621740043163,
0.034803859889507294,
0.0512298047542572,
-0.014713376760482788,
0.06058449298143387,
-0.0027368906885385513,
-0.0805092453956604,
0.016554851084947586,
-0.03771338611841202,
-0.02489672787487507,
0.0001260978024220094,
0.04611050710082054,
-0.0030384319834411144,
-0.06850282847881317,
0.013847884722054005,
0.041690971702337265,
-0.062499627470970154,
0.006574062164872885,
0.02220817655324936,
0.025725390762090683,
0.032778237015008926,
0.003726682858541608,
0.024417944252490997,
-0.06135791167616844,
-0.03725301846861839,
0.0039154342375695705,
-0.032354697585105896,
-0.030826274305582047,
0.03274140879511833,
-0.009267217479646206,
0.032244209200143814,
0.08036192506551743,
0.005082468036562204,
-0.050787851214408875,
0.017540039494633675,
0.016490399837493896,
-0.019243402406573296,
-0.021913539618253708,
-0.044747818261384964,
0.009161332622170448,
0.05417616292834282,
-0.02471258118748665,
0.02445477433502674,
0.052850302308797836,
0.012761414982378483,
-0.00043476049904711545,
-0.030089685693383217,
0.03533788397908211,
-0.0445268414914608,
-0.02635149285197258,
0.027124911546707153,
-0.017714979127049446,
-0.0028473790735006332,
-0.0091521255671978,
-0.05093517154455185,
0.02799040451645851,
-0.024325871840119362,
0.015845883637666702,
-0.031433962285518646,
-0.012162935920059681,
0.047362711280584335,
-0.015109294094145298,
0.006196559872478247,
-0.008852886036038399,
0.014078068546950817,
0.05399201810359955,
-0.050603706389665604,
-0.008337273262441158,
0.123231440782547,
0.03572459518909454,
0.013958373107016087,
0.04231707379221916,
0.006965375505387783,
-0.08559171110391617,
-0.0378238745033741,
0.03325701877474785,
-0.02329464629292488,
-0.049867115914821625,
-0.02384708821773529,
-0.04018096253275871,
0.0056487214751541615,
-0.0009236143087036908,
-0.05483909323811531,
0.020219383761286736,
-0.00011163936142111197,
0.0073382738046348095,
-0.006762813311070204,
0.034730199724435806,
-0.03959169238805771,
-0.042427562177181244,
0.00017752959684003145,
-0.03496959060430527,
0.06758209317922592,
-0.03136030212044716,
0.010827867314219475,
0.021397927775979042,
-0.04581587389111519,
0.03800802305340767,
-0.026075271889567375,
0.020421946421265602,
-0.025025632232427597,
-0.013323063962161541,
-0.019906334578990936,
0.028137722983956337,
0.028561260551214218,
-0.0008850584272295237,
0.0234972070902586,
0.03703204169869423,
-0.044195376336574554,
0.026259418576955795,
-0.0439375676214695,
0.008010411635041237,
-0.016619302332401276,
0.05192956700921059,
-0.05281347408890724,
0.008839075453579426,
0.048835888504981995,
0.07214894890785217,
-0.05679105594754219,
-0.03624020889401436,
0.009851885959506035,
0.003264012513682246,
-0.010800245217978954,
-0.027106497436761856,
-0.043458785861730576,
0.0234787929803133,
-0.018764620646834373,
-0.0222634207457304,
-0.031875915825366974,
-0.0210480485111475,
-0.03566934913396835,
-0.0074395546689629555,
0.001999150263145566,
-0.05019858106970787,
0.052666157484054565,
0.004069657530635595,
-0.04036511108279228,
-0.03465653955936432,
0.033459581434726715,
0.013424345292150974,
-0.017521625384688377,
0.02683027647435665,
-0.021747807040810585,
0.017540039494633675,
0.004990394692867994,
0.034196171909570694,
0.08654927462339401,
0.002354784868657589,
-0.008153125643730164,
-0.06673501431941986,
0.034748613834381104,
0.05391835793852806,
0.07513213902711868,
-0.008429347537457943,
0.030476395040750504,
-0.018644923344254494,
0.009138314984738827,
0.06386231631040573,
0.012374704703688622,
0.04338512569665909,
0.034988004714250565,
0.023939162492752075,
0.010818659327924252,
0.032538846135139465,
-0.024804653599858284,
0.00399599876254797,
0.05067736282944679,
0.006601684261113405,
0.0023329174146056175,
0.036148134618997574,
-0.03207847848534584,
-0.09037954360246658,
-0.033330678939819336,
0.034435562789440155,
-0.018516020849347115,
0.0010156879434362054,
-0.0026217985432595015,
-0.035650935024023056,
-0.039554860442876816,
0.0019600188825279474,
0.004774021450430155,
-0.00015839553088881075,
-0.03371739014983177,
0.026811860501766205,
-0.029353095218539238,
-0.011638115160167217,
0.017779430374503136,
0.027916746214032173,
-0.035963986068964005,
-0.0231841579079628,
0.03487751632928848,
-0.040107302367687225,
-0.014860695227980614,
-0.0006790435290895402,
-0.06378865987062454,
-0.021821467205882072,
0.05940594896674156,
-0.020477190613746643,
0.02403123490512371,
-0.021692562848329544,
0.07704727351665497,
0.03506166487932205,
-0.012844281271100044,
0.018129311501979828,
0.008005808107554913,
-0.001383407274261117,
-0.020145725458860397,
-0.04500562325119972,
-0.028413943946361542,
0.008341876789927483,
-0.0025044046342372894,
-0.016867902129888535,
0.02195036970078945,
-0.0065694586373865604,
-0.010864696465432644,
-0.004380406346172094,
0.026093685999512672,
0.02940833941102028,
-0.05723300948739052,
0.019077669829130173,
0.03305445611476898,
-0.009285632520914078,
-0.011297442950308323,
0.010919940657913685,
0.030973592773079872,
-0.005717776715755463,
-0.030292246490716934,
0.04356927424669266,
-0.015560454688966274,
0.05049321800470352,
-0.02951882779598236,
-0.022521227598190308,
0.02213451638817787,
-0.025393925607204437,
-0.01885669305920601,
-0.0029969988390803337,
-0.000023863633032306097,
-0.005713173188269138,
-0.00615973025560379,
0.02020096965134144,
-0.016122104600071907,
0.03714253008365631,
0.06791356205940247,
-0.03948120027780533,
-0.044747818261384964,
-0.0009241897496394813,
-0.02062450908124447,
-0.03682947903871536,
-0.07601604610681534,
0.04854125529527664,
-0.02463892102241516,
0.027364302426576614,
0.056385934352874756,
-0.004334369208663702,
-0.059074483811855316,
-0.00829123705625534,
-0.04548440873622894,
-0.03710570186376572,
-0.05808008834719658,
0.05012492090463638,
0.02756686508655548,
0.04032827913761139,
-0.02764052525162697,
-0.04603685066103935,
0.02471258118748665,
0.017098085954785347,
0.0030453375075012445,
-0.02574380673468113,
-0.042795855551958084,
-0.03552203252911568,
-0.013958373107016087,
-0.03255726024508476,
-0.04180146008729935,
0.06209450215101242,
-0.0234787929803133,
0.019666941836476326,
0.004732588306069374,
-0.04684709757566452,
0.02049560472369194,
-0.009584872052073479,
-0.0034826877526938915,
-0.01466734055429697,
-0.005570458713918924,
0.04298000410199165,
-0.016269423067569733,
0.0056395139545202255,
0.0793306976556778,
-0.04375342279672623,
-0.03550361841917038,
0.06728745996952057,
-0.03508007898926735,
0.020421946421265602,
0.041028041392564774,
0.029132118448615074,
-0.017908334732055664,
0.06551964581012726,
-0.048467595130205154,
0.05410250648856163,
0.05355006456375122,
-0.04916735365986824,
-0.0051054866053164005,
-0.015910334885120392,
0.059995222836732864,
-0.0627942606806755,
-0.021140120923519135,
0.03270457684993744,
0.02690393477678299,
-0.01217214297503233,
-0.0002511885541025549,
0.023626111447811127,
0.017981993034482002,
-0.0243995301425457,
0.0017827770207077265,
0.00973218958824873,
-0.015643320977687836,
0.02152683027088642,
0.03929705545306206,
0.03452763706445694,
-0.027364302426576614,
0.006422140635550022,
-0.011951166205108166,
0.011177747510373592,
-0.01475941389799118,
0.11004648357629776,
0.0069929976016283035,
0.05380786955356598,
-0.014621303416788578,
0.03130505606532097,
-0.0021522226743400097,
-0.00042411446338519454,
-0.013258612714707851,
-0.020274627953767776,
-0.01981426030397415,
-0.020606093108654022,
-0.07159651070833206,
-0.00960328709334135,
0.08839075267314911,
-0.036203376948833466,
0.02938992530107498,
-0.06592477113008499,
0.01891193725168705,
0.012015617452561855,
-0.03692155331373215,
0.035227395594120026,
-0.003388312179595232,
-0.009313254617154598,
-0.04839393496513367,
0.020845485851168633,
0.013838676735758781,
-0.007844679057598114,
-0.012936354614794254,
-0.05362372100353241,
-0.011150124482810497,
0.02598319761455059,
-0.0329255536198616,
0.010717378929257393,
0.06316255778074265,
0.04611050710082054,
-0.001988791860640049,
-0.036995213478803635,
0.03603764623403549,
-0.01366373710334301,
-0.04213292524218559,
-0.049867115914821625,
-0.058706190437078476,
0.019353890791535378,
-0.03714253008365631,
-0.005013412795960903,
0.03001602552831173,
-0.009934752248227596,
0.0034343490842729807,
0.0007060901843942702,
0.015937957912683487,
0.0414699949324131,
-0.031157739460468292,
0.036516427993774414,
0.00903243012726307,
-0.019372306764125824,
0.009888715110719204,
0.054507628083229065,
0.02940833941102028,
-0.02701442316174507,
-0.03325701877474785,
-0.0719648003578186,
-0.052666157484054565,
-0.04463732987642288,
-0.02506246045231819,
-0.01015572901815176,
-0.03204164654016495,
0.057674966752529144,
0.047362711280584335,
0.008774623274803162,
-0.019979992881417274,
-0.018985597416758537,
0.007932148873806,
0.006339274346828461,
-0.04062291607260704,
0.014096483588218689,
0.036755818873643875,
0.05402884632349014,
0.010892318561673164,
0.04323780909180641,
0.017604490742087364,
-0.05715935304760933,
0.005331067368388176,
0.010174144059419632,
0.019630111753940582,
-0.04275902733206749,
0.02648039534687996,
0.006049241870641708,
0.03056846745312214,
0.042685367166996,
-0.03671899065375328,
0.0007377405418083072,
0.0023409738205373287,
-0.036995213478803635,
-0.041875116527080536,
-0.04592636227607727,
-0.07435871660709381,
0.04832027852535248,
0.0677294135093689,
0.006228785961866379,
0.018322665244340897,
0.02049560472369194,
0.005943357478827238,
-0.08286632597446442,
0.04198560491204262,
-0.06842917203903198,
-0.010072862729430199,
0.008834470994770527,
-0.03316494822502136,
-0.09722982347011566,
-0.04183828830718994,
0.05587032064795494,
-0.07100723683834076,
0.013166539371013641,
-0.02427062764763832,
-0.056717399507761,
-0.013405930250883102,
0.040291450917720795,
-0.04570538550615311,
0.00957566499710083,
-0.006422140635550022,
-0.03167335316538811,
-0.003945358097553253,
-0.015873504802584648,
0.0010697812540456653,
0.026922348886728287,
-0.025817465037107468,
0.0043159546330571175,
0.0262225903570652,
0.009446761570870876,
-0.043274637311697006,
-0.016002409160137177,
-0.04117535799741745,
0.025301853194832802,
-0.008028826676309109,
-0.07421140372753143,
0.0034090287517756224,
-0.007890716195106506,
0.0032847293186932802,
0.01793595589697361,
-0.0010076315375044942,
-0.0041939569637179375,
0.016379911452531815,
-0.017954371869564056,
0.02513612061738968,
-0.08286632597446442,
-0.03031066246330738,
0.05314493924379349,
-0.025044046342372894,
-0.10960453003644943,
-0.06732428818941116,
-0.034490808844566345,
0.0014121803687885404,
-0.017853090539574623,
0.06934990733861923,
-0.047178562730550766,
0.008581268601119518,
0.01161970105022192,
-0.027622109279036522,
0.006385311018675566,
0.05355006456375122,
0.0016722885193303227,
0.023939162492752075,
-0.03524581342935562,
0.013930751010775566,
-0.04798881337046623,
-0.11314015835523605,
0.017346685752272606,
0.006523421499878168,
0.053402744233608246,
0.009285632520914078,
0.018285837024450302,
-0.010164936073124409,
0.021066462621092796,
0.02250281162559986,
-0.03544837236404419,
-0.006463573779910803,
-0.021269025281071663,
-0.031323473900556564,
0.026369906961917877,
0.03220738098025322,
0.052003223448991776,
0.08993759006261826,
-0.009769019670784473,
-0.03819217160344124,
0.07859411090612411,
0.008742397651076317,
-0.015910334885120392,
0.044305864721536636,
0.04264853894710541,
-0.05575983226299286,
-0.04994077607989311,
-0.0009846130851656199,
0.04581587389111519,
-0.012733792886137962,
0.01579984650015831,
-0.007918338291347027,
0.015422344207763672,
0.03786070644855499,
0.09266296774148941,
0.0091521255671978,
0.01896718144416809,
-0.014584474265575409,
-0.025706976652145386,
-0.07984631508588791,
-0.032244209200143814,
0.0028289644978940487,
0.021821467205882072,
-0.023165741935372353,
-0.002978584263473749,
0.0010651776101440191,
-0.0183042511343956,
0.004686551168560982,
0.0018230592831969261,
-0.055354706943035126,
0.031452376395463943,
-0.08890636265277863,
0.010625304654240608,
-0.056459590792655945,
0.03368055820465088,
-0.021508416160941124,
-0.006044638343155384,
0.021305853500962257,
0.0063254632987082005,
0.03653484210371971,
0.017171744257211685,
0.04684709757566452,
-0.043090492486953735,
-0.05233469232916832,
-0.04703124612569809,
0.05347640439867973,
-0.025541244074702263,
0.020514020696282387,
-0.06887112557888031,
-0.01701521873474121,
0.006707569118589163,
0.043642934411764145,
-0.05752764642238617,
0.0004885660600848496,
0.0030131118837743998,
0.06087912991642952,
0.010873903520405293,
-0.006063052918761969,
-0.039039246737957
] |
10,129 | pygments.formatters.html | _get_css_classes | Return the CSS classes of this token type prefixed with the classprefix option. | def _get_css_classes(self, ttype):
"""Return the CSS classes of this token type prefixed with the classprefix option."""
cls = self._get_css_class(ttype)
while ttype not in STANDARD_TYPES:
ttype = ttype.parent
cls = self._get_css_class(ttype) + ' ' + cls
return cls or ''
| (self, ttype) | [
-0.019758228212594986,
-0.001253303256817162,
0.019813470542430878,
-0.008857136592268944,
-0.0029761637561023235,
0.0032270546071231365,
-0.03738043084740639,
-0.014795653522014618,
0.056788794696331024,
-0.017935242503881454,
0.039295487105846405,
0.005040834192186594,
0.021783769130706787,
0.007913419045507908,
0.013230463489890099,
-0.059698209166526794,
0.0261110607534647,
-0.009575283154845238,
0.020642099902033806,
-0.0494968481361866,
0.006173295434564352,
0.05144873261451721,
0.06316003948450089,
-0.021452317014336586,
-0.01729075238108635,
0.00011372087465133518,
0.0294808242470026,
-0.006983511615544558,
-0.03412115201354027,
-0.036367662250995636,
-0.03984791040420532,
0.0009183985530398786,
-0.061392296105623245,
-0.024177590385079384,
0.04426727071404457,
-0.0260926466435194,
0.018064139410853386,
0.040989577770233154,
0.037472501397132874,
-0.0027091605588793755,
-0.025945333763957024,
-0.00030440653790719807,
-0.10186628252267838,
-0.07163048535585403,
-0.01688564382493496,
-0.0037518537137657404,
0.03091711550951004,
-0.0019438285380601883,
-0.06025062873959541,
-0.04842883720993996,
0.0220415648072958,
-0.018460040912032127,
-0.012678042985498905,
-0.0467715747654438,
0.026479341089725494,
-0.011048403568565845,
-0.040658123791217804,
-0.019408361986279488,
-0.027565766125917435,
0.07704420387744904,
0.03266644477844238,
0.025448156520724297,
0.003641369752585888,
0.025945333763957024,
0.0022614700719714165,
0.011950690299272537,
0.003270787885412574,
0.030806632712483406,
-0.01621353253722191,
0.025448156520724297,
-0.043015118688344955,
-0.01879149302840233,
-0.009593697264790535,
-0.004672553855925798,
0.02358834259212017,
-0.04802372679114342,
0.0021222142968326807,
-0.017032954841852188,
-0.01529283169656992,
0.014528650790452957,
0.004649536684155464,
0.05008609592914581,
0.053732071071863174,
-0.005399907473474741,
0.10061413049697876,
0.006159484852105379,
-0.015329659916460514,
-0.003680499503389001,
-0.09258562326431274,
0.012411040253937244,
-0.06389660388231277,
-0.026000576093792915,
0.0047462098300457,
-0.024840494617819786,
-0.04481969028711319,
0.027344798669219017,
-0.00545975286513567,
-0.04934953525662422,
-0.04095274955034256,
0.0036966116167604923,
0.06360197812318802,
0.04021618887782097,
0.022280946373939514,
-0.016103047877550125,
0.013525087386369705,
-0.030475180596113205,
-0.08389420807361603,
0.0373067744076252,
0.035980965942144394,
0.02123134955763817,
-0.00593391340225935,
-0.06231299787759781,
0.07291946560144424,
0.01423402689397335,
0.06665869802236557,
-0.06595896929502487,
-0.01599256508052349,
0.03003324382007122,
0.029738619923591614,
-0.02487732283771038,
0.006942080333828926,
0.007830556482076645,
0.015200762078166008,
0.04831835255026817,
-0.027565766125917435,
0.03412115201354027,
0.0147404121235013,
0.06072939187288284,
0.025466570630669594,
0.025264015421271324,
0.010164530947804451,
0.027307970449328423,
-0.03682801127433777,
0.011720514856278896,
0.0069190626963973045,
0.0759393572807312,
-0.057046592235565186,
0.00598455173894763,
-0.020181750878691673,
0.03574158623814583,
0.03130381181836128,
0.029443996027112007,
0.007802934851497412,
-0.05240626260638237,
-0.08580926805734634,
0.039148177951574326,
-0.005367682781070471,
0.04644012451171875,
-0.009547661989927292,
0.027749907225370407,
-0.03310838341712952,
-0.04316243156790733,
0.05303233861923218,
0.04246269911527634,
-0.0264425128698349,
0.04076860845088959,
-0.020052852109074593,
0.010891884565353394,
0.010376292280852795,
-0.035354889929294586,
0.014639134518802166,
-0.02719748765230179,
0.0025273223873227835,
-0.06327052414417267,
0.09207002818584442,
0.026129474863409996,
-0.006845406722277403,
-0.01857973262667656,
-0.0027114623226225376,
0.002442157594487071,
0.01046836283057928,
0.007798331324011087,
0.04150516912341118,
0.010716951452195644,
0.00979625154286623,
-0.011453512124717236,
-0.032924242317676544,
0.04367802292108536,
0.026258371770381927,
0.04434092715382576,
-0.0005075360531918705,
-0.01837717741727829,
-0.049865126609802246,
0.000011652613466139883,
0.055094704031944275,
-0.009787044487893581,
0.07045198976993561,
-0.01688564382493496,
0.02719748765230179,
-0.005694531369954348,
-0.006394263356924057,
0.023164819926023483,
0.007664829958230257,
0.004313481040298939,
0.04400947317481041,
0.0028564727399498224,
-0.019629331305623055,
0.025190360844135284,
-0.03892720863223076,
0.02298067882657051,
-0.042278558015823364,
0.049202222377061844,
0.0039359936490654945,
-0.005524201784282923,
0.056236375123262405,
-0.019426776096224785,
0.03944279998540878,
-0.012079588137567043,
-0.06838961690664291,
0.0077016581781208515,
-0.023091163486242294,
0.008373769000172615,
-0.009952770546078682,
0.02128659002482891,
0.004713985603302717,
-0.05991917476058006,
0.05096996948122978,
0.03430529311299324,
-0.06861058622598648,
-0.016591019928455353,
0.002041652798652649,
0.04876028746366501,
0.03719629347324371,
0.013469845056533813,
0.001087001757696271,
-0.05815143138170242,
-0.03614669293165207,
0.005579443648457527,
-0.021047208458185196,
-0.026055818423628807,
0.013460638001561165,
-0.016784366220235825,
0.011923069134354591,
0.06669552624225616,
-0.004787641577422619,
-0.05273771286010742,
0.0332188680768013,
0.0020071265753358603,
-0.008295509964227676,
-0.012521523982286453,
-0.041468340903520584,
-0.0021256667096167803,
0.019021667540073395,
-0.044377755373716354,
0.026700308546423912,
0.057046592235565186,
0.02902047336101532,
-0.026681894436478615,
-0.02515353262424469,
0.04312560334801674,
-0.02752893976867199,
-0.04481969028711319,
0.01946360431611538,
-0.027768321335315704,
-0.009639732539653778,
-0.032776929438114166,
-0.05575760826468468,
0.013644778169691563,
-0.005616271868348122,
-0.00179306382779032,
-0.010873470455408096,
-0.001913905725814402,
0.0440831296145916,
0.011830998584628105,
-0.009925149381160736,
-0.003998141270130873,
0.0399952195584774,
0.027271142229437828,
-0.07306677848100662,
0.0072919465601444244,
0.09855175763368607,
0.04224172979593277,
0.004638027865439653,
0.061134498566389084,
0.003747250186279416,
-0.058887992054224014,
-0.029922759160399437,
0.03736201673746109,
-0.031487949192523956,
-0.06389660388231277,
-0.038337960839271545,
-0.026074232533574104,
0.0008493460481986403,
-0.008907775394618511,
-0.020899897441267967,
0.007453069090843201,
-0.0147404121235013,
0.01338698249310255,
-0.013138392940163612,
0.04150516912341118,
-0.009952770546078682,
-0.03215085342526436,
0.00279662711545825,
-0.04441458359360695,
0.0704888179898262,
-0.02252032980322838,
0.0008821459487080574,
0.015771595761179924,
-0.02970179170370102,
0.030806632712483406,
-0.014399752952158451,
0.016047805547714233,
-0.005735962651669979,
-0.007973264902830124,
-0.005832636263221502,
0.01585445925593376,
0.0240671057254076,
0.00683159613981843,
0.02231777459383011,
0.027584180235862732,
-0.040842264890670776,
0.016775159165263176,
-0.016637055203318596,
-0.0064402986317873,
-0.024048691615462303,
0.027768321335315704,
-0.04121054708957672,
0.01870862953364849,
0.02393820695579052,
0.067800372838974,
-0.06161326542496681,
-0.024785252287983894,
0.008898568339645863,
0.013543501496315002,
-0.01946360431611538,
-0.00358612765558064,
-0.01871783658862114,
0.017649825662374496,
-0.03343983367085457,
-0.022962264716625214,
-0.032114025205373764,
-0.021599629893898964,
-0.05575760826468468,
0.015127105638384819,
-0.004161565564572811,
-0.022115221247076988,
0.0379696786403656,
-0.006909855641424656,
-0.027013346552848816,
-0.041394684463739395,
0.026681894436478615,
0.03091711550951004,
-0.027473697438836098,
0.01633322238922119,
-0.03126698359847069,
0.009437178261578083,
0.0271238312125206,
0.05166970193386078,
0.07284580916166306,
0.014224819839000702,
0.0037541554775089025,
-0.04861297458410263,
0.030530421063303947,
0.05369524285197258,
0.08278936892747879,
-0.006196313071995974,
0.021305004134774208,
-0.01891118474304676,
0.012871390208601952,
0.05918261408805847,
0.058887992054224014,
0.06430170685052872,
0.022741297259926796,
0.033329349011182785,
0.019021667540073395,
0.01230976264923811,
0.014224819839000702,
0.006435695104300976,
0.038890380412340164,
0.0051605249755084515,
0.00506845535710454,
0.04006887599825859,
-0.030659319832921028,
-0.09597379714250565,
-0.03174574673175812,
0.03947962820529938,
0.008097559213638306,
0.002704557031393051,
0.015964943915605545,
-0.019610917195677757,
-0.039369143545627594,
-0.005910895764827728,
0.02055003121495247,
-0.0038600359112024307,
-0.03877989575266838,
0.022999092936515808,
0.004693269729614258,
0.009520040825009346,
0.019316291436553,
0.026534583419561386,
-0.0022982980590313673,
-0.03992156311869621,
0.00776150356978178,
-0.03601779416203499,
-0.013009495101869106,
0.002033596858382225,
-0.06360197812318802,
-0.013433017767965794,
0.04592452943325043,
-0.02264922671020031,
0.016103047877550125,
-0.025724366307258606,
0.06271810084581375,
0.027344798669219017,
-0.017198681831359863,
0.01742885634303093,
0.01714343950152397,
-0.016167497262358665,
-0.014906138181686401,
-0.034747228026390076,
-0.0045022242702543736,
-0.018819114193320274,
-0.010008011944591999,
-0.016158290207386017,
0.01647132821381092,
-0.028854748234152794,
-0.021673284471035004,
0.027068588882684708,
0.03181940317153931,
0.025853265076875687,
-0.05041754990816116,
-0.014261648058891296,
0.03261120617389679,
0.017051368951797485,
0.011370648629963398,
0.015320452861487865,
0.012871390208601952,
0.0006772901397198439,
-0.03903769329190254,
0.030419938266277313,
0.009262245148420334,
0.06069256365299225,
-0.04839200899004936,
-0.04632963985204697,
0.0227044690400362,
-0.033900186419487,
-0.020421132445335388,
-0.002872584853321314,
-0.004787641577422619,
-0.001993316225707531,
-0.028799505904316902,
0.014906138181686401,
-0.017235510051250458,
0.04581404849886894,
0.09214368462562561,
-0.023698825389146805,
-0.03859575837850571,
0.017005333676934242,
-0.026055818423628807,
-0.027749907225370407,
-0.11556629836559296,
0.022667640820145607,
-0.02705017477273941,
0.027584180235862732,
0.04968098923563957,
0.03415798023343086,
-0.044230442494153976,
0.016526570543646812,
-0.06338100880384445,
-0.021857425570487976,
-0.009179381653666496,
0.03205878287553787,
0.029683377593755722,
0.06209202855825424,
-0.012447868473827839,
-0.029591307044029236,
0.03559427335858345,
0.01243866141885519,
0.014206405729055405,
-0.039700597524642944,
-0.024564284831285477,
-0.030880287289619446,
-0.001147422706708312,
-0.03587048500776291,
-0.031138084828853607,
0.050859484821558,
-0.008456632494926453,
-0.003312219399958849,
0.011738928966224194,
-0.06562751531600952,
0.02358834259212017,
-0.04187345132231712,
-0.008180421777069569,
-0.030622491613030434,
-0.03804333508014679,
0.008092955686151981,
0.006794768385589123,
-0.015541421249508858,
0.08131624758243561,
-0.05918261408805847,
-0.022962264716625214,
0.048576146364212036,
-0.04102640599012375,
0.013838125392794609,
0.03286899998784065,
0.03158001974225044,
-0.011775757186114788,
0.04754496365785599,
-0.05748852714896202,
0.037251535803079605,
0.07365602254867554,
-0.032445479184389114,
-0.009446385316550732,
-0.001977203879505396,
0.05483691021800041,
-0.03294265642762184,
-0.0018483058083802462,
0.01789841428399086,
0.009036673232913017,
-0.010008011944591999,
-0.0012832260690629482,
0.01142589095979929,
0.019279465079307556,
-0.03071456216275692,
-0.010947126895189285,
0.0032155457884073257,
0.0052848197519779205,
0.0062745725736021996,
0.05159604549407959,
0.04183662310242653,
-0.03944279998540878,
0.0039359936490654945,
-0.010182945057749748,
0.02590850554406643,
-0.013644778169691563,
0.10672757774591446,
-0.003922183066606522,
0.04868663102388382,
-0.007241307757794857,
0.01501662191003561,
0.025540227070450783,
-0.0029370340052992105,
-0.0138933677226305,
-0.012834561988711357,
-0.019095323979854584,
-0.03579682856798172,
-0.034949783235788345,
-0.011987517587840557,
0.1084953248500824,
-0.01715264655649662,
0.043236084282398224,
-0.048576146364212036,
0.030198968946933746,
0.02841281145811081,
-0.02894681692123413,
0.038080163300037384,
0.019776642322540283,
-0.02717907354235649,
-0.027952460572123528,
0.04062129557132721,
0.020863069221377373,
-0.007531328592449427,
-0.01857052557170391,
-0.03382652997970581,
-0.000250315380981192,
-0.002324768342077732,
-0.03852210193872452,
-0.00963052548468113,
0.042941462248563766,
0.03710422292351723,
0.010937919840216637,
-0.03548378869891167,
0.008654583245515823,
-0.02765783667564392,
-0.019629331305623055,
-0.06408073753118515,
-0.04434092715382576,
0.04621915519237518,
-0.01142589095979929,
0.029167786240577698,
0.024030277505517006,
-0.009980390779674053,
-0.008525684475898743,
-0.013681606389582157,
0.05229577794671059,
0.028781091794371605,
-0.0379696786403656,
0.0210103802382946,
0.006292986683547497,
-0.046882059425115585,
0.015716353431344032,
0.052037980407476425,
0.019371533766388893,
-0.02957289293408394,
-0.02053161710500717,
-0.07417161762714386,
-0.029591307044029236,
-0.041726138442754745,
-0.018598146736621857,
-0.00767864054068923,
-0.02732638455927372,
0.08654582500457764,
0.055021051317453384,
0.008926189504563808,
-0.02874426357448101,
-0.019371533766388893,
0.0002133435191353783,
0.018275901675224304,
-0.0617237463593483,
0.01261359453201294,
0.030659319832921028,
0.07225655764341354,
0.011794171296060085,
0.03653338924050331,
0.017797136679291725,
-0.05126459151506424,
0.014924552291631699,
0.01566111296415329,
0.02366199716925621,
-0.011554788798093796,
0.033900186419487,
-0.002755195600911975,
0.04636646807193756,
0.03587048500776291,
-0.04467237740755081,
-0.0031833213288336992,
-0.018598146736621857,
-0.03642290458083153,
-0.036993738263845444,
-0.028155015781521797,
-0.07174097001552582,
0.01871783658862114,
0.05737804248929024,
0.00989752821624279,
-0.010486776009202003,
0.0007964057731442153,
0.00604900112375617,
-0.08890282362699509,
0.06117132678627968,
-0.058556538075208664,
0.012549145147204399,
0.0021153090056031942,
-0.0179628636687994,
-0.10039316117763519,
-0.053879380226135254,
0.05619954690337181,
-0.06757940351963043,
-0.0018448532791808248,
-0.031432706862688065,
-0.060029659420251846,
-0.03607303649187088,
0.023717239499092102,
-0.03763822838664055,
0.015035036019980907,
-0.01552300713956356,
-0.0487971156835556,
0.014869309961795807,
-0.0039498042315244675,
0.002083084313198924,
0.027418455109000206,
-0.013764469884335995,
0.035428546369075775,
0.04658743366599083,
0.003535489086061716,
-0.05605223402380943,
-0.004154660273343325,
-0.050012439489364624,
0.02841281145811081,
-0.004755416885018349,
-0.07829635590314865,
0.013746055774390697,
-0.0022879403550177813,
0.004046477843075991,
0.04876028746366501,
-0.021397074684500694,
0.009639732539653778,
0.025043047964572906,
-0.01281614787876606,
0.029407167807221413,
-0.06161326542496681,
-0.018349556252360344,
0.06297589838504791,
-0.011232543736696243,
-0.11313565075397491,
-0.08617755025625229,
-0.0012970365351065993,
-0.006992718670517206,
0.020016023889183998,
0.06971542537212372,
-0.05914578586816788,
-0.011011575348675251,
0.019371533766388893,
-0.04264683648943901,
0.0014662152389064431,
0.05181701108813286,
0.0019254145445302129,
0.017990482971072197,
-0.037859197705984116,
0.025613881647586823,
-0.04570356383919716,
-0.07689689099788666,
0.033605560660362244,
0.03030945360660553,
0.04835518077015877,
0.00035072927130386233,
0.04312560334801674,
-0.024232832714915276,
0.01946360431611538,
0.0025273223873227835,
-0.05321647599339485,
0.013368568383157253,
-0.03064090572297573,
-0.06165009364485741,
-0.0007543988176621497,
0.03959011286497116,
0.06831596046686172,
0.08264205604791641,
0.0054413387551903725,
-0.024030277505517006,
0.0970049798488617,
0.0017297656740993261,
-0.0024997012224048376,
0.017539341002702713,
0.00596613809466362,
-0.08323130756616592,
-0.07439258694648743,
0.05159604549407959,
0.03804333508014679,
-0.012899011373519897,
0.004529845435172319,
0.0041224355809390545,
0.026018990203738213,
0.046882059425115585,
0.09818348288536072,
-0.0037886817008256912,
0.04128419980406761,
-0.0024697785265743732,
-0.016913264989852905,
-0.07428210228681564,
-0.044230442494153976,
-0.004255936946719885,
0.01142589095979929,
-0.021746940910816193,
0.027639422565698624,
-0.0029646549373865128,
-0.022207291796803474,
0.006739526055753231,
-0.0005417745560407639,
-0.07755979150533676,
0.002888697199523449,
-0.08720873296260834,
-0.022262534126639366,
-0.04032667353749275,
0.041468340903520584,
-0.043567538261413574,
-0.04117371886968613,
0.03870623931288719,
-0.0005083992145955563,
0.035428546369075775,
0.019610917195677757,
0.04143151268362999,
-0.04739765077829361,
-0.03612827882170677,
-0.058335572481155396,
0.034471020102500916,
0.00019953302398789674,
0.01667388156056404,
-0.06971542537212372,
-0.038411617279052734,
-0.007130824029445648,
0.029462410137057304,
-0.05071217194199562,
0.008056127466261387,
-0.003339840332046151,
0.08772432804107666,
0.009368125349283218,
0.0002552065998315811,
-0.04481969028711319
] |
10,130 | pygments.formatters.html | _get_css_inline_styles | Return the inline CSS styles for this token type. | def _get_css_inline_styles(self, ttype):
"""Return the inline CSS styles for this token type."""
cclass = self.ttype2class.get(ttype)
while cclass is None:
ttype = ttype.parent
cclass = self.ttype2class.get(ttype)
return cclass or ''
| (self, ttype) | [
0.006933622993528843,
-0.028100380674004555,
0.036003611981868744,
0.002901968080550432,
0.021514354273676872,
-0.008895710110664368,
0.01791033335030079,
-0.04149197041988373,
0.028374798595905304,
-0.0072446297854185104,
0.02103869616985321,
-0.03530842065811157,
-0.011370043270289898,
-0.008781368844211102,
-0.02764301933348179,
-0.03530842065811157,
-0.005726184695959091,
-0.03450346365571022,
0.028850456699728966,
-0.0421871617436409,
-0.002362279687076807,
0.03305819630622864,
0.03904050216078758,
-0.03077138215303421,
0.021111875772476196,
0.019831258803606033,
0.033405791968107224,
-0.008630439639091492,
-0.0017951496411114931,
-0.046541254967451096,
0.0007083409000188112,
0.022794971242547035,
-0.08042270690202713,
-0.014754530042409897,
0.034759584814310074,
-0.0384184904396534,
-0.010482759214937687,
0.023709697648882866,
-0.0023096830118447542,
-0.003277005860581994,
-0.020105676725506783,
0.03638779744505882,
-0.03137509897351265,
-0.034649819135665894,
-0.012266474775969982,
-0.045992422848939896,
0.02914316952228546,
-0.010940122418105602,
-0.04430932551622391,
-0.0979122668504715,
0.0294724702835083,
-0.005529518239200115,
0.006334477104246616,
-0.013272673822939396,
-0.007203466724604368,
-0.026545347645878792,
-0.061250049620866776,
-0.04522405192255974,
-0.03450346365571022,
0.051407597959041595,
-0.01780056767165661,
0.002828790107741952,
0.011552988551557064,
0.007198893465101719,
0.01173593383282423,
-0.004079677630215883,
0.026106279343366623,
0.061140283942222595,
-0.030460374429821968,
0.04719986021518707,
-0.02789914235472679,
-0.017818862572312355,
-0.0052733952179551125,
-0.07259265333414078,
-0.0049669621512293816,
-0.040101587772369385,
0.012458567507565022,
0.01641933061182499,
0.0171694066375494,
0.005657580215483904,
0.02698441594839096,
0.12323188036680222,
0.04657784476876259,
0.02552085369825363,
0.09183848649263382,
-0.02319744974374771,
0.01549545768648386,
-0.011863995343446732,
-0.11745081096887589,
-0.0026824339292943478,
-0.005511223804205656,
-0.0050675817765295506,
0.0028310767374932766,
-0.059420596808195114,
-0.015742434188723564,
0.029271230101585388,
0.013236084952950478,
-0.05166372284293175,
-0.016272975131869316,
-0.0025475118309259415,
0.0497610904276371,
0.043723899871110916,
0.0400284081697464,
-0.048809777945280075,
0.017352351918816566,
-0.051736898720264435,
-0.06575050204992294,
-0.0063253301195800304,
0.05305410549044609,
0.053090695291757584,
0.005072155501693487,
-0.049248844385147095,
0.008058736100792885,
-0.008886562660336494,
0.1038396880030632,
-0.04039429873228073,
-0.06282337754964828,
0.03827213495969772,
-0.0227217935025692,
-0.021624121814966202,
-0.008360595442354679,
-0.00035502802347764373,
0.014534995891153812,
0.02200830727815628,
-0.04152856022119522,
0.06527484208345413,
-0.034320518374443054,
0.033076491206884384,
0.06472600996494293,
-0.0011108203325420618,
0.014370344579219818,
-0.014754530042409897,
-0.001831738743931055,
0.011745081283152103,
-0.023709697648882866,
0.044967927038669586,
-0.025978216901421547,
0.015367396175861359,
-0.00035016852780245245,
-0.0044135525822639465,
0.06425034999847412,
0.03450346365571022,
-0.021239936351776123,
-0.11701174825429916,
-0.08349618315696716,
0.006892459932714701,
-0.01473623514175415,
0.053456585854291916,
-0.0041871583089232445,
0.04313847795128822,
0.000383613194571808,
-0.034375403076410294,
0.03554625064134598,
0.04408979043364525,
0.010400434024631977,
0.053456585854291916,
-0.01760847494006157,
-0.0378696545958519,
0.025813566520810127,
-0.04317506402730942,
-0.031942229717969894,
0.004649094771593809,
0.01973978616297245,
-0.05126124247908592,
0.08071541786193848,
0.031667813658714294,
-0.010619968175888062,
-0.06567732244729996,
-0.008909431286156178,
-0.017050491645932198,
-0.01452584844082594,
-0.025868449360132217,
-0.000803815433755517,
0.014388639479875565,
-0.0018786184955388308,
0.017215142026543617,
-0.02670999802649021,
0.08796004951000214,
0.0308262649923563,
0.027295421808958054,
-0.03452175855636597,
-0.0009255883051082492,
-0.03298501670360565,
0.0373208187520504,
0.04826094210147858,
-0.009449118748307228,
0.061469584703445435,
-0.03936980664730072,
0.007230908609926701,
-0.04515087231993675,
0.005941145122051239,
0.0036177411675453186,
0.00931648351252079,
0.005726184695959091,
-0.024478066712617874,
-0.01405933778733015,
-0.05374929681420326,
0.025301320478320122,
-0.06340880692005157,
0.01968490332365036,
-0.036534156650304794,
0.04317506402730942,
-0.03170440346002579,
0.0497610904276371,
0.01973978616297245,
0.024167058989405632,
0.006631763186305761,
-0.01570584438741207,
-0.08144719898700714,
0.07233653217554092,
-0.06154276430606842,
-0.006137811113148928,
-0.0006025757174938917,
0.015019800513982773,
0.01533080730587244,
-0.015742434188723564,
0.011013300158083439,
0.0643235296010971,
-0.0805690661072731,
0.004210026003420353,
0.02747836709022522,
0.0008123909938149154,
0.04738280549645424,
-0.039296627044677734,
0.033680208027362823,
-0.07259265333414078,
-0.02281326614320278,
0.004649094771593809,
-0.05565192550420761,
-0.012595776468515396,
0.04295553267002106,
-0.005529518239200115,
0.019154362380504608,
0.033680208027362823,
-0.025136670097708702,
-0.02131311409175396,
-0.005991455167531967,
-0.0055066500790417194,
-0.038381900638341904,
-0.025246435776352882,
-0.016483360901474953,
0.03203370422124863,
0.049578145146369934,
-0.021660711616277695,
0.018001805990934372,
0.04094313457608223,
0.062384311109781265,
0.013373293913900852,
-0.06333562731742859,
0.007267497945576906,
-0.02661852538585663,
-0.04580947756767273,
0.022794971242547035,
-0.004459288902580738,
-0.03249106556177139,
-0.02266690880060196,
-0.03395462781190872,
0.012348800897598267,
-0.0019815252162516117,
0.0003921887546312064,
0.009970513172447681,
0.041455380618572235,
0.07295854389667511,
-0.017709095031023026,
0.032582540065050125,
-0.004957814700901508,
-0.020197149366140366,
0.051627133041620255,
-0.0670677050948143,
0.03099091537296772,
0.08225215971469879,
0.047785285860300064,
0.027167361229658127,
0.03717446327209473,
0.026307517662644386,
-0.024587834253907204,
-0.044528860598802567,
0.07369032502174377,
-0.016702895984053612,
-0.04807799682021141,
-0.037723299115896225,
0.0106839993968606,
-0.018596379086375237,
-0.014992358162999153,
-0.04090654477477074,
-0.07043389976024628,
0.0006260155932977796,
-0.003100920934230089,
-0.012861046940088272,
0.020361799746751785,
-0.035674311220645905,
-0.012083529494702816,
-0.030259134247899055,
-0.053566351532936096,
0.0746416375041008,
0.0017757117748260498,
0.053200460970401764,
0.006425949744880199,
-0.027075888589024544,
0.04840729758143425,
0.0025040623731911182,
-0.003027742961421609,
-0.0022742373403161764,
0.008442920632660389,
-0.03624144196510315,
0.04101631045341492,
0.02396582067012787,
0.024734189733862877,
0.027514956891536713,
-0.0043220799416303635,
-0.02764301933348179,
0.028813866898417473,
-0.04288235306739807,
0.009851598180830479,
-0.02228272520005703,
0.0008718481985852122,
-0.03591214120388031,
0.009613770060241222,
0.03754035383462906,
0.07508070766925812,
-0.0859842374920845,
-0.061469584703445435,
0.04826094210147858,
-0.004898357670754194,
-0.011104772798717022,
-0.002253656042739749,
0.02341698482632637,
-0.0034119277261197567,
0.013501355424523354,
0.006796414032578468,
0.016959019005298615,
-0.025136670097708702,
-0.0405772440135479,
0.009060360491275787,
-0.0013617982622236013,
-0.03104579821228981,
0.029033401980996132,
0.040211353451013565,
-0.024789072573184967,
-0.03386315330862999,
0.03110068291425705,
0.04456545040011406,
-0.004020220600068569,
-0.005268821492791176,
-0.03995522856712341,
-0.0036726247053593397,
0.009997954592108727,
0.03823554515838623,
0.03424733877182007,
0.03132021799683571,
-0.012824458070099354,
-0.002410302869975567,
0.013775773346424103,
0.06929963827133179,
0.05250526964664459,
0.017535297200083733,
0.02023373730480671,
-0.03508888930082321,
-0.002998014446347952,
0.06172570586204529,
-0.00043964016367681324,
0.06172570586204529,
0.024679306894540787,
-0.0026824339292943478,
-0.0041231270879507065,
0.03977228328585625,
0.010418728925287724,
0.004573629703372717,
0.05960354208946228,
0.008923151530325413,
0.005831378046423197,
0.04438250511884689,
-0.02233760803937912,
-0.12235374748706818,
-0.013803214766085148,
0.05159054324030876,
-0.03823554515838623,
-0.012531745247542858,
0.03765011951327324,
-0.02206319011747837,
-0.049468379467725754,
0.003967623692005873,
0.04482157155871391,
-0.0004933802993036807,
-0.07467822730541229,
0.013181201182305813,
-0.019977614283561707,
-0.0208191629499197,
0.02407558634877205,
0.03104579821228981,
-0.013995307497680187,
-0.04412638023495674,
0.040796779096126556,
-0.04851706326007843,
-0.010912680998444557,
0.007043390069156885,
-0.004045375622808933,
-0.0014258291339501739,
0.0497610904276371,
-0.08181308954954147,
0.005639285314828157,
0.014727087691426277,
0.08649648725986481,
0.030405491590499878,
-0.02239249087870121,
-0.01140663307160139,
0.012239033356308937,
0.038381900638341904,
0.005113318096846342,
-0.018001805990934372,
-0.030570141971111298,
-0.012293917126953602,
0.011955467984080315,
-0.023325512185692787,
-0.002730456879362464,
-0.03966251760721207,
0.05279798060655594,
0.03293013572692871,
0.00827827025204897,
-0.011141362600028515,
-0.019867848604917526,
-0.033405791968107224,
0.032637421041727066,
0.009275320917367935,
0.011296865530312061,
-0.02925293706357479,
-0.010336403734982014,
0.004738280549645424,
-0.035070594400167465,
-0.0010376422433182597,
0.03413757309317589,
0.03977228328585625,
-0.005639285314828157,
-0.05971331149339676,
0.00030185957439243793,
0.004797737579792738,
-0.00789408478885889,
-0.0265087578445673,
0.02628922462463379,
0.009284468367695808,
0.035125475376844406,
0.027789374813437462,
-0.03203370422124863,
0.04357754439115524,
0.031558044254779816,
-0.00046336586819961667,
-0.023618225008249283,
0.055249448865652084,
-0.029929833486676216,
-0.05093194171786308,
-0.06483577936887741,
0.032692305743694305,
-0.016327857971191406,
-0.001800866681151092,
0.017324909567832947,
0.015833906829357147,
-0.03479617461562157,
0.018898237496614456,
-0.05499332398176193,
-0.0013320696307346225,
-0.008397184312343597,
0.05104170739650726,
0.015669256448745728,
0.05294433981180191,
-0.03741229325532913,
-0.020434977486729622,
0.01893482729792595,
0.012421978637576103,
0.014342903159558773,
-0.0294724702835083,
0.01281531061977148,
-0.0448947511613369,
-0.03428392857313156,
-0.06018896773457527,
-0.008593850769102573,
0.03834531083703041,
-0.026142867282032967,
-0.01357453316450119,
-0.022081485018134117,
-0.02541108801960945,
-0.0013446471421048045,
-0.009421677328646183,
-0.04591924324631691,
-0.026636820286512375,
-0.025392793118953705,
0.03765011951327324,
-0.02391093596816063,
-0.022538848221302032,
0.057298433035612106,
-0.038052599877119064,
-0.031997114419937134,
0.06029873341321945,
-0.026728292927145958,
0.008383463136851788,
0.017727389931678772,
0.01184570137411356,
-0.0011171090882271528,
0.039296627044677734,
-0.0008381176739931107,
0.01641933061182499,
0.054444488137960434,
-0.031887348741292953,
-0.033442381769418716,
0.022483963519334793,
0.07017777860164642,
0.011434074491262436,
-0.014781971462070942,
0.03737570345401764,
0.011699344962835312,
0.00004884493682766333,
0.009714389219880104,
0.035930436104536057,
0.019977614283561707,
-0.02405729331076145,
-0.014891739003360271,
-0.005534091964364052,
0.018459169194102287,
0.030734792351722717,
0.03470470383763313,
0.024569539353251457,
0.010501054115593433,
-0.0394795723259449,
-0.045992422848939896,
-0.0005122465081512928,
-0.021111875772476196,
0.12996426224708557,
-0.014992358162999153,
0.014278871938586235,
-0.01791033335030079,
-0.031247038394212723,
0.022538848221302032,
-0.025081785395741463,
-0.03644268214702606,
-0.0497610904276371,
-0.03260083496570587,
-0.014992358162999153,
-0.01725173182785511,
-0.011836553923785686,
0.09183848649263382,
-0.01805669069290161,
-0.013318410143256187,
-0.06520166993141174,
0.033241141587495804,
0.04943178966641426,
-0.007308660540729761,
0.02103869616985321,
0.01655654050409794,
-0.011607872322201729,
-0.04493133723735809,
0.043833669275045395,
0.044967927038669586,
0.001372088911011815,
-0.008685323409736156,
-0.024532949551939964,
-0.01541313249617815,
0.03413757309317589,
-0.039552751928567886,
-0.03717446327209473,
0.04741939529776573,
0.02325233444571495,
0.06779948621988297,
0.002645844826474786,
0.003178672632202506,
-0.03915027156472206,
-0.034046098589897156,
-0.044528860598802567,
-0.03250936046242714,
0.06406740844249725,
-0.03049696423113346,
0.02098381333053112,
0.010345550253987312,
0.003620028030127287,
-0.008616718463599682,
-0.07383667677640915,
0.05074899643659592,
0.04357754439115524,
-0.050712406635284424,
0.03148486837744713,
-0.008790516294538975,
0.022136367857456207,
-0.006805561017245054,
0.001898056361824274,
0.041565146297216415,
-0.022538848221302032,
-0.027789374813437462,
-0.06377469748258591,
-0.054810378700494766,
0.0010845219949260354,
-0.01697731390595436,
0.03605849668383598,
-0.04376048967242241,
0.04182127118110657,
0.014159957878291607,
0.010400434024631977,
-0.011873142793774605,
-0.012650660239160061,
0.050602640956640244,
0.022319313138723373,
-0.09674141556024551,
-0.012668954208493233,
-0.014361197128891945,
0.029984716325998306,
-0.006942769978195429,
0.04504110664129257,
0.01887994445860386,
-0.040211353451013565,
0.049578145146369934,
-0.009307336993515491,
0.005026419181376696,
-0.022374197840690613,
0.010345550253987312,
-0.017398087307810783,
0.02319744974374771,
-0.004075104370713234,
0.010354697704315186,
0.0006025757174938917,
-0.05250526964664459,
0.01449840608984232,
-0.01774568296968937,
-0.03530842065811157,
-0.01578816957771778,
0.029545648023486137,
0.036149971187114716,
-0.005026419181376696,
0.0027281702496111393,
0.03563772514462471,
0.02449636161327362,
-0.062274541705846786,
0.029124874621629715,
-0.031887348741292953,
0.0367719829082489,
0.061359819024801254,
-0.029399292543530464,
-0.08532563596963882,
-0.011726786382496357,
0.08144719898700714,
-0.027130771428346634,
0.002998014446347952,
-0.020361799746751785,
-0.04910248890519142,
0.006133237387984991,
0.0010102004744112492,
-0.0348876491189003,
-0.018751882016658783,
0.036095086485147476,
-0.00874935369938612,
-0.004454715643078089,
-0.022026600316166878,
0.006640910636633635,
0.012458567507565022,
-0.007107420824468136,
0.0294724702835083,
0.051956433802843094,
-0.01268724910914898,
-0.0373208187520504,
0.006951917428523302,
-0.04357754439115524,
0.0076013728976249695,
-0.016455920413136482,
-0.05777409300208092,
0.0194653682410717,
0.022593731060624123,
-0.0519198440015316,
0.03413757309317589,
-0.014388639479875565,
-0.0047428542748093605,
0.02330721728503704,
0.012001204304397106,
0.037723299115896225,
-0.039186861366033554,
-0.0267648808658123,
0.08415478467941284,
-0.030515257269144058,
-0.09015539288520813,
-0.07145839184522629,
0.024038998410105705,
0.012357947416603565,
-0.04006499797105789,
0.0573350228369236,
-0.03827213495969772,
-0.054115187376737595,
0.033241141587495804,
-0.022685203701257706,
-0.011809112504124641,
0.0054060304537415504,
-0.03497911989688873,
0.024478066712617874,
-0.05550557002425194,
0.016830958425998688,
-0.026856353506445885,
-0.09242390841245651,
0.01289763581007719,
0.02109358087182045,
0.006000602152198553,
0.030807970091700554,
0.005460913758724928,
-0.04430932551622391,
0.02178877219557762,
-0.014022748917341232,
0.016629718244075775,
0.021294821053743362,
-0.031997114419937134,
-0.04068700969219208,
-0.026216046884655952,
0.028246738016605377,
0.032637421041727066,
0.08415478467941284,
0.018587231636047363,
-0.039882052689790726,
0.045736297965049744,
-0.015458868816494942,
0.012348800897598267,
0.04943178966641426,
0.04591924324631691,
-0.03951616212725639,
-0.035838961601257324,
0.024642717093229294,
0.04068700969219208,
0.0014223988400772214,
0.01924583502113819,
-0.0004793735861312598,
0.04884636774659157,
0.06026214733719826,
0.0886918306350708,
-0.027185656130313873,
0.06966552883386612,
-0.02634410746395588,
-0.002013540593907237,
-0.06772630661725998,
-0.03611338138580322,
0.011681050062179565,
0.011918879114091396,
-0.01140663307160139,
-0.0008747067186050117,
-0.018175605684518814,
0.02385605312883854,
0.019008005037903786,
0.002597821643576026,
-0.0632990375161171,
-0.02789914235472679,
-0.0605914480984211,
-0.01328182127326727,
-0.06461624056100845,
0.03790624439716339,
-0.02520984783768654,
-0.006334477104246616,
0.0281186755746603,
0.020782573148608208,
0.049358613789081573,
0.04035770893096924,
0.03132021799683571,
-0.030405491590499878,
-0.006178973708301783,
-0.00626129936426878,
0.020252032205462456,
-0.0016910996055230498,
0.0012040080036967993,
-0.04701691493391991,
-0.031064093112945557,
0.03746717423200607,
0.051297832280397415,
-0.05821315944194794,
0.006759824696928263,
0.04954155907034874,
0.05996943265199661,
-0.027624724432826042,
-0.04196762666106224,
-0.02092893049120903
] |
10,131 | pygments.formatters.html | _highlight_lines |
Highlighted the lines specified in the `hl_lines` option by
post-processing the token stream coming from `_format_lines`.
| def _highlight_lines(self, tokensource):
"""
Highlighted the lines specified in the `hl_lines` option by
post-processing the token stream coming from `_format_lines`.
"""
hls = self.hl_lines
for i, (t, value) in enumerate(tokensource):
if t != 1:
yield t, value
if i + 1 in hls: # i + 1 because Python indexes start at 0
if self.noclasses:
style = ''
if self.style.highlight_color is not None:
style = (f' style="background-color: {self.style.highlight_color}"')
yield 1, f'<span{style}>{value}</span>'
else:
yield 1, f'<span class="hll">{value}</span>'
else:
yield 1, value
| (self, tokensource) | [
-0.01482453104108572,
-0.09166577458381653,
0.006901389453560114,
0.038644131273031235,
-0.0053322697058320045,
-0.011157169938087463,
-0.008123842999339104,
0.04035921394824982,
0.002456310670822859,
0.03517747297883034,
0.011786642484366894,
-0.022971181198954582,
0.04787639155983925,
-0.023025916889309883,
-0.03386379033327103,
0.010910854674875736,
-0.0003868632484227419,
-0.0011871028691530228,
0.01790803298354149,
-0.02849959023296833,
-0.02103715017437935,
0.017132597044110298,
0.04039570689201355,
-0.03256835415959358,
0.009752260521054268,
-0.009597172960639,
-0.03608975186944008,
-0.001415172591805458,
-0.012005588971078396,
-0.052839189767837524,
-0.047547973692417145,
-0.04291359707713127,
-0.07123073190450668,
0.02700345404446125,
0.02665678784251213,
-0.07692334800958633,
-0.037312205880880356,
0.014596461318433285,
-0.0074761249125003815,
0.003788237925618887,
-0.018719961866736412,
0.0016215756768360734,
-0.006618583109229803,
0.0013649972388520837,
-0.04736551642417908,
-0.002750520594418049,
0.013063833117485046,
-0.0072799851186573505,
0.03802378103137016,
-0.08830858767032623,
0.039957813918590546,
0.011531203985214233,
0.009122787974774837,
-0.034265194088220596,
0.04506657272577286,
-0.04900762066245079,
-0.019340312108397484,
-0.008101035840809345,
-0.008000684902071953,
0.023646267130970955,
0.02521538734436035,
0.01577330008149147,
0.044847626239061356,
0.0615970678627491,
0.043752893805503845,
-0.0133922528475523,
0.023974686861038208,
0.013529094867408276,
0.009870857000350952,
0.010701030492782593,
-0.01954101212322712,
0.006755424663424492,
0.010062435641884804,
-0.0033366598654538393,
-0.009834365919232368,
0.03154660016298294,
-0.09969382733106613,
0.053860943764448166,
0.03722097724676132,
-0.023409074172377586,
0.0001673461520113051,
0.06083075329661369,
0.028171170502901077,
0.018172593787312508,
0.03344414010643959,
-0.07882089167833328,
-0.010691908188164234,
0.025270123034715652,
0.01264418475329876,
0.03970237448811531,
-0.041855353862047195,
0.059845492243766785,
-0.047547973692417145,
-0.020088380202651024,
-0.030926251783967018,
-0.00034866156056523323,
0.02614591084420681,
0.026729770004749298,
-0.004862446337938309,
0.0021313114557415247,
0.045942362397909164,
0.04959147796034813,
0.01999715156853199,
-0.007822791114449501,
-0.023938195779919624,
-0.04167289659380913,
-0.03601676970720291,
0.004301394801586866,
0.055758483707904816,
0.027204154059290886,
-0.03034239448606968,
-0.09035209566354752,
0.00614875927567482,
-0.007225248496979475,
0.02879152074456215,
-0.06564758718013763,
-0.01959574967622757,
0.03649115189909935,
-0.014122076332569122,
-0.030068710446357727,
0.03612624108791351,
-0.06480828672647476,
-0.02350030280649662,
0.054043397307395935,
-0.03291501849889755,
-0.021675745025277138,
0.014778916724026203,
0.012443482875823975,
0.03683781996369362,
-0.07057388871908188,
0.008037176914513111,
0.04477464407682419,
0.0065045482479035854,
-0.07831001281738281,
0.004595604725182056,
-0.02408416196703911,
-0.06061180680990219,
0.00783191341906786,
0.007480686530470848,
-0.02171223610639572,
0.03900904208421707,
-0.02844485454261303,
-0.017123473808169365,
-0.043351490050554276,
-0.0652826726436615,
0.014678566716611385,
0.0064680567011237144,
0.07736124843358994,
0.03561536595225334,
0.05710865557193756,
0.025653280317783356,
0.009925593622028828,
0.08684894442558289,
0.017150841653347015,
-0.01895715482532978,
0.02448556385934353,
-0.03413747251033783,
-0.019449785351753235,
0.025087667629122734,
0.020362064242362976,
0.06309320032596588,
-0.054152872413396835,
0.06375004351139069,
-0.00041109565063379705,
-0.020124871283769608,
0.09867207705974579,
-0.054955676198005676,
-0.0732012540102005,
-0.017606981098651886,
-0.01873820647597313,
0.011877870187163353,
-0.014039970934391022,
0.0004393192648421973,
0.04638025537133217,
0.0031633267644792795,
0.039155006408691406,
-0.049956388771533966,
0.11859624832868576,
-0.0035213963128626347,
0.03269607201218605,
0.000930524431169033,
0.03309747576713562,
-0.04437324404716492,
-0.03269607201218605,
0.01652137003839016,
0.016110844910144806,
0.06513670831918716,
-0.03970237448811531,
-0.006217180285602808,
-0.01065541710704565,
0.0022806969936937094,
-0.061341628432273865,
0.05831286311149597,
-0.028700292110443115,
-0.02218662202358246,
-0.014286286197602749,
-0.05086866766214371,
-0.01264418475329876,
0.0031405198387801647,
-0.013738919049501419,
-0.0658300369977951,
0.006983494386076927,
-0.0652826726436615,
0.009159279055893421,
-0.013602077029645443,
0.03411922976374626,
-0.009296121075749397,
0.023646267130970955,
-0.08560824394226074,
0.012224536389112473,
-0.008274368941783905,
-0.027897486463189125,
-0.00791401881724596,
0.09786926954984665,
0.027550820261240005,
-0.030816778540611267,
0.029630815610289574,
0.06269180029630661,
-0.07028196007013321,
-0.0023171883076429367,
0.04430026188492775,
-0.021693991497159004,
-0.055357079952955246,
-0.037147995084524155,
0.05262024328112602,
-0.015736809000372887,
0.03472133353352547,
-0.050357792526483536,
0.0015349091263487935,
-0.037312205880880356,
0.007635773625224829,
-0.037950798869132996,
-0.0038133254274725914,
0.056050412356853485,
-0.005327708553522825,
0.014934004284441471,
0.04342447221279144,
-0.016019616276025772,
-0.05568550154566765,
0.0212013591080904,
-0.023536793887615204,
0.050941649824380875,
0.07597458362579346,
-0.021529780700802803,
0.03342589735984802,
0.011303134262561798,
0.042147282510995865,
0.0172694381326437,
-0.020708728581666946,
0.04572341591119766,
-0.050248317420482635,
0.0026912225876003504,
0.018455401062965393,
0.017369788140058517,
0.002800696063786745,
-0.05167147144675255,
0.01601049304008484,
0.026529068127274513,
0.005911566782742739,
-0.0209824126213789,
-0.021675745025277138,
0.013884883373975754,
0.028645554557442665,
0.016046984121203423,
0.03868062421679497,
0.0579114593565464,
-0.0055649010464549065,
0.00219174986705184,
0.016585228964686394,
0.021365569904446602,
-0.010792258195579052,
-0.001376400701701641,
-0.03390027955174446,
-0.0020024520345032215,
-0.005998233333230019,
0.04721955209970474,
-0.06269180029630661,
-0.012461728416383266,
-0.03962939232587814,
0.008958578109741211,
0.04021324962377548,
0.01002594456076622,
-0.032896775752305984,
0.009159279055893421,
0.051562000066041946,
0.01665821112692356,
0.00010526842379476875,
-0.051562000066041946,
-0.0035647295881062746,
-0.062253907322883606,
0.012516465969383717,
-0.009432963095605373,
0.019340312108397484,
-0.04411780461668968,
0.11151696741580963,
0.0068375300616025925,
0.018437154591083527,
0.04320552572607994,
-0.05988198146224022,
-0.02902871184051037,
0.007197880186140537,
-0.027204154059290886,
0.06378653645515442,
-0.00843401812016964,
-0.03649115189909935,
-0.011075065471231937,
0.01465119794011116,
0.012251905165612698,
-0.0172694381326437,
-0.08174018561840057,
-0.00015451722720172256,
0.07539072632789612,
0.0267845056951046,
-0.10035067051649094,
-0.04816832393407822,
-0.060137420892715454,
-0.032604847103357315,
0.055138133466243744,
0.0173515435308218,
0.02528836950659752,
-0.07560966908931732,
-0.02740485593676567,
-0.0007623229757882655,
-0.03477606922388077,
0.059553563594818115,
0.004554552026093006,
0.030068710446357727,
-0.016512246802449226,
-0.020070133730769157,
-0.029393624514341354,
-0.0068694595247507095,
-0.039155006408691406,
-0.021018903702497482,
0.044446226209402084,
-0.03390027955174446,
-0.05159848928451538,
-0.0032978879753500223,
0.07422300428152084,
-0.02050802856683731,
-0.051452524960041046,
0.0041371844708919525,
-0.00361946620978415,
-0.020197853446006775,
0.00863471906632185,
0.01019927766174078,
-0.011111556552350521,
-0.01258032489567995,
0.050065863877534866,
0.020435046404600143,
0.07207002490758896,
0.013437867164611816,
-0.018592242151498795,
0.04130798578262329,
0.026401350274682045,
0.09312542527914047,
-0.044044822454452515,
-0.001967101125046611,
-0.07013599574565887,
-0.007161388639360666,
0.028828011825680733,
0.018719961866736412,
0.03711150214076042,
0.011312257498502731,
0.038388691842556,
-0.04550446942448616,
0.013775410130620003,
-0.025124158710241318,
0.002787011908367276,
-0.012361378408968449,
0.011175415478646755,
-0.05966303497552872,
0.013228042982518673,
-0.000640875892713666,
-0.035651855170726776,
0.026182401925325394,
-0.04853323474526405,
-0.017679963260889053,
0.02339082956314087,
-0.028992220759391785,
0.00741226552054286,
0.04550446942448616,
0.039957813918590546,
0.04601534456014633,
-0.0037654307670891285,
-0.05116059631109238,
-0.02665678784251213,
0.004317359533160925,
-0.02103715017437935,
0.01356558594852686,
0.017862418666481972,
-0.03608975186944008,
-0.012899622321128845,
0.010181032121181488,
-0.005218234844505787,
-0.028225906193256378,
-0.026985207572579384,
0.0006066654459573328,
0.02625538408756256,
0.027569066733121872,
-0.061341628432273865,
0.020216098055243492,
0.011038573458790779,
-0.004004904069006443,
-0.054335325956344604,
-0.028317134827375412,
-0.04937253147363663,
0.03711150214076042,
0.029156431555747986,
0.006600337568670511,
-0.016475755721330643,
-0.018145225942134857,
-0.055539533495903015,
-0.014924881979823112,
-0.02333609201014042,
-0.0023228898644447327,
-0.026054684072732925,
0.030871516093611717,
0.04787639155983925,
-0.04167289659380913,
0.02820766158401966,
-0.0044792890548706055,
-0.030269412323832512,
0.03337115794420242,
0.04718306288123131,
-0.005469111725687981,
-0.013109446503221989,
-0.07641247659921646,
-0.01844627782702446,
0.022223113104701042,
-0.04681814834475517,
0.023062407970428467,
-0.03189326822757721,
0.016348036006093025,
-0.004087009001523256,
0.0008478491217829287,
-0.01635715924203396,
-0.017132597044110298,
0.02804345078766346,
0.04736551642417908,
0.0012703483225777745,
0.04736551642417908,
0.024978194385766983,
0.04561394080519676,
0.05075919255614281,
0.07214301079511642,
-0.039665885269641876,
-0.00791401881724596,
-0.008078228682279587,
-0.0006391653441824019,
-0.02505117654800415,
-0.08619210124015808,
0.044628679752349854,
-0.043460965156555176,
-0.031619586050510406,
0.005875075701624155,
-0.0012281553354114294,
0.011056818999350071,
0.022314339876174927,
0.04557745158672333,
0.03309747576713562,
0.0769963338971138,
0.06510021537542343,
-0.020726975053548813,
0.01890241727232933,
0.006705249194055796,
-0.05831286311149597,
0.032203443348407745,
-0.014158567413687706,
-0.030543094500899315,
-0.028973976150155067,
0.047839902341365814,
-0.03156484663486481,
-0.03390027955174446,
-0.028773274272680283,
-0.011221029795706272,
0.04017676040530205,
-0.012607693672180176,
-0.011905238963663578,
-0.032495371997356415,
-0.00038401238271035254,
-0.008187702856957912,
-0.010308750905096531,
-0.010472960770130157,
-0.07185108214616776,
0.008566298522055149,
0.0289557296782732,
0.035013262182474136,
-0.0690777525305748,
0.037768345326185226,
-0.047547973692417145,
0.009651909582316875,
-0.01473330333828926,
-0.04068763554096222,
-0.010162786580622196,
0.03937395289540291,
-0.0144778648391366,
0.07531774044036865,
0.016694702208042145,
0.05656128749251366,
-0.05039428174495697,
0.014149445109069347,
-0.049445513635873795,
-0.007790861185640097,
-0.00891752541065216,
0.07028196007013321,
0.02999572828412056,
0.08538930118083954,
0.021402060985565186,
-0.030032219365239143,
0.03813325613737106,
0.0047347270883619785,
0.02815292403101921,
0.012589448131620884,
-0.005113322753459215,
-0.03970237448811531,
-0.013629445806145668,
-0.04853323474526405,
0.055649008601903915,
0.012771903537213802,
0.013310148380696774,
-0.0015873651718720794,
0.01140348520129919,
0.021000659093260765,
-0.05729110911488533,
-0.04269465059041977,
0.07455142587423325,
-0.034849051386117935,
-0.002684380393475294,
0.018546627834439278,
-0.011394362896680832,
-0.016758562996983528,
-0.035651855170726776,
-0.003334379056468606,
-0.030141692608594894,
-0.04481113702058792,
0.02443082630634308,
0.01102945115417242,
-0.001602189731784165,
0.014222427271306515,
0.03461185842752457,
0.014888390898704529,
-0.018482768908143044,
-0.07612054795026779,
0.01890241727232933,
-0.016211194917559624,
0.016475755721330643,
-0.015919266268610954,
-0.05141603574156761,
-0.07152266055345535,
0.014797162264585495,
0.021584516391158104,
-0.026675032451748848,
-0.005081393290311098,
0.018400663509964943,
0.017260314896702766,
0.02745959348976612,
-0.030196430161595345,
0.010190154425799847,
0.035250455141067505,
0.029265904799103737,
0.07272686809301376,
0.04017676040530205,
-0.018756452947854996,
-0.0841486006975174,
-0.055138133466243744,
0.020927676931023598,
-0.01790803298354149,
0.0649542510509491,
-0.03315221145749092,
0.05316761136054993,
0.03654589131474495,
-0.0013912252616137266,
0.010500329546630383,
0.03441115841269493,
-0.029868008568882942,
0.03236765414476395,
-0.007576475851237774,
-0.001026313635520637,
0.037950798869132996,
-0.01988767832517624,
-0.0031199934892356396,
0.035943787544965744,
0.03344414010643959,
-0.08808964490890503,
0.020617501810193062,
0.001883855788037181,
-0.058239880949258804,
0.035597119480371475,
0.03240414336323738,
0.06674231588840485,
-0.030470112338662148,
-0.017023123800754547,
-0.05331357568502426,
-0.013884883373975754,
-0.007863843813538551,
0.023810477927327156,
0.051452524960041046,
-0.02171223610639572,
-0.057035673409700394,
0.03247712552547455,
-0.017397157847881317,
0.047949373722076416,
-0.0172694381326437,
-0.009245946072041988,
0.042548686265945435,
-0.03747641295194626,
0.06177952140569687,
-0.050248317420482635,
-0.028700292110443115,
0.0010918837506324053,
-0.003970693796873093,
0.03671009838581085,
0.036801327019929886,
-0.014414005912840366,
-0.030780287459492683,
0.06630442291498184,
0.0038224481977522373,
0.02638310380280018,
0.012854008935391903,
0.022733988240361214,
0.027423102408647537,
0.0018986803479492664,
-0.017880665138363838,
0.008794368244707584,
0.005209112074226141,
0.015645582228899002,
0.034739576280117035,
-0.04590586945414543,
-0.0213108342140913,
-0.032203443348407745,
-0.020726975053548813,
0.0499928817152977,
-0.002830345183610916,
-0.047730427235364914,
-0.025671526789665222,
0.06458934396505356,
0.0076722651720047,
-0.03010520152747631,
0.017661718651652336,
-0.03802378103137016,
-0.0541163794696331,
-0.02638310380280018,
-0.012735412456095219,
-0.004280868452042341,
-0.014961373060941696,
0.009806997142732143,
-0.05298515409231186,
-0.0013056991156190634,
0.016393650323152542,
0.02205890230834484,
0.04470166191458702,
0.0267845056951046,
-0.013884883373975754,
0.03528694435954094,
-0.05119708925485611,
0.052839189767837524,
-0.052036385983228683,
0.0013319271383807063,
0.013200675137341022,
-0.017661718651652336,
-0.013976112008094788,
0.037731852382421494,
-0.022277848795056343,
0.010263136588037014,
0.007480686530470848,
0.03247712552547455,
0.019796451553702354,
0.04459219053387642,
0.057947952300310135,
-0.006956126075237989,
-0.017825927585363388,
0.031802039593458176,
-0.05002937093377113,
0.005268410313874483,
-0.008616473525762558,
-0.053240593522787094,
0.027423102408647537,
-0.030780287459492683,
0.006645951420068741,
-0.038936059921979904,
-0.02735012024641037,
0.03477606922388077,
-0.015207688324153423,
-0.011868747882544994,
-0.0002448898449074477,
0.07163213193416595,
-0.02735012024641037,
-0.0019933292642235756,
0.042548686265945435,
-0.03172905743122101,
-0.07955071330070496,
0.02154802531003952,
-0.004725604318082333,
0.012790149077773094,
-0.03911851719021797,
0.03079853393137455,
-0.037950798869132996,
-0.10728398710489273,
0.019449785351753235,
-0.034447647631168365,
0.03045186772942543,
-0.02010662481188774,
-0.009136472828686237,
0.01577330008149147,
-0.0016261370619758964,
0.0051543754525482655,
0.01212418545037508,
-0.008940332569181919,
-0.01689540408551693,
0.017397157847881317,
-0.021347325295209885,
0.0021666621323674917,
0.00791401881724596,
0.007772615645080805,
-0.0038224481977522373,
-0.059553563594818115,
-0.016539614647626877,
-0.037147995084524155,
0.03831570968031883,
0.03477606922388077,
0.012251905165612698,
0.06502723693847656,
-0.009724892675876617,
0.07338371127843857,
-0.0658300369977951,
0.048131830990314484,
-0.0005584856844507158,
0.0017937682569026947,
-0.007019985467195511,
-0.06028338521718979,
0.013200675137341022,
0.021164868026971817,
-0.06619495153427124,
-0.007375774439424276,
-0.02585398219525814,
0.02435784414410591,
-0.02475924789905548,
0.008561736904084682,
0.0022544690873473883,
-0.02528836950659752,
-0.0031633267644792795,
-0.017798559740185738,
-0.06006443873047829,
0.036910802125930786,
0.0025726263411343098,
0.029630815610289574,
0.07404054701328278,
0.04911709204316139,
-0.011695414781570435,
0.019613994285464287,
-0.002832625759765506,
0.01166804600507021,
0.000146677324664779,
0.019322065636515617,
0.04521253705024719,
0.011604187078773975,
0.026127666234970093,
-0.019723467528820038,
-0.018884172663092613,
0.029977481812238693,
0.016019616276025772,
0.0029261342715471983,
0.016238562762737274,
0.04276763275265694,
0.04517604783177376,
0.009369103237986565,
-0.015070846304297447,
0.05521111562848091
] |
10,132 | pygments.formatters.html | _lookup_ctag | null | def _lookup_ctag(self, token):
entry = ctags.TagEntry()
if self._ctags.find(entry, token.encode(), 0):
return entry['file'].decode(), entry['lineNumber']
else:
return None, None
| (self, token) | [
0.06287733465433121,
-0.019160639494657516,
-0.014396419748663902,
0.07249224185943604,
0.020371150225400925,
-0.031507838517427444,
0.050149690359830856,
0.03500102460384369,
0.038632553070783615,
-0.05720522999763489,
0.012243441306054592,
0.014197549782693386,
-0.042817458510398865,
-0.0862574651837349,
0.014923855662345886,
0.018935831263661385,
0.017232470214366913,
0.028896596282720566,
-0.030608603730797768,
0.014465590938925743,
-0.008793488144874573,
0.04814369976520538,
-0.041676122695207596,
-0.05533758923411369,
0.012027278542518616,
0.02962290309369564,
0.010514141991734505,
-0.029968762770295143,
-0.01969672180712223,
-0.06892988085746765,
-0.023189907893538475,
-0.061217207461595535,
-0.02509213797748089,
0.008564356714487076,
-0.02656204253435135,
-0.012485543265938759,
0.03662656620144844,
0.025057552382349968,
0.026043253019452095,
-0.04326707497239113,
-0.041503190994262695,
0.027098124846816063,
-0.010133695788681507,
-0.037007011473178864,
0.002258897526189685,
-0.010981052182614803,
-0.02542070485651493,
-0.04375128075480461,
-0.031628891825675964,
-0.01805388741195202,
0.04793618619441986,
-0.056859370321035385,
-0.05153312906622887,
-0.08127707988023758,
0.00019400579913053662,
-0.00770402979105711,
0.017950130626559258,
0.04790160059928894,
-0.04914669692516327,
0.07574332505464554,
0.007976394146680832,
0.03666115179657936,
-0.004720987752079964,
0.04388962313532829,
-0.027841724455356598,
0.01966213621199131,
0.08639580756425858,
-0.006510813254863024,
-0.03498373180627823,
-0.009001004509627819,
-0.010721657425165176,
-0.004902564454823732,
-0.03102363459765911,
-0.01845162734389305,
0.010721657425165176,
-0.07352981716394424,
0.004120056517422199,
0.029865004122257233,
0.01567610166966915,
0.0334792397916317,
-0.01062654610723257,
0.0182786975055933,
0.05903828889131546,
-0.00835684034973383,
0.05765485018491745,
-0.027651501819491386,
0.0789252370595932,
0.00208272528834641,
-0.11447963863611221,
0.03776790201663971,
0.005486202891916037,
0.0025053229182958603,
-0.001037039328366518,
-0.014629874378442764,
0.04264453053474426,
-0.007682413794100285,
0.03221685066819191,
0.029173284769058228,
-0.022861341014504433,
-0.020267391577363014,
0.0531240850687027,
-0.00565480999648571,
-0.020353857427835464,
0.012113743461668491,
-0.03956637531518936,
0.038390450179576874,
-0.038805484771728516,
0.052674464881420135,
0.005736951716244221,
0.0012040248839184642,
-0.06464122235774994,
-0.08909351378679276,
0.06045631319284439,
0.011482549831271172,
0.06325778365135193,
-0.07173135131597519,
-0.02260194532573223,
0.04191822186112404,
-0.01265847310423851,
-0.03368675708770752,
-0.000010976999874401372,
-0.04385503754019737,
0.0007879121694713831,
-0.02680414356291294,
-0.02663121372461319,
-0.008793488144874573,
0.03098904900252819,
-0.005516465753316879,
-0.03370404988527298,
-0.029052233323454857,
0.053884975612163544,
0.024711690843105316,
0.04388962313532829,
-0.035796500742435455,
-0.04101898893713951,
-0.029743952676653862,
-0.010972405783832073,
0.010514141991734505,
-0.06913740187883377,
-0.0017768553225323558,
0.06190892681479454,
0.03128302842378616,
-0.0678231343626976,
-0.061009690165519714,
-0.04312873259186745,
0.043024975806474686,
-0.005736951716244221,
-0.008261729031801224,
0.0389438271522522,
-0.023535767570137978,
-0.031940165907144547,
-0.10175199061632156,
-0.0009273369214497507,
0.05782777816057205,
0.03652280941605568,
0.021564366295933723,
0.02104557678103447,
-0.01556369662284851,
-0.028619909659028053,
-0.056721027940511703,
0.04160694777965546,
-0.011110750027000904,
-0.049838416278362274,
-0.008019627071917057,
0.027305640280246735,
-0.0001644185686018318,
0.0015358342789113522,
0.007812111172825098,
-0.027859017252922058,
-0.04108816012740135,
-0.02791089564561844,
0.04482344537973404,
0.007241442333906889,
0.04222949594259262,
-0.00667941989377141,
0.014275368303060532,
-0.03354841098189354,
0.05343535915017128,
0.017336228862404823,
0.03897841274738312,
-0.01831328310072422,
0.04160694777965546,
0.057032302021980286,
0.0505647212266922,
-0.05440376698970795,
0.031646184623241425,
0.04482344537973404,
-0.03515665978193283,
0.023587645962834358,
-0.0043491884134709835,
0.07622753083705902,
-0.02803194709122181,
0.023276373744010925,
-0.011638186872005463,
0.007967747747898102,
-0.020768888294696808,
0.0008570841164328158,
0.037179943174123764,
0.012572008185088634,
-0.027841724455356598,
0.04911210760474205,
0.00014442353858612478,
-0.03133491054177284,
0.06640510261058807,
0.0019886945374310017,
0.037249114364385605,
0.03645363450050354,
0.04240242764353752,
-0.12070511281490326,
0.055579688400030136,
0.0014742278726771474,
-0.028740959241986275,
0.009269045665860176,
0.016160305589437485,
0.020336562767624855,
-0.01819223165512085,
-0.07733427733182907,
0.03114468604326248,
-0.08604995161294937,
-0.008789164945483208,
0.06152848154306412,
-0.01481145154684782,
0.0756741538643837,
0.019956117495894432,
0.06958701461553574,
-0.025610927492380142,
0.0592803917825222,
0.0398084782063961,
0.027236469089984894,
-0.025991372764110565,
-0.0022978067863732576,
-0.027859017252922058,
0.033254433423280716,
0.015459938906133175,
-0.016281355172395706,
-0.02671767957508564,
0.0307469479739666,
0.01815764605998993,
0.016125718131661415,
-0.03067777492105961,
-0.026077838614583015,
0.038390450179576874,
0.0425407700240612,
0.03797541931271553,
0.02241172268986702,
-0.024728985503315926,
-0.007142007350921631,
-0.026371819898486137,
-0.015278361737728119,
0.013773871585726738,
-0.022169621661305428,
0.018849365413188934,
-0.013756578788161278,
-0.014206196181476116,
-0.002074078656733036,
-0.13128842413425446,
-0.042921215295791626,
-0.004171935375779867,
0.04174529388546944,
0.032891277223825455,
-0.038563381880521774,
0.035865675657987595,
0.09026943892240524,
0.010280686430633068,
-0.04368210956454277,
0.030487552285194397,
-0.012087804265320301,
-0.021892933174967766,
-0.03503561019897461,
-0.009070176631212234,
-0.018780194222927094,
0.00023318524472415447,
0.05506090074777603,
-0.016056546941399574,
0.01552911102771759,
-0.05232860520482063,
0.0009965088684111834,
0.04371669515967369,
-0.024538761004805565,
-0.018555384129285812,
-0.023518474772572517,
-0.029830418527126312,
-0.024694398045539856,
-0.009338217787444592,
-0.013064858503639698,
0.013012980110943317,
-0.01712006703019142,
-0.04247159883379936,
-0.014621227979660034,
0.018555384129285812,
-0.02097640372812748,
0.003955773077905178,
0.024556053802371025,
0.030643189325928688,
0.004794483073055744,
0.012814110144972801,
0.0170422475785017,
0.054023321717977524,
0.021616244688630104,
-0.00559860747307539,
-0.0007560281665064394,
0.02249818854033947,
0.019420035183429718,
-0.00530030345544219,
-0.02529965341091156,
0.051291026175022125,
0.02080347388982773,
0.030089814215898514,
-0.04098439961671829,
0.013289667665958405,
0.003259729826822877,
0.05180981755256653,
0.00457399757578969,
-0.02244630828499794,
-0.04240242764353752,
-0.008209849707782269,
-0.02104557678103447,
0.02232525870203972,
0.00902694370597601,
0.014603935182094574,
0.028689080849289894,
-0.035796500742435455,
0.0240891445428133,
-0.038667138665914536,
0.04216032475233078,
-0.015866324305534363,
-0.03098904900252819,
-0.04869707673788071,
-0.0019649167079478502,
0.08093122392892838,
0.01047955546528101,
0.002976557007059455,
0.0004658300895243883,
0.0141370240598917,
-0.012286674231290817,
0.02087264694273472,
-0.07899440824985504,
0.00174226937815547,
-0.030245451256632805,
-0.05630599707365036,
-0.010358504951000214,
-0.0365573950111866,
-0.01833057589828968,
-0.006476227194070816,
0.02798006869852543,
-0.0141370240598917,
0.029743952676653862,
-0.005045231431722641,
-0.013868982903659344,
-0.024175608530640602,
0.025507168844342232,
0.017267057672142982,
0.013168616220355034,
0.01680879294872284,
0.017146006226539612,
0.018676435574889183,
0.0039341566152870655,
0.04091522842645645,
0.06377656757831573,
0.034568700939416885,
-0.004811776336282492,
0.005010645836591721,
0.01539941318333149,
-0.049873001873493195,
0.01974860206246376,
0.02388162724673748,
-0.05167147144675255,
0.054196249693632126,
-0.01957567222416401,
-0.02270570397377014,
-0.023259079083800316,
0.022740289568901062,
-0.007392755709588528,
0.0014547733590006828,
-0.013825750909745693,
-0.0707283541560173,
-0.015485878102481365,
0.009052883833646774,
-0.02661392092704773,
0.01846892014145851,
-0.017699381336569786,
0.049838416278362274,
0.017483219504356384,
0.03183640539646149,
-0.08023950457572937,
-0.02367411181330681,
-0.09033861011266708,
-0.006783177610486746,
0.04790160059928894,
0.041261088103055954,
-0.003830398665741086,
-0.015606929548084736,
0.003767711576074362,
-0.01043632347136736,
-0.014724986627697945,
0.002747424878180027,
0.007046896032989025,
-0.05779319256544113,
0.019143346697092056,
0.00097813515458256,
0.03915134444832802,
0.05430000647902489,
0.017880957573652267,
-0.018572678789496422,
0.03524312749505043,
0.03410178795456886,
-0.02832592837512493,
0.007038249634206295,
-0.0905461311340332,
-0.042817458510398865,
-0.06028338521718979,
-0.023432010784745216,
0.028706373646855354,
-0.05250153690576553,
-0.03389427438378334,
-0.052709054201841354,
0.009312278591096401,
0.04499637708067894,
-0.01952379196882248,
-0.013566355220973492,
-0.04665650427341461,
-0.0510835126042366,
-0.0308334119617939,
0.01831328310072422,
-0.0669584795832634,
-0.022947806864976883,
0.028568029403686523,
0.01838245429098606,
-0.016143012791872025,
-0.0282740481197834,
-0.05225943401455879,
0.01563286781311035,
0.041710708290338516,
0.02104557678103447,
-0.0032078507356345654,
-0.0009484127513132989,
-0.045480579137802124,
-0.01194946002215147,
0.05640975385904312,
0.03204392269253731,
-0.013185909949243069,
0.07228472083806992,
0.00493715051561594,
0.0226365327835083,
0.009251752868294716,
-0.015615575946867466,
-0.00843033567070961,
0.012243441306054592,
-0.013298314064741135,
-0.05627141147851944,
-0.01962755061686039,
-0.004578320775181055,
-0.03111010044813156,
0.03142137452960014,
0.02659662812948227,
-0.03380780667066574,
-0.0814846009016037,
0.07180052250623703,
0.02962290309369564,
-0.01340207178145647,
-0.05319325625896454,
0.08134625107049942,
0.059833768755197525,
-0.02951914444565773,
-0.0023432010784745216,
-0.07643504440784454,
0.01047955546528101,
-0.01336748618632555,
-0.01569339446723461,
-0.06059465929865837,
0.02946726605296135,
-0.0009700289811007679,
-0.045688096433877945,
-0.006000669673085213,
-0.028862010687589645,
0.013756578788161278,
0.02834322117269039,
-0.02656204253435135,
-0.0014212680980563164,
0.01407649926841259,
0.03949720412492752,
-0.037076182663440704,
-0.001640673028305173,
-0.022135036066174507,
0.024262074381113052,
0.05440376698970795,
0.0035710036754608154,
-0.0012051056837663054,
-0.008214172907173634,
-0.038528796285390854,
-0.04651815816760063,
0.029225163161754608,
-0.034361183643341064,
-0.06011045351624489,
0.04873166233301163,
0.015304301865398884,
0.03197475150227547,
0.06052548810839653,
-0.031628891825675964,
0.0013131869491189718,
-0.008123384788632393,
-0.045653510838747025,
0.05647892504930496,
-0.07269975543022156,
-0.001659046858549118,
-0.0474865660071373,
0.04077688604593277,
0.02225608564913273,
0.037283699959516525,
-0.004638846032321453,
0.04395879805088043,
0.017863664776086807,
0.028516151010990143,
-0.017517805099487305,
0.0041459957137703896,
0.04319790378212929,
-0.003415366867557168,
-0.00830063782632351,
0.011473903432488441,
0.03814835101366043,
-0.0335657075047493,
-0.0268214363604784,
0.06294650584459305,
-0.07685007899999619,
0.022013984620571136,
-0.016056546941399574,
0.0021832408383488655,
0.029190577566623688,
-0.06975995004177094,
-0.011024285107851028,
0.034499526023864746,
-0.021633537486195564,
-0.031473252922296524,
-0.03090258501470089,
-0.011396084912121296,
0.009580319747328758,
-0.008490861393511295,
0.02381245605647564,
-0.04810911417007446,
-0.025645513087511063,
-0.04240242764353752,
-0.03332360461354256,
0.023466596379876137,
0.062323957681655884,
0.02924245595932007,
0.015114078298211098,
-0.07228472083806992,
-0.05713605880737305,
-0.013652820140123367,
0.04340542107820511,
0.021598951891064644,
0.01543399877846241,
-0.03669573739171028,
-0.027720673009753227,
-0.009623552672564983,
0.030020641162991524,
-0.051429372280836105,
-0.004003328736871481,
0.04229866713285446,
-0.010228807106614113,
0.038528796285390854,
0.06668179482221603,
-0.0013834397541359067,
-0.0008684326312504709,
0.0211839210242033,
-0.046967778354883194,
-0.03245895355939865,
-0.04319790378212929,
-0.01135285198688507,
0.02789360284805298,
-0.01483739074319601,
-0.01820952445268631,
-0.00524410093203187,
-0.012701706029474735,
0.0027928189374506474,
0.06875695288181305,
-0.011845702305436134,
0.05187898874282837,
0.03835586458444595,
0.037007011473178864,
0.026285354048013687,
-0.0064546107314527035,
0.08466651290655136,
-0.012087804265320301,
0.02225608564913273,
0.030349208042025566,
-0.05170605704188347,
-0.0016839054878801107,
-0.01191487442702055,
-0.016627216711640358,
-0.029934177175164223,
-0.05094516649842262,
-0.0025982726365327835,
0.0009975896682590246,
0.01556369662284851,
0.024694398045539856,
0.00739707937464118,
0.04465051740407944,
-0.04952714219689369,
-0.01812306046485901,
0.06502166390419006,
-0.04914669692516327,
-0.026250768452882767,
0.03679949417710304,
-0.0021821600385010242,
-0.0169125497341156,
-0.004630199633538723,
-0.04873166233301163,
0.013618234544992447,
0.01540805958211422,
-0.0005533758667297661,
-0.01980048045516014,
-0.007673766929656267,
0.021633537486195564,
-0.021927518770098686,
0.060940518975257874,
0.047002363950014114,
0.03140408173203468,
0.0180193018168211,
0.04115733131766319,
0.005153312813490629,
-0.005957437213510275,
-0.012347199022769928,
-0.012156976386904716,
0.04617229849100113,
0.06733892858028412,
0.013903569430112839,
-0.005386768374592066,
-0.021374143660068512,
0.05499172955751419,
0.003145163645967841,
0.038805484771728516,
0.002548555377870798,
0.006588631775230169,
-0.015261068940162659,
0.024659812450408936,
0.013678760267794132,
-0.04603395611047745,
-0.017422692850232124,
0.08259134739637375,
-0.06692389398813248,
0.002308615017682314,
-0.03624612092971802,
0.017085479572415352,
0.009044237434864044,
-0.03648822382092476,
0.005399737972766161,
-0.0027841723058372736,
0.04689860716462135,
0.040015991777181625,
0.048593319952487946,
-0.003951449412852526,
0.020284684374928474,
0.019247105345129967,
-0.011300972662866116,
0.0034304980654269457,
-0.03783707693219185,
0.04091522842645645,
-0.01699901558458805,
-0.01686067134141922,
0.00458264397457242,
-0.023587645962834358,
-0.013281021267175674,
0.04897376522421837,
-0.07781848311424255,
-0.049838416278362274,
0.023086149245500565,
-0.09621822834014893,
-0.019056882709264755,
0.022999685257673264,
-0.02823946252465248,
0.016264062374830246,
0.0019919369369745255,
-0.04108816012740135,
-0.026959780603647232,
-0.034447647631168365,
0.04745198041200638,
0.0698637068271637,
0.022999685257673264,
-0.006126043852418661,
0.06830733269453049,
0.05170605704188347,
0.04911210760474205,
0.015926849097013474,
0.0026328586973249912,
0.07934026420116425,
-0.005901235155761242,
0.014560703188180923,
0.0920679122209549,
0.009381450712680817,
-0.025680098682641983,
0.0043535116128623486,
0.007271704729646444,
0.02925974875688553,
-0.07885606586933136,
0.03513936698436737,
-0.02944997325539589,
0.01539076678454876,
0.013765225186944008,
-0.041503190994262695,
0.021616244688630104,
-0.021304970607161522,
0.02817029133439064,
-0.03512207418680191,
-0.0392896868288517,
-0.049873001873493195,
0.02545529045164585,
-0.02249818854033947,
-0.07014039158821106,
0.05471504107117653,
-0.033012330532073975,
-0.0671314150094986,
0.02403726428747177,
-0.0017487542936578393,
0.01393815502524376,
0.01120586134493351,
-0.06533294171094894,
0.03422284126281738,
0.03413637354969978,
-0.015347533859312534,
-0.0001353717379970476,
-0.006078488193452358,
0.010341212153434753,
0.1004377231001854,
0.03984306380152702,
0.03479350730776787,
0.06346529722213745,
0.003246759995818138,
-0.045930199325084686,
0.027063539251685143,
-0.006917198654264212,
0.006528106052428484,
-0.03206121549010277,
-0.00021386572916526347,
-0.021598951891064644,
0.009416036307811737,
-0.04662191867828369,
-0.024936500936746597,
0.03645363450050354,
0.012796817347407341,
-0.03251083195209503,
0.02531694620847702,
-0.04395879805088043,
0.02410643734037876,
0.057101473212242126,
-0.022204207256436348,
-0.02395080029964447,
-0.008322254754602909,
-0.013894922100007534,
0.018607264384627342,
0.024746278300881386,
0.008888600394129753,
-0.005365151911973953,
0.010661132633686066,
-0.020215513184666634,
-0.0022891603875905275,
0.0223771370947361,
0.009277692064642906,
0.02227337844669819,
0.048316631466150284,
-0.00458264397457242,
-0.04651815816760063,
-0.01118856854736805,
-0.0070209563709795475,
-0.000032930998713709414,
-0.010540081188082695,
-0.004059530794620514,
0.014586642384529114
] |
10,133 | pygments.formatters.html | _wrap_code | null | def _wrap_code(self, inner):
yield 0, '<code>'
yield from inner
yield 0, '</code>'
| (self, inner) | [
0.03406998887658119,
-0.05028640851378441,
0.051630593836307526,
0.032329436391592026,
-0.008103900589048862,
-0.00592390401288867,
-0.03274303302168846,
0.04239361360669136,
0.023075222969055176,
0.00673817191272974,
0.03195030987262726,
0.031364381313323975,
0.00747058168053627,
0.011218797415494919,
-0.04242807999253273,
-0.025005338713526726,
0.021817199885845184,
-0.04180768504738808,
0.0019968943670392036,
-0.011977056972682476,
-0.03918824344873428,
0.0567660816013813,
0.07816968858242035,
0.009573029354214668,
-0.002148761646822095,
0.05721414461731911,
-0.029468730092048645,
-0.0055059995502233505,
0.03158841282129288,
-0.07079388946294785,
-0.02373008243739605,
-0.04766696318984032,
0.013381561264395714,
-0.0007211007177829742,
0.1084311455488205,
0.012675001285970211,
-0.04890775308012962,
0.015682190656661987,
-0.007927261292934418,
-0.01769847236573696,
0.06765744835138321,
-0.05238885432481766,
0.00533366808667779,
-0.010064174421131611,
-0.04453052580356598,
-0.01933562383055687,
0.04804609343409538,
-0.04346206784248352,
0.0606263130903244,
-0.06052291393280029,
0.08506295830011368,
0.0030739677604287863,
0.023747315630316734,
0.012924881651997566,
-0.01381239015609026,
0.027779879048466682,
0.01959412172436714,
0.02655632421374321,
0.06279769539833069,
0.040911559015512466,
-0.02988232672214508,
-0.005691256374120712,
-0.06162583827972412,
0.017991434782743454,
-0.0020033568143844604,
0.028141776099801064,
-0.018715228885412216,
0.0064279744401574135,
-0.020007716491818428,
0.0007846480584703386,
-0.009667811915278435,
0.0028757862746715546,
-0.01224417146295309,
0.07044922560453415,
0.02352328598499298,
-0.04046349599957466,
-0.07934153825044632,
0.011382512748241425,
0.06565839797258377,
-0.04370333254337311,
0.038981445133686066,
-0.020972775295376778,
0.017422741279006004,
0.025849763303995132,
0.04415139555931091,
-0.00736287422478199,
0.010908599942922592,
0.024384943768382072,
-0.02988232672214508,
0.03410445526242256,
0.007078527007251978,
0.04801162704825401,
-0.028572605922818184,
0.020283447578549385,
-0.0021498387213796377,
0.02402304671704769,
0.014338002540171146,
-0.005949753802269697,
0.03670666366815567,
0.05114806443452835,
0.06941523402929306,
0.08023766428232193,
0.0036168128717690706,
-0.04453052580356598,
0.03670666366815567,
0.04766696318984032,
0.009280065074563026,
-0.016647247597575188,
0.04446159303188324,
-0.02738351561129093,
-0.008065125904977322,
-0.12242448329925537,
-0.01406227145344019,
-0.004945921711623669,
-0.013243695721030235,
-0.024247078225016594,
0.00032231424120254815,
0.010426071472465992,
0.0501830093562603,
0.023540519177913666,
0.040153298527002335,
-0.03570714220404625,
-0.05807580426335335,
-0.018180999904870987,
0.01494116336107254,
0.03269133344292641,
0.04801162704825401,
-0.005936828907579184,
0.007367182523012161,
-0.03877464681863785,
0.038188718259334564,
0.01823269948363304,
0.06510693579912186,
-0.010115873999893665,
-0.02802114374935627,
-0.0053293597884476185,
-0.03605180233716965,
-0.013243695721030235,
-0.03784405440092087,
-0.0028714779764413834,
-0.027762645855545998,
0.03653433173894882,
-0.008069434203207493,
0.046632975339889526,
-0.003162287874147296,
-0.00998662505298853,
0.020214514806866646,
0.032501768320798874,
0.046667441725730896,
-0.027745412662625313,
0.016707563772797585,
-0.018146533519029617,
0.052561186254024506,
0.0861658826470375,
-0.015449542552232742,
0.021179573610424995,
0.0025225060526281595,
0.0036491251084953547,
0.014432785101234913,
-0.010839668102562428,
0.03181244432926178,
-0.06348702311515808,
0.020490245893597603,
-0.015449542552232742,
0.08230564743280411,
0.02305798977613449,
-0.042083416134119034,
-0.013054130598902702,
-0.028107309713959694,
-0.02126573957502842,
-0.0002875786158256233,
-0.01880139485001564,
-0.04894221946597099,
0.026797588914632797,
0.011322196573019028,
0.004963154438883066,
0.001881647389382124,
0.03670666366815567,
-0.04156642034649849,
-0.02934809774160385,
0.0018741078674793243,
0.04521985352039337,
-0.02116234041750431,
0.026073794811964035,
-0.017103927209973335,
-0.017060844227671623,
0.0749298483133316,
-0.05462916940450668,
0.06179817020893097,
-0.07465411722660065,
-0.027469681575894356,
0.009840143844485283,
0.005635248497128487,
-0.028072843328118324,
-0.02379901520907879,
0.002115372335538268,
-0.014286302961409092,
0.0066175395622849464,
-0.014829147607088089,
-0.010322672314941883,
-0.04470285773277283,
0.05238885432481766,
0.03936057537794113,
0.010305439122021198,
0.03842998296022415,
0.06807104498147964,
-0.016414599493145943,
0.025901462882757187,
-0.047942694276571274,
-0.023816248401999474,
0.02669418975710869,
-0.024281544610857964,
0.018422264605760574,
-0.020093882456421852,
0.03265686705708504,
0.010434688068926334,
0.006113469135016203,
0.014967013150453568,
-0.030623354017734528,
-0.023885181173682213,
0.011037848889827728,
0.0002875786158256233,
-0.026832055300474167,
-0.044840723276138306,
0.03880911320447922,
-0.03274303302168846,
0.025332769379019737,
-0.041842151433229446,
-0.006759713403880596,
0.020714277401566505,
-0.04446159303188324,
-0.01797420158982277,
-0.006751096807420254,
-0.04428926110267639,
-0.06572733074426651,
-0.04160088673233986,
0.03038208931684494,
-0.06586519628763199,
-0.08016873151063919,
-0.014648199081420898,
-0.010305439122021198,
0.024367710575461388,
0.028831103816628456,
0.01966305449604988,
-0.03155394643545151,
0.00031908301752991974,
0.005988528486341238,
0.032760266214609146,
-0.0009413622319698334,
0.07231040298938751,
-0.05769667401909828,
-0.008646746166050434,
-0.004566791467368603,
0.023316487669944763,
0.031002484261989594,
-0.006475365720689297,
0.0355348102748394,
-0.027073320001363754,
0.008504572324454784,
0.022454828023910522,
0.021955065429210663,
-0.06252196431159973,
-0.00837963167577982,
0.000040928793168859556,
0.05693841353058815,
-0.0021142952609807253,
-0.05004514381289482,
0.02426431141793728,
0.025298302993178368,
0.0013657291419804096,
0.11801278591156006,
-0.019852617755532265,
0.013691757805645466,
0.03567267581820488,
-0.018508430570364,
0.034759316593408585,
0.0034380184952169657,
-0.008987100794911385,
-0.050493206828832626,
-0.07534344494342804,
0.03503504768013954,
0.03550034388899803,
-0.037258125841617584,
-0.009211132302880287,
-0.0341733880341053,
-0.0013420336181297898,
0.012425119988620281,
0.008832002989947796,
0.05783453956246376,
-0.015216894447803497,
-0.06493460386991501,
0.042910609394311905,
0.044771790504455566,
-0.004851139150559902,
0.07596383988857269,
-0.04446159303188324,
-0.00722931744530797,
0.04353100061416626,
-0.01630258373916149,
-0.037258125841617584,
-0.034294020384550095,
-0.021972298622131348,
0.08795812726020813,
0.021438071504235268,
0.03470761701464653,
0.007427498698234558,
-0.013252312317490578,
-0.018180999904870987,
-0.03984310105443001,
-0.05276798456907272,
0.010012474842369556,
0.062453027814626694,
-0.0024191071279346943,
-0.06200496852397919,
0.015501242130994797,
0.01737104170024395,
0.025177670642733574,
0.04608151316642761,
0.0256601981818676,
0.05118253082036972,
-0.000298618630040437,
-0.0984359011054039,
0.03420785441994667,
0.02066257782280445,
0.0493902824819088,
0.006234101485460997,
0.026349525898694992,
0.004989004228264093,
0.013493577018380165,
-0.0551806278526783,
0.01188227441161871,
-0.007268092129379511,
0.0008045738795772195,
-0.037120260298252106,
-0.00877599511295557,
-0.016104402020573616,
-0.011029232293367386,
-0.03684452921152115,
-0.030140824615955353,
-0.06679578870534897,
0.023971347138285637,
-0.009590262547135353,
0.02212739735841751,
0.02379901520907879,
-0.043910130858421326,
-0.02462620846927166,
-0.023471586406230927,
0.017750171944499016,
0.0349661149084568,
-0.011210180819034576,
0.007629988715052605,
-0.00809528399258852,
0.05535295978188515,
-0.014182903803884983,
0.0246951412409544,
-0.0223686620593071,
0.017664005979895592,
0.004528016783297062,
-0.0485975556075573,
0.02033514715731144,
0.032363902777433395,
0.003795607015490532,
0.010150340385735035,
0.022420361638069153,
0.0004682576982304454,
-0.02312692254781723,
-0.011572077870368958,
0.05149272829294205,
0.03355299308896065,
0.05235438793897629,
0.0006166246021166444,
-0.012054606340825558,
-0.006807104684412479,
-0.0532505139708519,
-0.002218771493062377,
-0.032829198986291885,
-0.05242332071065903,
0.03918824344873428,
-0.04067029431462288,
-0.03643093258142471,
0.04042902961373329,
0.021351905539631844,
0.01077935192734003,
-0.02283395826816559,
-0.0030308847781270742,
-0.02955489605665207,
0.051665060222148895,
0.009538562968373299,
-0.05628355219960213,
-0.012330337427556515,
-0.03646539896726608,
-0.04628831148147583,
0.020111115649342537,
0.027193952351808548,
-0.05511169508099556,
-0.048873286694288254,
-0.03274303302168846,
-0.0023480202071368694,
-0.04070476070046425,
-0.018456730991601944,
0.02126573957502842,
0.027297351509332657,
0.01723317615687847,
-0.0005563084851019084,
0.037327058613300323,
-0.07341332733631134,
0.015079028904438019,
0.02080044336616993,
0.00961611233651638,
-0.029830627143383026,
-0.11622054129838943,
-0.02376454882323742,
-0.017500290647149086,
-0.023919647559523582,
0.009736744686961174,
-0.001564987818710506,
0.027107786387205124,
-0.032725799828767776,
-0.032501768320798874,
-0.038188718259334564,
0.001270946697331965,
-0.041152823716402054,
0.02684928849339485,
0.01897372677922249,
-0.06634772568941116,
-0.059523388743400574,
-0.016707563772797585,
-0.026142727583646774,
-0.01773293875157833,
0.004437542986124754,
0.005230268929153681,
-0.030795685946941376,
-0.023712849244475365,
-0.02448834292590618,
0.00998662505298853,
-0.00911634974181652,
-0.05776560679078102,
-0.003431556047871709,
0.0865105465054512,
0.00834516528993845,
0.005269043613225222,
0.054353438317775726,
-0.015087645500898361,
-0.009323148056864738,
0.03410445526242256,
0.0009128198144026101,
-0.03305323049426079,
0.06086757779121399,
-0.00391408521682024,
0.008840619586408138,
0.0246951412409544,
0.05311264842748642,
0.036361999809741974,
-0.015544325113296509,
-0.023144155740737915,
-0.0025720514822751284,
-0.012390653602778912,
-0.011011999100446701,
0.008233149535953999,
0.02977892756462097,
-0.0030136515852063894,
0.0038516148924827576,
0.04304847493767738,
0.02691822126507759,
0.021110640838742256,
-0.027004387229681015,
-0.020128348842263222,
-0.029658295214176178,
-0.034156154841184616,
0.007922952994704247,
0.01066733617335558,
-0.051596127450466156,
0.022885657846927643,
-0.004743431694805622,
0.05814473703503609,
-0.002535430947318673,
-0.037292592227458954,
-0.04752909764647484,
-0.02472960762679577,
-0.04122175648808479,
-0.029658295214176178,
0.041945550590753555,
-0.0010652256896719337,
-0.0005293816211633384,
-0.02705608680844307,
-0.005471533164381981,
0.09781550616025925,
-0.02576359733939171,
0.024436643347144127,
-0.004071337636560202,
-0.03255346789956093,
0.04556451737880707,
0.0007868022075854242,
-0.06166030466556549,
0.007212084252387285,
0.00033281571813859046,
-0.01769847236573696,
0.014846380800008774,
-0.04032563045620918,
-0.09340381622314453,
-0.0010733037488535047,
-0.06059184670448303,
-0.045185387134552,
-0.05879959464073181,
0.07424052059650421,
0.012304487638175488,
0.030261456966400146,
-0.002073366427794099,
-0.02762478031218052,
0.03877464681863785,
0.020248981192708015,
0.02155870385468006,
-0.02186889946460724,
-0.07437838613986969,
-0.023178622126579285,
0.0010991535382345319,
0.015957921743392944,
0.044013530015945435,
0.016681713983416557,
-0.007742004469037056,
0.044771790504455566,
-0.07954833656549454,
0.009073266759514809,
0.023747315630316734,
0.015630491077899933,
0.04146302118897438,
0.007875561714172363,
0.028003910556435585,
0.016733413562178612,
0.025074271485209465,
-0.034362953156232834,
-0.008353781886398792,
-0.0014863613760098815,
-0.06400401890277863,
-0.021282972767949104,
-0.007655838504433632,
0.02252376079559326,
0.011158481240272522,
0.042979542165994644,
0.0164059828966856,
-0.007293941918760538,
0.03470761701464653,
-0.0374649241566658,
0.011055082082748413,
-0.00592390401288867,
0.045736849308013916,
-0.013588359579443932,
-0.017922503873705864,
-0.011485911905765533,
-0.004579716362059116,
-0.021386371925473213,
0.0006123163038864732,
-0.0006349348113872111,
0.04759803041815758,
-0.002393257338553667,
-0.022782258689403534,
-0.01966305449604988,
0.013872706331312656,
0.024798540398478508,
0.03539694473147392,
0.062211766839027405,
0.07520557940006256,
-0.061246708035469055,
-0.09367954730987549,
-0.0063159591518342495,
0.055456358939409256,
0.043014008551836014,
-0.02130020596086979,
-0.019025426357984543,
0.048769887536764145,
0.006462440825998783,
-0.02745244838297367,
0.09946989268064499,
-0.014665432274341583,
-0.017327958717942238,
0.010339905507862568,
-0.06689918786287308,
0.006113469135016203,
0.018318865448236465,
-0.028968969359993935,
-0.05493936315178871,
0.004515091888606548,
0.01687127910554409,
0.0031321297865360975,
-0.02934809774160385,
-0.07306866347789764,
-0.09623005241155624,
-0.007255167234688997,
0.015914838761091232,
0.08120272308588028,
-0.03174351155757904,
-0.02273055911064148,
-0.03320832923054695,
-0.04801162704825401,
0.06262536346912384,
0.010469154454767704,
-0.02995125949382782,
0.02212739735841751,
-0.07789395749568939,
-0.019852617755532265,
0.007642913609743118,
0.009960775263607502,
-0.05152719467878342,
0.05759327486157417,
0.01093444973230362,
-0.006216868292540312,
0.0579034723341465,
-0.05924765765666962,
-0.05214758962392807,
0.0393950417637825,
-0.016268117353320122,
0.029503196477890015,
0.024040279909968376,
-0.029796160757541656,
-0.011770259588956833,
0.01800866797566414,
-0.06286662817001343,
0.016828196123242378,
0.02073151059448719,
-0.00032016009208746254,
0.030158057808876038,
0.01773293875157833,
-0.038154251873493195,
-0.012967964634299278,
-0.006699397228658199,
0.011124014854431152,
0.05600782111287117,
0.007642913609743118,
0.0174830574542284,
0.03217433765530586,
0.023006290197372437,
0.02958936244249344,
0.030830152332782745,
-0.08664841204881668,
-0.012649151496589184,
0.031002484261989594,
0.014605117030441761,
0.014915313571691513,
-0.017353808507323265,
-0.014363852329552174,
0.062384095042943954,
-0.08402896672487259,
-0.03563820943236351,
-0.0033066156320273876,
0.0019721216522157192,
-0.05387090891599655,
-0.009417930617928505,
-0.020507479086518288,
-0.06069524586200714,
-0.04453052580356598,
0.001979661174118519,
0.013596976175904274,
0.026263359934091568,
0.016457682475447655,
-0.026866521686315536,
0.04466839134693146,
0.006953586358577013,
-0.0024945021141320467,
0.01880139485001564,
-0.0051182531751692295,
0.03498334810137749,
-0.0007571826572529972,
-0.02791774459183216,
0.0010463768849149346,
-0.024815773591399193,
-0.013140296563506126,
0.04635724425315857,
0.018818628042936325,
0.045736849308013916,
-0.069036103785038,
0.04563345015048981,
-0.01126188039779663,
-0.05966125428676605,
-0.06565839797258377,
-0.04756356403231621,
-0.034397419542074203,
0.004820981062948704,
-0.020921075716614723,
-0.01224417146295309,
0.021472537890076637,
-0.07810075581073761,
0.002404028084129095,
-0.011985673569142818,
-0.029037902131676674,
-0.008039276115596294,
0.014889463782310486,
0.0035371093545109034,
-0.0217999666929245,
-0.0010652256896719337,
-0.11959823966026306,
-0.04842522367835045,
-0.06328022480010986,
-0.0051613361574709415,
-0.06572733074426651,
-0.035086747258901596,
0.015294443815946579,
0.001455126330256462,
-0.07968620210886002,
-0.012718084268271923,
0.0012278638314455748,
0.04718443378806114,
-0.005837738513946533,
0.03038208931684494,
-0.053491778671741486,
0.04063582792878151,
-0.011253263801336288,
0.05704181268811226,
-0.008556271903216839,
-0.002552664140239358,
0.03396658971905708,
0.030209757387638092,
0.0308818519115448,
-0.011692710220813751,
0.030295923352241516,
-0.012433736585080624,
-0.04649510979652405,
-0.05883406102657318,
0.05214758962392807,
0.05004514381289482,
0.02348881959915161,
-0.009874610230326653,
0.03884357959032059,
0.004993312526494265,
-0.02569466456770897,
-0.00841840635985136,
0.012700851075351238,
-0.04921795055270195,
-0.01231310423463583,
0.010503620840609074,
-0.004881297238171101,
-0.03787852078676224,
0.0067467885091900826,
-0.027504147961735725,
0.010891366750001907,
-0.04704657196998596,
-0.015751123428344727,
-0.05997145175933838,
0.04621937870979309,
-0.016828196123242378,
-0.05979911983013153,
0.03749939054250717,
0.03077845275402069,
0.007742004469037056,
0.029727227985858917,
0.0013560355873778462,
0.024005813524127007,
0.03045102208852768,
-0.014837764203548431,
0.007461965084075928,
0.06007485091686249,
-0.02205846458673477,
0.01912882551550865,
-0.01937009021639824,
0.056455884128808975,
-0.004480625968426466,
0.015776973217725754,
0.025039805099368095,
0.04559898376464844,
-0.01919775828719139,
0.025849763303995132,
0.035224612802267075,
0.06007485091686249,
0.05087233707308769,
0.03663773089647293,
0.023040756583213806,
0.02126573957502842,
-0.004889913834631443,
0.04566791653633118
] |
10,134 | pygments.formatters.html | _wrap_div | null | def _wrap_div(self, inner):
style = []
if (self.noclasses and not self.nobackground and
self.style.background_color is not None):
style.append(f'background: {self.style.background_color}')
if self.cssstyles:
style.append(self.cssstyles)
style = '; '.join(style)
yield 0, ('<div' + (self.cssclass and f' class="{self.cssclass}"') +
(style and (f' style="{style}"')) + '>')
yield from inner
yield 0, '</div>\n'
| (self, inner) | [
0.008348064497113228,
-0.028103889897465706,
-0.02366543933749199,
0.01911366730928421,
0.04585769400000572,
-0.008069480769336224,
-0.032938968390226364,
0.04079597070813179,
0.01767825335264206,
0.033335596323013306,
0.02566746436059475,
0.039209458976984024,
-0.008938283659517765,
-0.024496469646692276,
-0.0465753972530365,
0.021531205624341965,
-0.0006846545729786158,
-0.06066511943936348,
0.024855323135852814,
-0.01422192808240652,
0.012031033635139465,
0.04412008449435234,
0.05088163912296295,
0.05620777979493141,
0.01050118450075388,
0.020133566111326218,
-0.021247901022434235,
0.023703213781118393,
0.012597644701600075,
-0.046726495027542114,
0.02491198293864727,
-0.052430376410484314,
-0.052732568234205246,
0.029350433498620987,
0.08159194141626358,
-0.017734915018081665,
-0.03367556259036064,
0.025440819561481476,
-0.05107051134109497,
0.04049377888441086,
0.057680968195199966,
0.02073795162141323,
0.03363778814673424,
-0.051410477608442307,
-0.007073190063238144,
-0.04676426947116852,
0.12352113425731659,
0.02766948938369751,
0.015194609761238098,
-0.0636870414018631,
0.009906243532896042,
0.009868470020592213,
0.0014389550779014826,
0.008315011858940125,
-0.029161563143134117,
-0.00717706885188818,
-0.015298488549888134,
0.029425982385873795,
0.0092735281214118,
0.04098483920097351,
-0.08287625759840012,
-0.004218888934701681,
0.014439129270613194,
0.04676426947116852,
-0.0021342337131500244,
0.007748401258140802,
-0.03414773941040039,
0.043893441557884216,
-0.022891072556376457,
0.016988877207040787,
-0.0299359317868948,
0.0351676382124424,
0.0390205904841423,
0.05258147418498993,
-0.04971064627170563,
-0.011539971455931664,
0.018301526084542274,
-0.00501922657713294,
0.07396158576011658,
-0.04336460679769516,
0.013504221104085445,
0.023929858580231667,
-0.006959868129342794,
0.009802364744246006,
0.03435549512505531,
-0.043326832354068756,
0.010784490033984184,
-0.011964929290115833,
-0.03943610563874245,
0.0004175802750978619,
-0.01998247019946575,
0.040644872933626175,
-0.005666106939315796,
-0.006615180056542158,
0.005179766099900007,
0.015562906861305237,
-0.019925808534026146,
0.01663946732878685,
0.025648577138781548,
-0.0014377746265381575,
0.015647899359464645,
0.03928500786423683,
0.02340102195739746,
-0.024269824847579002,
0.011955485679209232,
-0.009608772583305836,
0.002644183347001672,
-0.05941857397556305,
0.0005430019227787852,
0.019718052819371223,
0.017432723194360733,
-0.05159934610128403,
-0.035809796303510666,
0.01145497988909483,
0.00374199147336185,
-0.03146577998995781,
-0.00043853308307006955,
0.0542057566344738,
0.03460102528333664,
-0.053865790367126465,
0.016337275505065918,
-0.05715213343501091,
-0.020983481779694557,
-0.01193659845739603,
-0.020700177177786827,
0.07653021812438965,
-0.03843509033322334,
0.04600878804922104,
-0.00327925942838192,
0.06580238789319992,
0.05450794845819473,
-0.0007643342250958085,
0.033335596323013306,
-0.06629344820976257,
-0.025459706783294678,
-0.03756628930568695,
-0.01478853914886713,
-0.0118893813341856,
0.024930870160460472,
-0.00250725238583982,
0.013324794359505177,
-0.03928500786423683,
-0.03688635677099228,
-0.0005486090085469186,
-0.04253357648849487,
0.03554537892341614,
0.005718046333640814,
-0.0029676235280930996,
0.013872518204152584,
0.016582805663347244,
0.009689043276011944,
0.020851273089647293,
0.08204522728919983,
0.08816462755203247,
-0.0513727031648159,
0.013249246403574944,
0.006775719579309225,
-0.004310963209718466,
0.03382665663957596,
-0.01127555314451456,
0.028179438784718513,
-0.061382826417684555,
0.06398923695087433,
0.01606341265141964,
0.06954202055931091,
0.05371469259262085,
-0.012333226390182972,
-0.0541679821908474,
0.02357100509107113,
0.022286687046289444,
-0.005925803445279598,
-0.024326486513018608,
-0.028406083583831787,
-0.0017069147434085608,
-0.03157910332083702,
0.01417471095919609,
0.01616729237139225,
-0.004225971642881632,
-0.009367963299155235,
-0.03186240792274475,
0.0019854982383549213,
-0.030880283564329147,
0.013645874336361885,
0.0015817881794646382,
0.02036021091043949,
-0.003548399545252323,
0.09435956925153732,
-0.06338485330343246,
-0.0018946045311167836,
-0.07086411118507385,
-0.006969311740249395,
0.028651613742113113,
0.00605801260098815,
-0.008135585114359856,
0.011709954589605331,
0.004986173938959837,
-0.000875885714776814,
-0.028670500963926315,
0.014882974326610565,
0.04782194271683693,
-0.07675686478614807,
0.05005061253905296,
-0.008333899080753326,
-0.03310895338654518,
0.05379024147987366,
0.018424291163682938,
-0.03297674283385277,
0.015657342970371246,
-0.014769651927053928,
-0.011879937723279,
-0.039700523018836975,
0.008192245848476887,
-0.01833929866552353,
0.039700523018836975,
0.04211806133389473,
-0.008196967653930187,
0.030011480674147606,
0.028254985809326172,
-0.034468818455934525,
-0.01435413770377636,
-0.07252617180347443,
-0.01587454229593277,
-0.04763307049870491,
-0.024005405604839325,
-0.002712648594751954,
-0.051297154277563095,
0.030502542853355408,
-0.05469682067632675,
-0.0437423437833786,
-0.0021141660399734974,
-0.030105914920568466,
-0.014996296726167202,
-0.04287354275584221,
-0.014429685659706593,
-0.02406206727027893,
0.0015168640529736876,
-0.03288230672478676,
-0.01007622666656971,
-0.041702546179294586,
-0.025440819561481476,
0.025894109159708023,
0.0020964595023542643,
0.03165465220808983,
-0.008758856914937496,
0.05046612396836281,
-0.016290057450532913,
0.001640810165554285,
0.0370563380420208,
0.004287354182451963,
0.05095718801021576,
-0.06006073206663132,
-0.020133566111326218,
0.006379092112183571,
0.017819905653595924,
0.0014814508613198996,
-0.032938968390226364,
-0.060249604284763336,
-0.053488049656152725,
-0.00020598659466486424,
-0.0180654376745224,
0.017819905653595924,
-0.02689512073993683,
0.007965601980686188,
0.06096731126308441,
0.037131886929273605,
0.012795957736670971,
-0.040078263729810715,
-0.005968299228698015,
0.014467460103332996,
0.05983408913016319,
0.10191437602043152,
-0.03834065794944763,
0.024968644604086876,
0.04011603817343712,
0.01684722490608692,
0.025176402181386948,
-0.004792582243680954,
0.024647565558552742,
-0.05239260196685791,
-0.01107723917812109,
-0.01664891093969345,
0.0342421717941761,
-0.029709286987781525,
-0.054545722901821136,
-0.011445536278188229,
0.005085330922156572,
-0.007630357518792152,
0.024194275960326195,
0.0608539879322052,
-0.03273121267557144,
-0.07585028558969498,
0.00797976739704609,
-0.014269146136939526,
-0.015742333605885506,
0.01478853914886713,
0.0185281690210104,
-0.01459022518247366,
0.00470995157957077,
-0.04310018569231033,
-0.020964596420526505,
-0.03696190565824509,
-0.0636870414018631,
-0.00005201309249969199,
0.045215532183647156,
0.0069740330800414085,
0.03539428114891052,
0.004653290379792452,
0.012276564724743366,
-0.011530527845025063,
-0.04823745787143707,
0.043213509023189545,
0.050352804362773895,
0.007932549342513084,
-0.019378086552023888,
0.009575720876455307,
-0.0056519415229558945,
-0.020284662023186684,
0.002585161244496703,
0.0029841496143490076,
0.07475483417510986,
-0.048917390406131744,
-0.03871839866042137,
-0.008145028725266457,
0.056056685745716095,
0.07252617180347443,
-0.0021696467883884907,
0.025988543406128883,
-0.026762912049889565,
0.02340102195739746,
0.023608779534697533,
-0.029501529410481453,
-0.012824288569390774,
-0.015714002773165703,
0.002248736098408699,
-0.007063746452331543,
-0.04695313796401024,
0.023231038823723793,
0.0005618889117613435,
0.02262665331363678,
-0.079929880797863,
0.0922442227602005,
-0.013447560369968414,
0.011152787134051323,
-0.004053627140820026,
-0.09307525306940079,
-0.03416662663221359,
-0.02034132368862629,
0.007290390785783529,
-0.003203711239621043,
-0.02814166434109211,
0.014467460103332996,
-0.03843509033322334,
0.06871099025011063,
0.04971064627170563,
0.04691536724567413,
0.02870827540755272,
-0.01722496561706066,
0.0494462251663208,
-0.016686685383319855,
0.027405070140957832,
0.010227322578430176,
0.014524120837450027,
0.028500517830252647,
0.026762912049889565,
-0.02321215160191059,
-0.01435413770377636,
0.014580781571567059,
0.05726545304059982,
-0.020945709198713303,
0.030011480674147606,
-0.017734915018081665,
-0.0035861735232174397,
0.051788218319416046,
-0.0997990295290947,
0.027896132320165634,
0.028557179495692253,
-0.05972076579928398,
-0.005826646462082863,
0.02644183300435543,
-0.03524318337440491,
-0.01748938299715519,
0.008730526082217693,
0.020662402734160423,
-0.04570659622550011,
-0.03309006616473198,
-0.04200473800301552,
0.055187880992889404,
0.027121765539050102,
0.001974874408915639,
-0.020095793530344963,
-0.04310018569231033,
-0.015392923727631569,
0.0427979938685894,
-0.017904898151755333,
-0.06610458344221115,
-0.04498888924717903,
0.052165959030389786,
0.01634671911597252,
-0.00008240939496317878,
-0.03688635677099228,
0.05258147418498993,
-0.034544363617897034,
0.05960744619369507,
0.01298482809215784,
0.0070259724743664265,
-0.08310290426015854,
0.021852286532521248,
0.012767627835273743,
0.05847422406077385,
0.0028094446752220392,
-0.09723039716482162,
-0.0513727031648159,
-0.01890590973198414,
0.006846545729786158,
0.002300675492733717,
0.030785847455263138,
0.0019111306173726916,
0.028217213228344917,
-0.05171266943216324,
-0.02863272652029991,
0.003099832683801651,
0.01617673598229885,
0.039133910089731216,
0.014514677226543427,
-0.037887368351221085,
-0.027707263827323914,
-0.012871506623923779,
-0.044346731156110764,
-0.02681957371532917,
-0.019085336476564407,
-0.005349749233573675,
0.011917711235582829,
-0.046159885823726654,
-0.007030694279819727,
0.060514021664857864,
-0.026951782405376434,
-0.06296933442354202,
-0.01002900954335928,
0.03276898339390755,
0.008022262714803219,
0.007479261141270399,
0.0076445224694907665,
-0.01535515021532774,
0.00278111407533288,
0.03860507532954216,
0.03509208932518959,
-0.026951782405376434,
0.02328769862651825,
-0.0012760545359924436,
-0.009438789449632168,
0.03341114521026611,
0.005453628022223711,
0.007583139929920435,
-0.007328164763748646,
-0.010095113888382912,
-0.04638652876019478,
-0.02957707829773426,
-0.018424291163682938,
-0.02585633471608162,
0.013513664714992046,
0.012484322302043438,
-0.05069277063012123,
-0.023419909179210663,
0.049295131117105484,
-0.06289378553628922,
-0.046726495027542114,
0.026498492807149887,
-0.018282638862729073,
-0.04495111480355263,
0.024288712069392204,
-0.019831374287605286,
-0.05428130552172661,
0.012134912423789501,
-0.005614167544990778,
0.01173828449100256,
-0.01003845315426588,
-0.03966274857521057,
-0.024836435914039612,
-0.01311703771352768,
-0.023061055690050125,
-0.027310635894536972,
0.01835818588733673,
-0.014136936515569687,
-0.023892084136605263,
-0.03858618810772896,
0.02729174867272377,
0.07909885048866272,
0.022607766091823578,
0.08672921359539032,
-0.02901046723127365,
-0.014845199882984161,
0.042949091643095016,
-0.08733359724283218,
-0.009504894725978374,
0.007951436564326286,
-0.011284996755421162,
-0.016875555738806725,
0.047973040491342545,
-0.023363247513771057,
-0.10493630170822144,
0.030729185789823532,
-0.07052414119243622,
0.010916699655354023,
-0.003855313640087843,
0.06210053339600563,
-0.04612211138010025,
0.000944351137150079,
-0.013730865903198719,
0.01416526734828949,
0.006199665367603302,
-0.007715349085628986,
-0.015345706604421139,
-0.026498492807149887,
-0.016998320817947388,
0.0045210812240839005,
-0.026970669627189636,
-0.011284996755421162,
0.021059030666947365,
0.019944695755839348,
0.027990568429231644,
0.09020442515611649,
-0.035432055592536926,
-0.015364592894911766,
0.040191587060689926,
-0.029350433498620987,
0.0541679821908474,
-0.012040477246046066,
-0.011237778700888157,
0.0018780783284455538,
-0.021606754511594772,
-0.05379024147987366,
-0.03460102528333664,
-0.019472520798444748,
-0.02918045036494732,
-0.0149679658934474,
-0.0007714168750680983,
-0.025346385315060616,
-0.014939635060727596,
0.014344694092869759,
-0.02719731256365776,
0.031125813722610474,
0.004306241404265165,
0.007583139929920435,
-0.02844385616481304,
-0.0019182133255526423,
0.038265109062194824,
0.051108285784721375,
-0.015062401071190834,
-0.0029747062362730503,
-0.026271849870681763,
0.008366950787603855,
-0.03563981130719185,
-0.012031033635139465,
0.022664427757263184,
-0.005973021034151316,
0.001510961796157062,
-0.025251949205994606,
-0.0028826319612562656,
-0.002300675492733717,
0.03943610563874245,
0.0979103296995163,
0.061382826417684555,
-0.0038010133430361748,
-0.0074839829467237,
0.020039131864905357,
0.006912650540471077,
0.04404453933238983,
0.014240815304219723,
-0.05934302508831024,
0.05617000535130501,
-0.026101866737008095,
-0.025837447494268417,
0.009608772583305836,
-0.006879598367959261,
0.054545722901821136,
0.0323534719645977,
-0.032938968390226364,
0.009821251966059208,
0.024213163182139397,
-0.018235420808196068,
-0.06931537389755249,
-0.023910971358418465,
0.014986853115260601,
-0.04094706475734711,
-0.032013505697250366,
-0.06803105771541595,
-0.04827523231506348,
0.017621591687202454,
0.05209041014313698,
0.050541672855615616,
0.014382468536496162,
-0.029879270121455193,
0.0032674549147486687,
-0.017272181808948517,
0.04695313796401024,
-0.06425365060567856,
-0.02816055156290531,
-0.0010736092226579785,
-0.11181117594242096,
-0.015761220827698708,
0.01027454063296318,
0.04971064627170563,
-0.015222940593957901,
0.10130999237298965,
-0.02024688944220543,
-0.005774707533419132,
0.04109816253185272,
-0.04691536724567413,
-0.06448029726743698,
-0.03354335203766823,
-0.03250456601381302,
0.010227322578430176,
0.02024688944220543,
0.058625318109989166,
0.01069949846714735,
-0.009726816788315773,
-0.08899565041065216,
-0.0024198999162763357,
-0.024855323135852814,
-0.017753802239894867,
0.0054158540442585945,
0.008952449075877666,
-0.038945041596889496,
0.030766960233449936,
-0.015185166150331497,
-0.006261048372834921,
0.06871099025011063,
-0.017527157440781593,
0.030596977099776268,
0.012899836525321007,
0.008272516541182995,
0.05379024147987366,
0.0247231125831604,
-0.03533761948347092,
-0.051863767206668854,
0.02109680511057377,
0.010350088588893414,
0.022947732359170914,
-0.002859023166820407,
-0.053110308945178986,
0.06542465090751648,
-0.004766612313687801,
0.001828499953262508,
-0.019793599843978882,
0.034261059015989304,
-0.07811672985553741,
0.04155145213007927,
-0.04510221257805824,
-0.02321215160191059,
-0.016138961538672447,
0.01627117022871971,
0.07977878302335739,
0.04124926030635834,
-0.05507455766201019,
-0.03556426614522934,
-0.030691413208842278,
0.034487705677747726,
0.00865025632083416,
-0.021531205624341965,
0.05533897876739502,
0.011568301357328892,
0.002927488647401333,
0.0036026996094733477,
0.0042023626156151295,
-0.03505431488156319,
0.05590558797121048,
0.034261059015989304,
0.024080954492092133,
0.007828671485185623,
-0.06795550882816315,
0.008579430170357227,
0.023816535249352455,
-0.0884668156504631,
-0.02901046723127365,
-0.06236495077610016,
-0.0012477239361032844,
-0.018320413306355476,
-0.00969848595559597,
0.017243852838873863,
-0.009514338336884975,
-0.028292760252952576,
0.015846213325858116,
-0.07271503657102585,
-0.033600013703107834,
-0.004188197199255228,
-0.01787656731903553,
-0.005363914649933577,
-0.05307253450155258,
-0.012777071446180344,
-0.09806142747402191,
-0.03784959390759468,
-0.02007690630853176,
0.03120136260986328,
-0.026838459074497223,
-0.05941857397556305,
-0.02064351551234722,
0.004136258270591497,
-0.0684087947010994,
0.0370941124856472,
-0.007573696319013834,
0.016375049948692322,
-0.018490396440029144,
0.01269207987934351,
0.02653626725077629,
0.05560339614748955,
0.030748073011636734,
0.051108285784721375,
0.00907521415501833,
0.06493358314037323,
-0.01050118450075388,
0.016771676018834114,
0.09775923192501068,
-0.008706917986273766,
0.02272108942270279,
-0.03677303344011307,
-0.028406083583831787,
0.014873530715703964,
0.03407219052314758,
0.02521417662501335,
0.005548063199967146,
-0.043704573065042496,
0.07354606688022614,
0.05401688441634178,
0.029652627184987068,
0.007786175236105919,
0.015449585393071175,
-0.02358989231288433,
0.0025214175693690777,
-0.012795957736670971,
0.010661724954843521,
-0.022097816690802574,
0.020473532378673553,
-0.03809512406587601,
0.0027834749780595303,
-0.027065103873610497,
-0.025081966072320938,
0.02026577666401863,
0.04053155332803726,
-0.031031379476189613,
-0.05715213343501091,
0.0014908943558111787,
-0.05057944729924202,
0.03193795680999756,
0.004667455796152353,
-0.010982804000377655,
0.0332789346575737,
0.04952177405357361,
0.060627344995737076,
0.0019205741118639708,
0.015062401071190834,
0.02766948938369751,
-0.013277577236294746,
-0.006341318134218454,
0.10569178313016891,
0.050239481031894684,
0.013768639415502548,
-0.006416866090148687,
-0.0062704915180802345,
0.006723780184984207,
0.0016951103461906314,
0.02776392363011837,
-0.022569993510842323,
0.0390205904841423,
0.06123172864317894,
-0.00293693202547729,
0.05911638215184212,
0.029614852741360664,
0.07660576701164246
] |
10,135 | pygments.formatters.html | _wrap_full | null | def _wrap_full(self, inner, outfile):
if self.cssfile:
if os.path.isabs(self.cssfile):
# it's an absolute filename
cssfilename = self.cssfile
else:
try:
filename = outfile.name
if not filename or filename[0] == '<':
# pseudo files, e.g. name == '<fdopen>'
raise AttributeError
cssfilename = os.path.join(os.path.dirname(filename),
self.cssfile)
except AttributeError:
print('Note: Cannot determine output file name, '
'using current directory as base for the CSS file name',
file=sys.stderr)
cssfilename = self.cssfile
# write CSS file only if noclobber_cssfile isn't given as an option.
try:
if not os.path.exists(cssfilename) or not self.noclobber_cssfile:
with open(cssfilename, "w", encoding="utf-8") as cf:
cf.write(CSSFILE_TEMPLATE %
{'styledefs': self.get_style_defs('body')})
except OSError as err:
err.strerror = 'Error writing CSS file: ' + err.strerror
raise
yield 0, (DOC_HEADER_EXTERNALCSS %
dict(title=self.title,
cssfile=self.cssfile,
encoding=self.encoding))
else:
yield 0, (DOC_HEADER %
dict(title=self.title,
styledefs=self.get_style_defs('body'),
encoding=self.encoding))
yield from inner
yield 0, DOC_FOOTER
| (self, inner, outfile) | [
-0.030243797227740288,
-0.036052338778972626,
-0.0235688965767622,
0.010868865065276623,
0.03532380983233452,
-0.03254752233624458,
-0.041979022324085236,
0.06919056177139282,
0.0028944259975105524,
-0.022190598770976067,
0.02829449065029621,
-0.01077041495591402,
-0.043987397104501724,
0.0156338382512331,
-0.020379120483994484,
0.06198403239250183,
0.0008928171591833234,
0.0187350083142519,
-0.006123581435531378,
0.03485124930739403,
-0.0064927684143185616,
0.006684745661914349,
0.030499767512083054,
-0.0002885811554733664,
-0.0022569631692022085,
0.02061540074646473,
-0.00809750147163868,
0.0038666182663291693,
0.05312354490160942,
-0.06777288764715195,
-0.03384706377983093,
-0.05725843831896782,
0.03040131740272045,
0.02610890381038189,
0.09994629770517349,
-0.01817384362220764,
-0.00460006995126605,
0.09238535165786743,
-0.017524074763059616,
0.008299323730170727,
0.08285540342330933,
-0.0049717179499566555,
0.016470661386847496,
-0.03158271685242653,
-0.01157770399004221,
0.004253034014254808,
0.03709590807557106,
-0.02362796664237976,
0.00027996680000796914,
-0.06033007428050041,
-0.0014865929260849953,
0.002316033001989126,
0.020123152062296867,
-0.012591737322509289,
-0.0031233218032866716,
0.033157914876937866,
-0.015043138526380062,
0.028767049312591553,
0.0024021766148507595,
0.017819425091147423,
-0.05552572011947632,
-0.013792825862765312,
0.012414527125656605,
-0.03185837343335152,
0.011695843189954758,
0.009992660954594612,
-0.01366484072059393,
0.023923316970467567,
-0.019050048664212227,
0.0742705762386322,
-0.02868828922510147,
0.007068700157105923,
0.03910428285598755,
0.01902051270008087,
-0.0051587726920843124,
-0.023706726729869843,
-0.026010453701019287,
-0.029830308631062508,
0.06659148633480072,
-0.06682776659727097,
-0.014245694503188133,
0.02819604054093361,
-0.014895464293658733,
0.0016970294527709484,
0.046586472541093826,
-0.019463537260890007,
0.06726094335317612,
-0.007659398950636387,
-0.013576235622167587,
0.02734937146306038,
-0.003024871926754713,
0.05095764622092247,
-0.006128503940999508,
-0.019916407763957977,
0.022033078595995903,
-0.013339956291019917,
-0.025951383635401726,
0.00987452082335949,
0.0316024050116539,
0.0005340905045159161,
-0.0064927684143185616,
0.01159739401191473,
0.03144488483667374,
-0.0024858589749783278,
0.07757849246263504,
0.006812730338424444,
0.012158557772636414,
-0.016972756013274193,
0.026857122778892517,
-0.0057297819294035435,
-0.00004772510874317959,
-0.09364550560712814,
-0.007442809641361237,
-0.012296387925744057,
-0.02817635051906109,
-0.04859485104680061,
-0.02443525567650795,
0.05985751375555992,
0.03674148768186569,
-0.029692478477954865,
0.01261142734438181,
-0.046507712453603745,
-0.06777288764715195,
-0.010150180198252201,
-0.00390599831007421,
-0.020093616098165512,
-0.04469623789191246,
0.05694339796900749,
0.0380016453564167,
0.06292915344238281,
-0.008235330693423748,
0.03368954360485077,
0.027172161266207695,
-0.0362689271569252,
-0.02154082991182804,
-0.04638957604765892,
-0.032606594264507294,
0.021698350086808205,
-0.029278988018631935,
0.029653098434209824,
0.02782193012535572,
-0.015702752396464348,
-0.02955464832484722,
-0.007560949306935072,
-0.020753230899572372,
0.034319620579481125,
-0.014826549217104912,
-0.011095299385488033,
-0.029003329575061798,
0.058754876255989075,
0.00426534004509449,
0.013330111280083656,
-0.010701499879360199,
0.08277664333581924,
0.0015948876971378922,
0.00025320073473267257,
0.009273977018892765,
0.02947588823735714,
-0.008387927897274494,
-0.01984749175608158,
0.019758887588977814,
-0.03804102540016174,
0.012069952674210072,
-0.011961658485233784,
0.04501127451658249,
0.026463322341442108,
-0.04083700105547905,
-0.04410553723573685,
0.03451652079820633,
-0.04831919074058533,
-0.032724734395742416,
-0.02018222212791443,
-0.02744782157242298,
0.01369437575340271,
-0.0026236888952553272,
0.016057172790169716,
0.018853148445487022,
0.010066498070955276,
-0.0321340337395668,
0.00047040573554113507,
0.0016711864154785872,
-0.06115705519914627,
-0.0020723696798086166,
-0.03032255731523037,
0.01999516598880291,
0.0421365387737751,
0.03040131740272045,
-0.02402176521718502,
0.01202072761952877,
-0.07714530825614929,
0.023726416751742363,
0.035264741629362106,
0.0198671817779541,
-0.012709877453744411,
0.020871371030807495,
-0.06241721287369728,
-0.015791358426213264,
0.028944259509444237,
0.07627895474433899,
0.00833378080278635,
-0.1172734722495079,
0.020950131118297577,
-0.006989940069615841,
-0.027132781222462654,
0.0404038242995739,
0.06915118545293808,
0.023391686379909515,
-0.021658970043063164,
-0.08143772184848785,
0.09128271043300629,
-0.011863208375871181,
-0.018764544278383255,
-0.010100956074893475,
-0.022466259077191353,
0.027585651725530624,
-0.01203057263046503,
-0.0031897753942757845,
0.01706136018037796,
-0.09648086130619049,
0.028097590431571007,
-0.053714245557785034,
-0.000029650329452124424,
0.012217627838253975,
-0.004479468800127506,
0.0008245175704360008,
-0.043593596667051315,
0.04284537956118584,
-0.03496938943862915,
-0.01562399324029684,
0.015131743624806404,
-0.022485949099063873,
-0.0118336733430624,
-0.0312676765024662,
0.02608921378850937,
-0.053359825164079666,
-0.043160419911146164,
-0.010376615449786186,
0.004437627270817757,
-0.036485519260168076,
-0.0023947928566485643,
-0.040325064212083817,
0.005217842757701874,
0.028432318940758705,
-0.0007205299334600568,
0.03802133724093437,
-0.005459044594317675,
0.02146206982433796,
0.0015862734289839864,
0.0038715407717972994,
0.07777538895606995,
-0.031110156327486038,
0.01282801665365696,
0.014088175259530544,
0.03416210040450096,
0.025045644491910934,
-0.007560949306935072,
-0.09459062665700912,
-0.10238785296678543,
-0.027526581659913063,
0.007511724252253771,
0.05698277801275253,
-0.004154583904892206,
0.0331382229924202,
-0.015043138526380062,
0.028432318940758705,
-0.020989511162042618,
-0.04339670017361641,
-0.04623205587267876,
-0.025774173438549042,
0.06919056177139282,
-0.030992016196250916,
0.003017488168552518,
-0.00400198670104146,
0.032252173870801926,
0.014078330248594284,
0.04335732012987137,
0.016598647460341454,
0.021639280021190643,
0.034319620579481125,
0.025124404579401016,
0.042805999517440796,
0.0412701815366745,
-0.00993359088897705,
-0.016135932877659798,
0.03674148768186569,
-0.027191851288080215,
-0.04123080149292946,
0.022151218727231026,
0.03240969404578209,
-0.0488705113530159,
-0.032193105667829514,
0.03782443702220917,
0.027309991419315338,
-0.005636254325509071,
-0.011075609363615513,
-0.02569541335105896,
-0.009032774716615677,
-0.060448214411735535,
0.012739411555230618,
-0.031110156327486038,
-0.03634768724441528,
-0.07592453062534332,
-0.013605770654976368,
-0.0027049100026488304,
-0.005267067346721888,
0.0015764284180477262,
-0.018055705353617668,
-0.04123080149292946,
0.0029214995447546244,
-0.003704176051542163,
0.0236673466861248,
-0.02451401576399803,
-0.019306017085909843,
0.01369437575340271,
0.007649554405361414,
0.014127555303275585,
-0.004378557670861483,
0.012798481620848179,
0.032271865755319595,
0.048712991178035736,
-0.08104392886161804,
-0.03668241947889328,
0.02951526828110218,
0.004846194293349981,
0.06182651221752167,
0.01681523583829403,
0.02862921915948391,
0.023391686379909515,
0.006512458436191082,
0.02616797387599945,
-0.024966884404420853,
-0.018912218511104584,
-0.045680735260248184,
-0.0008269788231700659,
-0.025833243504166603,
-0.010583359748125076,
0.028353560715913773,
-0.045720115303993225,
0.049973148852586746,
-0.07037196308374405,
0.02022160217165947,
0.016303297132253647,
0.013507320545613766,
-0.0374700166285038,
-0.08435183763504028,
-0.038080405443906784,
-0.012700032442808151,
-0.0521390475332737,
0.03532380983233452,
-0.029613718390464783,
0.0253016147762537,
0.002487089717760682,
0.03965560346841812,
0.04497189819812775,
0.0445387177169323,
0.03296101465821266,
-0.028845809400081635,
0.02908208966255188,
0.0009217368206009269,
0.0006479231524281204,
-0.03235062584280968,
0.04205777868628502,
0.0059217591769993305,
0.007186839822679758,
0.03932087495923042,
0.01366484072059393,
0.0005380900111049414,
0.07005692273378372,
-0.0366036593914032,
-0.004152122884988785,
-0.026364872232079506,
-0.01452135480940342,
0.049500588327646255,
-0.0925428718328476,
0.05024880915880203,
-0.03804102540016174,
-0.08269788324832916,
0.009731768630445004,
0.0181344635784626,
-0.06544946879148483,
0.000514092855155468,
0.0456019751727581,
-0.009342892095446587,
-0.038552965968847275,
-0.04339670017361641,
-0.03997064381837845,
0.027605341747403145,
0.018705474212765694,
-0.025085024535655975,
-0.0072754449211061,
0.020083772018551826,
-0.016303297132253647,
0.02396269701421261,
-0.04044320434331894,
-0.015190813690423965,
-0.030460387468338013,
0.02396269701421261,
-0.004860961809754372,
0.01345809642225504,
-0.029278988018631935,
0.01576182246208191,
0.003635261207818985,
0.01475763414055109,
0.059266816824674606,
-0.013389181345701218,
-0.09128271043300629,
0.06194465234875679,
0.02112733945250511,
0.06714280694723129,
0.03949808329343796,
-0.089471235871315,
-0.02744782157242298,
0.004540999885648489,
0.015121898613870144,
0.009810528717935085,
0.023903626948595047,
0.045208174735307693,
-0.024258045479655266,
0.043199799954891205,
-0.0588730163872242,
-0.010219095274806023,
-0.005552572198212147,
0.07655461132526398,
0.03546163812279701,
-0.01094762422144413,
-0.11711595207452774,
-0.01894175261259079,
-0.05465936288237572,
-0.07297103852033615,
0.003659873502328992,
-0.023312926292419434,
-0.02565603330731392,
-0.0573371984064579,
0.005232610274106264,
0.030125657096505165,
0.003093786770477891,
-0.04776787385344505,
-0.006241721101105213,
0.0606057345867157,
0.0051193926483392715,
0.03368954360485077,
0.015052983537316322,
-0.027309991419315338,
0.029160847887396812,
-0.00853068009018898,
0.033492643386125565,
-0.004860961809754372,
0.05808541923761368,
-0.02005423605442047,
0.0014459823723882437,
0.03790319710969925,
0.005399974994361401,
0.022545017302036285,
-0.03721404820680618,
-0.053359825164079666,
-0.07104142010211945,
-0.01877438835799694,
-0.0324687622487545,
0.03959653526544571,
0.0061531164683401585,
0.00389615329913795,
-0.010356925427913666,
0.07915368676185608,
0.046547092497348785,
-0.04835857078433037,
-0.038572654128074646,
-0.023096337914466858,
0.006802885327488184,
-0.040600720793008804,
0.005552572198212147,
-0.01261142734438181,
-0.07785414904356003,
-0.01560430321842432,
-0.04010847210884094,
0.027979450300335884,
-0.013369491323828697,
-0.05654960125684738,
0.006478000897914171,
0.007442809641361237,
-0.025518203154206276,
-0.04099452123045921,
0.014570578932762146,
-0.03380768373608589,
-0.03668241947889328,
-0.005562417209148407,
0.032252173870801926,
0.044066157191991806,
-0.03376830369234085,
0.014314609579741955,
-0.0034875862766057253,
-0.018203379586338997,
0.027250921353697777,
-0.02904270961880684,
-0.059581857174634933,
-0.029298678040504456,
0.0374700166285038,
0.014708409085869789,
0.054147422313690186,
-0.0028895034920424223,
-0.09577202796936035,
0.023056957870721817,
-0.11475315690040588,
-0.018872838467359543,
-0.00780215160921216,
0.03536318987607956,
-0.033098842948675156,
-0.04623205587267876,
-0.05383238568902016,
0.01712043024599552,
-0.004961872939020395,
0.02063509076833725,
0.027487201616168022,
-0.030046897009015083,
0.03118891641497612,
0.028530769050121307,
0.012286542914807796,
-0.014353989623486996,
0.016953065991401672,
0.07549135386943817,
-0.005995596293359995,
0.027113091200590134,
-0.02063509076833725,
-0.01962105743587017,
0.005020943004637957,
0.005803619511425495,
0.03327605128288269,
0.02154082991182804,
0.036485519260168076,
0.037273116409778595,
-0.04260909929871559,
-0.03951777517795563,
-0.013743600808084011,
0.01283786166459322,
-0.05942433699965477,
0.005759316962212324,
0.0031183992978185415,
0.03296101465821266,
-0.0010091110598295927,
0.0022545019164681435,
-0.025124404579401016,
0.017425624653697014,
0.064937524497509,
0.023943006992340088,
-0.03504814952611923,
0.00986467581242323,
0.017583144828677177,
-0.003780474653467536,
-0.02142268978059292,
0.04556259512901306,
-0.017366554588079453,
0.02059571072459221,
-0.0049987914972007275,
0.01687430590391159,
0.026364872232079506,
-0.04036444425582886,
0.014265384525060654,
-0.04556259512901306,
0.01475763414055109,
0.005033249035477638,
0.030460387468338013,
0.06525256484746933,
0.09372426569461823,
-0.016096552833914757,
-0.00484865577891469,
0.05005190894007683,
0.02857014909386635,
0.04379049688577652,
-0.005084935110062361,
-0.016943221911787987,
0.0436723567545414,
-0.031878065317869186,
0.03510722145438194,
-0.004193963948637247,
-0.06328357011079788,
0.05564386025071144,
0.018232913687825203,
0.014186625368893147,
0.012463752180337906,
0.026305802166461945,
-0.04729531332850456,
-0.029613718390464783,
-0.041033901274204254,
0.0521390475332737,
-0.02061540074646473,
-0.005862689111381769,
-0.07970500737428665,
-0.03790319710969925,
0.02311602793633938,
0.04327856004238129,
0.026443632319569588,
-0.002874735975638032,
-0.05698277801275253,
-0.027093401178717613,
-0.0803350880742073,
-0.010494755581021309,
0.0198671817779541,
-0.029239607974886894,
0.003330066567286849,
-0.05324168503284454,
-0.033472951501607895,
-0.021265169605612755,
0.026325492188334465,
-0.06454373151063919,
0.10711345076560974,
-0.039360255002975464,
0.016106396913528442,
0.05422618240118027,
-0.060881394892930984,
-0.013517165556550026,
0.016519887372851372,
-0.019217412918806076,
0.01584058254957199,
0.000027650567062664777,
-0.012247162871062756,
-0.012503132224082947,
0.012375147081911564,
-0.05442308261990547,
-0.022505637258291245,
-0.04217591881752014,
0.03784412518143654,
-0.005459044594317675,
0.023490136489272118,
0.027565961703658104,
0.01370422076433897,
-0.027487201616168022,
0.03624923899769783,
0.06686714291572571,
0.017750509083271027,
0.023470446467399597,
0.058833636343479156,
-0.02396269701421261,
0.008732502348721027,
0.024573085829615593,
-0.013507320545613766,
-0.005803619511425495,
0.05225718766450882,
0.00479696923866868,
0.00833378080278635,
-0.0059660617262125015,
-0.022505637258291245,
0.06970249861478806,
-0.027684099972248077,
0.020064081996679306,
-0.0024649384431540966,
-0.016165466979146004,
-0.04418429732322693,
0.051469586789608,
-0.0077332365326583385,
-0.01914849877357483,
-0.05599828064441681,
0.01856764405965805,
0.09663838148117065,
0.0219346284866333,
-0.04044320434331894,
0.010819640010595322,
-0.0034629737492650747,
0.04855547100305557,
-0.05186338722705841,
0.04776787385344505,
0.04331794008612633,
0.05591952055692673,
-0.009436419233679771,
0.06292915344238281,
-0.04686213284730911,
-0.023056957870721817,
0.02744782157242298,
0.052493464201688766,
0.004179196432232857,
-0.033098842948675156,
-0.04087638109922409,
-0.0019210028694942594,
0.04670461267232895,
-0.04851609095931053,
-0.08490315824747086,
-0.011932123452425003,
-0.019630901515483856,
0.005212920252233744,
-0.020132996141910553,
0.0006399240810424089,
-0.017730819061398506,
0.026837432757019997,
0.008579905144870281,
-0.025045644491910934,
-0.03286256268620491,
-0.0155846131965518,
-0.003204542910680175,
0.000415950664319098,
-0.02319478802382946,
-0.027585651725530624,
-0.06119643524289131,
0.0002711986016947776,
-0.012522822245955467,
0.00796459335833788,
-0.06875738501548767,
-0.03591451048851013,
0.034319620579481125,
0.015092363581061363,
-0.03422117233276367,
0.020891061052680016,
-0.01156785897910595,
0.02321447804570198,
0.0155846131965518,
0.0471377931535244,
0.024297425523400307,
-0.006655210629105568,
0.02949557825922966,
0.059581857174634933,
0.0025473900604993105,
0.005764239467680454,
0.006236798595637083,
0.012355457991361618,
0.045208174735307693,
0.018705474212765694,
0.049973148852586746,
-0.012089642696082592,
-0.0658038854598999,
-0.023726416751742363,
0.051627106964588165,
0.042805999517440796,
-0.02028067223727703,
-0.010553824715316296,
0.03926180303096771,
0.023017577826976776,
-0.01974904164671898,
0.013133211061358452,
-0.03120860643684864,
-0.08632083982229233,
-0.0009900364093482494,
-0.0009192755678668618,
0.011863208375871181,
0.004693597089499235,
0.0046369885094463825,
0.014216159470379353,
0.025025954470038414,
-0.035993270576000214,
0.0067831953056156635,
0.019246947020292282,
0.034319620579481125,
-0.0155846131965518,
-0.033472951501607895,
-0.013251351192593575,
-0.0035368113312870264,
-0.022879747673869133,
0.08135896176099777,
-0.060487594455480576,
0.029751548543572426,
0.025025954470038414,
0.03997064381837845,
0.01096731424331665,
0.0488705113530159,
0.014029105193912983,
-0.009352737106382847,
-0.00013167668657843024,
0.07104142010211945,
0.008678355254232883,
0.00749203423038125,
0.01954229734838009,
-0.023076647892594337,
0.007408352103084326,
0.01974904164671898,
0.08545447885990143,
-0.019857337698340416,
0.01471825409680605,
0.08159524202346802,
0.05651022121310234,
0.05544696003198624,
-0.00539012998342514,
0.03615078702569008
] |
10,136 | pygments.formatters.html | _wrap_inlinelinenos | null | def _wrap_inlinelinenos(self, inner):
# need a list of lines since we need the width of a single number :(
inner_lines = list(inner)
sp = self.linenospecial
st = self.linenostep
num = self.linenostart
mw = len(str(len(inner_lines) + num - 1))
anchor_name = self.lineanchors or self.linespans
aln = self.anchorlinenos
nocls = self.noclasses
for _, inner_line in inner_lines:
print_line = num % st == 0
special_line = sp and num % sp == 0
if print_line:
line = '%*d' % (mw, num)
else:
line = ' ' * mw
if nocls:
if special_line:
style = f' style="{self._linenos_special_style}"'
else:
style = f' style="{self._linenos_style}"'
else:
if special_line:
style = ' class="linenos special"'
else:
style = ' class="linenos"'
if style:
linenos = f'<span{style}>{line}</span>'
else:
linenos = line
if aln:
yield 1, ('<a href="#%s-%d">%s</a>' % (anchor_name, num, linenos) +
inner_line)
else:
yield 1, linenos + inner_line
num += 1
| (self, inner) | [
-0.025091741234064102,
-0.012382701970636845,
0.011720961891114712,
0.05221403017640114,
-0.026959119364619255,
-0.014231949113309383,
-0.017731014639139175,
0.017468130216002464,
-0.03040379472076893,
0.05431709438562393,
-0.01848340407013893,
-0.00002457447408232838,
0.019870338961482048,
-0.02200966328382492,
-0.040212053805589676,
0.025254910811781883,
0.006114298943430185,
-0.039341822266578674,
-0.005144351162016392,
0.004638980608433485,
-0.0005691080004908144,
0.04090099036693573,
0.06345454603433609,
-0.00907853338867426,
0.0013030845439061522,
0.03727501630783081,
-0.013307325541973114,
0.028699586167931557,
0.0274486243724823,
-0.07759585231542587,
-0.02721293643116951,
-0.030458183959126472,
0.0018424481386318803,
-0.03963189944624901,
0.081729456782341,
-0.02026919648051262,
-0.04010327532887459,
0.028772106394171715,
-0.041589923202991486,
0.06102514639496803,
0.03742005303502083,
0.02200966328382492,
0.04499834030866623,
0.013361714780330658,
-0.03442862629890442,
-0.014503897167742252,
0.043838027864694595,
-0.006431571673601866,
0.02449345588684082,
-0.0340297669172287,
0.01936270296573639,
-0.03060322254896164,
0.07378857582807541,
-0.019145144149661064,
-0.017794469371438026,
-0.004113214556127787,
-0.015854572877287865,
0.03194483369588852,
0.028463898226618767,
0.0037710131146013737,
-0.055549927055835724,
-0.000006980177658988396,
0.009844520129263401,
0.03676737844944,
0.030149975791573524,
-0.013017247430980206,
0.009898909367620945,
0.03609657287597656,
0.009962364099919796,
0.036386650055646896,
-0.0034220132511109114,
0.032398078590631485,
-0.004149474203586578,
0.01127677969634533,
-0.03945060074329376,
0.024003949016332626,
-0.04902317002415657,
0.025019222870469093,
0.07890120148658752,
-0.04822545871138573,
0.004836142994463444,
0.03868914395570755,
0.007193026598542929,
0.04224260151386261,
0.050147224217653275,
-0.03517194837331772,
0.03205361217260361,
0.02200966328382492,
-0.0016702143475413322,
0.034410495311021805,
-0.06824083626270294,
0.03656794875860214,
-0.022698597982525826,
-0.06062629073858261,
-0.06537631899118423,
0.010642234236001968,
0.027194807305932045,
0.012754363939166069,
0.041589923202991486,
-0.01638033799827099,
0.05442587286233902,
-0.025925716385245323,
0.03152784705162048,
0.02184649556875229,
-0.01132210437208414,
-0.01593615673482418,
-0.011186130344867706,
-0.013914676383137703,
0.025816936045885086,
0.05536862835288048,
-0.022154701873660088,
-0.03631413355469704,
-0.0738973543047905,
0.0066355327144265175,
-0.014440442435443401,
-0.013543013483285904,
-0.02177397534251213,
-0.0027013507205992937,
0.02355070225894451,
-0.03716623783111572,
0.005216870456933975,
-0.06501372158527374,
-0.06650036573410034,
-0.024475326761603355,
-0.04478078335523605,
-0.027158547192811966,
-0.03143719583749771,
0.028137560933828354,
0.05845070630311966,
-0.09993185102939606,
0.03966815769672394,
0.006599273066967726,
0.055042289197444916,
0.0008832646417431533,
-0.05808810889720917,
-0.045179639011621475,
-0.07342597842216492,
0.017604105174541473,
-0.018800675868988037,
-0.01199290994554758,
-0.03348587080836296,
-0.013524884358048439,
-0.04753652215003967,
-0.0014095974620431662,
-0.07019886374473572,
0.017930442467331886,
0.03671298921108246,
0.032361820340156555,
0.03383034095168114,
-0.004208396188914776,
0.005955662578344345,
-0.023931430652737617,
0.0695461854338646,
0.06708052009344101,
-0.014422312378883362,
-0.014304468408226967,
-0.010388416238129139,
-0.03049444407224655,
0.049240730702877045,
0.0249648317694664,
0.041227325797080994,
-0.03268815949559212,
0.018601248040795326,
0.004174402914941311,
-0.00870687048882246,
0.0747675895690918,
-0.028427638113498688,
-0.06882099062204361,
0.05344685912132263,
-0.0003286039282102138,
0.0015195098239928484,
-0.002220909111201763,
-0.013515818864107132,
0.016162781044840813,
-0.0347730927169323,
-0.01104109175503254,
-0.0066219354048371315,
0.05903086066246033,
-0.02587132528424263,
-0.014639871194958687,
-0.025508727878332138,
0.018012026324868202,
0.03310514613986015,
-0.031128989532589912,
-0.025726286694407463,
0.04188000410795212,
0.03818150982260704,
-0.06766068190336227,
0.00920997466892004,
-0.10399293899536133,
-0.017894182354211807,
0.0001312999229412526,
0.024312157183885574,
-0.00494039012119174,
-0.055151067674160004,
0.03767387196421623,
-0.03187231346964836,
0.005638389848172665,
-0.025762546807527542,
-0.026832209900021553,
-0.08883637189865112,
0.07926379889249802,
-0.033975377678871155,
-0.019815949723124504,
0.010696624405682087,
0.041154809296131134,
-0.022934287786483765,
0.06374462693929672,
-0.0534106008708477,
0.03872540593147278,
0.02938852086663246,
-0.02567189745604992,
-0.019272053614258766,
0.028663326054811478,
0.023006806150078773,
0.0271404180675745,
-0.058668263256549835,
0.07817600667476654,
-0.04362047091126442,
-0.012808754108846188,
-0.026959119364619255,
0.02520052157342434,
-0.0046775066293776035,
-0.0630919486284256,
0.018075481057167053,
-0.01528348121792078,
0.0968860313296318,
-0.012962858192622662,
0.051996469497680664,
0.03785517066717148,
-0.04710140451788902,
-0.003734753467142582,
-0.06305569410324097,
0.03734753653407097,
-0.048769354820251465,
-0.03680363669991493,
-0.04097351059317589,
-0.010732883587479591,
-0.03344961255788803,
0.012355507351458073,
-0.020341714844107628,
-0.0034356105607002974,
0.010243377648293972,
-0.043330393731594086,
0.03573397547006607,
0.03426545485854149,
-0.016797326505184174,
-0.007578286342322826,
-0.022662339732050896,
0.017903247848153114,
-0.026088884100317955,
0.008176571689546108,
0.038834184408187866,
0.00986265018582344,
0.013144156895577908,
-0.0010486997198313475,
-0.03170914575457573,
-0.036858029663562775,
-0.009169182740151882,
-0.035117559134960175,
0.041517406702041626,
-0.012210467830300331,
-0.01999724842607975,
0.020051637664437294,
0.025472469627857208,
0.009808260016143322,
-0.06990878283977509,
-0.02177397534251213,
0.023478183895349503,
0.012545870617032051,
0.0068938834592700005,
0.007360727526247501,
-0.004722831305116415,
0.0455784946680069,
0.007764117326587439,
0.0747675895690918,
-0.036150962114334106,
0.033504001796245575,
-0.04916821047663689,
-0.03296010568737984,
0.00609163660556078,
0.06247553601861,
-0.03395725041627884,
-0.044236887246370316,
0.01889132522046566,
-0.05293922498822212,
0.0033426950685679913,
0.00929155945777893,
-0.010324961505830288,
-0.08317984640598297,
-0.003100208006799221,
0.02425776794552803,
0.027104157954454422,
0.00007064275996526703,
0.04586857557296753,
-0.029098443686962128,
-0.02240852080285549,
0.02737610600888729,
-0.022190961986780167,
-0.05674649775028229,
-0.015845507383346558,
-0.06860343366861343,
0.04623117297887802,
-0.01567327417433262,
-0.00848931260406971,
-0.019979117438197136,
0.021012520417571068,
-0.025653768330812454,
0.033902857452631,
-0.07534774392843246,
0.021066909655928612,
0.041553664952516556,
0.02610701508820057,
-0.09572572261095047,
0.004575526341795921,
0.011938519775867462,
-0.03529885783791542,
0.06287439167499542,
0.007687065284699202,
0.056492678821086884,
-0.0066853901371359825,
0.006282000336796045,
0.006390779744833708,
-0.002404474187642336,
0.1071837991476059,
0.038507845252752304,
0.06236675754189491,
-0.000035038101486861706,
-0.025055481120944023,
-0.012119818478822708,
0.03268815949559212,
-0.020849352702498436,
-0.0414811447262764,
0.005416299216449261,
-0.04909569025039673,
-0.0007127305725589395,
0.031056469306349754,
0.04579605534672737,
-0.008607156574726105,
-0.0706702396273613,
0.03829028829932213,
-0.011131741106510162,
-0.028173819184303284,
-0.00912838988006115,
0.0019614254124462605,
-0.017323091626167297,
0.042097561061382294,
0.02556311897933483,
0.025762546807527542,
0.057761769741773605,
0.0062729353085160255,
0.050981197506189346,
0.019852209836244583,
-0.043874289840459824,
0.03533511981368065,
0.036658599972724915,
-0.03558893874287605,
-0.06388966739177704,
-0.0207405723631382,
0.02382265031337738,
-0.0035625197924673557,
0.011267715133726597,
0.017332157120108604,
0.01283594872802496,
-0.02287989668548107,
-0.0033019029069691896,
0.02808316983282566,
0.02973298914730549,
0.03520821034908295,
0.05634763836860657,
-0.03767387196421623,
0.0006033848039805889,
0.07679813355207443,
-0.04739148169755936,
0.04100976884365082,
0.009391273371875286,
-0.013533948920667171,
-0.008919896557927132,
-0.020450495183467865,
-0.015446649864315987,
-0.0015716331545263529,
0.021230079233646393,
0.07948135584592819,
-0.005833285860717297,
-0.03829028829932213,
-0.0287539754062891,
0.05877704173326492,
0.03073013201355934,
0.0005914870416745543,
-0.005733571946620941,
-0.04648498818278313,
0.0033268313854932785,
0.06758815795183182,
0.01573672890663147,
-0.007768649607896805,
-0.06171408295631409,
0.010859793052077293,
0.008212831802666187,
0.016770130023360252,
-0.04851553589105606,
0.024003949016332626,
0.018429014831781387,
-0.016770130023360252,
0.01885506696999073,
-0.03363091126084328,
-0.0548972487449646,
0.019544001668691635,
0.016054000705480576,
0.03422919660806656,
-0.027503015473484993,
-0.06149652227759361,
-0.010062078945338726,
-0.024946702644228935,
-0.039414338767528534,
0.01013459824025631,
0.007351662963628769,
0.032361820340156555,
0.040320832282304764,
-0.020015377551317215,
-0.03395725041627884,
-0.01437698770314455,
0.004890532698482275,
0.039704419672489166,
0.059611015021800995,
0.0003062248579226434,
-0.04684758558869362,
-0.07009008526802063,
-0.055151067674160004,
-0.016325948759913445,
-0.0207405723631382,
-0.00010063494846690446,
-0.0648324191570282,
0.028880884870886803,
-0.017060209065675735,
-0.007265545893460512,
-0.03694867715239525,
-0.002914376789703965,
-0.0191270150244236,
0.03147345781326294,
-0.03742005303502083,
0.03475496172904968,
0.000976746785454452,
-0.00049262261018157,
0.03252498805522919,
0.04855179414153099,
-0.016054000705480576,
0.015310675837099552,
0.020523013547062874,
-0.02587132528424263,
-0.014721455052495003,
-0.042061302810907364,
0.019743429496884346,
-0.0028690521139651537,
-0.05206898972392082,
-0.03569771721959114,
-0.040755949914455414,
0.00016302720177918673,
-0.019199533388018608,
0.007224753499031067,
0.07534774392843246,
0.05634763836860657,
0.02382265031337738,
0.03448301553726196,
0.03314140439033508,
-0.009626961313188076,
-0.03490000218153,
0.013715247623622417,
-0.009735740721225739,
-0.027974391356110573,
-0.026360832154750824,
0.03493626043200493,
-0.03384846821427345,
-0.021919013932347298,
-0.0011212192475795746,
0.05486099049448967,
0.017866987735033035,
0.006159623619168997,
-0.014386053197085857,
-0.014703325927257538,
-0.019616520032286644,
-0.04630368947982788,
-0.021429507061839104,
-0.001332545536570251,
-0.03656794875860214,
-0.01889132522046566,
0.01792137697339058,
-0.017431871965527534,
-0.029334131628274918,
0.013388910330832005,
-0.013869351707398891,
0.01637127436697483,
0.07491263002157211,
-0.02811942994594574,
-0.011965715326368809,
0.038870442658662796,
0.04039335250854492,
0.02922535315155983,
0.00658567575737834,
0.024312157183885574,
-0.067805714905262,
0.0034401430748403072,
-0.058668263256549835,
0.014349793083965778,
0.0005869545857422054,
0.054208315908908844,
0.05203273147344589,
0.019870338961482048,
-0.008593559265136719,
-0.03549828752875328,
0.0029846299439668655,
0.026451481506228447,
-0.014875559136271477,
0.002676422242075205,
-0.008058727718889713,
-0.041662443429231644,
-0.013633662834763527,
-0.02264420874416828,
0.04365672916173935,
0.04510711878538132,
0.02019667625427246,
0.07277330011129379,
-0.03359465301036835,
0.013080702163279057,
-0.042460158467292786,
-0.02480166405439377,
0.06784197688102722,
-0.024982962757349014,
0.04416436702013016,
0.03767387196421623,
0.007179428823292255,
0.005642922595143318,
-0.009096662513911724,
-0.01009833812713623,
-0.040175795555114746,
-0.003972708247601986,
0.01959839090704918,
-0.019000105559825897,
-0.00828535109758377,
0.1361190676689148,
0.020486755296587944,
-0.012418962083756924,
0.02567189745604992,
-0.06501372158527374,
0.00003718040170497261,
0.0022730326745659113,
0.038471587002277374,
0.06816831231117249,
0.006381714716553688,
-0.007310870569199324,
-0.024312157183885574,
0.027829352766275406,
-0.006513156462460756,
0.002690019551664591,
0.025472469627857208,
-0.04224260151386261,
0.00920997466892004,
-0.04010327532887459,
-0.024420935660600662,
-0.019272053614258766,
0.04764530062675476,
0.06650036573410034,
0.09978681057691574,
-0.013198546133935452,
-0.06929236650466919,
0.02623392455279827,
0.014766779728233814,
0.011711896397173405,
0.02231787145137787,
0.003893389832228422,
0.08898140490055084,
0.01035215612500906,
-0.030313145369291306,
-0.026832209900021553,
-0.03131028637290001,
-0.030258754268288612,
0.010007688775658607,
-0.04126358777284622,
0.0012951527023687959,
-0.007369792554527521,
-0.03372155874967575,
-0.038507845252752304,
0.016887975856661797,
-0.022589819505810738,
-0.03339522331953049,
0.019815949723124504,
-0.05888582020998001,
-0.05950223654508591,
0.0566377192735672,
-0.009490987285971642,
0.03865288570523262,
-0.026360832154750824,
0.00013979829964227974,
-0.06537631899118423,
-0.019435221329331398,
0.029642339795827866,
-0.0031296689994633198,
0.024402806535363197,
-0.004360233899205923,
-0.07868364453315735,
-0.019507741555571556,
-0.04057465121150017,
0.03361278027296066,
-0.08593559265136719,
0.04945828765630722,
-0.0004889399860985577,
-0.025581248104572296,
0.060444992035627365,
-0.11073725670576096,
-0.08274473249912262,
0.024112729355692863,
0.014322598464787006,
0.08216457813978195,
0.025037351995706558,
-0.05496976897120476,
-0.04851553589105606,
0.014349793083965778,
-0.02808316983282566,
-0.0175769105553627,
0.043874289840459824,
-0.057326652109622955,
0.036622337996959686,
-0.004283181857317686,
-0.0221728328615427,
-0.027829352766275406,
-0.03814524784684181,
0.03435610607266426,
0.06218545883893967,
-0.05431709438562393,
0.06403470784425735,
-0.016226233914494514,
-0.010324961505830288,
0.06903854757547379,
0.007115974556654692,
-0.025182390585541725,
-0.0052848574705421925,
0.018637508153915405,
0.011639377102255821,
-0.035752106457948685,
0.010497195646166801,
-0.022154701873660088,
0.002481526229530573,
-0.07701569050550461,
-0.04916821047663689,
-0.021955274045467377,
0.021193819120526314,
-0.006173220928758383,
0.030748261138796806,
-0.0087250005453825,
-0.010379351675510406,
0.021683325991034508,
0.026922859251499176,
0.08201953768730164,
0.002404474187642336,
-0.02298867702484131,
-0.021284468472003937,
0.012464286759495735,
0.03368530049920082,
-0.016316883265972137,
0.011566857807338238,
0.018528727814555168,
0.0331595353782177,
-0.014522027224302292,
-0.0029166429303586483,
-0.03493626043200493,
0.002262834459543228,
0.006064441986382008,
0.06066254898905754,
0.02318810485303402,
0.0332864448428154,
-0.05877704173326492,
0.008679675869643688,
0.029642339795827866,
-0.010225247591733932,
-0.013633662834763527,
-0.00783663708716631,
-0.025291170924901962,
-0.03020436502993107,
-0.008566363714635372,
0.018601248040795326,
0.010968572460114956,
-0.10029444843530655,
-0.007972611114382744,
-0.03268815949559212,
-0.04391054809093475,
-0.03916052356362343,
0.031491585075855255,
0.025925716385245323,
-0.0016135585028678179,
-0.007813974283635616,
-0.027738703414797783,
-0.027267325669527054,
0.00857542920857668,
0.01600867696106434,
-0.009808260016143322,
-0.02543620951473713,
0.012355507351458073,
-0.012554936110973358,
-0.06066254898905754,
-0.007020792458206415,
0.024040209129452705,
0.0598648339509964,
-0.003109272802248597,
0.026669040322303772,
-0.01279968861490488,
-0.029352260753512383,
-0.02113942988216877,
0.014757715165615082,
0.01003488339483738,
-0.015156572684645653,
0.05826940760016441,
0.009268896654248238,
0.04909569025039673,
0.02962420880794525,
-0.04264145717024803,
-0.01066942885518074,
-0.024638494476675987,
0.003662233939394355,
0.043838027864694595,
0.007959013804793358,
0.0020781364291906357,
0.04572353512048721,
0.04956706613302231,
0.007564688567072153,
-0.030947690829634666,
-0.022027794271707535,
0.03680363669991493,
-0.052322808653116226,
0.014241013675928116,
-0.05206898972392082,
-0.04782659932971001,
-0.010297766886651516,
0.035516418516635895,
-0.02090374194085598,
0.02284363843500614,
-0.026215793564915657,
0.0221728328615427,
-0.010959506966173649,
0.03136467561125755,
-0.03727501630783081,
-0.07592789828777313,
0.006209481041878462,
-0.028028780594468117,
0.021937144920229912,
0.02962420880794525,
-0.00904227327555418,
0.06211293861269951,
0.04626743122935295,
0.05634763836860657,
0.005497883539646864,
0.028427638113498688,
0.015646079555153847,
-0.00013066254905425012,
-0.015854572877287865,
-0.010624104179441929,
0.0013846688671037555,
-0.012826884165406227,
0.05170639231801033,
0.007224753499031067,
-0.0006538084708154202,
-0.003197656013071537,
0.041589923202991486,
0.014132234267890453,
0.010043948888778687,
0.09398525208234787,
0.018728157505393028,
0.039305560290813446,
-0.04097351059317589,
0.054208315908908844
] |
10,137 | pygments.formatters.html | _wrap_lineanchors | null | def _wrap_lineanchors(self, inner):
s = self.lineanchors
# subtract 1 since we have to increment i *before* yielding
i = self.linenostart - 1
for t, line in inner:
if t:
i += 1
href = "" if self.linenos else ' href="#%s-%d"' % (s, i)
yield 1, '<a id="%s-%d" name="%s-%d"%s></a>' % (s, i, s, i, href) + line
else:
yield 0, line
| (self, inner) | [
-0.05388278141617775,
-0.014722553081810474,
-0.011028691194951534,
0.035827819257974625,
-0.035175442695617676,
0.019077608361840248,
-0.022392386570572853,
0.04058840498328209,
-0.03600413724780083,
0.03840206190943718,
-0.00644883094355464,
0.027734821662306786,
0.023168185725808144,
0.029198260977864265,
-0.015912698581814766,
-0.004544596653431654,
-0.0036563945468515158,
-0.013911490328609943,
-0.028492989018559456,
-0.020100252702832222,
-0.004385910462588072,
0.05310698226094246,
0.030802754685282707,
-0.031948819756507874,
0.0025499991606920958,
0.03221329674124718,
-0.0185133907943964,
0.026412436738610268,
0.02881036140024662,
-0.03254830092191696,
-0.030185641720891,
-0.07130300253629684,
0.009124456904828548,
-0.016644418239593506,
0.09457697719335556,
-0.044643718749284744,
-0.046265844255685806,
0.02586585097014904,
-0.02814035303890705,
0.06142919138073921,
0.06844665110111237,
0.024631625041365623,
0.029938796535134315,
0.004615123849362135,
-0.02873983420431614,
0.0002777008630800992,
0.02223370037972927,
0.010490921325981617,
0.0027703966479748487,
-0.06492028385400772,
0.03600413724780083,
-0.021598955616354942,
0.08272840827703476,
0.0244376752525568,
0.003640966722741723,
-0.00011929014726774767,
-0.02279791794717312,
0.0324954055249691,
0.018883658573031425,
0.04115262255072594,
-0.04340949282050133,
-0.0037842250894755125,
-0.008859979920089245,
0.011963176541030407,
0.04496109113097191,
-0.05691545084118843,
0.0011080484837293625,
0.0011350471759214997,
-0.0007372296531684697,
0.016062568873167038,
0.006660412531346083,
0.03337699547410011,
0.006122642662376165,
-0.015895066782832146,
-0.019059976562857628,
0.023961616680026054,
-0.044608455151319504,
0.0683055892586708,
0.09366012364625931,
-0.04333896562457085,
-0.029744846746325493,
0.04139946773648262,
0.011822122149169445,
0.018813131377100945,
0.010517369024455547,
-0.021581323817372322,
0.0214755330234766,
0.017534825950860977,
0.012500946410000324,
0.024755047634243965,
-0.006373895797878504,
0.035016756504774094,
-0.035016756504774094,
-0.041681576520204544,
-0.0368504635989666,
0.012368707917630672,
0.025248738005757332,
0.018866026774048805,
0.04136420413851738,
-0.013488327153027058,
0.012835950590670109,
-0.021845800802111626,
0.01217475812882185,
0.03254830092191696,
-0.036674145609140396,
-0.03110249526798725,
-0.012642000801861286,
-0.04206947609782219,
0.014934134669601917,
0.04633637145161629,
-0.04083525016903877,
-0.06319236755371094,
-0.0766630694270134,
0.007515554782003164,
-0.027646662667393684,
-0.01921866275370121,
0.023961616680026054,
-0.032089874148368835,
0.04192842170596123,
-0.035827819257974625,
0.03628624603152275,
-0.08103575557470322,
-0.06375658512115479,
0.017340876162052155,
-0.06343921273946762,
-0.018284177407622337,
-0.015436640940606594,
0.009336038492619991,
0.01214831043034792,
-0.1044507846236229,
0.026289014145731926,
0.019500771537423134,
0.04503161832690239,
-0.028792729601264,
-0.055857542902231216,
-0.06939876824617386,
-0.047711651772260666,
0.022745022550225258,
-0.03341225907206535,
-0.027911139652132988,
-0.017552457749843597,
0.017966805025935173,
-0.017243901267647743,
-0.012615553103387356,
-0.043938446789979935,
-0.024984261021018028,
0.005435002502053976,
0.03173723816871643,
0.01290647778660059,
-0.02077026106417179,
0.020082620903849602,
-0.04379739239811897,
0.06728294491767883,
0.08660740405321121,
-0.007634569425135851,
0.011601724661886692,
-0.05152012035250664,
-0.030115114524960518,
0.03535176068544388,
-0.002801252296194434,
0.048381660133600235,
-0.04369160160422325,
0.017376139760017395,
-0.008591094985604286,
-0.003017241833731532,
0.054975952953100204,
-0.02965668775141239,
-0.07468830794095993,
0.02445530705153942,
-0.016759024932980537,
0.010905268602073193,
0.03677993640303612,
-0.03263645991683006,
-0.00035401349305175245,
-0.03147276118397713,
-0.02001209370791912,
0.0030899730045348406,
0.06343921273946762,
-0.011778042651712894,
0.019483139738440514,
-0.010834741406142712,
0.018795499578118324,
0.0355457104742527,
-0.0531422458589077,
0.005135261919349432,
0.015560063533484936,
0.04125841334462166,
-0.04263369366526604,
0.05317750945687294,
-0.06527291983366013,
-0.029850637540221214,
0.0040531097911298275,
0.011733963154256344,
-0.016565075144171715,
-0.038155216723680496,
0.003316982416436076,
-0.03603940084576607,
0.00923906359821558,
-0.0036894541699439287,
0.0027659886982291937,
-0.08794742077589035,
0.03674467280507088,
-0.07087983936071396,
0.01075539831072092,
0.045454781502485275,
0.023256344720721245,
0.013550038449466228,
0.03744994476437569,
-0.07214932888746262,
0.05219012871384621,
0.003486688481643796,
-0.006968969013541937,
-0.012633184902369976,
0.013470695354044437,
-0.0024662481155246496,
0.007400948088616133,
-0.021263951435685158,
0.08308104425668716,
-0.049192722886800766,
-0.011072770692408085,
-0.007938717491924763,
0.006409159395843744,
0.034487802535295486,
-0.0501801036298275,
0.03106723167002201,
-0.016018489375710487,
0.09563488513231277,
-0.0042029800824820995,
0.016371125355362892,
0.04778217896819115,
0.014193599112331867,
-0.004549004603177309,
-0.025389792397618294,
0.03635677322745323,
-0.017332060262560844,
-0.039636287838220596,
-0.018213650211691856,
-0.009820912964642048,
-0.04228105768561363,
0.03219566494226456,
-0.022374754771590233,
0.05617491528391838,
0.05402383580803871,
-0.01777285523712635,
0.020223675295710564,
0.03237198293209076,
-0.0004019499465357512,
-0.01444926019757986,
-0.02965668775141239,
0.010173548944294453,
-0.015665853396058083,
0.029074838384985924,
0.031225917860865593,
0.0326717235147953,
0.017340876162052155,
-0.02069973386824131,
0.000989584717899561,
-0.037978898733854294,
-0.007445027586072683,
-0.027893507853150368,
0.06950455904006958,
0.023503189906477928,
-0.013999649323523045,
-0.017261533066630363,
0.029797742143273354,
0.022586336359381676,
-0.05857283994555473,
-0.006259289104491472,
-0.02366187609732151,
0.048452187329530716,
0.04228105768561363,
-0.038014162331819534,
-0.001007767510600388,
0.040200505405664444,
-0.015357297845184803,
0.07581674307584763,
-0.025266369804739952,
-0.00024477895931340754,
-0.06467343866825104,
-0.030873281881213188,
-0.022586336359381676,
0.0592428483068943,
-0.0322309285402298,
-0.010323419235646725,
0.02523110620677471,
-0.04376212880015373,
0.01289766188710928,
0.055046480149030685,
-0.006885217968374491,
-0.06312184035778046,
-0.017252717167139053,
-0.005531977396458387,
0.013135691173374653,
-0.03713257238268852,
0.029233524575829506,
-0.04132894054055214,
-0.034399643540382385,
0.0340646356344223,
-0.03334173187613487,
-0.04485530033707619,
-0.02362661249935627,
-0.035140179097652435,
0.020840788260102272,
0.014925318770110607,
-0.039565760642290115,
-0.019624194130301476,
0.0009736059582792222,
0.002422168618068099,
0.0457368902862072,
-0.07743886858224869,
0.03157855197787285,
0.02808745764195919,
-0.004826705437153578,
-0.0970454290509224,
-0.023891089484095573,
0.012703712098300457,
-0.035122547298669815,
0.06121760979294777,
0.023115290328860283,
0.04302159324288368,
-0.03819048032164574,
0.004487293306738138,
-0.01442281249910593,
-0.005483489949256182,
0.09577593952417374,
0.05412962660193443,
0.047570597380399704,
-0.011363695375621319,
-0.04281001165509224,
-0.014043728820979595,
0.043197911232709885,
0.0004573248152155429,
-0.0683055892586708,
0.01365582924336195,
-0.06879928708076477,
0.0021081019658595324,
0.0015218447661027312,
0.017287980765104294,
-0.023309240117669106,
-0.08103575557470322,
0.009115641005337238,
0.015965593978762627,
-0.003012833883985877,
-0.023996880277991295,
0.01684718392789364,
0.007467067334800959,
0.004474069457501173,
0.022374754771590233,
0.003918667323887348,
-0.0011890445603057742,
0.02814035303890705,
0.06005391106009483,
0.02500189282000065,
-0.024190830066800117,
0.047711651772260666,
0.041752103716135025,
-0.04559583589434624,
-0.06654240936040878,
-0.021211056038737297,
0.0514848567545414,
0.008992218412458897,
-0.0076037137769162655,
0.0033059625420719385,
0.00015193653234746307,
0.011116850189864635,
0.0012738975929096341,
0.008886427618563175,
0.039495233446359634,
0.04598373547196388,
0.03928365185856819,
-0.05755019560456276,
0.0011890445603057742,
0.08301051706075668,
-0.02734692208468914,
0.035757292062044144,
-0.033641472458839417,
0.004791441839188337,
0.016794288530945778,
-0.010217628441751003,
-0.023908721283078194,
0.008436815813183784,
0.0162917822599411,
0.07031562179327011,
-0.0017532621277496219,
-0.05293066427111626,
-0.05843178555369377,
0.09344854205846786,
0.01222765352576971,
0.01985340751707554,
0.019412612542510033,
0.00992670375853777,
-0.017376139760017395,
0.03535176068544388,
-0.018178386613726616,
0.013788067735731602,
-0.08780636638402939,
0.012342260219156742,
-0.004447621759027243,
-0.025477951392531395,
-0.058784421533346176,
0.018231282010674477,
0.04055314138531685,
-0.018284177407622337,
-0.013788067735731602,
-0.01000604685395956,
-0.04563109949231148,
0.01360293384641409,
0.0016100037610158324,
0.02873983420431614,
-0.019042344763875008,
-0.0985265001654625,
-0.005139669869095087,
-0.01513690035790205,
-0.057127032428979874,
0.031190654262900352,
0.00718055060133338,
0.056457024067640305,
0.0025654269848018885,
-0.023185817524790764,
0.0002296266466146335,
-0.016009673476219177,
-0.012280548922717571,
-0.011892649345099926,
0.028351934626698494,
0.013550038449466228,
-0.045419517904520035,
-0.0442558191716671,
-0.024737415835261345,
-0.01700587011873722,
-0.016062568873167038,
0.03935417905449867,
-0.0710914209485054,
0.022586336359381676,
-0.006911665666848421,
0.002351641422137618,
0.011636988259851933,
0.015242691151797771,
-0.01511926855891943,
0.044678982347249985,
-0.042386848479509354,
0.020347097888588905,
-0.0084941191598773,
-0.016573891043663025,
0.016706129536032677,
0.06068865582346916,
-0.026853231713175774,
0.00116149487439543,
-0.030555909499526024,
0.0030436895322054625,
0.0186015497893095,
-0.03561623767018318,
0.011293168179690838,
0.012368707917630672,
-0.06502607464790344,
-0.04143473133444786,
-0.025301633402705193,
0.03695625439286232,
-0.026447700336575508,
-0.0024331884924322367,
0.04873429611325264,
0.07363040000200272,
0.015674669295549393,
0.03464648872613907,
0.014731368981301785,
-0.004676835145801306,
-0.030062219128012657,
-0.010217628441751003,
0.0003135154547635466,
-0.07948415726423264,
-0.03984786942601204,
0.0326717235147953,
-0.05077958479523659,
-0.02077026106417179,
0.023785298690199852,
0.011301984079182148,
0.023820562288165092,
0.015357297845184803,
-0.011910281144082546,
-0.0032133955974131823,
-0.03970681503415108,
-0.04795849695801735,
-0.03099670447409153,
-0.0016177176730707288,
-0.005311579909175634,
-0.019747616723179817,
0.025989273563027382,
0.016697313636541367,
-0.03244251012802124,
-0.04122314974665642,
-0.011240272782742977,
0.015709932893514633,
-0.0027285211253911257,
-0.029903532937169075,
0.014043728820979595,
0.06425027549266815,
0.014158335514366627,
0.06573134660720825,
0.0473942793905735,
0.004399134311825037,
-0.07567568868398666,
0.0018359111854806542,
-0.06675399094820023,
0.028228512033820152,
-0.012800686992704868,
0.05755019560456276,
0.08033048361539841,
0.002338417572900653,
-0.0272234994918108,
-0.05370646342635155,
0.032125137746334076,
0.05307171866297722,
-0.005933100823312998,
0.003947318997234106,
-0.012571473605930805,
-0.042563166469335556,
0.010332235135138035,
-0.01712929457426071,
0.009618147276341915,
0.06273394078016281,
0.006726531777530909,
0.06675399094820023,
-0.0025874667335301638,
0.010314603336155415,
-0.05846704915165901,
-0.02214554138481617,
0.04947483167052269,
-0.016503363847732544,
0.04199894890189171,
0.04221053048968315,
-0.020258938893675804,
0.006069747265428305,
0.006144682411104441,
-0.007947533391416073,
-0.0531422458589077,
0.007193774450570345,
0.029903532937169075,
0.000688742205966264,
0.002962142461910844,
0.10854136198759079,
0.008974586613476276,
0.024913733825087547,
0.007872598245739937,
-0.09105061739683151,
-0.02944510616362095,
-0.014987030066549778,
0.050603266805410385,
0.04707690700888634,
0.003986990544945002,
-0.00575237488374114,
-0.0031737240497022867,
0.0015350686153396964,
0.011778042651712894,
0.0015009070048108697,
0.019024712964892387,
-0.06199340894818306,
-0.01508400496095419,
-0.02302713133394718,
-0.04273948445916176,
-0.0012000644346699119,
0.04383265599608421,
0.09845597296953201,
0.07426514476537704,
-0.04820534214377403,
-0.05448226258158684,
0.03632150962948799,
0.022586336359381676,
0.03217803314328194,
0.018037332221865654,
0.023855825886130333,
0.08371578902006149,
-0.02597164176404476,
-0.04778217896819115,
-0.023168185725808144,
-0.008621950633823872,
-0.03692099079489708,
-0.0001754915138008073,
-0.046230580657720566,
-0.03903680667281151,
0.023961616680026054,
-0.02660638652741909,
0.014502155594527721,
0.01623888686299324,
0.005179341416805983,
-0.03189592435956001,
0.02665928192436695,
-0.03692099079489708,
-0.012386339716613293,
0.06573134660720825,
-0.0122188376262784,
0.013479511253535748,
-0.07807361334562302,
-0.028281407430768013,
-0.07264301925897598,
-0.03618045523762703,
0.0016761230072006583,
-0.0020519006066024303,
0.04735901579260826,
0.002272298326715827,
-0.10282865911722183,
0.019659457728266716,
0.007361276540905237,
0.025389792397618294,
-0.038789961487054825,
0.03928365185856819,
-0.031948819756507874,
-0.0337119996547699,
0.04859324172139168,
-0.10021915286779404,
-0.10713081806898117,
0.022568704560399055,
0.0006463156896643341,
0.06862296909093857,
0.04577215388417244,
-0.04675953462719917,
-0.07306618243455887,
0.008895243518054485,
-0.050532739609479904,
0.026906127110123634,
0.013206218369305134,
-0.0060609313659369946,
0.03034432791173458,
-0.021105265244841576,
-0.03365910425782204,
0.013532406650483608,
-0.027840612456202507,
0.007211406249552965,
0.08152944594621658,
-0.025319265201687813,
0.05885494872927666,
0.017411403357982635,
-0.013585302047431469,
0.035792555660009384,
-0.009115641005337238,
-0.0227802861481905,
0.026870863512158394,
-0.008939323015511036,
0.042774748057127,
-0.005077958572655916,
0.029815373942255974,
-0.03251303732395172,
-0.025319265201687813,
-0.06657767295837402,
-0.05472910776734352,
-0.019694721326231956,
0.026130327954888344,
0.020858420059084892,
0.03330646827816963,
-0.03480517491698265,
-0.009415381588041782,
0.006413567345589399,
0.07899046689271927,
0.05250750109553337,
-0.0053909230045974255,
-0.0129152936860919,
-0.013065163977444172,
0.05970127508044243,
-0.0005587076884694397,
0.002871779492124915,
-0.007903453893959522,
0.00287618744187057,
0.015251507051289082,
0.005161709617823362,
-0.006704492028802633,
-0.04221053048968315,
-0.024190830066800117,
0.0006964561180211604,
0.0653434470295906,
0.011046322993934155,
0.004892824683338404,
-0.012809502892196178,
0.015489536337554455,
0.01511045265942812,
-0.040341559797525406,
0.008273721672594547,
0.0007669833139516413,
-0.046089526265859604,
-0.02671217732131481,
-0.02727639488875866,
-0.014995845966041088,
0.00846767146140337,
-0.08914638310670853,
0.002516939537599683,
-0.03677993640303612,
-0.01003249455243349,
-0.012271733023226261,
0.007497922983020544,
0.055787015706300735,
0.014123071916401386,
0.007303973194211721,
-0.040235769003629684,
-0.02288607694208622,
0.005289540160447359,
-0.0014226658968254924,
-0.008635174483060837,
-0.040235769003629684,
0.013461879454553127,
0.009909071959555149,
-0.04136420413851738,
0.0368504635989666,
-0.0030194458086043596,
0.0644618570804596,
0.003477872582152486,
0.03748520836234093,
-0.00009828351176111028,
-0.031296443194150925,
-0.030538277700543404,
-0.006034483667463064,
0.024948997423052788,
-0.024790311232209206,
0.060900237411260605,
0.00759930582717061,
0.023802930489182472,
0.021105265244841576,
-0.01286239828914404,
0.00378642906434834,
-0.04503161832690239,
-0.01623007096350193,
0.021828169003129005,
0.03147276118397713,
0.027100076898932457,
0.03716783598065376,
0.058008622378110886,
-0.0012022684095427394,
-0.023820562288165092,
-0.015410193242132664,
0.01366464514285326,
-0.03337699547410011,
0.020928947255015373,
-0.05747966840863228,
-0.02427898906171322,
-0.009873808361589909,
0.008626358583569527,
0.003848140360787511,
0.015709932893514633,
-0.02953326515853405,
0.047641124576330185,
-0.01983577571809292,
-0.006603109184652567,
-0.014537419192492962,
-0.041752103716135025,
0.041716840118169785,
-0.00852938275784254,
0.006519358139485121,
0.030467750504612923,
0.008524974808096886,
0.025407424196600914,
0.05014484003186226,
0.06735347211360931,
0.0021488757338374853,
-0.03896627947688103,
-0.023062394931912422,
0.03110249526798725,
-0.01835470460355282,
0.021687114611268044,
-0.012835950590670109,
-0.02438477985560894,
0.06449712067842484,
0.0019295801175758243,
-0.0041611045598983765,
0.011205009184777737,
0.04263369366526604,
0.03244251012802124,
-0.0031781319994479418,
0.07920204848051071,
-0.011037507094442844,
0.035016756504774094,
-0.035034388303756714,
0.07631043344736099
] |
10,138 | pygments.formatters.html | _wrap_linespans | null | def _wrap_linespans(self, inner):
s = self.linespans
i = self.linenostart - 1
for t, line in inner:
if t:
i += 1
yield 1, '<span id="%s-%d">%s</span>' % (s, i, line)
else:
yield 0, line
| (self, inner) | [
-0.00406071450561285,
-0.030448831617832184,
-0.011559762060642242,
0.05442140996456146,
-0.02595723606646061,
-0.0109591418877244,
-0.006637288257479668,
0.06775692105293274,
-0.02893422357738018,
0.06434469670057297,
-0.0028681789990514517,
0.014380065724253654,
0.022649472579360008,
-0.0014297370798885822,
-0.02193569205701351,
0.012438930571079254,
-0.0051226806826889515,
-0.035897936671972275,
-0.018018605187535286,
-0.04185190796852112,
-0.002829008037224412,
0.040180619806051254,
0.0438365675508976,
-0.01302214153110981,
-0.005475218407809734,
0.021448232233524323,
-0.010158315300941467,
-0.001659322064369917,
0.03165007010102272,
-0.058564819395542145,
-0.030396603047847748,
-0.058077357709407806,
-0.04345356300473213,
-0.028324898332357407,
0.04272237420082092,
-0.046622052788734436,
-0.08022196590900421,
0.02273651957511902,
-0.02176159992814064,
0.04045916721224785,
0.07242260873317719,
0.010167019441723824,
0.042652737349271774,
-0.014623795635998249,
-0.01644306443631649,
-0.0008584951283410192,
0.056092701852321625,
-0.010036449879407883,
0.021796418353915215,
-0.055744513869285583,
0.02858603745698929,
0.0007290135836228728,
0.06615526229143143,
0.014145039953291416,
-0.0048876553773880005,
-0.008212828077375889,
0.00747728580608964,
0.008604536764323711,
0.0159556046128273,
0.006719982251524925,
-0.044637393206357956,
0.017426690086722374,
-0.011237690225243568,
0.07562591135501862,
0.019550621509552002,
-0.03124965727329254,
0.00045808168943040073,
0.005557912867516279,
-0.006206408143043518,
0.02430335432291031,
0.007969098165631294,
0.04045916721224785,
-0.02176159992814064,
0.017008867114782333,
-0.04063326120376587,
0.038300417363643646,
-0.04261791706085205,
0.04453293979167938,
0.09867580235004425,
-0.02463413216173649,
-0.0033338770736008883,
0.07451172173023224,
0.02686251886188984,
0.02045590430498123,
0.03972797840833664,
-0.04780588299036026,
0.003943202085793018,
0.0176094863563776,
-0.013910015113651752,
0.031771935522556305,
-0.03756922483444214,
0.04129481315612793,
-0.02069963328540325,
-0.054769594222307205,
-0.03749958798289299,
0.009183395653963089,
0.017330938950181007,
0.037046946585178375,
-0.009923289529979229,
-0.03454001247882843,
0.039275337010622025,
-0.012317066080868244,
-0.007390239275991917,
0.006498013623058796,
-0.03516674414277077,
-0.014223381876945496,
-0.003771285293623805,
-0.04178227111697197,
0.0402502566576004,
0.0593656450510025,
-0.014554157853126526,
-0.06392687559127808,
-0.07910776883363724,
0.009940698742866516,
-0.005174908321350813,
-0.02036885730922222,
-0.01108100637793541,
-0.00457428814843297,
0.06284750252962112,
-0.03542788326740265,
0.029212772846221924,
-0.0875338613986969,
-0.060967300087213516,
0.02489527128636837,
-0.06347423791885376,
-0.021866055205464363,
0.010828572325408459,
0.03777813911437988,
0.05194929242134094,
-0.07548663765192032,
0.01578151248395443,
-0.0019269896438345313,
0.03297317773103714,
-0.009096348658204079,
-0.04435884580016136,
-0.04209563881158829,
-0.019080571830272675,
0.03516674414277077,
-0.026148738339543343,
-0.026671016588807106,
0.009192099794745445,
-0.004670039284974337,
-0.020334038883447647,
-0.0024394753854721785,
-0.05330721661448479,
0.009914585389196873,
-0.007033349014818668,
0.07437244802713394,
0.017861921340227127,
0.007042053621262312,
-0.00935748778283596,
-0.04683096334338188,
0.08990152180194855,
0.06935857236385345,
0.014380065724253654,
0.015598715282976627,
-0.03494042530655861,
-0.011699036695063114,
0.06507588922977448,
0.008169304579496384,
0.024686358869075775,
-0.06336978077888489,
0.059887923300266266,
-0.018645338714122772,
0.013605352491140366,
0.11921875178813934,
-0.07249224185943604,
-0.05919155105948448,
-0.0005201022722758353,
-0.005745062604546547,
0.014771774411201477,
0.040842171758413315,
-0.004970349371433258,
-0.018192697316408157,
-0.032851312309503555,
-0.01537239458411932,
-0.008012620732188225,
0.08363418281078339,
-0.03156302496790886,
0.025609051808714867,
0.01838419958949089,
0.02811598777770996,
0.006402262952178717,
-0.035897936671972275,
-0.03401773422956467,
0.04136445000767708,
0.06500624865293503,
-0.07068167626857758,
0.005392524413764477,
-0.07113432139158249,
-0.0005978999543003738,
-0.0022980249486863613,
0.02900386042892933,
-0.02439040131866932,
-0.03725586086511612,
0.035723842680454254,
-0.035723842680454254,
0.008791686035692692,
-0.011063597165048122,
-0.0308318343013525,
-0.10362003743648529,
0.05866927281022072,
-0.04630868509411812,
0.000130433589220047,
0.006798323709517717,
0.04334910586476326,
-0.034992653876543045,
0.033077631145715714,
-0.09895434975624084,
0.05866927281022072,
-0.017670419067144394,
-0.02620096690952778,
0.001083183684386313,
0.04878080263733864,
0.030361784622073174,
0.010045154951512814,
-0.024372993037104607,
0.0787595808506012,
-0.057311348617076874,
-0.031475979834795,
-0.007455524057149887,
-0.011072302237153053,
0.0038039276842027903,
-0.05379467457532883,
0.02200533077120781,
-0.015337576158344746,
0.0784810334444046,
-0.03187639266252518,
-0.007590446155518293,
0.03843969106674194,
-0.010845981538295746,
-0.004389314912259579,
-0.010123495943844318,
0.0035623740404844284,
-0.07548663765192032,
-0.02529568411409855,
0.006175942253321409,
-0.04390620440244675,
0.01034111250191927,
0.010767639614641666,
-0.01822751574218273,
0.029247591271996498,
0.017156844958662987,
-0.029160544276237488,
0.029160544276237488,
0.028881995007395744,
-0.013274576514959335,
-0.009348783642053604,
-0.014824002049863338,
0.04261791706085205,
-0.01211685873568058,
0.030936291441321373,
0.023363253101706505,
0.021396005526185036,
0.05689352750778198,
-0.034818559885025024,
-0.014911048114299774,
-0.013692398555576801,
-0.006733038928359747,
-0.0326249897480011,
0.051148466765880585,
0.007642673794180155,
-0.04272237420082092,
-0.02540013939142227,
0.04707469418644905,
0.03530602157115936,
-0.0458560436964035,
-0.014728250913321972,
0.024547085165977478,
0.030483650043606758,
0.005000815726816654,
-0.0016658505192026496,
-0.011159348301589489,
0.02472117729485035,
0.0025852781254798174,
0.05800772085785866,
-0.007342363707721233,
0.00125129206571728,
-0.034905605018138885,
-0.01970730535686016,
-0.02324138954281807,
0.04261791706085205,
-0.03882269561290741,
0.0035601977724581957,
0.030361784622073174,
-0.021744191646575928,
-0.01211685873568058,
0.01207333616912365,
0.0020140360575169325,
-0.0717262327671051,
-0.027419615536928177,
-0.004213045816868544,
0.0028203034307807684,
-0.01904575154185295,
0.051566287875175476,
-0.036315757781267166,
0.0009885206818580627,
0.02292802184820175,
-0.035828299820423126,
-0.033425819128751755,
-0.009714378044009209,
-0.04352319985628128,
0.017496326938271523,
0.026148738339543343,
-0.007829823531210423,
0.0052097272127866745,
0.012630432844161987,
-0.018993524834513664,
0.026601379737257957,
-0.07750611752271652,
0.01606876589357853,
0.03749958798289299,
-0.009810129180550575,
-0.11538870632648468,
0.025243455544114113,
0.004382786341011524,
-0.04195636510848999,
0.06775692105293274,
0.01648658886551857,
0.05546596646308899,
-0.015424622222781181,
-0.01888906955718994,
0.01937652938067913,
0.016251562163233757,
0.08328599482774734,
0.03934497386217117,
0.07179587334394455,
-0.0180360134691,
-0.025765733793377876,
-0.0012110330862924457,
0.014066698029637337,
-0.04836298152804375,
-0.03445296362042427,
0.01364887598901987,
-0.029195362702012062,
-0.02456449344754219,
0.02052554115653038,
0.016956638544797897,
-0.030535876750946045,
-0.08349490910768509,
0.03610684722661972,
-0.007011587731540203,
-0.018157878890633583,
0.0061977035365998745,
-0.020177355036139488,
-0.0017898916266858578,
0.03236385062336922,
0.03603721037507057,
0.031110383570194244,
0.08586256951093674,
0.024825632572174072,
0.028011532500386238,
0.03347804397344589,
-0.007329307030886412,
0.05104400962591171,
0.01913279853761196,
-0.018018605187535286,
-0.04658723250031471,
-0.03621130436658859,
0.03440073877573013,
-0.007742777466773987,
0.007577389013022184,
0.04432402551174164,
0.006898427382111549,
-0.024268535897135735,
-0.007690549362450838,
0.00124149932526052,
0.021622326225042343,
0.02654915302991867,
0.08502692729234695,
-0.0458560436964035,
0.028150806203484535,
0.05783362686634064,
-0.020421085879206657,
0.030797015875577927,
-0.00943582970649004,
-0.03575866296887398,
0.023589573800563812,
-0.01128991786390543,
-0.05100918933749199,
-0.007707958575338125,
0.016086174175143242,
0.054839231073856354,
0.023432891815900803,
-0.04376693069934845,
-0.007629617117345333,
0.07813285291194916,
-0.018175289034843445,
-0.004062890540808439,
-0.0013688046019524336,
-0.023345844820141792,
-0.011124529875814915,
0.03899678587913513,
0.014327837154269218,
-0.035828299820423126,
-0.06615526229143143,
0.009679559618234634,
-0.0064501385204494,
0.01088079996407032,
-0.050243183970451355,
0.021047819405794144,
0.036315757781267166,
-0.022858384996652603,
-0.008534899912774563,
-0.022719111293554306,
-0.044045478105545044,
-0.0005658016307279468,
0.024077033624053,
0.02416408061981201,
-0.05118328332901001,
-0.09930253028869629,
-0.0061367712914943695,
-0.004328382201492786,
-0.07367607206106186,
0.014110221527516842,
-0.009557695128023624,
0.02315434254705906,
0.04317501559853554,
-0.01673031784594059,
-0.027663346379995346,
-0.04146890714764595,
-0.02621837519109249,
0.038300417363643646,
0.03542788326740265,
-0.019933626055717468,
-0.07792393863201141,
-0.06531962007284164,
-0.04063326120376587,
-0.024512266740202904,
-0.015642238780856133,
0.022649472579360008,
-0.05912191420793533,
0.020473312586545944,
-0.02176159992814064,
0.015842445194721222,
-0.03781295567750931,
-0.0012012403458356857,
0.014406179077923298,
0.029369454830884933,
-0.011020074598491192,
0.019550621509552002,
0.02416408061981201,
0.052784938365221024,
-0.002441651653498411,
0.094567209482193,
-0.010288884863257408,
-0.028742721304297447,
0.033739183098077774,
-0.005427343305200338,
-0.019881397485733032,
-0.03445296362042427,
-0.0020118600223213434,
0.013727216981351376,
-0.03972797840833664,
-0.030118053779006004,
-0.030431421473622322,
0.0380915030837059,
-0.020421085879206657,
0.03798704966902733,
0.0550481453537941,
0.060967300087213516,
0.03610684722661972,
0.005475218407809734,
0.03450519219040871,
-0.017783580347895622,
-0.040598440915346146,
0.029717640951275826,
-0.04129481315612793,
-0.03131929412484169,
-0.010602251626551151,
0.053550947457551956,
-0.019515803083777428,
-0.009322669357061386,
0.0017115498194471002,
0.020734453573822975,
0.02125673182308674,
-0.00346227060072124,
-0.024947497993707657,
-0.026601379737257957,
-0.01661715842783451,
-0.022353515028953552,
-0.017713941633701324,
-0.020159946754574776,
-0.024198899045586586,
-0.03330395370721817,
0.008125781081616879,
0.012282246723771095,
-0.046691689640283585,
-0.007829823531210423,
-0.03173711895942688,
-0.01641695201396942,
0.013274576514959335,
-0.021987920626997948,
-0.015973014757037163,
0.04749251529574394,
0.021970512345433235,
0.06455361098051071,
0.002158750779926777,
0.02743702568113804,
-0.0715869590640068,
0.02184864692389965,
-0.04411511495709419,
0.013405146077275276,
0.0016081822104752064,
0.04272237420082092,
0.05497850850224495,
0.02405962534248829,
-0.0014841411029919982,
-0.04787551984190941,
0.0045046512968838215,
0.04394102469086647,
-0.002885588211938739,
-0.02884717658162117,
0.0006104129133746028,
-0.06695608794689178,
-0.02430335432291031,
-0.016852183267474174,
0.010558728128671646,
0.04362765699625015,
0.012238724157214165,
0.06803546845912933,
-0.013387736864387989,
0.026740653440356255,
-0.024668950587511063,
-0.019428756088018417,
0.04543822258710861,
-0.03875305876135826,
0.04575158655643463,
0.032677218317985535,
-0.02694956585764885,
-0.00671562971547246,
-0.002556988038122654,
0.003978020511567593,
-0.06862737983465195,
-0.0003974212158937007,
-0.00486154155805707,
0.01688700169324875,
-0.023223979398608208,
0.082798533141613,
0.023920351639389992,
0.00651542330160737,
-0.021221913397312164,
-0.053446490317583084,
-0.0022566779516637325,
-0.0157379899173975,
0.06810510158538818,
0.0319112092256546,
-0.021622326225042343,
-0.012752297334372997,
-0.014971980825066566,
0.014406179077923298,
0.022527609020471573,
-0.003875741036608815,
-0.0034187473356723785,
-0.049581628292798996,
-0.0038713887333869934,
-0.04937271773815155,
-0.028638266026973724,
-0.0088047431781888,
0.04449811950325966,
0.1055002361536026,
0.09665632247924805,
0.030274737626314163,
-0.057311348617076874,
0.033060222864151,
0.022527609020471573,
0.004228278994560242,
0.03864860162138939,
-0.009740492329001427,
0.06873183697462082,
-0.00943582970649004,
-0.02611391991376877,
-0.005227136425673962,
-0.024129262194037437,
-0.038126323372125626,
0.023537347093224525,
-0.053550947457551956,
-0.036559488624334335,
0.0004431205743458122,
-0.023223979398608208,
-0.017757466062903404,
0.03676839917898178,
0.0057537672109901905,
-0.050974372774362564,
0.013117892667651176,
-0.028307490050792694,
-0.049651265144348145,
0.05132255703210831,
-0.01657363399863243,
0.08419127762317657,
-0.026914747431874275,
-0.019759532064199448,
-0.04986017942428589,
0.005483923014253378,
0.021535279229283333,
-0.0016440888866782188,
0.023694030940532684,
0.007107338402420282,
-0.10633588582277298,
-0.01157717127352953,
-0.0015635709278285503,
0.03142375126481056,
-0.040493983775377274,
0.049894995987415314,
0.004517707973718643,
-0.04871116578578949,
0.06274304538965225,
-0.08126652240753174,
-0.08544474840164185,
0.0319112092256546,
-0.016913115978240967,
0.05811217799782753,
0.04961644858121872,
-0.03213753178715706,
-0.0415385439991951,
-0.0006669930298812687,
-0.03645503148436546,
0.019637668505311012,
0.024581903591752052,
-0.04954681172966957,
0.04317501559853554,
0.008021325804293156,
-0.02917795442044735,
-0.0027071430813521147,
0.0028594741597771645,
0.01571187563240528,
0.0630912333726883,
-0.05118328332901001,
0.05818181484937668,
-0.0438365675508976,
-0.04146890714764595,
0.06183776259422302,
-0.0010750230867415667,
-0.07256188243627548,
-0.0040955329313874245,
0.047179147601127625,
0.015529077500104904,
-0.048154067248106,
0.0252260472625494,
-0.005736357998102903,
-0.007020292337983847,
-0.054351773113012314,
-0.032276805490255356,
-0.016739021986722946,
0.02176159992814064,
-0.009522875770926476,
0.0036711818538606167,
-0.002881235908716917,
-0.023450300097465515,
0.027645936235785484,
0.04986017942428589,
0.06034056469798088,
-0.016086174175143242,
-0.021779010072350502,
-0.0010347641073167324,
0.058495182543992996,
-0.026392469182610512,
-0.030849244445562363,
-0.014945866540074348,
0.01571187563240528,
0.01904575154185295,
-0.003138022730126977,
-0.014998095110058784,
-0.0062107606790959835,
-0.006437081377953291,
0.01902834326028824,
0.046517595648765564,
0.04275719076395035,
0.0626734048128128,
-0.06336978077888489,
0.011359555646777153,
0.011725150048732758,
-0.03669876232743263,
0.0029095259960740805,
-0.046691689640283585,
-0.023206571117043495,
-0.013805558905005455,
0.005214079283177853,
-0.025504594668745995,
0.024007396772503853,
-0.06709536910057068,
0.01611228846013546,
-0.026566561311483383,
-0.011316032148897648,
-0.01953321322798729,
-0.004987758584320545,
0.006833142600953579,
-0.011072302237153053,
0.005919155199080706,
-0.05041727423667908,
-0.008234589360654354,
-0.0015918610151857138,
-0.0009167073876596987,
-0.019637668505311012,
-0.04244382679462433,
-0.013117892667651176,
0.012142973020672798,
-0.05407322570681572,
0.025260865688323975,
0.01088079996407032,
0.03476633131504059,
-0.02917795442044735,
0.014580272138118744,
0.007512104231864214,
0.001270877430215478,
-0.003682062728330493,
0.007033349014818668,
0.012473748996853828,
0.01446711178869009,
0.03222457692027092,
0.0009275882039219141,
0.027576299384236336,
0.016913115978240967,
-0.02893422357738018,
-0.013109187595546246,
-0.04425438866019249,
0.010410749353468418,
0.007821119390428066,
0.020734453573822975,
0.024790814146399498,
0.02604428306221962,
0.06838364899158478,
-0.00601925840601325,
0.009270441718399525,
-0.06319569051265717,
0.023450300097465515,
-0.030396603047847748,
0.04428920894861221,
-0.055257055908441544,
-0.05539632961153984,
-0.017426690086722374,
-0.003257711650803685,
-0.022527609020471573,
-0.024512266740202904,
-0.015598715282976627,
0.03142375126481056,
-0.02982209622859955,
0.023781076073646545,
-0.025522004812955856,
-0.05598824471235275,
-0.0030357432551681995,
-0.030622923746705055,
0.0008982100407592952,
0.038300417363643646,
-0.03386104851961136,
0.055848971009254456,
0.07562591135501862,
0.05685870721936226,
-0.0016484411899000406,
-0.006336978171020746,
0.025191228836774826,
-0.006441433448344469,
0.000652847986202687,
0.034487783908843994,
-0.010863390751183033,
-0.010306294076144695,
0.048154067248106,
0.006367444060742855,
-0.024338172748684883,
0.032172348350286484,
0.07750611752271652,
0.019550621509552002,
-0.0019161088857799768,
0.05598824471235275,
-0.005192317999899387,
0.0527501180768013,
-0.018767204135656357,
0.07092540711164474
] |
10,139 | pygments.formatters.html | _wrap_pre | null | def _wrap_pre(self, inner):
style = []
if self.prestyles:
style.append(self.prestyles)
if self.noclasses:
style.append(self._pre_style)
style = '; '.join(style)
if self.filename and self.linenos != 1:
yield 0, ('<span class="filename">' + self.filename + '</span>')
# the empty span here is to keep leading empty lines from being
# ignored by HTML parsers
yield 0, ('<pre' + (style and f' style="{style}"') + '><span></span>')
yield from inner
yield 0, '</pre>'
| (self, inner) | [
-0.016700325533747673,
-0.020072421059012413,
0.009867161512374878,
0.03389890491962433,
0.0376179963350296,
-0.03001965954899788,
0.00853255856782198,
0.01982329599559307,
0.07630367577075958,
0.04124811291694641,
0.016549071297049522,
-0.010080697946250439,
-0.03219061344861984,
0.011708912439644337,
-0.04733390361070633,
-0.0056765093468129635,
-0.0059834676794707775,
-0.02083759382367134,
-0.007309173233807087,
-0.00505814328789711,
-0.03485981747508049,
0.04857953265309334,
0.035358067601919174,
0.002027483657002449,
0.015143290162086487,
0.033987876027822495,
-0.04996751621365547,
-0.020268162712454796,
0.03498438000679016,
-0.07544952630996704,
0.027795322239398956,
-0.019075918942689896,
0.015063213184475899,
-0.04459351673722267,
0.0907529667019844,
-0.013070207089185715,
-0.05384676158428192,
0.02316869981586933,
-0.016869375482201576,
-0.022243374958634377,
0.0471559539437294,
-0.020552879199385643,
0.018346335738897324,
-0.020321547985076904,
-0.008252291940152645,
0.012135985307395458,
0.10235511511564255,
-0.04722713306546211,
0.03288460522890091,
-0.03197707608342171,
0.06576921045780182,
0.03815183788537979,
0.05423824489116669,
-0.007104534190148115,
-0.045269716531038284,
-0.04683564975857735,
0.022759420797228813,
0.012251650914549828,
0.0015915135154500604,
0.035073354840278625,
0.0068732029758393764,
0.0346284881234169,
-0.01731424406170845,
0.008296779356896877,
-0.0047022495418787,
-0.022723831236362457,
0.015081007964909077,
0.0094044990837574,
-0.028453724458813667,
0.01749219000339508,
-0.01077469065785408,
-0.009013015776872635,
0.004448675084859133,
0.057263344526290894,
-0.014814088121056557,
-0.018488693982362747,
-0.026353951543569565,
-0.01527674961835146,
0.052850257605314255,
-0.04548325389623642,
0.03235076367855072,
0.021887481212615967,
-0.004840158391743898,
0.017581162974238396,
0.08520102500915527,
-0.05683627352118492,
-0.014707319438457489,
-0.027261480689048767,
0.001661580172367394,
0.07167705148458481,
-0.041283704340457916,
0.0626729354262352,
0.012669826857745647,
-0.0031896999571472406,
0.005156014114618301,
0.037155333906412125,
0.01982329599559307,
-0.020926566794514656,
0.034112438559532166,
-0.009653625078499317,
0.06996876001358032,
0.0716058760881424,
0.036977387964725494,
-0.03295578435063362,
0.02436094358563423,
0.036265600472688675,
0.035251300781965256,
-0.012402906082570553,
0.047369491308927536,
0.014734012074768543,
0.011833475902676582,
-0.14420825242996216,
-0.054522961378097534,
-0.016219869256019592,
0.02208322286605835,
-0.1092594563961029,
-0.027386043220758438,
0.03558940067887306,
0.04811687022447586,
-0.013693021610379219,
0.002460117219015956,
-0.056622736155986786,
-0.07708664238452911,
0.009511266835033894,
-0.0925324410200119,
-0.016335533931851387,
0.054416194558143616,
0.014467091299593449,
0.024876991286873817,
-0.042102258652448654,
0.0435970164835453,
0.0295569971203804,
-0.013123591430485249,
-0.05765482783317566,
-0.018488693982362747,
-0.046052683144807816,
0.01751888170838356,
0.04398849979043007,
0.011415299959480762,
-0.019609758630394936,
0.03146103024482727,
-0.023773718625307083,
-0.013693021610379219,
0.016798196360468864,
-0.08932939171791077,
-0.030215401202440262,
0.029343459755182266,
0.045981504023075104,
0.04338347911834717,
0.029681559652090073,
0.045981504023075104,
-0.01638002134859562,
0.08420451730489731,
0.07317180931568146,
0.01223385613411665,
0.006036852020770311,
-0.015401313081383705,
-0.011281839571893215,
0.03516232594847679,
0.016646942123770714,
0.03986012935638428,
-0.04334788769483566,
0.030482321977615356,
-0.005236090626567602,
0.04690682888031006,
0.05761924013495445,
-0.04690682888031006,
-0.047191545367240906,
-0.005414037499576807,
-0.012047012336552143,
0.06815370172262192,
-0.005974570754915476,
-0.023666951805353165,
0.04370378330349922,
-0.004054967314004898,
0.010169670917093754,
-0.0073536597192287445,
0.07573424279689789,
-0.059291940182447433,
-0.0035678374115377665,
0.03651472553610802,
0.022723831236362457,
0.009351114742457867,
-0.013657432049512863,
0.0011105005396530032,
-0.0277597326785326,
0.06783339381217957,
-0.061391714960336685,
0.02996627427637577,
-0.08683813363313675,
0.04338347911834717,
0.0037546816747635603,
0.014831882901489735,
-0.006717499345541,
-0.015258954837918282,
0.00504479743540287,
0.00829233042895794,
-0.008283432573080063,
0.043490245938301086,
-0.03389890491962433,
-0.10164332389831543,
0.05018105357885361,
-0.018115004524588585,
-0.005262782331556082,
0.020552879199385643,
0.05576859042048454,
-0.030411142855882645,
0.030695857480168343,
-0.06285087764263153,
0.04576796665787697,
0.0017149641644209623,
-0.04761861637234688,
0.020730825141072273,
-0.0032297379802912474,
0.013016822747886181,
-0.04345465824007988,
0.0200012419372797,
0.05078607425093651,
-0.03726210072636604,
-0.01589956507086754,
-0.015926256775856018,
0.02971714921295643,
-0.003367647062987089,
-0.02147820219397545,
0.03528688848018646,
-0.04381055012345314,
0.04765420779585838,
-0.037867121398448944,
-0.031247492879629135,
0.04284963756799698,
-0.034717459231615067,
-0.013434998691082,
-0.08505866676568985,
-0.018542077392339706,
-0.021460408344864845,
-0.02382710389792919,
0.028275778517127037,
-0.0423869751393795,
-0.034468334168195724,
-0.043490245938301086,
0.02423638105392456,
0.023382235318422318,
0.026763228699564934,
-0.05640919879078865,
-0.021282460540533066,
0.016798196360468864,
0.020908772945404053,
0.013942147605121136,
0.00437304750084877,
0.08683813363313675,
-0.014422604814171791,
0.03576734662055969,
-0.011094995774328709,
0.04986074939370155,
-0.01187796238809824,
0.0033854416105896235,
0.021460408344864845,
-0.03503776341676712,
-0.012758799828588963,
0.031834717839956284,
-0.0018995841965079308,
-0.0501454658806324,
0.02251029573380947,
0.006343810353428125,
0.08363509178161621,
0.015356826595962048,
-0.037689175456762314,
-0.0056943041272461414,
0.025037143379449844,
0.023382235318422318,
0.0319414883852005,
-0.01873781904578209,
-0.0003912053653039038,
-0.011566555127501488,
0.0060457494109869,
0.009600240737199783,
-0.0632779523730278,
0.044202033430337906,
-0.025054937228560448,
0.007549401372671127,
-0.000331426301272586,
-0.011023816652595997,
-0.02619379758834839,
-0.03176353871822357,
0.020962156355381012,
-0.03964659199118614,
-0.013639637269079685,
-0.007673964370042086,
0.024574480950832367,
-0.053633224219083786,
-0.025108322501182556,
0.048615120351314545,
0.022118812426924706,
-0.05448736995458603,
0.028738440945744514,
-0.07246001809835434,
0.01757226698100567,
-0.010685717687010765,
-0.043063174933195114,
-0.028329161927103996,
-0.011317429132759571,
-0.05292143672704697,
0.06018167734146118,
0.008581493981182575,
-0.00794978253543377,
0.039966896176338196,
-0.009128681384027004,
-0.002960593206807971,
-0.03103395737707615,
-0.09794203191995621,
-0.013897661119699478,
0.06413210183382034,
-0.014662832953035831,
-0.03325829282402992,
0.0034477231092751026,
-0.0429564043879509,
0.008808376267552376,
0.04167518764734268,
0.009026361629366875,
0.048971015959978104,
-0.0405719168484211,
-0.03389890491962433,
0.0005474650533869863,
0.043312299996614456,
0.053633224219083786,
0.023115314543247223,
0.028631672263145447,
-0.015730515122413635,
0.0046622115187346935,
-0.005009207874536514,
-0.007015560287982225,
-0.0027225890662521124,
-0.04292081668972969,
0.02315090410411358,
-0.06359826028347015,
-0.010952637530863285,
0.00302954763174057,
0.009044156409800053,
-0.02471683919429779,
-0.07737135887145996,
0.05242318660020828,
-0.04352583736181259,
0.01716298796236515,
0.009653625078499317,
-0.09751495718955994,
-0.04228020831942558,
0.003883693367242813,
-0.005089284386485815,
0.057903952896595,
0.06427446007728577,
-0.012767697684466839,
0.009609137661755085,
0.05181816592812538,
0.009306628257036209,
0.06473711878061295,
-0.04889983683824539,
-0.056729502975940704,
-0.010970432311296463,
-0.019716527312994003,
0.0027426080778241158,
0.06274411082267761,
0.03708415478467941,
0.030304374173283577,
0.028489314019680023,
-0.0033365061972290277,
-0.020036831498146057,
0.007598336786031723,
0.043241120874881744,
-0.03206605091691017,
0.06947050988674164,
-0.029094334691762924,
0.002631391165778041,
0.021691739559173584,
-0.0811438336968422,
0.005814418196678162,
-0.01975211687386036,
-0.016219869256019592,
-0.0007879715412855148,
0.0019251641351729631,
-0.03658590465784073,
-0.002882741391658783,
0.08107265084981918,
0.0037724764551967382,
-0.0027581783942878246,
-0.05562623217701912,
-0.02142481878399849,
0.03338285908102989,
0.010427693836390972,
0.01873781904578209,
-0.03574955090880394,
-0.02160276658833027,
-0.03868567943572998,
0.039077162742614746,
-0.0174654982984066,
-0.06185437738895416,
-0.047476258128881454,
-0.015347928740084171,
-0.03854332119226456,
0.031194109469652176,
-0.03389890491962433,
0.034112438559532166,
-0.011513170786201954,
-0.010365412570536137,
0.01574830897152424,
0.01934283971786499,
-0.053989119827747345,
0.035963088274002075,
0.039895717054605484,
0.019716527312994003,
0.036016471683979034,
-0.09068179130554199,
-0.03961100056767464,
-0.013434998691082,
-0.039788950234651566,
-0.0005805520922876894,
0.0005877811927348375,
0.05640919879078865,
-0.007896398194134235,
-0.057263344526290894,
-0.05366881564259529,
-0.029272282496094704,
0.024218587204813957,
0.02094436250627041,
0.03541145473718643,
-0.005965673364698887,
-0.045447662472724915,
-0.03541145473718643,
-0.048437174409627914,
-0.0208909772336483,
0.011183968745172024,
0.011717810295522213,
-0.042707279324531555,
0.016371123492717743,
-0.04010925441980362,
0.005124873481690884,
0.014404810033738613,
-0.025588778778910637,
0.026905586943030357,
0.05665832385420799,
-0.00402382668107748,
0.006779780611395836,
0.0375824049115181,
0.004773428197950125,
0.015374620445072651,
0.05986136943101883,
0.019200481474399567,
-0.006908792071044445,
0.053811173886060715,
-0.02208322286605835,
0.000020818408302147873,
-0.01333712786436081,
0.03286680951714516,
0.017403217032551765,
-0.034414950758218765,
-0.018070517107844353,
-0.02160276658833027,
-0.007473773788660765,
-0.019947858527302742,
-0.003503331681713462,
0.06281529366970062,
0.028863003477454185,
0.02953920140862465,
0.024271970614790916,
0.043134354054927826,
0.008683813735842705,
-0.023079726845026016,
0.018577666953206062,
0.013488383032381535,
-0.08064558357000351,
-0.02023257315158844,
0.047369491308927536,
-0.06000372767448425,
0.0007167927687987685,
0.05032341182231903,
-0.026869997382164,
0.013799790292978287,
-0.010312028229236603,
-0.02829357236623764,
-0.010997124947607517,
-0.019200481474399567,
-0.024752426892518997,
0.01130853220820427,
-0.036977387964725494,
-0.005987916607409716,
-0.014716217294335365,
-0.005698752589523792,
0.022278964519500732,
-0.005680957809090614,
0.04309876263141632,
-0.028631672263145447,
-0.015178878791630268,
0.04231579601764679,
-0.010018415749073029,
0.01716298796236515,
-0.0138798663392663,
0.022047633305191994,
0.035073354840278625,
-0.0019963430240750313,
-0.016566865146160126,
-0.07552070915699005,
0.03092718869447708,
-0.08157090842723846,
-0.020588468760252,
-0.010223055258393288,
0.03943305462598801,
0.019627554342150688,
-0.0010259756818413734,
0.021638356149196625,
-0.004929131828248501,
0.008959631435573101,
0.009600240737199783,
-0.011566555127501488,
0.012349521741271019,
-0.0001595962094143033,
-0.0429564043879509,
0.003836982185021043,
-0.000297783175483346,
0.06057316064834595,
-0.013737508095800877,
-0.0008919593528844416,
0.05438060313463211,
-0.06900784373283386,
0.0025513151194900274,
-0.012100395746529102,
0.012438495643436909,
0.05993254855275154,
-0.010169670917093754,
0.02334664575755596,
0.043774962425231934,
-0.006668563932180405,
-0.0400024838745594,
-0.03213723003864288,
0.032671067863702774,
-0.08327919989824295,
-0.02185189165174961,
-0.00014625019684899598,
0.022243374958634377,
0.0190937127918005,
0.07114320993423462,
-0.0024912580847740173,
0.043846141546964645,
0.038187425583601,
-0.01845310442149639,
0.005600881762802601,
0.024930374696850777,
0.0277597326785326,
0.009609137661755085,
0.007883052341639996,
-0.0560888946056366,
-0.03503776341676712,
-0.027314864099025726,
-0.04388172924518585,
-0.017732419073581696,
0.03592750057578087,
0.004330785013735294,
0.020196985453367233,
-0.004406412597745657,
0.02215440198779106,
0.02548201009631157,
0.051248736679553986,
0.0859839916229248,
0.030411142855882645,
-0.015988538041710854,
-0.028613878414034843,
-0.008786133490502834,
0.0019362857565283775,
0.013016822747886181,
0.016442302614450455,
-0.02220778539776802,
0.039717771112918854,
0.02220778539776802,
-0.025054937228560448,
0.04505617916584015,
0.01898694410920143,
-0.03562498837709427,
0.02585569955408573,
-0.04744067043066025,
0.033044759184122086,
-0.015926256775856018,
-0.008345714770257473,
-0.018844587728381157,
-0.01952078565955162,
0.03658590465784073,
0.00954685639590025,
-0.050536949187517166,
-0.06470152735710144,
-0.07858139276504517,
0.0053206151351332664,
0.029521407559514046,
0.06911461800336838,
-0.041924312710762024,
-0.05633801966905594,
-0.04562561213970184,
-0.026709845289587975,
0.06911461800336838,
-0.03480643406510353,
0.03179913014173508,
0.0010732428636401892,
-0.08740756660699844,
-0.014182375743985176,
0.013826481997966766,
-0.011833475902676582,
-0.005098181776702404,
0.049931928515434265,
0.016824888065457344,
-0.05331292003393173,
0.05057253688573837,
-0.04918454959988594,
-0.029450228437781334,
0.02852490358054638,
-0.026709845289587975,
0.039361875504255295,
-0.003578959032893181,
-0.0078341169282794,
-0.01772352121770382,
0.03658590465784073,
-0.06591156870126724,
-0.047369491308927536,
0.019769912585616112,
-0.009529061615467072,
0.021656149998307228,
0.01011628657579422,
-0.017536677420139313,
0.01017856877297163,
-0.008617083542048931,
0.00101096136495471,
0.06053756922483444,
-0.08285212516784668,
0.02786649949848652,
-0.03571396321058273,
0.03765358403325081,
0.03325829282402992,
0.03162118047475815,
-0.031550001353025436,
-0.02877403050661087,
0.07302945107221603,
0.022990752011537552,
0.008154421113431454,
-0.027386043220758438,
-0.05366881564259529,
0.051177557557821274,
-0.08399098366498947,
-0.04872188717126846,
-0.02405843511223793,
0.02010801061987877,
-0.037226513028144836,
-0.003954872023314238,
-0.046408578753471375,
-0.008167766965925694,
-0.008915144950151443,
0.025588778778910637,
0.033863313496112823,
0.02416520193219185,
0.013773097656667233,
-0.03889921307563782,
0.07352770119905472,
0.018132800236344337,
0.011370813474059105,
0.00012588359822984785,
0.008995220996439457,
0.018239567056298256,
-0.02991289086639881,
0.0032542056869715452,
-0.014155684038996696,
-0.010516667738556862,
0.015881769359111786,
0.04462910816073418,
0.0008380191284231842,
0.019289454445242882,
-0.0531349740922451,
-0.01886238157749176,
0.037689175456762314,
-0.058651331812143326,
-0.06274411082267761,
0.00761168310418725,
-0.02436094358563423,
0.005943429656326771,
-0.021513791754841805,
-0.022955162450671196,
-0.006957727484405041,
-0.0489354245364666,
0.012758799828588963,
-0.0005049246246926486,
-0.038294196128845215,
0.0011766745010390878,
-0.02076641470193863,
-0.009564651176333427,
-0.04114134609699249,
-0.0017060668906196952,
-0.03950423374772072,
-0.03131867200136185,
-0.0039014879148453474,
0.04373937100172043,
-0.028204599395394325,
-0.06826046854257584,
-0.017403217032551765,
0.031425438821315765,
-0.06431004405021667,
-0.021229077130556107,
-0.009226552210748196,
0.04089222103357315,
0.013746405951678753,
0.05366881564259529,
-0.06608951836824417,
-0.00009592455171514302,
0.02697676606476307,
0.05961224436759949,
-0.011815681122243404,
-0.006495065521448851,
0.016718121245503426,
0.002529071643948555,
0.061747610569000244,
0.012047012336552143,
0.009448985569179058,
-0.029414638876914978,
-0.01333712786436081,
-0.015374620445072651,
0.01560595165938139,
0.03587411344051361,
0.028133420273661613,
-0.0177502129226923,
0.04149724170565605,
-0.0006356044323183596,
0.02621159330010414,
-0.05306379497051239,
0.01658466085791588,
-0.05986136943101883,
-0.04804569110274315,
-0.034948792308568954,
-0.04256492108106613,
0.009110886603593826,
0.029165513813495636,
-0.03911275044083595,
-0.0250727329403162,
-0.018577666953206062,
-0.0376179963350296,
0.003347628051415086,
0.025624368339776993,
0.012678723782300949,
-0.037226513028144836,
0.024699043482542038,
-0.013070207089185715,
-0.01242070086300373,
0.060679927468299866,
0.004221792798489332,
0.031247492879629135,
0.06591156870126724,
0.017234167084097862,
0.01256305817514658,
0.039255108684301376,
-0.015169981867074966,
-0.002030820120126009,
-0.017358729615807533,
0.008452482521533966,
-0.004399739671498537,
0.024485507979989052,
0.01650458388030529,
0.02322208322584629,
-0.038187425583601,
0.002266600029543042,
0.05737011134624481,
-0.02065964601933956,
0.012109293602406979,
0.05445178225636482,
0.04338347911834717,
0.01879120245575905,
0.004960272461175919,
0.04260051250457764
] |
10,140 | pygments.formatters.html | _wrap_tablelinenos | null | def _wrap_tablelinenos(self, inner):
dummyoutfile = StringIO()
lncount = 0
for t, line in inner:
if t:
lncount += 1
dummyoutfile.write(line)
fl = self.linenostart
mw = len(str(lncount + fl - 1))
sp = self.linenospecial
st = self.linenostep
anchor_name = self.lineanchors or self.linespans
aln = self.anchorlinenos
nocls = self.noclasses
lines = []
for i in range(fl, fl+lncount):
print_line = i % st == 0
special_line = sp and i % sp == 0
if print_line:
line = '%*d' % (mw, i)
if aln:
line = '<a href="#%s-%d">%s</a>' % (anchor_name, i, line)
else:
line = ' ' * mw
if nocls:
if special_line:
style = f' style="{self._linenos_special_style}"'
else:
style = f' style="{self._linenos_style}"'
else:
if special_line:
style = ' class="special"'
else:
style = ' class="normal"'
if style:
line = f'<span{style}>{line}</span>'
lines.append(line)
ls = '\n'.join(lines)
# If a filename was specified, we can't put it into the code table as it
# would misalign the line numbers. Hence we emit a separate row for it.
filename_tr = ""
if self.filename:
filename_tr = (
'<tr><th colspan="2" class="filename">'
'<span class="filename">' + self.filename + '</span>'
'</th></tr>')
# in case you wonder about the seemingly redundant <div> here: since the
# content in the other cell also is wrapped in a div, some browsers in
# some configurations seem to mess up the formatting...
yield 0, (f'<table class="{self.cssclass}table">' + filename_tr +
'<tr><td class="linenos"><div class="linenodiv"><pre>' +
ls + '</pre></div></td><td class="code">')
yield 0, '<div>'
yield 0, dummyoutfile.getvalue()
yield 0, '</div>'
yield 0, '</td></tr></table>'
| (self, inner) | [
-0.018543122336268425,
0.019311510026454926,
0.00437656557187438,
0.00664238166064024,
-0.02579188160598278,
-0.053805604577064514,
-0.03762318938970566,
0.06880304217338562,
-0.04399247094988823,
0.029180191457271576,
-0.0016536521725356579,
0.043733254075050354,
-0.011359167285263538,
0.004878794774413109,
-0.02769896388053894,
0.020496491342782974,
0.024477291852235794,
-0.026421403512358665,
0.009109552018344402,
0.0036104931496083736,
0.003742414992302656,
0.044251684099435806,
0.0660257339477539,
-0.00024330326414201409,
0.018385741859674454,
0.044696055352687836,
-0.05658290907740593,
-0.004693641327321529,
0.05865662917494774,
-0.060508161783218384,
-0.004149752669036388,
-0.05073205754160881,
-0.00196957029402256,
-0.008683699183166027,
0.07976412773132324,
-0.018126526847481728,
-0.019478147849440575,
0.01037785317748785,
-0.009378024376928806,
0.05202813073992729,
0.04154844582080841,
0.0038257341366261244,
0.035234712064266205,
-0.023533008992671967,
-0.048658337444067,
-0.021551866084337234,
0.040918923914432526,
-0.006165611557662487,
0.025125330314040184,
-0.040437523275613785,
-0.0006873823585920036,
-0.0243291687220335,
0.06202642247080803,
-0.006952513940632343,
-0.018774565309286118,
0.0037516728043556213,
-0.016460144892334938,
0.024680960923433304,
0.02132968232035637,
-0.00046693396870978177,
-0.04402950033545494,
0.03554947301745415,
0.0008789005223661661,
0.052139222621917725,
0.0244958084076643,
-0.03347575291991234,
0.01734888181090355,
0.026921318843960762,
-0.007123780902475119,
0.05065799504518509,
-0.01131287869066,
0.03571610897779465,
0.026791710406541824,
0.02868027612566948,
-0.03954878821969032,
0.017700674012303352,
-0.055990416556596756,
-0.05080612003803253,
0.05358342081308365,
-0.05536089465022087,
0.027717478573322296,
0.04517745226621628,
0.03903035819530487,
0.022348027676343918,
0.049287859350442886,
-0.03501252457499504,
0.06369280070066452,
0.06746993213891983,
-0.007406139746308327,
0.034012697637081146,
-0.04851021617650986,
0.03593829274177551,
-0.013821708038449287,
-0.07746822386980057,
-0.06713666021823883,
-0.01823761872947216,
-0.000058583722420735285,
0.02810630016028881,
0.011368424631655216,
-0.027532324194908142,
0.07931976020336151,
0.002349135000258684,
0.02205178141593933,
0.024643929675221443,
0.005184297915548086,
0.008887368254363537,
-0.028291454538702965,
-0.0022982177324593067,
0.013571751303970814,
-0.0040965210646390915,
-0.014571580104529858,
-0.030568841844797134,
-0.04999144375324249,
-0.026588041335344315,
0.035234712064266205,
-0.050546903163194656,
-0.031827885657548904,
0.0008112037321552634,
0.013090352527797222,
-0.04317779466509819,
0.03725288435816765,
-0.06302624940872192,
-0.0731726586818695,
-0.014441972598433495,
-0.036049384623765945,
-0.03821568191051483,
0.0012370568001642823,
0.030365172773599625,
0.07320969551801682,
-0.06802539527416229,
0.03432745859026909,
0.0016513377195224166,
0.04576994478702545,
0.023255279287695885,
-0.03238334506750107,
-0.03825271129608154,
-0.05706430599093437,
0.03762318938970566,
-0.015367739833891392,
-0.03891926631331444,
0.009674269706010818,
-0.0216074138879776,
-0.031013211235404015,
-0.013905027881264687,
-0.028087785467505455,
0.038808174431324005,
0.03954878821969032,
0.040918923914432526,
0.04584400728344917,
-0.003950712736696005,
0.009896454401314259,
-0.048436153680086136,
0.010461172088980675,
0.04410356283187866,
0.005684212315827608,
0.0010061935754492879,
-0.030957665294408798,
-0.02916167490184307,
0.035605017095804214,
0.017284078523516655,
0.04510338976979256,
-0.04617728292942047,
0.01505297888070345,
-0.02416253089904785,
-0.0010524819372221828,
0.07250610738992691,
-0.04103001579642296,
-0.0575086772441864,
0.04262233525514603,
-0.04443683847784996,
-0.006471114698797464,
0.011710958555340767,
-0.02140374481678009,
0.030087443068623543,
-0.01677490584552288,
0.0011161284055560827,
0.010646326467394829,
0.04032643139362335,
-0.04851021617650986,
-0.020626099780201912,
-0.009813135489821434,
0.025366028770804405,
0.015608440153300762,
0.019607754424214363,
-0.01568250171840191,
0.02769896388053894,
0.04536260664463043,
-0.08442999422550201,
0.016191672533750534,
-0.05732352286577225,
-0.03245740756392479,
-0.01682119444012642,
0.012294191867113113,
-0.0023838512133806944,
0.002835162915289402,
0.020626099780201912,
0.001695311744697392,
0.01257192250341177,
0.0021431518252938986,
-0.02749529480934143,
-0.09465046972036362,
0.07402436435222626,
-0.018219104036688805,
0.012858910486102104,
-0.00004328686191001907,
0.025014236569404602,
-0.0007145767449401319,
0.031253911554813385,
-0.08487436175346375,
0.05073205754160881,
0.03675296902656555,
-0.05106533318758011,
-0.04995441436767578,
0.019626270979642868,
0.028402546420693398,
-0.000031497791496803984,
-0.05965645611286163,
0.0748390406370163,
-0.06513699889183044,
-0.002714813221246004,
-0.008878109976649284,
0.009655755013227463,
-0.010201958008110523,
-0.06410013884305954,
0.011979430913925171,
-0.029754167422652245,
0.07209876924753189,
-0.012720044702291489,
0.060545194894075394,
0.0244958084076643,
-0.05661993846297264,
0.010201958008110523,
-0.04743632674217224,
0.033494267612695694,
-0.008392082527279854,
-0.035031042993068695,
-0.030254080891609192,
-0.02595851942896843,
-0.024384714663028717,
-0.005392595659941435,
-0.03256849944591522,
-0.028735822066664696,
0.01758958213031292,
-0.05776789039373398,
0.04706601798534393,
0.017858054488897324,
-0.0022924316581338644,
-0.00015853767399676144,
-0.058471474796533585,
0.020570553839206696,
-0.020570553839206696,
-0.0010814121924340725,
0.05202813073992729,
-0.004425168503075838,
0.03788240626454353,
0.0063692801631987095,
-0.008091207593679428,
-0.03484588861465454,
0.01832093857228756,
-0.0190522950142622,
0.03510510176420212,
-0.05502761900424957,
0.007540375925600529,
-0.01275707595050335,
0.029513467103242874,
-0.023736678063869476,
-0.07295047491788864,
-0.016274992376565933,
0.00476307375356555,
0.03042071871459484,
-0.023829255253076553,
0.010137153789401054,
-0.04065970703959465,
0.027643416076898575,
-0.021681474521756172,
0.03643820807337761,
0.0015541322063654661,
0.010479687713086605,
-0.0329943522810936,
-0.04477011412382126,
0.006383166648447514,
0.031290940940380096,
-0.005026917438954115,
-0.02830996923148632,
0.005443512927740812,
-0.07046942412853241,
-0.02225545048713684,
-0.011710958555340767,
0.024347685277462006,
-0.050028473138809204,
0.0011485302820801735,
0.0340312123298645,
0.021255621686577797,
0.01571953110396862,
0.06372983008623123,
-0.024792052805423737,
-0.021218590438365936,
0.001178617705591023,
-0.0023340913467109203,
-0.06310030817985535,
-0.03988206386566162,
-0.056323692202568054,
0.12679311633110046,
0.0066146086901426315,
-0.020403916016221046,
-0.011664669960737228,
0.009766846895217896,
-0.03551243990659714,
0.029439406469464302,
-0.08020849525928497,
0.04980628937482834,
0.017321109771728516,
0.01881159469485283,
-0.046251341700553894,
0.030679933726787567,
0.03360535949468613,
-0.054287005215883255,
0.032920289784669876,
0.020292822271585464,
0.06758102774620056,
-0.0021257936023175716,
-0.0044760857708752155,
0.0243291687220335,
0.0067349583841860294,
0.116350457072258,
-0.025032753124833107,
0.07998631149530411,
-0.004439054988324642,
-0.0346977636218071,
-0.004288617987185717,
0.04351107031106949,
-0.019922515377402306,
0.006045261863619089,
0.008799419738352299,
-0.028198877349495888,
0.009419684298336506,
0.01058152224868536,
0.012683014385402203,
-0.03229076787829399,
-0.06698853522539139,
0.05669400095939636,
-0.007082121446728706,
0.016358312219381332,
-0.014349396340548992,
0.013775420375168324,
-0.035271741449832916,
-0.010711129754781723,
0.03888223320245743,
0.037308428436517715,
0.027550840750336647,
0.030809542164206505,
0.045955099165439606,
0.030328143388032913,
0.006429455243051052,
0.01957072503864765,
0.026551011949777603,
-0.023403402417898178,
-0.03658632934093475,
-0.02319973334670067,
0.03906738758087158,
-0.0009905712213367224,
0.043399978429079056,
0.0034693137276917696,
0.016626784577965736,
0.006609980016946793,
-0.022922003641724586,
0.00735059380531311,
0.03821568191051483,
0.0118220504373312,
0.04510338976979256,
-0.03406824171543121,
0.003545689396560192,
0.0864296555519104,
-0.061433929949998856,
0.0391414500772953,
0.0006717600044794381,
-0.01624721847474575,
-0.007146924734115601,
-0.015497347339987755,
-0.06073034554719925,
0.028050754219293594,
0.029013553634285927,
0.04032643139362335,
0.006165611557662487,
-0.035642046481370926,
-0.025199390947818756,
0.036382660269737244,
0.042103905230760574,
-0.026106642559170723,
-0.016432372853159904,
-0.044696055352687836,
0.0025620614178478718,
0.06654416769742966,
0.004321019630879164,
0.01869124546647072,
-0.04206687584519386,
-0.013229217380285263,
0.005267616827040911,
-0.01041488442569971,
-0.043844349682331085,
0.014525291509926319,
0.007864395156502724,
0.009054006077349186,
0.0341978520154953,
-0.040918923914432526,
-0.050954241305589676,
0.0381045900285244,
-0.02116304449737072,
0.031253911554813385,
-0.021903658285737038,
-0.05858256667852402,
0.01342362817376852,
-0.03951175510883331,
-0.04325185716152191,
0.02814333140850067,
0.01681193709373474,
-0.01621018908917904,
0.01575656235218048,
0.023421917110681534,
-0.01990400068461895,
-0.030272597447037697,
0.02834700047969818,
0.04943598434329033,
0.053472328931093216,
0.0038720224983990192,
-0.04306670278310776,
-0.07276532053947449,
-0.027347171679139137,
-0.008095836266875267,
-0.0018723647808656096,
0.031050240620970726,
-0.056360725313425064,
-0.00025979350903071463,
-0.011720215901732445,
0.02140374481678009,
-0.03728991374373436,
-0.0016212502960115671,
-0.0472882017493248,
0.054768405854701996,
-0.0014638698194175959,
0.006920111831277609,
-0.009067892096936703,
-0.004892681259661913,
0.020459461957216263,
0.025273451581597328,
-0.008206929080188274,
-0.0013238474493846297,
0.016950802877545357,
-0.03721585124731064,
0.002673153532668948,
-0.0041590104810893536,
0.020015092566609383,
-0.0011774605372920632,
-0.0401412770152092,
-0.052953898906707764,
-0.037512097507715225,
0.014923371374607086,
-0.009720558300614357,
-0.012257161550223827,
0.06435935199260712,
0.036049384623765945,
0.03310544416308403,
0.07176549732685089,
0.0510283038020134,
0.011960916221141815,
-0.06239672750234604,
-0.0068645658902823925,
-0.024755021557211876,
-0.019163386896252632,
-0.03697515279054642,
0.014488261193037033,
-0.02643992006778717,
-0.023570040240883827,
0.014830795116722584,
0.030976179987192154,
0.026273280382156372,
-0.0031221508979797363,
-0.032438892871141434,
-0.04188172146677971,
-0.02940237522125244,
-0.03851192817091942,
-0.025477120652794838,
-0.026069611310958862,
-0.060174886137247086,
-0.014525291509926319,
0.03671593964099884,
0.005258359480649233,
-0.02834700047969818,
0.06987693160772324,
-0.020366884768009186,
-0.0018318623770028353,
0.04240015149116516,
-0.03464221954345703,
-0.010553749278187752,
0.024384714663028717,
0.047214142978191376,
0.03954878821969032,
0.015376998111605644,
-0.0033605359494686127,
-0.07709791511297226,
0.03984503075480461,
-0.07469092309474945,
-0.023940347135066986,
-0.0011907684383913875,
0.04943598434329033,
0.030291112139821053,
0.048028815537691116,
0.012321964837610722,
-0.050583936274051666,
-0.03273513913154602,
0.043807316571474075,
-0.03977097198367119,
-0.02286645583808422,
-0.012201615609228611,
-0.050583936274051666,
-0.03014298900961876,
-0.0381045900285244,
0.010229730978608131,
0.04651055857539177,
0.035882748663425446,
0.04065970703959465,
-0.01592320017516613,
0.002395423362031579,
-0.005596264265477657,
-0.046325404196977615,
0.06324843317270279,
0.01624721847474575,
0.0789494514465332,
0.059360209852457047,
-0.03480885550379753,
-0.0003486093191895634,
-0.016784165054559708,
-0.001058846595697105,
-0.05073205754160881,
0.021477805450558662,
0.049250829964876175,
-0.02534751407802105,
-0.04410356283187866,
0.15086306631565094,
-0.007137667387723923,
0.005202813073992729,
0.02047797664999962,
-0.04280748963356018,
-0.014117954298853874,
-0.004371936898678541,
0.021051952615380287,
0.030679933726787567,
0.00353874615393579,
0.011785020120441914,
-0.011359167285263538,
0.014460488222539425,
0.01204423513263464,
0.05165782570838928,
0.008887368254363537,
-0.05362045392394066,
0.010359338484704494,
-0.011710958555340767,
-0.0014731275150552392,
0.00865129753947258,
0.041733596473932266,
0.03362387418746948,
0.071135975420475,
-0.01362729724496603,
-0.050509873777627945,
0.06658119708299637,
0.04851021617650986,
0.030291112139821053,
0.027384202927350998,
-0.032031554728746414,
0.057286493480205536,
-0.017839539796113968,
0.005026917438954115,
0.001871207496151328,
-0.031624216586351395,
-0.0062304153107106686,
-0.008600380271673203,
-0.07535747438669205,
0.010488945990800858,
-0.002881451277062297,
-0.04765851050615311,
-0.04310373216867447,
0.01127584744244814,
-0.0005511209601536393,
-0.01953369379043579,
0.02058906853199005,
-0.05650884658098221,
-0.07035832852125168,
0.04725117236375809,
0.011507289484143257,
0.04454793035984039,
-0.026939833536744118,
0.003911367617547512,
-0.06591464579105377,
-0.027439748868346214,
0.03217967599630356,
0.0053740800358355045,
0.015312193892896175,
0.017839539796113968,
-0.08331907540559769,
0.006684041116386652,
-0.038808174431324005,
0.03358684480190277,
-0.05917505547404289,
0.032642561942338943,
0.020663131028413773,
-0.059730518609285355,
0.07969006150960922,
-0.05039878189563751,
-0.05654587596654892,
0.025032753124833107,
-0.0011138139525428414,
0.10635216534137726,
0.030272597447037697,
-0.06632198393344879,
-0.04273342713713646,
-0.016987834125757217,
-0.02221841923892498,
-0.02884691394865513,
0.02120007574558258,
-0.08339313417673111,
0.011914627626538277,
0.0011271218536421657,
-0.009419684298336506,
-0.01599726267158985,
-0.04569588229060173,
0.01364581286907196,
0.046732742339372635,
-0.04314076527953148,
0.05965645611286163,
-0.04651055857539177,
-0.028902459889650345,
0.03501252457499504,
-0.004568662494421005,
-0.026791710406541824,
-0.0071098944172263145,
0.017163729295134544,
-0.003668353660032153,
-0.03464221954345703,
-0.0006023274618200958,
0.008095836266875267,
0.036419693380594254,
-0.06354468315839767,
-0.01957072503864765,
-0.006128580775111914,
-0.002550489502027631,
-0.01750626228749752,
0.027643416076898575,
-0.03290177509188652,
-0.020089155063033104,
0.004594121128320694,
0.004682069178670645,
0.07909757643938065,
0.02830996923148632,
-0.03477182611823082,
-0.009044748730957508,
0.037512097507715225,
0.02132968232035637,
-0.04277045652270317,
0.02368113212287426,
0.03175382316112518,
0.05021362751722336,
-0.0503617525100708,
0.0010999274672940373,
-0.007503345608711243,
0.00027744093677029014,
0.003675296902656555,
0.07946787774562836,
0.04202984273433685,
-0.0006052204989828169,
-0.04417762532830238,
0.016589753329753876,
0.06243376061320305,
-0.026476949453353882,
-0.061915330588817596,
-0.0036660393234342337,
-0.04232608899474144,
-0.012072008103132248,
0.008313392288982868,
0.021662959828972816,
-0.021496320143342018,
-0.0609154999256134,
0.018293164670467377,
-0.020903829485177994,
-0.05565714091062546,
-0.025088299065828323,
0.04332591965794563,
0.011164755560457706,
-0.007045090664178133,
-0.01628424972295761,
-0.09346548467874527,
-0.027921147644519806,
-0.0020795052405446768,
0.006318362895399332,
0.02640288881957531,
-0.03038368932902813,
0.009979773312807083,
0.010664841160178185,
-0.06317437440156937,
-0.006077663507312536,
0.041696567088365555,
0.04291858151555061,
-0.020366884768009186,
0.03688257560133934,
-0.007174698170274496,
-0.02010766975581646,
0.000016878982933121733,
0.010211215354502201,
0.008114351890981197,
-0.03675296902656555,
0.024625414982438087,
0.015404771082103252,
0.07209876924753189,
0.029513467103242874,
-0.024884629994630814,
-0.002434768481180072,
-0.01994103193283081,
-0.02697686478495598,
0.0321611613035202,
-0.007489459123462439,
-0.01872827671468258,
0.028217392042279243,
0.036253053694963455,
0.01823761872947216,
-0.0015738047659397125,
-0.02616218850016594,
0.0290876142680645,
-0.0660257339477539,
0.020440945401787758,
-0.026939833536744118,
-0.021255621686577797,
0.013692101463675499,
0.04784366488456726,
-0.00954466313123703,
0.01417350023984909,
-0.022644272074103355,
-0.00863278191536665,
-0.01486782543361187,
0.010887025855481625,
-0.005485172383487225,
-0.057249460369348526,
-0.01860792562365532,
-0.028939491137862206,
0.02632882632315159,
0.055101681500673294,
-0.019607754424214363,
0.07243204861879349,
0.0328277163207531,
0.05110236629843712,
-0.0006341506959870458,
0.05965645611286163,
0.017321109771728516,
-0.025902973487973213,
-0.03977097198367119,
-0.004851021803915501,
0.025847427546977997,
-0.007197842001914978,
0.054361067712306976,
-0.0164971761405468,
-0.016950802877545357,
0.00916046928614378,
0.037308428436517715,
0.020977891981601715,
-0.0069802869111299515,
0.08243033289909363,
0.044288717210292816,
0.026495466008782387,
-0.035401348024606705,
0.037678737193346024
] |
10,142 | pygments.formatters.html | format_unencoded |
The formatting process uses several nested generators; which of
them are used is determined by the user's options.
Each generator should take at least one argument, ``inner``,
and wrap the pieces of text generated by this.
Always yield 2-tuples: (code, text). If "code" is 1, the text
is part of the original tokensource being highlighted, if it's
0, the text is some piece of wrapping. This makes it possible to
use several different wrappers that process the original source
linewise, e.g. line number generators.
| def format_unencoded(self, tokensource, outfile):
"""
The formatting process uses several nested generators; which of
them are used is determined by the user's options.
Each generator should take at least one argument, ``inner``,
and wrap the pieces of text generated by this.
Always yield 2-tuples: (code, text). If "code" is 1, the text
is part of the original tokensource being highlighted, if it's
0, the text is some piece of wrapping. This makes it possible to
use several different wrappers that process the original source
linewise, e.g. line number generators.
"""
source = self._format_lines(tokensource)
# As a special case, we wrap line numbers before line highlighting
# so the line numbers get wrapped in the highlighting tag.
if not self.nowrap and self.linenos == 2:
source = self._wrap_inlinelinenos(source)
if self.hl_lines:
source = self._highlight_lines(source)
if not self.nowrap:
if self.lineanchors:
source = self._wrap_lineanchors(source)
if self.linespans:
source = self._wrap_linespans(source)
source = self.wrap(source)
if self.linenos == 1:
source = self._wrap_tablelinenos(source)
source = self._wrap_div(source)
if self.full:
source = self._wrap_full(source, outfile)
for t, piece in source:
outfile.write(piece)
| (self, tokensource, outfile) | [
-0.024288969114422798,
-0.021246016025543213,
-0.00851844996213913,
0.04161740839481354,
0.01393928099423647,
-0.04486079886555672,
-0.06020311638712883,
-0.02264905348420143,
0.021883759647607803,
0.004108899272978306,
0.01460435800254345,
-0.03144993260502815,
-0.04252847284078598,
-0.004801307804882526,
-0.01727377623319626,
0.08090249449014664,
0.009288298897445202,
0.006650768220424652,
0.04376751929521561,
-0.0002972346846945584,
-0.02498137764632702,
0.023614782840013504,
0.033982690423727036,
-0.002580589149147272,
0.02979179657995701,
-0.020025189965963364,
-0.033636488020420074,
-0.04158096760511398,
-0.036697663366794586,
-0.061733704060316086,
0.004810418467968702,
-0.04486079886555672,
0.04413194581866264,
0.004728422965854406,
0.02844342216849327,
-0.0740877315402031,
-0.042091161012649536,
0.016699805855751038,
-0.008655109442770481,
-0.031377047300338745,
-0.01248157862573862,
-0.05335191637277603,
0.016380932182073593,
-0.008322570472955704,
0.00910153053700924,
-0.001471368595957756,
0.009201747365295887,
-0.04988986998796463,
0.002073809737339616,
-0.07944478839635849,
0.03232455626130104,
-0.02815188094973564,
0.01011281181126833,
0.014768349938094616,
0.0003965976065956056,
-0.005589378532022238,
-0.02532758191227913,
0.05561135336756706,
0.04413194581866264,
-0.0030543424654752016,
-0.021701548248529434,
0.037863824516534805,
0.03851979225873947,
0.03123127855360508,
0.004370830021798611,
0.017483320087194443,
-0.0037011979147791862,
0.02468983829021454,
-0.04333021119236946,
0.047776203602552414,
-0.01767464354634285,
0.026839949190616608,
-0.016034727916121483,
0.01744687743484974,
0.028352316468954086,
0.017875079065561295,
-0.09496932476758957,
0.023487232625484467,
0.008072027936577797,
-0.004746644292026758,
0.04201827570796013,
0.03321739658713341,
0.038264691829681396,
0.04282001405954361,
0.05389855429530144,
-0.07543610781431198,
0.012053378857672215,
0.018512822687625885,
-0.0005383819807320833,
0.01103298645466566,
-0.011625178158283234,
0.004225059878081083,
-0.0005272783455438912,
-0.003370937192812562,
-0.07514456659555435,
-0.026675958186388016,
0.008910207077860832,
0.02190198190510273,
-0.016699805855751038,
-0.039139315485954285,
0.06413891166448593,
-0.029500257223844528,
-0.03347249701619148,
-0.011105871759355068,
0.03862911835312843,
-0.0020088963210582733,
-0.020061632618308067,
0.02312280796468258,
0.04828639701008797,
-0.000735684297978878,
-0.004951633512973785,
-0.1257268488407135,
0.032597873359918594,
-0.020134517922997475,
0.050144970417022705,
-0.07190117985010147,
-0.05134757235646248,
0.04387684911489487,
0.026147540658712387,
-0.03163214772939682,
0.019970525056123734,
-0.06989683955907822,
-0.03006511554121971,
0.010386130772531033,
-0.008090249262750149,
-0.04861438274383545,
0.04063345864415169,
0.008072027936577797,
0.06781961023807526,
-0.0564495325088501,
-0.009784828871488571,
0.05429942160844803,
-0.0012675179168581963,
-0.04708379507064819,
0.0009480760782025754,
-0.03990460932254791,
-0.06392025947570801,
-0.012909778393805027,
0.00028883578488603234,
-0.017182668671011925,
0.05491894483566284,
-0.030447762459516525,
-0.002036228310316801,
-0.02097269706428051,
-0.05812589079141617,
0.01291888952255249,
0.0358230397105217,
0.03935797140002251,
0.06228034198284149,
0.004204561002552509,
0.02862563543021679,
0.010249471291899681,
0.01911412551999092,
0.013082880526781082,
0.027131490409374237,
0.026912834495306015,
-0.004231892991811037,
0.01820306107401848,
-0.01382084283977747,
0.027277259156107903,
0.06406603008508682,
-0.04132586717605591,
0.03345427289605141,
0.003751306561753154,
0.018986577168107033,
0.046901579946279526,
0.03460221737623215,
-0.03088507428765297,
-0.009229079820215702,
-0.029482034966349602,
-0.00261475401930511,
-0.0336182676255703,
-0.05196709930896759,
0.061041295528411865,
-0.00990326702594757,
0.016144055873155594,
-0.0657423883676529,
0.07190117985010147,
-0.05688684433698654,
0.012171817012131214,
-0.0014189823996275663,
0.013365310616791248,
-0.019624320790171623,
-0.058016564697027206,
-0.032415661960840225,
-0.020243844017386436,
0.050618723034858704,
-0.013857285492122173,
0.0013472361024469137,
-0.05123824626207352,
0.03553150221705437,
-0.06552372872829437,
0.028844289481639862,
-0.027076825499534607,
-0.006122351158410311,
-0.03667944297194481,
-0.04420483112335205,
0.020772261545062065,
0.05163911357522011,
-0.025455132126808167,
-0.05812589079141617,
0.025819556787610054,
-0.003188724396750331,
-0.003498486243188381,
-0.010586565360426903,
0.05174844339489937,
-0.020717598497867584,
0.02503604255616665,
-0.04282001405954361,
0.0235783401876688,
0.07394196093082428,
-0.06913154572248459,
0.011880275793373585,
0.04438704252243042,
0.018102843314409256,
-0.008117581717669964,
0.015141885727643967,
0.09096064418554306,
-0.09154372662305832,
0.02264905348420143,
0.003951740451157093,
-0.005252284463495016,
-0.03431067615747452,
-0.05528337135910988,
0.03292585909366608,
0.0072110723704099655,
0.01463168952614069,
-0.018840806558728218,
0.03321739658713341,
-0.011324526742100716,
0.016882019117474556,
-0.03739007189869881,
-0.052185751497745514,
0.0731402263045311,
-0.040232591331005096,
-0.05932849645614624,
0.03292585909366608,
-0.08666042238473892,
-0.031213056296110153,
0.0014132881769910455,
-0.03093973733484745,
-0.007388730067759752,
0.04026903584599495,
-0.02235751412808895,
0.037973154336214066,
0.025455132126808167,
0.012199148535728455,
0.008381789550185204,
0.015351430512964725,
0.0388113334774971,
-0.06060398742556572,
0.029755353927612305,
-0.014914119616150856,
0.05134757235646248,
0.004001849330961704,
-0.03132238611578941,
-0.01136096939444542,
-0.04085211455821991,
0.0034893755801022053,
0.04402261972427368,
0.015469868667423725,
-0.023104585707187653,
0.007457059808075428,
0.009575284086167812,
0.06956885755062103,
-0.019624320790171623,
-0.025127148255705833,
-0.012754897587001324,
0.03454755246639252,
0.02155577763915062,
-0.11399234086275101,
0.027022162452340126,
-0.0003524679341353476,
-0.0074023958295583725,
-0.03053887002170086,
0.05335191637277603,
0.014795681461691856,
0.017856856808066368,
0.00376725010573864,
-0.04697446525096893,
0.03870200365781784,
0.022758381441235542,
-0.015661193057894707,
-0.0027195264119654894,
0.026858169585466385,
0.0043070558458566666,
-0.01686379685997963,
-0.06960529834032059,
0.03476620838046074,
-0.03841046243906021,
0.04795841500163078,
0.021974867209792137,
0.05178488418459892,
0.024835608899593353,
0.049051690846681595,
-0.015096332877874374,
0.03128594160079956,
0.0010545566910877824,
-0.012053378857672215,
-0.03939441218972206,
-0.05273239314556122,
-0.016244273632764816,
0.08673330396413803,
0.007338621653616428,
0.02543690986931324,
0.00522950803861022,
-0.009711943566799164,
-0.03070286102592945,
-0.03564082831144333,
-0.062426112592220306,
0.0036715883761644363,
0.024307191371917725,
0.04617273062467575,
-0.04795841500163078,
-0.003528095781803131,
-0.0353492870926857,
-0.0006246483535505831,
0.021337121725082397,
0.039430856704711914,
0.01463168952614069,
-0.03523996099829674,
-0.07248426228761673,
0.036242131143808365,
-0.03921220079064369,
0.060348886996507645,
-0.008850988000631332,
0.016326269134879112,
-0.009848603047430515,
0.0003399408014956862,
-0.014804791659116745,
-0.010012594982981682,
-0.018786141648888588,
-0.01529676653444767,
-0.0015989175299182534,
-0.09190814942121506,
-0.05244085192680359,
-0.029937567189335823,
-0.00556204654276371,
0.00927007757127285,
-0.04230981692671776,
-0.012964442372322083,
-0.0060722422786056995,
0.02195664495229721,
0.0019371501402929425,
-0.04937967658042908,
-0.03208767995238304,
-0.01755620539188385,
0.0036055361852049828,
0.02711326815187931,
0.0603853315114975,
-0.006468555424362421,
0.03760872781276703,
0.05881829932332039,
0.059875134378671646,
0.023341462016105652,
-0.03001045249402523,
0.0021671936847269535,
-0.022284628823399544,
-0.0032593319192528725,
-0.007051636464893818,
-0.020535385236144066,
0.038446906954050064,
0.010285913944244385,
0.007042525801807642,
0.018676813691854477,
0.0043890513479709625,
-0.011288084089756012,
-0.008049251511693,
-0.02589244209229946,
0.019861197099089622,
-0.052695948630571365,
-0.010003483854234219,
0.01416704710572958,
-0.01416704710572958,
-0.009575284086167812,
-0.013237761333584785,
-0.06694499403238297,
0.010404352098703384,
-0.07667515426874161,
-0.019915862008929253,
0.04103432968258858,
0.07084434479475021,
0.03197835013270378,
0.018986577168107033,
0.013438195921480656,
-0.014895898289978504,
-0.052513737231492996,
0.02942737191915512,
-0.022977037355303764,
0.008322570472955704,
-0.06891289353370667,
-0.01103298645466566,
0.036697663366794586,
0.0006337589584290981,
-0.04278356954455376,
-0.010440794751048088,
-0.017364881932735443,
0.0023414348252117634,
-0.011288084089756012,
-0.06206168979406357,
0.02567378617823124,
0.024926714599132538,
0.016581367701292038,
-0.007844261825084686,
-0.02097269706428051,
-0.030629975721240044,
0.03638790175318718,
0.04624561592936516,
0.005862697493284941,
-0.0133835319429636,
-0.014722796157002449,
-0.000737961963750422,
-0.007543610874563456,
-0.022904152050614357,
-0.011670731008052826,
-0.017856856808066368,
-0.009757496416568756,
0.020243844017386436,
-0.00910153053700924,
0.01779308170080185,
-0.02028028666973114,
0.0011610373621806502,
0.03263431787490845,
-0.005206731613725424,
-0.040232591331005096,
-0.05827166140079498,
-0.0652686357498169,
-0.04445992782711983,
-0.03633323684334755,
0.014449477195739746,
0.004760310053825378,
-0.06647124141454697,
0.02977357618510723,
0.027277259156107903,
-0.02942737191915512,
0.02583777904510498,
-0.013410864397883415,
0.04824995622038841,
0.09373027831315994,
0.002967791398987174,
0.0289718396961689,
0.030229108408093452,
0.02822476625442505,
0.027076825499534607,
0.04278356954455376,
-0.019387444481253624,
-0.05167555809020996,
0.04624561592936516,
-0.04438704252243042,
0.01604383997619152,
-0.016180498525500298,
0.062426112592220306,
-0.03662477806210518,
-0.025418689474463463,
-0.011989603750407696,
-0.034037355333566666,
0.06712720543146133,
0.042492032051086426,
0.05772502347826958,
0.06585171818733215,
0.03616924583911896,
0.03436533734202385,
0.06366515904664993,
0.0668356642127037,
0.03673410415649414,
-0.02190198190510273,
0.00032456658664159477,
-0.008390900678932667,
-0.02139178477227688,
0.008076583035290241,
-0.016836464405059814,
0.004605429247021675,
-0.04303866997361183,
0.031668588519096375,
0.02880784682929516,
0.0417267382144928,
-0.0008586779586039484,
-0.02682172879576683,
-0.03197835013270378,
-0.02368766814470291,
-0.056923285126686096,
-0.015096332877874374,
-0.020079853013157845,
-0.03680698946118355,
0.003944907803088427,
0.02880784682929516,
0.05870897322893143,
-0.07842440158128738,
0.03819180652499199,
0.006741874385625124,
-0.0216104406863451,
0.00596746988594532,
-0.02908116765320301,
-0.046209171414375305,
0.0017059675883501768,
0.013738847337663174,
-0.012609127908945084,
-0.015141885727643967,
-0.010058147832751274,
-0.07784131914377213,
0.04158096760511398,
-0.07543610781431198,
-0.0287349633872509,
-0.08884697407484055,
0.08133980631828308,
0.023541897535324097,
0.057032614946365356,
0.044532813131809235,
-0.020316729322075844,
-0.008809990249574184,
-0.02474450133740902,
0.024252526462078094,
0.02977357618510723,
0.012098931707441807,
-0.0003658491768874228,
0.0025168147403746843,
-0.03347249701619148,
0.02775101363658905,
0.038264691829681396,
0.032178785651922226,
-0.0006126906373538077,
0.007903480902314186,
0.01135185919702053,
-0.04686513915657997,
-0.025364024564623833,
0.03673410415649414,
-0.011269863694906235,
0.07277580350637436,
-0.015314987860620022,
-0.030229108408093452,
-0.02793322689831257,
-0.0006548273377120495,
0.018749698996543884,
-0.04537099227309227,
0.008122136816382408,
0.02764168567955494,
-0.003202390391379595,
0.032197006046772,
0.05021785572171211,
0.02538224682211876,
-0.005972025450319052,
0.056813959032297134,
-0.06107774004340172,
-0.012199148535728455,
0.0006400225684046745,
0.017337549477815628,
-0.03323562070727348,
-0.020845146849751472,
-0.006504998076707125,
-0.0012720732484012842,
-0.022284628823399544,
0.011597846634685993,
0.045626092702150345,
0.08899274468421936,
0.015096332877874374,
0.03185080364346504,
-0.023341462016105652,
0.06344650685787201,
0.05812589079141617,
0.04427771642804146,
0.038738448172807693,
0.0903046727180481,
-0.05091026425361633,
-0.08177711814641953,
-0.003878855612128973,
0.06049465760588646,
0.0007094911998137832,
0.03168680891394615,
-0.07062569260597229,
0.06257188320159912,
-0.000932701921556145,
-0.012117153033614159,
0.03598703444004059,
-0.03301696479320526,
-0.017301108688116074,
0.013829953037202358,
-0.0208633691072464,
-0.003694365033879876,
0.005138401873409748,
-0.024835608899593353,
0.009839492850005627,
0.03257965296506882,
0.04967121779918671,
-0.07733112573623657,
0.012645569629967213,
-0.03208767995238304,
-0.015123664401471615,
-0.0035827597603201866,
0.054080765694379807,
0.06716364622116089,
-0.014722796157002449,
-0.02468983829021454,
-0.030229108408093452,
-0.009538841433823109,
0.04930679127573967,
0.017182668671011925,
0.013483748771250248,
0.012199148535728455,
-0.04606340080499649,
-0.022157080471515656,
0.012381361797451973,
-0.0014246765058487654,
-0.06056754291057587,
0.050545837730169296,
0.04398617520928383,
-0.009930598549544811,
0.05459096282720566,
-0.06424824148416519,
-0.02729548141360283,
0.0009514925768598914,
-0.01358396653085947,
0.056522417813539505,
0.031194835901260376,
-0.02126423642039299,
-0.0292087160050869,
0.07222916185855865,
-0.0007066440884955227,
-0.011424744501709938,
0.0186585932970047,
0.016098503023386,
0.061624377965927124,
0.028060775250196457,
-0.03994105011224747,
-0.002380155026912689,
0.005329725332558155,
0.016153166070580482,
0.025528017431497574,
0.01564297080039978,
-0.029445592314004898,
-0.002439374104142189,
-0.03569549322128296,
0.02722259610891342,
0.024872051551938057,
-0.04183606430888176,
-0.06428468227386475,
0.0672365352511406,
0.0022879098542034626,
-0.003758139442652464,
-0.03420134633779526,
0.005780701991170645,
0.0054344977252185345,
-0.056230876594781876,
-0.011051207780838013,
-0.00836812425404787,
-0.020025189965963364,
-0.01964254304766655,
-0.030921516939997673,
0.02079048380255699,
-0.03585948422551155,
0.04314799606800079,
0.00944773480296135,
0.06136928126215935,
0.025017820298671722,
0.0017720197793096304,
-0.06450334191322327,
0.04952544718980789,
-0.0004959605284966528,
-0.027915004640817642,
0.03609636053442955,
0.000644008454401046,
0.017711086198687553,
0.0023072699550539255,
0.017483320087194443,
0.042674243450164795,
-0.03862911835312843,
0.014567915350198746,
-0.004457381088286638,
0.03957662731409073,
0.02272193878889084,
-0.04529810696840286,
0.023141028359532356,
0.026803506538271904,
-0.021573998034000397,
-0.038264691829681396,
-0.005220397375524044,
-0.030174443498253822,
0.047193121165037155,
-0.03793670982122421,
-0.00017253277474083006,
-0.032197006046772,
-0.018275946378707886,
0.016153166070580482,
-0.003541761776432395,
-0.02857097052037716,
-0.033399611711502075,
0.054554518312215805,
-0.029154052957892418,
0.002571478486061096,
-0.006495887413620949,
-0.06402958929538727,
-0.005129291210323572,
0.01248157862573862,
-0.026329753920435905,
-0.035895925015211105,
-0.06392025947570801,
0.023341462016105652,
-0.0035827597603201866,
-0.06486776471138,
0.03336316719651222,
-0.026165761053562164,
0.03611458092927933,
-0.05921916663646698,
0.03899354487657547,
-0.034784428775310516,
-0.025127148255705833,
0.025710228830575943,
0.04402261972427368,
-0.0358230397105217,
-0.032597873359918594,
0.01065945066511631,
0.010604786686599255,
0.006591549143195152,
0.02822476625442505,
0.04952544718980789,
0.02793322689831257,
-0.037754498422145844,
-0.10670383274555206,
0.027204375714063644,
0.05714194104075432,
0.012654680758714676,
0.001686607487499714,
0.0574699267745018,
-0.04092499986290932,
0.0133835319429636,
-0.020717598497867584,
0.01790240965783596,
-0.04839572682976723,
-0.012098931707441807,
-0.004118009936064482,
-0.047776203602552414,
0.037973154336214066,
0.07058925181627274,
-0.04176317900419235,
0.009739275090396404,
-0.03157748281955719,
0.03667944297194481,
-0.02642085961997509,
0.012144484557211399,
0.0594378225505352,
0.025455132126808167,
-0.005748814437538385,
0.015251213684678078,
-0.06275409460067749,
0.0776226669549942,
-0.02195664495229721,
0.020990917459130287,
0.059765808284282684,
0.03749939799308777,
-0.029099388048052788,
0.06300919502973557,
0.029500257223844528,
0.00901042390614748,
-0.043075110763311386,
0.007634717505425215,
0.04675580933690071,
0.0289718396961689,
0.0451887808740139,
0.017656423151493073,
-0.008504783734679222,
0.017228223383426666,
-0.0005802339874207973,
0.016098503023386,
0.015223881229758263,
0.01088721677660942,
0.017756639048457146,
0.009657279588282108,
-0.03292585909366608,
0.010304135270416737
] |
10,143 | pygments.formatters.html | get_background_style_defs | null | def get_background_style_defs(self, arg=None):
prefix = self.get_css_prefix(arg)
bg_color = self.style.background_color
hl_color = self.style.highlight_color
lines = []
if arg and not self.nobackground and bg_color is not None:
text_style = ''
if Text in self.ttype2class:
text_style = ' ' + self.class2style[self.ttype2class[Text]][0]
lines.insert(
0, '{}{{ background: {};{} }}'.format(
prefix(''), bg_color, text_style
)
)
if hl_color is not None:
lines.insert(
0, '{} {{ background-color: {} }}'.format(prefix('hll'), hl_color)
)
return lines
| (self, arg=None) | [
-0.04837851971387863,
-0.01737860217690468,
-0.026602700352668762,
-0.05492406338453293,
-0.021848954260349274,
0.04055311903357506,
-0.017241476103663445,
0.017442595213651657,
0.07554801553487778,
-0.03311167657375336,
-0.003437324892729521,
0.021720968186855316,
-0.016199307516217232,
-0.08381222188472748,
-0.04055311903357506,
-0.028138525784015656,
-0.03949267044663429,
-0.0031402157619595528,
0.01353903766721487,
-0.08600625395774841,
0.015879344195127487,
-0.00861616712063551,
0.050901662558317184,
0.02506687492132187,
0.04172327369451523,
-0.01980118453502655,
0.012158622965216637,
-0.029619501903653145,
0.018576180562376976,
0.010220556519925594,
0.009022978134453297,
-0.03486690670251846,
-0.08944357931613922,
0.0255971010774374,
0.023494482040405273,
-0.026456430554389954,
0.01733289286494255,
0.0021951799280941486,
-0.0027379754465073347,
-0.01930752769112587,
0.010211414657533169,
0.008799003437161446,
0.0495121069252491,
-0.018603606149554253,
0.010659364052116871,
-0.010531377978622913,
0.05477779358625412,
0.006079311482608318,
0.017131773754954338,
-0.0775226429104805,
0.03651243448257446,
-0.033605337142944336,
0.0002855390775948763,
-0.027498599141836166,
-0.03135644644498825,
-0.027992257848381996,
-0.054887495934963226,
0.025176577270030975,
0.03150271624326706,
0.03625646233558655,
0.013484186492860317,
0.00981831643730402,
0.06355394423007965,
-0.0006622106884606183,
0.025322845205664635,
0.018146514892578125,
0.014151539653539658,
-0.012972244992852211,
0.01595247909426689,
0.03455608710646629,
-0.0412113331258297,
0.021081039682030678,
0.008063086308538914,
-0.011948361061513424,
-0.00822306890040636,
0.0038007122930139303,
-0.003997261635959148,
0.027169493958353996,
0.023951571434736252,
0.0020157715771347284,
-0.03594564273953438,
0.09617196023464203,
0.013301350176334381,
0.05031658709049225,
0.09054060280323029,
-0.09127194434404373,
-0.06454125791788101,
0.06732037663459778,
0.03700609505176544,
-0.04636731743812561,
-0.025834787636995316,
0.004808598197996616,
-0.034738920629024506,
-0.0009821744170039892,
0.03163070231676102,
-0.05020688474178314,
-0.009224098175764084,
-0.02360418252646923,
-0.0009678903734311461,
-0.02060566656291485,
-0.030295995995402336,
0.015111430548131466,
0.03912699595093727,
-0.032782573252916336,
0.004376647062599659,
-0.04607478156685829,
-0.032106075435876846,
-0.0395658016204834,
-0.005955896805971861,
0.04468522220849991,
0.03512287884950638,
-0.024810902774333954,
0.059970349073410034,
-0.057191234081983566,
0.04940240457653999,
-0.028979573398828506,
-0.048268817365169525,
0.0011392994783818722,
-0.016830094158649445,
-0.021739251911640167,
-0.016784384846687317,
-0.05068225786089897,
0.04322253167629242,
0.05730093643069267,
-0.012259182520210743,
0.05218151584267616,
-0.0875420793890953,
0.030625101178884506,
0.03331279754638672,
-0.04212551191449165,
0.061798714101314545,
0.004721750970929861,
-0.05642332136631012,
-0.08520177751779556,
0.01310937199741602,
-0.04881732538342476,
0.02296425588428974,
0.02689523808658123,
0.05364421010017395,
-0.0247377697378397,
0.0610308013856411,
-0.014992587268352509,
-0.02323850989341736,
-0.03729863092303276,
-0.07485323399305344,
0.004351506941020489,
0.05229121819138527,
-0.019069839268922806,
-0.008337341248989105,
0.06040915474295616,
0.0076425629667937756,
0.03989490866661072,
-0.020916488021612167,
-0.011180447414517403,
-0.03813967853784561,
0.012725415639579296,
-0.02311052568256855,
-0.020331410691142082,
0.0239150058478117,
0.01665639877319336,
-0.010065145790576935,
-0.008392192423343658,
0.03283742442727089,
-0.03861505538225174,
0.05020688474178314,
0.10348542034626007,
-0.058690495789051056,
-0.06874649971723557,
0.021830670535564423,
-0.012579146772623062,
-0.04091879352927208,
-0.03146614879369736,
-0.0018055097898468375,
0.027590017765760422,
-0.001493545132689178,
0.0028111101128160954,
-0.02047768048942089,
0.06790544837713242,
-0.01542225293815136,
0.0775226429104805,
-0.007976239547133446,
-0.009900592267513275,
-0.01998402178287506,
-0.002087763510644436,
0.04336880147457123,
-0.015705648809671402,
0.051084499806165695,
-0.015129714272916317,
0.004136674106121063,
-0.016071321442723274,
0.025121726095676422,
-0.016500987112522125,
0.05060912296175957,
0.012112913653254509,
-0.004442925099283457,
-0.022671718150377274,
-0.016071321442723274,
0.015074864029884338,
-0.028778454288840294,
-0.02623702771961689,
0.013795008882880211,
-0.012487728148698807,
-0.03898072615265846,
0.01840248703956604,
0.025962773710489273,
-0.0054211001843214035,
0.016034753993153572,
-0.025944489985704422,
-0.09280776977539062,
0.032618019729852676,
-0.05744720622897148,
-0.026968372985720634,
-0.04801284521818161,
0.011902651749551296,
0.03916356340050697,
-0.035744521766901016,
-0.008958985097706318,
0.03748146817088127,
-0.04600164666771889,
-0.017369460314512253,
-0.03018629550933838,
-0.02013029158115387,
-0.04815911501646042,
-0.012076346203684807,
-0.00259627727791667,
-0.024865753948688507,
0.04570910707116127,
-0.008593312464654446,
0.0189601369202137,
-0.009544061496853828,
0.016528412699699402,
-0.014636056497693062,
0.014937736093997955,
0.030405698344111443,
0.010522236116230488,
0.031575851142406464,
0.023659033700823784,
-0.00026325590442866087,
0.026803821325302124,
0.008460755459964275,
0.015394827350974083,
0.07159874588251114,
0.09061373770236969,
-0.004262374248355627,
0.07309800386428833,
0.04194267839193344,
0.038176245987415314,
0.022214626893401146,
-0.01825621724128723,
0.006664387881755829,
-0.07781518250703812,
0.05459495633840561,
0.02493888884782791,
0.019252676516771317,
-0.05331510305404663,
-0.014325234107673168,
-0.02192208729684353,
-0.0009684617398306727,
0.00855217408388853,
-0.023640749976038933,
0.029436664655804634,
0.06454125791788101,
0.0792047381401062,
0.027169493958353996,
0.022507164627313614,
0.06505320221185684,
-0.03281914070248604,
0.015248558484017849,
-0.061140503734350204,
0.048597924411296844,
-0.0006930643576197326,
0.012825975194573402,
0.0028179665096104145,
0.0032704866025596857,
0.006892933510243893,
0.0185487549751997,
-0.018512189388275146,
0.028815021738409996,
-0.04344193637371063,
0.011445560492575169,
0.027663152664899826,
0.007692842744290829,
0.04058968648314476,
-0.028924724087119102,
0.04812254756689072,
-0.02621874399483204,
-0.000612502044532448,
-0.012560863047838211,
-0.01871330849826336,
-0.01559594739228487,
-0.00634899502620101,
0.004422356374561787,
-0.02621874399483204,
-0.02356761507689953,
0.05104793235659599,
0.03890759125351906,
0.05803228169679642,
0.02045939676463604,
-0.032782573252916336,
0.013795008882880211,
0.05013374984264374,
-0.055033765733242035,
0.0691853016614914,
-0.012661422602832317,
-0.05960467457771301,
-0.008149934001266956,
0.00426694517955184,
-0.007459726184606552,
-0.01766199991106987,
-0.06073826178908348,
-0.024829186499118805,
-0.009781748987734318,
0.04110163077712059,
-0.06991665065288544,
-0.05645988881587982,
-0.04044341668486595,
-0.04442925378680229,
0.011299291625618935,
-0.0031722120475023985,
0.018740734085440636,
-0.07540174573659897,
-0.010750781744718552,
0.01353903766721487,
-0.011262724176049232,
0.11284664273262024,
0.052583757787942886,
0.007107766345143318,
0.021062755957245827,
0.02045939676463604,
0.03236204758286476,
0.001578106894157827,
0.017936253920197487,
-0.016089605167508125,
0.023183658719062805,
0.025012023746967316,
-0.033733319491147995,
0.03316652774810791,
0.07006292045116425,
-0.030972491949796677,
-0.09324657917022705,
0.020715367048978806,
0.012103771790862083,
-0.0144440783187747,
-0.0017072351183742285,
0.022306043654680252,
0.023860154673457146,
-0.01469090674072504,
0.061798714101314545,
0.0072860317304730415,
0.020898204296827316,
0.023128807544708252,
-0.013721873983740807,
0.0016181024257093668,
0.0841778889298439,
0.08300773799419403,
0.026035906746983528,
-0.009516635909676552,
-0.03861505538225174,
0.03759117051959038,
0.035232581198215485,
0.0321243591606617,
-0.0024225825909525156,
0.021976938471198082,
0.027845988050103188,
-0.028741886839270592,
0.055180035531520844,
0.017735132947564125,
0.04384417459368706,
-0.040004611015319824,
0.0061295912601053715,
0.012442018836736679,
0.03660385310649872,
0.006742093246430159,
-0.08015549182891846,
-0.010339399799704552,
-0.0429299920797348,
0.011125597171485424,
-0.021154174581170082,
-0.004424641840159893,
-0.014069262892007828,
-0.013447619043290615,
-0.012003211304545403,
0.008035660721361637,
-0.03777400776743889,
-0.03675012290477753,
-0.030935924500226974,
-0.036731839179992676,
-0.027644868940114975,
0.016939794644713402,
-0.024664634838700294,
0.005091994535177946,
-0.02539598010480404,
0.031795255839824677,
-0.04720836505293846,
-0.005059998016804457,
-0.040479984134435654,
0.04753747209906578,
0.09295403957366943,
0.057154666632413864,
-0.03497660905122757,
-0.037353482097387314,
-0.04581880941987038,
0.007395733613520861,
-0.04091879352927208,
-0.0321974940598011,
-0.05803228169679642,
0.016830094158649445,
0.033257946372032166,
0.03609191253781319,
0.02738889679312706,
-0.003882988588884473,
-0.050901662558317184,
-0.02524971030652523,
0.008250493556261063,
-0.011884368024766445,
0.02376873604953289,
-0.012039778754115105,
0.0363113135099411,
-0.04702553153038025,
-0.022178059443831444,
-0.014151539653539658,
-0.02179410308599472,
0.060957666486501694,
0.08461669832468033,
0.023640749976038933,
0.039858341217041016,
-0.06538230925798416,
0.01595247909426689,
-0.03413556143641472,
-0.04058968648314476,
-0.002269457094371319,
0.022872837260365486,
0.0020294843707233667,
-0.008479039184749126,
0.00436979066580534,
-0.008565886877477169,
0.011948361061513424,
0.011299291625618935,
0.027955690398812294,
-0.04984121024608612,
-0.0016718106344342232,
-0.021081039682030678,
-0.02442694641649723,
0.07148904353380203,
0.0011524409055709839,
-0.031575851142406464,
-0.003713865065947175,
-0.011198731139302254,
-0.0001785511994967237,
-0.012579146772623062,
-0.10180332511663437,
0.01352075394243002,
0.017470020800828934,
0.003766430541872978,
0.023951571434736252,
-0.022306043654680252,
0.005028001964092255,
0.013941277749836445,
-0.018393345177173615,
-0.04757403954863548,
0.10019436478614807,
0.04007774591445923,
0.0045320577919483185,
0.033404216170310974,
-0.03005830943584442,
-0.026291878893971443,
0.0370975099503994,
-0.005581081844866276,
-0.049438972026109695,
-0.0185853224247694,
-0.01945379562675953,
-0.027352329343557358,
-0.06808828562498093,
-0.08505550771951675,
-0.024719486013054848,
0.021666117012500763,
0.02263515070080757,
-0.0006307857111096382,
-0.04091879352927208,
0.00807222817093134,
0.02442694641649723,
-0.04541656747460365,
-0.016564980149269104,
0.014828034676611423,
-0.029418380931019783,
-0.007765977177768946,
-0.009608054533600807,
-0.037225496023893356,
0.012707131914794445,
-0.06337110698223114,
0.003201922867447138,
-0.03781057521700859,
-0.06585767865180969,
0.032270628958940506,
0.041174765676259995,
-0.020514247938990593,
0.03420869633555412,
0.006403845734894276,
-0.013712732121348381,
-0.02625531144440174,
0.05349794030189514,
-0.02956465072929859,
-0.05697183310985565,
0.10107197612524033,
0.024298962205648422,
-0.059824079275131226,
0.03700609505176544,
0.04106506332755089,
0.015577663667500019,
0.02098962292075157,
-0.0029276683926582336,
0.05229121819138527,
0.0038029977586120367,
-0.0020866207778453827,
-0.042820293456315994,
-0.0028179665096104145,
-0.02097133919596672,
-0.007555715274065733,
0.001510686008259654,
0.07233009487390518,
0.011920935474336147,
0.0247377697378397,
0.0028591046575456858,
0.0015095432754606009,
-0.00226145819760859,
0.06223751977086067,
0.010668505914509296,
-0.0077156974002718925,
-0.011710673570632935,
-0.019709767773747444,
0.011354141868650913,
-0.023988138884305954,
0.011299291625618935,
-0.035232581198215485,
-0.029637785628437996,
0.0008947557653300464,
0.016711249947547913,
-0.03813967853784561,
0.02539598010480404,
-0.05214494839310646,
0.0412113331258297,
0.004644045140594244,
-0.0026968372985720634,
0.012067204341292381,
-0.02175753563642502,
-0.01688494347035885,
0.04640388488769531,
-0.023384779691696167,
-0.028668751940131187,
0.028010541573166847,
0.05572854354977608,
-0.045635972172021866,
-0.027809420600533485,
0.012880826368927956,
-0.041028495877981186,
-0.0032247775234282017,
-0.024993740022182465,
0.007743122987449169,
0.0006787802558392286,
0.009516635909676552,
0.055180035531520844,
-0.009342941455543041,
-0.04274715855717659,
0.006472409702837467,
-0.08169131726026535,
-0.00580962747335434,
-0.006774089764803648,
0.05145017057657242,
-0.04856135696172714,
0.0018626460805535316,
-0.014764041639864445,
-0.046769559383392334,
0.019270960241556168,
-0.006600395310670137,
-0.019106406718492508,
0.000027889696866623126,
-0.02539598010480404,
-0.04980464279651642,
0.001452406868338585,
-0.022653434425592422,
-0.0042829434387385845,
-0.023019107058644295,
-0.001195293152704835,
-0.04574567452073097,
-0.004740034230053425,
0.042015813291072845,
-0.047793444246053696,
0.03806654363870621,
-0.020221708342432976,
-0.022580299526453018,
0.021428430452942848,
0.08191072195768356,
0.0379202738404274,
-0.03398929163813591,
-0.03430011495947838,
0.04055311903357506,
0.06951440870761871,
-0.04527030140161514,
-0.09251523017883301,
-0.005311398301273584,
-0.012295749969780445,
0.07002635300159454,
-0.004968579858541489,
0.006755806040018797,
0.00809051189571619,
-0.003451037686318159,
0.0973421186208725,
-0.08571372181177139,
-0.009882309474050999,
-0.03611019626259804,
-0.0395658016204834,
0.0064861224964261055,
-0.009470927529036999,
-0.00408639432862401,
-0.043990444391965866,
0.012725415639579296,
-0.025542249903082848,
0.03742661699652672,
0.00021668973204214126,
-0.03086278960108757,
0.018429912626743317,
0.0051971254870295525,
0.009347512386739254,
0.01469090674072504,
0.06991665065288544,
0.030076593160629272,
-0.04015088081359863,
-0.03214264288544655,
-0.015979904681444168,
-0.01945379562675953,
0.03828594833612442,
0.05360764265060425,
0.01146384421736002,
0.013145939446985722,
0.012707131914794445,
0.05196211487054825,
0.016848377883434296,
-0.05671586096286774,
-0.021209025755524635,
-0.04600164666771889,
-0.02274485118687153,
-0.00290481373667717,
0.002687695436179638,
-0.010613654740154743,
0.018887003883719444,
0.007619708310812712,
-0.0044292123056948185,
-0.023640749976038933,
0.012972244992852211,
-0.03186839073896408,
0.0346657857298851,
0.031429581344127655,
0.0007650561747141182,
0.00973603967577219,
-0.03843221813440323,
0.05477779358625412,
-0.043661341071128845,
-0.021903803572058678,
-0.002564280992373824,
-0.011820374988019466,
0.0024980027228593826,
0.06187184900045395,
-0.04486805945634842,
0.020258275792002678,
-0.06724724173545837,
-0.0009884594473987818,
0.04720836505293846,
0.0044589233584702015,
0.026456430554389954,
0.04574567452073097,
-0.040041178464889526,
0.0010387394577264786,
-0.07280546426773071,
-0.0020751934498548508,
-0.02311052568256855,
0.003965265117585659,
0.02956465072929859,
-0.007665417157113552,
0.07986295223236084,
-0.023640749976038933,
-0.03018629550933838,
-0.03547026589512825,
-0.03748146817088127,
0.010284549556672573,
0.04665985703468323,
0.05390017852187157,
-0.01747916266322136,
-0.028778454288840294,
0.013182506896555424,
0.03989490866661072,
-0.07031889259815216,
0.031429581344127655,
0.04344193637371063,
0.021081039682030678,
0.03695124387741089,
0.01747916266322136,
-0.048268817365169525,
-0.0775957778096199,
0.016199307516217232,
-0.007318028248846531,
0.0048268819227814674,
-0.0076242792420089245,
-0.04146730154752731,
0.022982539609074593,
0.0337698869407177,
0.007912246510386467,
0.051925547420978546,
0.011500411666929722,
-0.030076593160629272,
0.027516882866621017,
-0.04772030934691429,
0.05049942061305046,
0.05656959116458893,
0.02027655951678753,
-0.04410014674067497,
-0.03744490072131157,
0.06209124997258186,
-0.010046862065792084,
-0.01998402178287506,
-0.010787349194288254,
-0.02835793048143387,
0.0791316032409668,
0.01683923602104187,
-0.012341459281742573,
0.019380660727620125,
0.005187983624637127,
-0.0026168464682996273,
-0.020660515874624252,
-0.06695470213890076,
-0.008209356106817722,
0.03146614879369736,
0.02822994440793991,
-0.004660043399780989,
0.016089605167508125,
-0.0003633874002844095,
0.0010570230660960078,
0.05145017057657242,
0.013072804547846317,
-0.05166957527399063,
-0.043295666575431824,
-0.019051555544137955,
-0.03876132145524025,
0.0015632514841854572,
0.07562115043401718,
0.00008898991654859856,
0.009196672588586807,
0.05730093643069267,
-0.0022157488856464624,
0.025048591196537018,
0.03296540677547455,
0.015394827350974083,
0.02358589880168438,
-0.006051885895431042,
0.022653434425592422,
-0.004486348945647478,
-0.01930752769112587,
0.005046285688877106,
-0.03402585908770561,
0.009100683033466339,
0.010119996033608913,
-0.014882885850965977,
0.0006844938616268337,
-0.0032476321794092655,
0.06406588852405548,
0.056021083146333694,
-0.016702108085155487,
-0.01914297416806221,
0.0247377697378397
] |
10,144 | pygments.formatters.html | get_css_prefix | null | def get_css_prefix(self, arg):
if arg is None:
arg = ('cssclass' in self.options and '.'+self.cssclass or '')
if isinstance(arg, str):
args = [arg]
else:
args = list(arg)
def prefix(cls):
if cls:
cls = '.' + cls
tmp = []
for arg in args:
tmp.append((arg and arg + ' ' or '') + cls)
return ', '.join(tmp)
return prefix
| (self, arg) | [
-0.029756680130958557,
0.0001280670694541186,
0.045286498963832855,
-0.013742656446993351,
0.01820615865290165,
-0.016022827476263046,
0.01200831774622202,
0.024421608075499535,
0.11437834054231644,
-0.04757547378540039,
0.021850911900401115,
0.02996797114610672,
0.011946691200137138,
-0.008200694806873798,
-0.012474915944039822,
-0.06814103573560715,
0.04155370965600014,
-0.03319014236330986,
-0.02408706396818161,
0.013821890577673912,
0.07018350809812546,
0.077825166285038,
0.05335073545575142,
0.010634931735694408,
0.0019951502326875925,
0.03452831506729126,
0.04627251997590065,
0.01398035790771246,
-0.032116085290908813,
-0.04546257480978966,
0.013425721786916256,
0.012545346282422543,
-0.0628235712647438,
-0.0029118407983332872,
0.044546984136104584,
0.0015923785977065563,
0.02926367148756981,
0.02153397724032402,
-0.019033711403608322,
-0.03586648404598236,
0.010150725953280926,
-0.011541718617081642,
-0.0215515848249197,
-0.03470439091324806,
0.021111397072672844,
0.025900637730956078,
0.0293164923787117,
0.03306689113378525,
-0.049794018268585205,
-0.040638118982315063,
0.041976287961006165,
-0.02410467155277729,
-0.00019065625383518636,
-0.05975986644625664,
-0.03771527111530304,
0.06201362609863281,
-0.024227924644947052,
0.018593523651361465,
-0.017457839101552963,
0.08233268558979034,
-0.0029118407983332872,
0.014191647991538048,
0.05592143163084984,
-0.007795722223818302,
-0.00024114026746246964,
-0.03528543561697006,
-0.015829145908355713,
0.02334754914045334,
-0.006748075596988201,
0.0025750973727554083,
0.02009016089141369,
-0.0010234360815957189,
-0.009939435869455338,
-0.03135896474123001,
0.009261546656489372,
-0.03174632787704468,
-0.03002079389989376,
0.0012127168010920286,
0.008843368850648403,
-0.0009975751163437963,
-0.013901123777031898,
-0.005084166768938303,
0.010881436988711357,
-0.00285461638122797,
0.10247567296028137,
-0.049124933779239655,
-0.06289400160312653,
-0.0035259025171399117,
-0.06761281192302704,
-0.006809702143073082,
-0.06768324226140976,
-0.00522942841053009,
0.03912387415766716,
0.014895947650074959,
-0.027115555480122566,
-0.007421562913805246,
-0.006668841931968927,
-0.034933287650346756,
0.018628738820552826,
-0.003952884580940008,
0.0253900196403265,
0.03380640596151352,
0.039299946278333664,
-0.00793658196926117,
0.011541718617081642,
-0.0649716854095459,
-0.05722438544034958,
0.010177137330174446,
-0.0005117180407978594,
0.0299855787307024,
-0.0015648668631911278,
-0.06243620812892914,
0.018734384328126907,
-0.04222279414534569,
0.04958273097872734,
-0.04229322448372841,
-0.038806937634944916,
0.0235588401556015,
-0.008130264468491077,
0.006862524431198835,
-0.0035721221938729286,
0.015899576246738434,
0.023893382400274277,
0.008706910535693169,
-0.007386347744613886,
0.019245000556111336,
-0.04613165929913521,
0.04567386209964752,
0.029809502884745598,
-0.004058529622852802,
0.05394938960671425,
0.000008386777153646108,
-0.03461635112762451,
-0.0728246346116066,
0.09444665163755417,
0.02081206813454628,
0.009164705872535706,
0.04356096312403679,
-0.014253273606300354,
0.09416493028402328,
0.07039479911327362,
0.0017398414202034473,
-0.03003840148448944,
-0.017457839101552963,
-0.06581684947013855,
0.017220137640833855,
0.02683383598923683,
0.0149927893653512,
0.02609431929886341,
0.04673031345009804,
-0.053738102316856384,
0.0022394543047994375,
0.04352574795484543,
0.041976287961006165,
-0.0214635469019413,
0.007139842491596937,
-0.044546984136104584,
-0.03134135529398918,
0.04613165929913521,
-0.032855600118637085,
0.026446470990777016,
-0.03139417991042137,
-0.01802127994596958,
-0.04419483244419098,
0.06807060539722443,
0.02667536772787571,
-0.032274555414915085,
0.010582109913229942,
-0.003539108205586672,
-0.018523093312978745,
0.04387789964675903,
-0.041448064148426056,
0.039299946278333664,
0.038666076958179474,
-0.02935170754790306,
0.034774817526340485,
-0.0456034354865551,
0.041412848979234695,
0.0160844549536705,
0.050780039280653,
0.01827658899128437,
0.0036667624954134226,
-0.0035126968286931515,
-0.011541718617081642,
0.04352574795484543,
-0.00026383742806501687,
0.0881783738732338,
-0.00600415887311101,
0.022924968972802162,
-0.013144001364707947,
0.015899576246738434,
0.01961475796997547,
-0.021375508978962898,
0.029193241149187088,
0.003002079436555505,
-0.05472411960363388,
0.009886613115668297,
-0.021921342238783836,
0.017818793654441833,
0.012122766114771366,
-0.017000043764710426,
0.07046522945165634,
-0.024527251720428467,
0.035443905740976334,
0.07557140290737152,
0.0029008362907916307,
0.04172978177666664,
-0.018435055390000343,
-0.07261334359645844,
0.010863829404115677,
-0.009640107862651348,
-0.03009122423827648,
-0.020495133474469185,
0.01692081056535244,
0.004820053931325674,
-0.01401557307690382,
0.05722438544034958,
0.03912387415766716,
-0.045286498963832855,
-0.01301194541156292,
0.015186471864581108,
0.002753373235464096,
0.029703857377171516,
0.031535036861896515,
-0.014297292567789555,
-0.042574942111968994,
0.030232083052396774,
0.01072296965867281,
-0.004520726390182972,
0.006083392538130283,
0.006435542367398739,
-0.03405291214585304,
0.03241541236639023,
0.05521713197231293,
0.004533932078629732,
-0.008821358904242516,
0.013161608949303627,
0.0352502204477787,
0.02030145190656185,
-0.006167028099298477,
-0.03687011078000069,
0.04123677313327789,
0.08021978288888931,
0.002219646004959941,
0.08909396827220917,
0.03269713371992111,
-0.01952672190964222,
0.007315917871892452,
-0.02924606390297413,
0.0559566468000412,
-0.07240205258131027,
0.06652114540338516,
0.014596620574593544,
-0.027749424800276756,
-0.036201026290655136,
0.01818855106830597,
-0.08007892221212387,
0.024580074474215508,
-0.02804875373840332,
-0.0059205228462815285,
-0.02996797114610672,
-0.02026623673737049,
0.07180339843034744,
-0.03149982541799545,
0.025812599807977676,
0.037503983825445175,
-0.003400449175387621,
0.02854176238179207,
-0.043913114815950394,
0.0686340481042862,
-0.007940984331071377,
0.0022042393684387207,
0.020583171397447586,
0.07726172357797623,
-0.0011554923839867115,
-0.037574414163827896,
-0.06810582429170609,
0.023770129308104515,
-0.06049938127398491,
-0.010960671119391918,
-0.005009334534406662,
-0.013249645940959454,
-0.03005600906908512,
-0.040109891444444656,
-0.03378880023956299,
-0.0012688407441601157,
0.027784639969468117,
0.01501920074224472,
0.006056981161236763,
0.05331552028656006,
-0.01268620602786541,
-0.005854494869709015,
-0.03447549045085907,
-0.014561405405402184,
-0.010326800867915154,
-0.004192786756902933,
0.021058574318885803,
-0.0005293255671858788,
-0.00971934199333191,
0.04046204313635826,
-0.0002910740440711379,
0.009692930616438389,
-0.07240205258131027,
-0.029897540807724,
-0.021005751565098763,
0.02551327273249626,
-0.01267740223556757,
0.007804526016116142,
0.008790546096861362,
0.033489473164081573,
-0.03736312314867973,
-0.01755468174815178,
-0.04099026694893837,
-0.03831392899155617,
-0.006369514390826225,
0.0318167582154274,
-0.06835232675075531,
0.031605467200279236,
0.01072296965867281,
0.0674719512462616,
-0.039476022124290466,
0.0008666192879900336,
-0.038173068314790726,
0.019280215725302696,
-0.013425721786916256,
0.04123677313327789,
-0.04894885793328285,
0.07521925121545792,
0.024914616718888283,
-0.014218059368431568,
-0.015133649110794067,
-0.01894567348062992,
-0.06458432227373123,
-0.006299084518104792,
-0.0075536188669502735,
-0.045286498963832855,
0.07240205258131027,
0.01961475796997547,
-0.03308450058102608,
-0.01957954466342926,
0.07874075323343277,
0.03982817381620407,
-0.06852840632200241,
0.03736312314867973,
-0.03440506011247635,
0.030918775126338005,
0.006087794434279203,
0.041412848979234695,
0.051801275461912155,
-0.02683383598923683,
0.009684126824140549,
-0.03760962560772896,
0.04236365482211113,
0.017431428655982018,
0.12945036590099335,
0.0318167582154274,
-0.0075184041634202,
-0.025618918240070343,
0.025812599807977676,
0.023981420323252678,
0.019755618646740913,
-0.03209847956895828,
0.05380852892994881,
0.004038721323013306,
-0.004351254086941481,
0.04606122896075249,
-0.009807378984987736,
0.007219076622277498,
0.010934259742498398,
-0.01201712153851986,
0.0016308949561789632,
0.0178275965154171,
-0.0027401677798479795,
-0.10832136124372482,
-0.05197735130786896,
0.07331764698028564,
0.005475933663547039,
0.004058529622852802,
-0.02014298364520073,
-0.07874075323343277,
-0.016753539443016052,
-0.004487712401896715,
0.04511042311787605,
0.019949302077293396,
-0.030883561819791794,
0.015195275656878948,
-0.028277650475502014,
-0.017721952870488167,
0.04021553695201874,
0.03468678146600723,
-0.006074588745832443,
-0.01735219545662403,
0.045321714133024216,
-0.06307007372379303,
-0.04363139346241951,
-0.04165935143828392,
0.004982923623174429,
-0.006466355640441179,
0.027872677892446518,
-0.06895098090171814,
0.013540170155465603,
-0.08247354626655579,
0.036095380783081055,
0.071662537753582,
-0.008632078766822815,
0.003688771976158023,
0.0035259025171399117,
0.002504667267203331,
-0.004586754832416773,
0.02866501547396183,
-0.0547945499420166,
-0.03269713371992111,
-0.013839498162269592,
-0.008847770281136036,
0.014420545659959316,
0.011929083615541458,
-0.04757547378540039,
-0.009692930616438389,
-0.0026213170494884253,
-0.009657715447247028,
-0.04880800098180771,
-0.010643735527992249,
0.05458325892686844,
0.0457795076072216,
0.038137853145599365,
-0.012580561451613903,
0.004538333974778652,
-0.04813891276717186,
0.012510131113231182,
0.026974694803357124,
-0.05032224580645561,
0.033542294055223465,
-0.025196338072419167,
-0.03139417991042137,
0.020724032074213028,
-0.028242435306310654,
-0.013460936024785042,
0.04838541895151138,
0.00971934199333191,
-0.05292815715074539,
0.002019360661506653,
-0.02151636965572834,
-0.011797027662396431,
0.07486710697412491,
-0.019033711403608322,
-0.015565033070743084,
-0.029052380472421646,
-0.023241903632879257,
-0.029510175809264183,
-0.02604149840772152,
-0.03451070562005043,
0.03711661696434021,
-0.04236365482211113,
0.003400449175387621,
0.09148858487606049,
-0.06761281192302704,
-0.0628235712647438,
-0.0012171186972409487,
-0.03672925382852554,
-0.033647939562797546,
0.01200831774622202,
0.015512210316956043,
0.045920368283987045,
0.014385330490767956,
-0.08324827253818512,
0.03517979010939598,
0.04419483244419098,
0.056344009935855865,
-0.055005840957164764,
-0.026516899466514587,
-0.012202000245451927,
-0.042680587619543076,
-0.055604495108127594,
-0.011383251287043095,
-0.015230490826070309,
0.04958273097872734,
-0.023840559646487236,
0.03512696921825409,
0.008174283429980278,
-0.001132382545620203,
-0.027080340310931206,
-0.016586268320679665,
0.03697575628757477,
0.02935170754790306,
-0.019790833815932274,
0.004687997978180647,
0.003930875100195408,
-0.005396699998527765,
0.016709521412849426,
-0.02679862082004547,
-0.000047251385694835335,
0.057576537132263184,
-0.07000743597745895,
0.0001788262015907094,
0.04866714030504227,
0.02012537606060505,
0.006431140471249819,
0.037433553487062454,
-0.07676871865987778,
0.0189632810652256,
0.030267298221588135,
-0.06905663013458252,
-0.008249115198850632,
0.049265794456005096,
0.03461635112762451,
-0.0352502204477787,
-0.04683595895767212,
0.05588621646165848,
-0.010626127943396568,
-0.0260591059923172,
-0.030883561819791794,
-0.002225148258730769,
-0.008689302951097488,
0.014631835743784904,
0.020389489829540253,
-0.005150194745510817,
-0.060217659920454025,
0.027185985818505287,
0.004586754832416773,
0.03697575628757477,
0.015230490826070309,
0.017343390733003616,
-0.014314900152385235,
0.058949921280145645,
-0.042117148637771606,
0.05525234714150429,
0.03690532594919205,
-0.009957043454051018,
-0.019174572080373764,
0.013434525579214096,
-0.034880463033914566,
0.00840758252888918,
-0.007764908950775862,
0.02278411015868187,
-0.0337359756231308,
0.03651796281337738,
-0.04968837648630142,
-0.021093789488077164,
0.06708458811044693,
-0.033489473164081573,
0.07219076156616211,
0.008398778736591339,
0.03764484077692032,
-0.021146612241864204,
-0.014763891696929932,
0.05028703063726425,
-0.025847814977169037,
0.0364123173058033,
0.01080220378935337,
0.020988143980503082,
-0.022379137575626373,
-0.05148433893918991,
-0.02734445221722126,
0.004511922597885132,
-0.016779949888586998,
-0.01961475796997547,
-0.03581366315484047,
-0.009869005531072617,
0.003959487192332745,
0.043948329985141754,
0.014367722906172276,
-0.02678101323544979,
0.03760962560772896,
0.001228123321197927,
-0.03922951593995094,
-0.057611752301454544,
-0.011110334657132626,
0.0077208904549479485,
0.014543797820806503,
0.008680499158799648,
-0.013038355857133865,
-0.012545346282422543,
-0.048420634120702744,
0.007861750200390816,
-0.059020351618528366,
0.03405291214585304,
0.03065466322004795,
-0.0094376215711236,
0.041377633810043335,
-0.022660857066512108,
0.0007043001241981983,
-0.005172204226255417,
-0.003856043331325054,
-0.01767793297767639,
-0.045885153114795685,
-0.010987082496285439,
-0.06905663013458252,
-0.033595114946365356,
-0.04035639762878418,
-0.048491064459085464,
0.005401101894676685,
0.05099133029580116,
0.025918245315551758,
-0.008319545537233353,
-0.001035541296005249,
0.013117589987814426,
0.028981950134038925,
-0.022537603974342346,
-0.0045647453516721725,
-0.017149709165096283,
-0.011576933786273003,
0.030320120975375175,
0.024333570152521133,
0.06807060539722443,
0.010150725953280926,
-0.03250345215201378,
0.01080220378935337,
0.0042654178105294704,
-0.01729937270283699,
0.005194213707000017,
-0.013531366363167763,
0.017942046746611595,
0.01618129573762417,
0.048491064459085464,
-0.051202621310949326,
-0.024404000490903854,
-0.010529287159442902,
-0.0584569126367569,
-0.02348840981721878,
-0.014288488775491714,
-0.077825166285038,
0.030989205464720726,
0.006734869908541441,
-0.0010025271913036704,
0.007153048180043697,
0.027608565986156464,
0.004313838202506304,
-0.03965209797024727,
0.03715183213353157,
-0.08191010355949402,
0.005665214266628027,
0.0075536188669502735,
0.03972252830862999,
-0.06789453327655792,
-0.03975774347782135,
0.03989860415458679,
-0.0536324568092823,
0.01949150674045086,
-0.07705043256282806,
-0.07930419594049454,
-0.0006712860777042806,
0.016718324273824692,
-0.05644965544342995,
-0.03056662529706955,
0.0019049118272960186,
-0.057048309594392776,
-0.014851928688585758,
-0.01504561211913824,
0.0004500918148551136,
-0.041271988302469254,
0.03634188696742058,
0.0040981462225317955,
-0.011233586817979813,
0.02928127907216549,
0.0032089673914015293,
0.006312290206551552,
0.007280702702701092,
0.04056768864393234,
0.01961475796997547,
-0.02417510189116001,
0.022519996389746666,
-0.01817094348371029,
0.050427891314029694,
0.005295456852763891,
-0.02996797114610672,
-0.021164219826459885,
0.03400008752942085,
-0.04317359998822212,
-0.0034246593713760376,
0.0015692687593400478,
-0.05430154129862785,
0.03778570145368576,
-0.0808536559343338,
-0.08761493861675262,
-0.039299946278333664,
-0.0522942841053009,
0.03993381932377815,
-0.040778979659080505,
0.0599711574614048,
-0.04285666346549988,
-0.016471819952130318,
-0.06659157574176788,
-0.03796177729964256,
-0.008337153121829033,
0.06768324226140976,
0.011013492941856384,
0.026340825483202934,
-0.03665882349014282,
0.02679862082004547,
-0.015767518430948257,
-0.07479667663574219,
0.027661388739943504,
0.011242390610277653,
0.029809502884745598,
0.012140373699367046,
0.022379137575626373,
-0.05204778164625168,
-0.0026345227379351854,
0.02086489088833332,
-0.04546257480978966,
0.03320775181055069,
0.020054945722222328,
-0.022519996389746666,
0.04169456660747528,
0.022414352744817734,
0.015177668072283268,
0.083529993891716,
-0.02662254497408867,
0.022942576557397842,
0.07409237325191498,
0.0022317511029541492,
0.040638118982315063,
0.04623730480670929,
0.05225906893610954,
-0.03116528131067753,
-0.052364714443683624,
0.04419483244419098,
0.009138294495642185,
-0.009701734408736229,
0.010872633196413517,
0.0029954765923321247,
0.02403424307703972,
0.0339120514690876,
0.02465050481259823,
-0.012334056198596954,
-0.024897009134292603,
0.021657228469848633,
-0.0011158755514770746,
-0.05482976511120796,
-0.015292116440832615,
-0.034757211804389954,
0.022396745160222054,
-0.011066315695643425,
0.010291585698723793,
0.035461511462926865,
-0.011304017156362534,
0.011057511903345585,
-0.015565033070743084,
-0.026886656880378723,
0.034158557653427124,
-0.08014935255050659,
-0.013821890577673912,
0.030953990295529366,
0.036201026290655136,
0.006074588745832443,
-0.002119503216817975,
0.04366660863161087,
0.011392055079340935,
0.041448064148426056,
0.008235909976065159,
0.022009380161762238,
-0.004894886165857315,
-0.018435055390000343,
-0.016110865399241447,
0.021217040717601776,
-0.0785294622182846,
-0.017167316749691963,
-0.033559899777173996,
-0.00978977233171463,
-0.04123677313327789,
-0.0057312422432005405,
-0.02336515672504902,
0.01702645607292652,
0.004489913582801819,
0.08944611996412277,
0.005762055516242981,
0.0293164923787117,
-0.011242390610277653
] |
10,145 | pygments.formatters.html | get_linenos_style_defs | null | def get_linenos_style_defs(self):
lines = [
f'pre {{ {self._pre_style} }}',
f'td.linenos .normal {{ {self._linenos_style} }}',
f'span.linenos {{ {self._linenos_style} }}',
f'td.linenos .special {{ {self._linenos_special_style} }}',
f'span.linenos.special {{ {self._linenos_special_style} }}',
]
return lines
| (self) | [
-0.04524851217865944,
-0.02423269860446453,
0.029747361317276955,
0.001692400430329144,
-0.005983055103570223,
-0.03174465894699097,
-0.012726143933832645,
0.015076945535838604,
0.009765547700226307,
0.06762531399726868,
-0.025045758113265038,
-0.008479677140712738,
-0.003835518378764391,
-0.006159807089716196,
-0.01796684041619301,
-0.0033052624203264713,
-0.04135996848344803,
-0.0662820041179657,
0.024745279923081398,
-0.0434102900326252,
0.007821275852620602,
0.03423686325550079,
0.05624248832464218,
-0.05415681377053261,
0.02743191085755825,
0.04676857963204384,
-0.02066230960190296,
-0.01043720543384552,
0.020856736227869987,
-0.08696198463439941,
-0.02826264500617981,
0.013035460375249386,
-0.012284263968467712,
-0.03778957948088646,
0.03003016486763954,
-0.03292889893054962,
-0.0029826899990439415,
0.002538600703701377,
0.01735704578459263,
0.005306978709995747,
0.03289354592561722,
0.042314428836107254,
0.010543256998062134,
0.008232224732637405,
-0.05857561528682709,
-0.02004367671906948,
0.004237629473209381,
-0.010525581426918507,
0.023755468428134918,
0.000003111284058832098,
0.03740072250366211,
-0.029588285833597183,
-0.006765183061361313,
-0.04843004792928696,
-0.009288317523896694,
-0.03307029977440834,
-0.027555637061595917,
0.0071275243535637856,
-0.0013190117897465825,
-0.025558339431881905,
-0.013919220305979252,
0.05758580192923546,
0.03909754380583763,
-0.029287807643413544,
0.020450206473469734,
-0.015324398875236511,
0.02980038709938526,
0.030666472390294075,
0.04383449628949165,
0.07656896859407425,
-0.038602638989686966,
0.0021110817324370146,
0.00038001680513843894,
-0.015138808637857437,
-0.00260046380572021,
0.011833546683192253,
-0.024939708411693573,
-0.007852207869291306,
0.02446247637271881,
-0.04196092486381531,
-0.034943871200084686,
0.058328159153461456,
0.01578395441174507,
0.07663966715335846,
0.08441675454378128,
-0.061156194657087326,
0.03444896638393402,
0.0525660440325737,
0.04701603204011917,
-0.015660228207707405,
-0.07183201611042023,
0.07727597653865814,
-0.03483781963586807,
-0.04153672233223915,
-0.018152430653572083,
-0.020626958459615707,
-0.0044983383268117905,
0.00023088230227585882,
0.04068830981850624,
-0.005536756478250027,
0.032416317611932755,
0.04432940110564232,
0.01577511616051197,
0.0004189574683550745,
0.005178833846002817,
-0.004224373027682304,
-0.029234781861305237,
0.029747361317276955,
0.006977285258471966,
0.014856006018817425,
0.004239838570356369,
-0.025204835459589958,
0.035527151077985764,
-0.008015703409910202,
0.024020597338676453,
-0.015554176643490791,
-0.03998130187392235,
0.019248293712735176,
-0.012575904838740826,
0.008011284284293652,
-0.07331673055887222,
-0.030136216431856155,
-0.011700982227921486,
-0.0032478179782629013,
-0.05083387717604637,
0.004248676355928183,
-0.04372844472527504,
0.05373260751366615,
0.04828864708542824,
-0.06087338924407959,
0.053909361362457275,
0.025646716356277466,
0.011373991146683693,
-0.022659607231616974,
-0.033176351338624954,
-0.0312497541308403,
-0.019389694556593895,
0.03602205961942673,
0.027537962421774864,
0.02941153384745121,
0.0012891849037259817,
-0.02453317865729332,
-0.045142460614442825,
-0.0441880002617836,
-0.10796011984348297,
0.0624995082616806,
0.03595135733485222,
0.03856728598475456,
-0.006292371079325676,
0.049950115382671356,
0.04595552012324333,
-0.005832816008478403,
0.009058539755642414,
0.017268670722842216,
-0.013733630999922752,
0.008126173168420792,
-0.016817953437566757,
-0.0792555958032608,
0.05327305197715759,
0.043092139065265656,
-0.005572106689214706,
-0.012275426648557186,
0.052000440657138824,
-0.04782909154891968,
0.0045182229951024055,
0.06684760749340057,
-0.06652945280075073,
-0.0952339768409729,
0.055570829659700394,
0.014440638944506645,
0.012726143933832645,
-0.005377679597586393,
0.039274293929338455,
0.017542636021971703,
0.014529014937579632,
-0.0005689205136150122,
-0.035315051674842834,
0.06377211958169937,
-0.062428805977106094,
0.02315451204776764,
-0.007556147873401642,
0.013194536790251732,
-0.003888544160872698,
0.021440017968416214,
0.015191834419965744,
0.013875031843781471,
0.0022060859482735395,
-0.06836767494678497,
-0.03711792081594467,
-0.032345615327358246,
0.02538158744573593,
0.027184458449482918,
0.03938034549355507,
-0.015536501072347164,
-0.03566855564713478,
0.014202023856341839,
0.0058107222430408,
-0.02621232159435749,
-0.05468706786632538,
-0.07063010334968567,
-0.020079027861356735,
0.08215433359146118,
-0.04934915900230408,
0.04920775815844536,
-0.014838330447673798,
0.025858817622065544,
-0.010693496093153954,
-0.007472191005945206,
-0.044612206518650055,
0.06338326632976532,
0.0009583272621966898,
-0.015483475290238857,
-0.03466106951236725,
0.01721564494073391,
0.04058225825428963,
-0.01660585030913353,
-0.0441880002617836,
0.09792061150074005,
-0.07550845295190811,
0.0012085417984053493,
-0.015112295746803284,
-0.05274279788136482,
0.022747982293367386,
-0.010083701461553574,
-0.019566446542739868,
0.015377424657344818,
0.05889376625418663,
-0.03526202589273453,
0.04100646451115608,
0.03672906756401062,
-0.04616762325167656,
0.011055837385356426,
-0.05380330979824066,
0.01279684528708458,
-0.004356937017291784,
0.013468503020703793,
-0.006482379510998726,
-0.012770332396030426,
-0.01599605567753315,
-0.0009229768766090274,
-0.023896871134638786,
0.023790819570422173,
0.06695365905761719,
-0.04701603204011917,
0.052990250289440155,
0.03388335928320885,
0.026318373158574104,
0.0236140675842762,
-0.014608552679419518,
0.038107730448246,
-0.0220940001308918,
-0.02460387907922268,
0.05366190895438194,
0.032646093517541885,
0.0011997042456641793,
-0.02706073224544525,
-0.048642151057720184,
0.0018481630831956863,
0.014131322503089905,
-0.042314428836107254,
0.01758682355284691,
0.03778957948088646,
-0.00014416335034184158,
-0.0002220447058789432,
0.040264107286930084,
-0.008943650871515274,
-0.029128730297088623,
0.0010831584222614765,
-0.007392652332782745,
0.02612394653260708,
0.08420465141534805,
0.05373260751366615,
-0.058080706745386124,
0.012920571491122246,
0.016729576513171196,
0.020856736227869987,
-0.02575276605784893,
0.031196728348731995,
0.000172333195223473,
0.009924625046551228,
0.028669174760580063,
0.013742468319833279,
-0.01230193953961134,
0.0035637621767818928,
0.038284484297037125,
-0.030984625220298767,
-0.029040353372693062,
-0.057409051805734634,
-0.029217105358839035,
-0.03916824236512184,
0.022535881027579308,
0.06218135356903076,
-0.003417941741645336,
-0.031108353286981583,
0.11340408772230148,
-0.0009301574318669736,
0.05998963117599487,
0.008515027351677418,
-0.00558094447478652,
-0.02338428981602192,
0.038673337548971176,
-0.05698484554886818,
0.09813271462917328,
-0.02416199818253517,
-0.05129343271255493,
-0.03694116696715355,
0.038814738392829895,
-0.04128926619887352,
0.013574553653597832,
-0.02706073224544525,
-0.014025270938873291,
0.030348319560289383,
0.02119256556034088,
-0.07734667509794235,
-0.0004288997733965516,
-0.03254004195332527,
-0.0503036193549633,
0.030754849314689636,
0.013106160797178745,
0.045283861458301544,
-0.04047621041536331,
-0.011055837385356426,
0.0037670270539820194,
-0.026106270030140877,
0.044753607362508774,
-0.002638023579493165,
0.022907059639692307,
-0.020839061588048935,
0.015872329473495483,
0.001968575408682227,
-0.006336559075862169,
-0.04609692096710205,
-0.036304861307144165,
0.049702662974596024,
-0.0042287916876375675,
-0.04174882173538208,
0.05684344470500946,
0.03305262327194214,
-0.05599503591656685,
-0.08399254828691483,
0.02002600207924843,
0.002122128615155816,
-0.025028083473443985,
0.012664280831813812,
-0.033017273992300034,
0.014387613162398338,
0.009862761944532394,
0.0434102900326252,
-0.03443128988146782,
0.08477026224136353,
-0.009836249053478241,
0.021068839356303215,
-0.01131212804466486,
0.019778549671173096,
0.03998130187392235,
0.007136362139135599,
-0.03757747635245323,
-0.046980682760477066,
0.020379506051540375,
0.03434291481971741,
-0.00438344944268465,
0.016340723261237144,
0.033724281936883926,
0.015474637970328331,
-0.04135996848344803,
0.019159916788339615,
0.05967147648334503,
-0.004474034998565912,
0.04673323035240173,
-0.0006550871185027063,
-0.030436694622039795,
0.038602638989686966,
0.007299857679754496,
-0.041854873299598694,
0.015616039745509624,
0.007861045189201832,
0.025540664792060852,
-0.038355182856321335,
-0.019760873168706894,
-0.05355585739016533,
-0.03771887719631195,
0.00987159926444292,
0.05125807970762253,
-0.020079027861356735,
-0.02826264500617981,
-0.0091469157487154,
0.032734472304582596,
-0.027750063687562943,
0.009023189544677734,
-0.045283861458301544,
-0.0106669832020998,
-0.03457269072532654,
0.07791228592395782,
0.03909754380583763,
-0.027679363265633583,
-0.03991060331463814,
0.008073147386312485,
0.026760254055261612,
0.08851740509271622,
-0.07494284957647324,
0.016747253015637398,
-0.025646716356277466,
0.016579337418079376,
-0.0308608990162611,
-0.026883980259299278,
-0.052990250289440155,
0.0312674306333065,
0.05224789306521416,
0.010569769889116287,
0.0434456430375576,
-0.023561041802167892,
0.0023883613757789135,
-0.03139115497469902,
-0.058080706745386124,
-0.0029539677780121565,
-0.033264726400375366,
0.034484315663576126,
0.05150553211569786,
0.041854873299598694,
-0.05005616694688797,
-0.024798305705189705,
-0.028156593441963196,
0.034395940601825714,
0.06762531399726868,
0.03619880974292755,
-0.025469964370131493,
-0.0708775520324707,
0.001886827638372779,
0.00316165154799819,
0.005704670678824186,
0.025028083473443985,
0.018311507999897003,
0.03529737517237663,
-0.061226893216371536,
-0.016552824527025223,
-0.07080685347318649,
-0.0020160775166004896,
-0.0213339664041996,
-0.015642551705241203,
-0.05185903608798981,
0.04934915900230408,
-0.0018426396418362856,
-0.014025270938873291,
0.054510317742824554,
0.028085893020033836,
0.00592119200155139,
-0.003742723725736141,
0.027255158871412277,
-0.01745426096022129,
-0.037082571536302567,
-0.0974964052438736,
0.031037651002407074,
-0.020361831411719322,
-0.0018006609752774239,
0.01866501197218895,
-0.008660848252475262,
-0.015810467302799225,
-0.06133294478058815,
-0.056489940732717514,
-0.013026622124016285,
0.05076317489147186,
0.04167812317609787,
0.03938034549355507,
0.05079852417111397,
-0.0028125662356615067,
-0.07713457196950912,
0.02909337915480137,
-0.02759098820388317,
-0.02002600207924843,
-0.045213162899017334,
0.032115839421749115,
-0.028916627168655396,
-0.010278129018843174,
-0.0320274643599987,
-0.005006500519812107,
0.013088486157357693,
-0.0016194902127608657,
-0.004370193462818861,
-0.032716795802116394,
-0.022288426756858826,
-0.019071541726589203,
-0.05185903608798981,
-0.0312674306333065,
-0.02651279978454113,
-0.004379030782729387,
0.0034908519592136145,
-0.047192785888910294,
-0.032345615327358246,
0.011948435567319393,
-0.013945733197033405,
0.035315051674842834,
0.028280319646000862,
-0.047723039984703064,
0.000800907495431602,
0.07876069098711014,
0.04623832553625107,
0.04464755579829216,
-0.03266377002000809,
0.017648687586188316,
-0.04634437337517738,
0.04174882173538208,
-0.02971201203763485,
-0.07706387341022491,
0.07487215101718903,
0.03596903383731842,
0.005236278288066387,
0.018682686612010002,
0.007498703896999359,
-0.013822006992995739,
-0.02043253183364868,
0.015448125079274178,
-0.00987159926444292,
0.04008735343813896,
-0.02034415490925312,
-0.053909361362457275,
-0.010189753025770187,
-0.03955709934234619,
0.061438996344804764,
-0.0013444198993965983,
0.06589314341545105,
0.006173063535243273,
-0.03983990103006363,
0.00004411895861267112,
-0.035845305770635605,
-0.04701603204011917,
0.05960077419877052,
-0.01928364299237728,
-0.0024944127071648836,
0.02994178980588913,
-0.008753643371164799,
0.029765037819743156,
-0.03672906756401062,
0.010499068535864353,
-0.052000440657138824,
0.0022348081693053246,
0.051010627299547195,
-0.03609275817871094,
-0.012346127070486546,
0.07904349267482758,
-0.03856728598475456,
0.008188036270439625,
-0.015191834419965744,
-0.01188657246530056,
0.05012686923146248,
0.008417814038693905,
-0.012743819504976273,
0.08052821457386017,
-0.02430340088903904,
-0.015642551705241203,
0.004904868081212044,
0.05175298452377319,
0.0021519556175917387,
0.005691414698958397,
-0.009288317523896694,
-0.0014847167767584324,
0.002947339555248618,
0.015297885984182358,
-0.008846437558531761,
0.008378044702112675,
0.015306723304092884,
0.02393222041428089,
0.03612810745835304,
-0.010923273861408234,
-0.011382829397916794,
-0.0632065162062645,
0.003546087071299553,
-0.02269495651125908,
0.02612394653260708,
-0.018187781795859337,
0.06872117519378662,
0.036446262151002884,
-0.00021058344282209873,
0.008621078915894032,
-0.017030054703354836,
-0.013768981210887432,
0.008400138467550278,
-0.026194646954536438,
-0.007869882509112358,
-0.007109849248081446,
-0.02780308946967125,
-0.023508016020059586,
0.002208295278251171,
-0.008643172681331635,
-0.05546477809548378,
0.0030511815566569567,
-0.0077947634272277355,
-0.06812021881341934,
0.039804551750421524,
0.022836359217762947,
0.013760142959654331,
0.017100756987929344,
0.006840302608907223,
0.015863493084907532,
-0.01578395441174507,
0.002366267377510667,
0.013689442537724972,
0.052601397037506104,
-0.03365357965230942,
-0.04966731369495392,
0.03870868682861328,
-0.024285724386572838,
0.05196508765220642,
-0.046202972531318665,
0.01850593462586403,
0.030153891071677208,
-0.04245582967996597,
0.08123522251844406,
-0.0434102900326252,
-0.020538583397865295,
-0.0018669429700821638,
-0.030224591493606567,
0.029199430719017982,
-0.005306978709995747,
-0.034007083624601364,
0.01577511616051197,
0.02255355566740036,
-0.023437315598130226,
-0.0077019683085381985,
0.014113646931946278,
-0.07854858785867691,
0.04284468665719032,
-0.007388233672827482,
0.01903619058430195,
-0.04825329780578613,
0.02789146639406681,
0.029217105358839035,
-0.0060935253277421,
-0.060696639120578766,
-0.003185954876244068,
-0.04132461920380592,
0.005395354703068733,
0.04252653196454048,
0.00949158240109682,
-0.03757747635245323,
0.02467457950115204,
0.0845581591129303,
0.0014272724511101842,
-0.03945104777812958,
0.021669795736670494,
-0.019796224310994148,
-0.013768981210887432,
-0.03239864110946655,
-0.0018934558611363173,
-0.021616769954562187,
-0.0312674306333065,
0.053980059921741486,
0.0028302413411438465,
-0.014979732222855091,
0.0479704923927784,
-0.015660228207707405,
0.0034267795272171497,
0.03948639705777168,
-0.0026932586915791035,
0.004772304091602564,
-0.0008589042699895799,
0.030595771968364716,
-0.026990029960870743,
-0.01271730661392212,
0.02886360138654709,
-0.06048453599214554,
0.020096702501177788,
-0.003702954389154911,
0.00132895412389189,
0.03328240290284157,
-0.01912456750869751,
-0.03626951202750206,
0.06592849642038345,
0.007074499037116766,
0.0434456430375576,
-0.0015996056608855724,
-0.004520432557910681,
0.03153255581855774,
-0.03391870856285095,
-0.024515502154827118,
-0.02515180967748165,
0.02377314493060112,
0.004608808550983667,
0.025045758113265038,
0.07059475034475327,
-0.026990029960870743,
-0.07331673055887222,
0.02439177595078945,
-0.03444896638393402,
-0.04510711133480072,
0.026795603334903717,
0.03619880974292755,
0.013627579435706139,
0.016729576513171196,
-0.024497827515006065,
0.04319819062948227,
-0.051540885120630264,
-0.01150655560195446,
0.02681327797472477,
0.03626951202750206,
0.03459036722779274,
-0.00015023919695522636,
-0.023631742224097252,
-0.05380330979824066,
-0.05553548038005829,
0.010127889923751354,
0.044965710490942,
-0.011400504037737846,
-0.010949786752462387,
-0.012920571491122246,
-0.02294241078197956,
-0.012814519926905632,
0.05677274242043495,
-0.019336668774485588,
-0.073104627430439,
0.06518613547086716,
-0.001870257081463933,
0.0510459765791893,
0.07982120662927628,
-0.03533272445201874,
-0.015006245113909245,
-0.054828472435474396,
0.02614162117242813,
0.0024833655916154385,
-0.0062791150994598866,
-0.047192785888910294,
0.02683095447719097,
0.023207537829875946,
0.040652960538864136,
0.015271373093128204,
0.004215535242110491,
0.022659607231616974,
-0.03930964693427086,
0.005395354703068733,
-0.05974217504262924,
-0.07041800022125244,
0.014299237169325352,
0.03183303400874138,
-0.04588482156395912,
-0.03209816291928291,
-0.020291129127144814,
0.004962312523275614,
0.022836359217762947,
0.03473176807165146,
-0.08194223046302795,
-0.05967147648334503,
-0.01875338703393936,
-0.014962056651711464,
-0.006429354194551706,
0.050480373203754425,
-0.00941204372793436,
0.03877938911318779,
-0.004111693240702152,
0.014856006018817425,
0.012964759021997452,
0.06009567901492119,
0.03701186925172806,
-0.010163240134716034,
-0.00489603029564023,
-0.0640549287199974,
-0.010463718324899673,
-0.033034950494766235,
0.03231026604771614,
0.002055846620351076,
0.01150655560195446,
0.007573823444545269,
0.04814724624156952,
-0.04107716679573059,
0.0071054305881261826,
0.08851740509271622,
0.08180082589387894,
-0.05288419872522354,
-0.055111274123191833,
-0.009977650828659534
] |
10,146 | pygments.formatters.html | get_style_defs |
Return CSS style definitions for the classes produced by the current
highlighting style. ``arg`` can be a string or list of selectors to
insert before the token type classes.
| def get_style_defs(self, arg=None):
"""
Return CSS style definitions for the classes produced by the current
highlighting style. ``arg`` can be a string or list of selectors to
insert before the token type classes.
"""
style_lines = []
style_lines.extend(self.get_linenos_style_defs())
style_lines.extend(self.get_background_style_defs(arg))
style_lines.extend(self.get_token_style_defs(arg))
return '\n'.join(style_lines)
| (self, arg=None) | [
-0.05194461718201637,
-0.04383978247642517,
0.0000829623022582382,
-0.0019582845270633698,
0.01089547574520111,
0.021919891238212585,
-0.04450290650129318,
-0.010361293330788612,
0.04571863263845444,
-0.0018799990648403764,
0.023504018783569336,
-0.010048151947557926,
-0.031553592532873154,
-0.019617382436990738,
-0.025088144466280937,
-0.048407960683107376,
0.007211460266262293,
-0.027556434273719788,
0.016882000491023064,
-0.05555495247244835,
0.0005626757629215717,
0.03871900215744972,
0.063512422144413,
-0.03805587813258171,
0.01615440659224987,
-0.020427865907549858,
0.008786376565694809,
-0.01257170271128416,
-0.025106564164161682,
-0.045092348009347916,
-0.04542391002178192,
-0.01690042018890381,
-0.08804796636104584,
0.0020411747973412275,
0.037576958537101746,
-0.04192409664392471,
0.012746693566441536,
0.06318086385726929,
0.04140833392739296,
-0.019064780324697495,
-0.06365978717803955,
-0.001124775968492031,
-0.02247249335050583,
-0.01322561502456665,
-0.035182345658540726,
-0.01667938008904457,
0.03897688165307045,
-0.013326925225555897,
-0.03997156769037247,
-0.064175546169281,
0.02236197330057621,
-0.046934355050325394,
-0.024314502254128456,
-0.05393398553133011,
-0.0013481193454936147,
-0.04000840708613396,
-0.03816640004515648,
0.0014736060984432697,
0.01837402582168579,
0.045166026800870895,
0.04317665845155716,
0.05205513909459114,
0.07401186972856522,
-0.013888738118112087,
-0.005857584532350302,
0.034335024654865265,
0.022454073652625084,
0.014671591110527515,
0.005691803991794586,
0.0673438012599945,
-0.0366743728518486,
-0.01787668466567993,
0.023154037073254585,
-0.011208617128431797,
0.025732846930623055,
-0.008275219239294529,
-0.03982420638203621,
0.01061917468905449,
0.0011316834716126323,
0.025198664516210556,
-0.024259241297841072,
0.0839218720793724,
0.018880579620599747,
0.054155025631189346,
0.0987316146492958,
-0.04733959585428238,
-0.04527654871344566,
0.019727902486920357,
-0.013400605879724026,
-0.05441290885210037,
-0.050102610141038895,
0.02514340542256832,
-0.010342873632907867,
-0.017628014087677002,
-0.03065100871026516,
-0.017895104363560677,
-0.018751638010144234,
-0.02560390718281269,
-0.027390655130147934,
0.0011541328858584166,
-0.003822166007012129,
0.08016417175531387,
0.016670169308781624,
-0.027556434273719788,
0.008588360622525215,
-0.04376610368490219,
-0.07216986268758774,
-0.0011518304236233234,
0.014321609400212765,
0.030245766043663025,
-0.006225985940545797,
-0.03538496792316437,
0.11133094131946564,
-0.024922363460063934,
0.058391645550727844,
-0.060749415308237076,
-0.06362294405698776,
0.01580442674458027,
-0.013124304823577404,
-0.011190196499228477,
-0.056586477905511856,
-0.0342060811817646,
0.05142885446548462,
0.050802573561668396,
-0.040892571210861206,
0.03577179089188576,
-0.04527654871344566,
0.05964420735836029,
0.0264512300491333,
-0.00946791935712099,
0.037724316120147705,
0.004816850181668997,
-0.021698851138353348,
-0.042734578251838684,
0.06575967371463776,
-0.001738394726999104,
-0.008459419943392277,
-0.008850847370922565,
0.011227036826312542,
-0.008496260270476341,
0.0722803846001625,
-0.01877005770802498,
-0.02818271704018116,
-0.0539708249270916,
-0.10801532864570618,
0.03416924178600311,
0.02070416696369648,
-0.014367659576237202,
0.003999459091573954,
0.09497391432523727,
0.014211089350283146,
0.004780009854584932,
0.016513599082827568,
0.0015012362273409963,
-0.04803955927491188,
0.06218617781996727,
0.0030001699924468994,
-0.012608543038368225,
0.0197463221848011,
0.016421498730778694,
0.01435844972729683,
-0.03975052759051323,
0.040266286581754684,
-0.02941686287522316,
0.07596439868211746,
0.0856902003288269,
-0.07765904068946838,
-0.0603073313832283,
0.02864321880042553,
-0.004243525210767984,
0.012350661680102348,
0.0013573294272646308,
0.03247459605336189,
0.008565335534512997,
0.007625911850482225,
-0.030393127351999283,
-0.0532708615064621,
0.09615280479192734,
0.008961367420852184,
0.06432291120290756,
0.0012537165312096477,
-0.02285931631922722,
-0.02864321880042553,
-0.014883422292768955,
0.03383767977356911,
-0.020096303895115852,
0.05883372575044632,
-0.010692854411900043,
-0.000046697772631887347,
-0.013022994622588158,
0.048297442495822906,
-0.0243329219520092,
0.05857584625482559,
-0.007948263548314571,
-0.003863611025735736,
-0.016992520540952682,
-0.03660069406032562,
0.024590803310275078,
-0.005595098249614239,
0.01982000283896923,
-0.0004495650064200163,
0.05054469034075737,
-0.016992520540952682,
0.017370132729411125,
0.04122413322329521,
0.008459419943392277,
0.029932625591754913,
-0.03882952034473419,
-0.08937421441078186,
0.034685004502534866,
0.0009169744444079697,
-0.017195140942931175,
-0.03779799863696098,
0.01262696273624897,
0.03812956064939499,
-0.03978736698627472,
0.05452342703938484,
0.04881320521235466,
-0.08878476917743683,
-0.042697738856077194,
0.02490394376218319,
0.00069766043452546,
-0.01073890458792448,
0.008887686766684055,
0.006000339984893799,
-0.027132773771882057,
0.016568860039114952,
-0.03713487461209297,
0.018180616199970245,
-0.04236617684364319,
-0.012405921705067158,
-0.04888688400387764,
-0.004872110206633806,
0.03461132571101189,
-0.00010994483454851434,
-0.02733539417386055,
0.03343243896961212,
-0.03212461248040199,
-0.0014977825339883566,
-0.020151564851403236,
-0.010029732249677181,
0.06542811542749405,
0.06498602777719498,
-0.0209804680198431,
0.03693225234746933,
0.026690691709518433,
0.05769168213009834,
-0.005512208212167025,
-0.003115295432507992,
0.04715539515018463,
-0.042808257043361664,
-0.015104463323950768,
0.020464705303311348,
0.00913635827600956,
-0.03383767977356911,
-0.04159253463149071,
-0.0709172934293747,
0.012194090522825718,
0.019377920776605606,
0.0006619715131819248,
0.025419706478714943,
0.05363926291465759,
0.06343874335289001,
0.01919372007250786,
0.03171937167644501,
0.00497342087328434,
-0.019248981028795242,
0.009320558980107307,
-0.051760416477918625,
0.03812956064939499,
0.07128569483757019,
0.03905056416988373,
-0.0023669798392802477,
0.01735171303153038,
-0.000017151898646261543,
-0.01403609849512577,
-0.04453974589705467,
0.03682173416018486,
-0.024590803310275078,
-0.0022852406837046146,
0.01865953765809536,
-0.029195822775363922,
-0.014450550079345703,
0.03660069406032562,
0.012700643390417099,
0.029822103679180145,
-0.014662381261587143,
0.03724539652466774,
-0.0004587750299833715,
0.0035481674131006002,
-0.003122203052043915,
0.025051305070519447,
-0.019230559468269348,
-0.019451601430773735,
0.0963001623749733,
0.010987576097249985,
0.02783273532986641,
0.024314502254128456,
-0.010103411972522736,
0.018033254891633987,
0.018880579620599747,
-0.043397702276706696,
0.02952738292515278,
0.0008622898603789508,
-0.02468290366232395,
-0.015141303651034832,
0.03590073063969612,
-0.014865001663565636,
-0.02193831093609333,
-0.013345345854759216,
-0.03636123239994049,
0.018226666375994682,
0.0030139849986881018,
0.0033570590894669294,
-0.059938929975032806,
-0.0352744460105896,
-0.06830164790153503,
0.0027031463105231524,
0.008104833774268627,
0.042771417647600174,
-0.10248930752277374,
-0.028422178700566292,
0.018687168136239052,
-0.03886636346578598,
0.06155989691615105,
0.04240301623940468,
-0.03952948376536369,
0.026340709999203682,
0.03538496792316437,
0.010987576097249985,
-0.04236617684364319,
-0.012544072233140469,
-0.014865001663565636,
0.055849671363830566,
-0.016062306240200996,
-0.056881196796894073,
0.045202869921922684,
0.06822796165943146,
-0.029361601918935776,
-0.03689541295170784,
0.027556434273719788,
0.009578440338373184,
-0.03901372104883194,
-0.00022161654487717897,
-0.022104091942310333,
0.02934318222105503,
-0.016246506944298744,
0.04870268329977989,
0.026359129697084427,
0.017968785017728806,
0.009771850891411304,
-0.031019410118460655,
0.009983682073652744,
0.06439658999443054,
0.08664803951978683,
0.026653850451111794,
0.004743169993162155,
-0.02617492899298668,
0.0032557486556470394,
-0.03269563615322113,
0.009716590866446495,
0.02702225372195244,
0.02744591422379017,
0.03746643662452698,
-0.028274817392230034,
0.054339226335287094,
0.004683304578065872,
0.019948942586779594,
-0.0035619824193418026,
-0.014072938822209835,
0.02285931631922722,
0.021809371188282967,
-0.016384659335017204,
-0.06653331965208054,
-0.011254667304456234,
0.023301396518945694,
-0.013455865904688835,
-0.0006395220407284796,
-0.008611385710537434,
-0.04170305281877518,
-0.0328061580657959,
-0.00016952227451838553,
0.030706267803907394,
-0.042513538151979446,
-0.023338237777352333,
-0.01908320002257824,
-0.05190777778625488,
-0.029140561819076538,
0.059202127158641815,
0.01324403565376997,
-0.004243525210767984,
-0.02825639769434929,
0.006875293795019388,
-0.023504018783569336,
-0.06785956025123596,
-0.036766473203897476,
0.03170095384120941,
0.03214303404092789,
0.03787167742848396,
-0.05706539750099182,
0.020372604951262474,
-0.025346025824546814,
0.04535022750496864,
-0.014340030029416084,
-0.01632939837872982,
-0.01954370178282261,
0.006704907864332199,
0.023356657475233078,
-0.0012560189934447408,
0.014736061915755272,
0.000686723506078124,
-0.04535022750496864,
-0.02764853462576866,
-0.0058529796078801155,
-0.013769007287919521,
-0.005010260734707117,
0.01742539182305336,
0.05223933979868889,
0.010121832601726055,
-0.03956632688641548,
-0.028937941417098045,
-0.038461118936538696,
0.04446606710553169,
0.09777376800775528,
0.0008409916190430522,
0.04236617684364319,
-0.03617703169584274,
0.025014463812112808,
-0.03125886991620064,
-0.009587650187313557,
-0.01865953765809536,
0.05806008353829384,
0.0048306649550795555,
-0.02891951985657215,
-0.0027722215745598078,
-0.07025417685508728,
-0.02366979792714119,
-0.019414760172367096,
0.003640267765149474,
-0.021809371188282967,
-0.004632649477571249,
0.025346025824546814,
0.011595438234508038,
0.08178514242172241,
0.06550179421901703,
-0.030098404735326767,
-0.02514340542256832,
0.018954258412122726,
-0.025843366980552673,
-0.039345283061265945,
-0.09688960760831833,
0.029508963227272034,
0.015426814556121826,
-0.0010384318884462118,
0.05526022985577583,
0.0026156508829444647,
-0.03871900215744972,
0.010683644562959671,
-0.012129620648920536,
0.003439949359744787,
0.0811220183968544,
0.005351032130420208,
0.035329706966876984,
0.06793324649333954,
-0.04807640239596367,
-0.041887253522872925,
0.04560811072587967,
-0.018751638010144234,
-0.02455396205186844,
-0.06929633021354675,
0.02208567224442959,
-0.028551118448376656,
-0.05065521225333214,
-0.06855952739715576,
-0.060123130679130554,
0.04122413322329521,
0.0063963718712329865,
-0.023227717727422714,
-0.025032885372638702,
-0.033248238265514374,
0.004579691682010889,
-0.03534812852740288,
-0.04579231142997742,
-0.006069415248930454,
-0.02564074657857418,
0.021717270836234093,
0.014376870356500149,
-0.057581160217523575,
0.02564074657857418,
-0.06395450979471207,
0.000622828840278089,
-0.01611756719648838,
-0.05551811307668686,
-0.014321609400212765,
0.04240301623940468,
0.011890159919857979,
0.026082828640937805,
0.015426814556121826,
-0.06303350627422333,
-0.032824575901031494,
0.06406502425670624,
-0.06944368779659271,
-0.0589074045419693,
0.04074520990252495,
0.07891160994768143,
-0.03365347906947136,
0.022804055362939835,
0.020077884197235107,
0.007211460266262293,
0.004991841036826372,
-0.011834898963570595,
0.002020452171564102,
0.03374557942152023,
-0.021569909527897835,
0.010213932953774929,
-0.012230930849909782,
-0.016301767900586128,
0.02571442723274231,
-0.0006257069762796164,
0.07986945658922195,
-0.017342502251267433,
-0.015279454179108143,
0.013888738118112087,
-0.00797128863632679,
0.0005307284882292151,
0.07684855908155441,
-0.006069415248930454,
0.030466808006167412,
0.004337928257882595,
-0.011328347027301788,
0.02063048630952835,
-0.017047781497240067,
-0.010692854411900043,
-0.0380927175283432,
-0.0013124304823577404,
0.0128756333142519,
0.01848454773426056,
-0.004294180311262608,
0.04943948611617088,
-0.019727902486920357,
0.0321061946451664,
0.002189686754718423,
-0.006354926619678736,
0.02063048630952835,
-0.00019384252664167434,
-0.020906787365674973,
-0.002638675970956683,
-0.0557391531765461,
-0.007335795555263758,
0.039197925478219986,
0.007676566950976849,
-0.023154037073254585,
-0.029785264283418655,
0.016799110919237137,
-0.01735171303153038,
0.005392477381974459,
-0.03160885348916054,
0.005691803991794586,
0.04745011776685715,
0.0195805411785841,
0.027206454426050186,
-0.002218468114733696,
0.03223513439297676,
-0.018576648086309433,
-0.04645543545484543,
-0.018042465671896935,
0.004542851354926825,
0.05168673396110535,
-0.0536024235188961,
-0.008104833774268627,
0.03135097026824951,
0.015067622996866703,
0.02320929616689682,
-0.03072468750178814,
-0.00821535475552082,
0.02952738292515278,
-0.02035418525338173,
-0.00010692278738133609,
-0.007856163196265697,
-0.010398133657872677,
0.010011311620473862,
0.0320877730846405,
-0.005843769293278456,
-0.06583335250616074,
-0.028201138600707054,
0.011475708335638046,
-0.10838373005390167,
-0.01584126614034176,
0.019322659820318222,
0.03153517097234726,
-0.007980498485267162,
0.06130201742053032,
0.03820323944091797,
-0.0013055229792371392,
-0.046676475554704666,
0.019525282084941864,
0.018189825117588043,
-0.007727222051471472,
-0.07780640572309494,
-0.02162517048418522,
0.010481024160981178,
0.06108097359538078,
-0.0012491114903241396,
-0.005843769293278456,
0.002774524036794901,
0.0008617142448201776,
0.07080677896738052,
-0.0061200703494250774,
0.015233404003083706,
-0.008988997898995876,
-0.004950395785272121,
-0.0176372230052948,
0.020998887717723846,
0.029214242473244667,
-0.03389294072985649,
0.04892372339963913,
0.0038682161830365658,
-0.02070416696369648,
0.008790981955826283,
-0.012590122409164906,
0.01282037328928709,
0.00924227386713028,
0.035569168627262115,
-0.012129620648920536,
0.038497962057590485,
0.013409815728664398,
-0.028937941417098045,
-0.06937000900506973,
0.0027607090305536985,
-0.023798739537596703,
0.030245766043663025,
0.021367289125919342,
-0.004379373509436846,
-0.05787588283419609,
-0.003522839630022645,
0.08546915650367737,
-0.02613808959722519,
-0.014404499903321266,
-0.018788479268550873,
-0.052570898085832596,
0.009771850891411304,
0.009707380086183548,
-0.014524230733513832,
-0.01943318173289299,
0.0020492335315793753,
-0.016301767900586128,
-0.01156780868768692,
0.011752009391784668,
0.060749415308237076,
0.008473235182464123,
0.033211398869752884,
0.013234824873507023,
0.024314502254128456,
0.006354926619678736,
-0.029214242473244667,
-0.00039689510595053434,
-0.05629175528883934,
0.012387502007186413,
0.01877005770802498,
-0.06111781671643257,
0.00946791935712099,
0.046050190925598145,
-0.015122883021831512,
0.03418766334652901,
-0.08347979187965393,
-0.01728724129498005,
0.00010656302038114518,
0.02613808959722519,
0.010877055115997791,
0.05953368917107582,
-0.0022714256774634123,
0.00967975053936243,
-0.03201409429311752,
-0.0546707883477211,
-0.05316034331917763,
-0.01682673953473568,
0.050065770745277405,
0.0075476267375051975,
0.06885425001382828,
-0.02906688116490841,
-0.045939672738313675,
0.016025466844439507,
-0.050802573561668396,
-0.02320929616689682,
0.03354296088218689,
0.04800271987915039,
-0.010573124513030052,
-0.02158832922577858,
0.014607121236622334,
0.026580171659588814,
-0.08215354382991791,
0.022509334608912468,
0.030208926647901535,
0.013455865904688835,
0.004812245257198811,
0.020464705303311348,
-0.08134306222200394,
-0.09563703835010529,
0.017793795093894005,
-0.05212881788611412,
0.044355545192956924,
0.0038981488905847073,
-0.031866732984781265,
-0.000636068289168179,
0.018281925469636917,
0.019267400726675987,
0.07110149413347244,
-0.007893002592027187,
-0.02236197330057621,
0.03164569288492203,
-0.025124985724687576,
0.010720484890043736,
0.07047521322965622,
0.0673806443810463,
-0.030061565339565277,
-0.06133885681629181,
0.07508023083209991,
0.015491284430027008,
-0.002525852993130684,
-0.005351032130420208,
-0.009956051595509052,
0.037300657480955124,
0.05610755458474159,
0.04317665845155716,
0.014220299199223518,
0.023043517023324966,
-0.008344294503331184,
-0.018033254891633987,
-0.028311658650636673,
-0.052460379898548126,
0.015546544454991817,
0.03372716158628464,
-0.028127457946538925,
0.0002735669258981943,
-0.03812956064939499,
-0.0037093430291861296,
0.03383767977356911,
0.006704907864332199,
-0.04413450509309769,
-0.029122142121195793,
-0.07006997615098953,
-0.02991420403122902,
-0.05618123337626457,
0.064175546169281,
-0.012580912560224533,
-0.03107466921210289,
0.027206454426050186,
0.005332612432539463,
0.012230930849909782,
0.054155025631189346,
0.02409346029162407,
-0.024609223008155823,
-0.005954289808869362,
-0.04951316490769386,
0.0012790440814569592,
0.003536654869094491,
0.02000420354306698,
-0.03579020872712135,
0.003375479020178318,
0.010361293330788612,
0.0461975522339344,
-0.04052416980266571,
-0.0016981008229777217,
-0.0008784074452705681,
0.08981629461050034,
-0.010259983129799366,
0.010471813380718231,
-0.007833138108253479
] |
10,147 | pygments.formatters.html | get_token_style_defs | null | def get_token_style_defs(self, arg=None):
prefix = self.get_css_prefix(arg)
styles = [
(level, ttype, cls, style)
for cls, (style, ttype, level) in self.class2style.items()
if cls and style
]
styles.sort()
lines = [
f'{prefix(cls)} {{ {style} }} /* {repr(ttype)[6:]} */'
for (level, ttype, cls, style) in styles
]
return lines
| (self, arg=None) | [
-0.042429130524396896,
0.014668874442577362,
-0.0018336093053221703,
-0.041776373982429504,
0.022991511970758438,
0.0009921662276610732,
-0.02892071008682251,
0.009365233592689037,
0.03653619438409805,
0.004517161287367344,
0.002796877408400178,
-0.014433156698942184,
-0.014079581014811993,
-0.04065218195319176,
-0.01708044484257698,
-0.028956973925232887,
0.00047795099089853466,
-0.015584546141326427,
-0.015693338587880135,
-0.03298230096697807,
0.02946467325091362,
0.05102374777197838,
0.049029216170310974,
-0.043843433260917664,
0.032057564705610275,
-0.004190783016383648,
0.006822205148637295,
-0.028249822556972504,
-0.03318175673484802,
-0.06785034388303757,
-0.031803715974092484,
0.0009785671718418598,
-0.03352626413106918,
0.019310694187879562,
0.0055030942894518375,
-0.08173953741788864,
0.030335014685988426,
0.03865765035152435,
0.01470513828098774,
-0.039310406893491745,
0.006994460243731737,
0.006015326362103224,
-0.013689740560948849,
-0.014333430677652359,
-0.03430594503879547,
-0.008531155996024609,
0.049681972712278366,
0.012211973778903484,
-0.0517127700150013,
-0.06328105181455612,
0.02310030348598957,
-0.04623687267303467,
-0.02951906993985176,
-0.03523068502545357,
0.02398877777159214,
-0.06328105181455612,
-0.009392431005835533,
0.010389696806669235,
0.022121170535683632,
0.04293682798743248,
0.00854022242128849,
0.06070629507303238,
0.030081165954470634,
-0.008730609901249409,
-0.01865793764591217,
-0.013290834613144398,
0.008671680465340614,
0.024115702137351036,
0.0009853666415438056,
0.05018967017531395,
-0.01645488664507866,
-0.01633702777326107,
0.02654540352523327,
-0.0015480286674574018,
0.0049727302975952625,
-0.026581669226288795,
-0.026563536375761032,
0.002096524927765131,
0.0029328681994229555,
-0.012103181332349777,
-0.04144999757409096,
0.08790445327758789,
0.019655203446745872,
0.06357116997241974,
0.06639977544546127,
-0.0490654818713665,
-0.007080587558448315,
0.02823168970644474,
-0.062410712242126465,
-0.011042453348636627,
-0.06005353853106499,
0.01825903169810772,
-0.027089368551969528,
-0.037678517401218414,
-0.032003168016672134,
-0.010679811239242554,
-0.02630968764424324,
0.012937257997691631,
-0.02848554030060768,
0.006817672401666641,
0.007529357448220253,
0.0482676699757576,
0.014551015570759773,
0.016255434602499008,
0.00830903835594654,
-0.01189466193318367,
-0.07513944804668427,
0.0038122753612697124,
0.016926322132349014,
0.04105108976364136,
-0.026382215321063995,
-0.017760397866368294,
0.11604548245668411,
-0.0026450210716575384,
0.0842055007815361,
-0.07550209015607834,
-0.060488708317279816,
0.015620809979736805,
-0.015004318207502365,
-0.019709600135684013,
-0.02043488435447216,
-0.03637300804257393,
0.05468643456697464,
0.043263208121061325,
-0.05287322402000427,
0.028467407450079918,
-0.020743129774928093,
0.04630940034985542,
0.03680817782878876,
0.0034813645761460066,
0.02339041791856289,
0.02852180413901806,
0.017062311992049217,
-0.02547561004757881,
0.03202129900455475,
-0.02645474299788475,
0.003519895253702998,
-0.012737805023789406,
0.0029713991098105907,
0.0036354875192046165,
0.10175738483667374,
-0.003918801434338093,
-0.04630940034985542,
-0.07521197944879532,
-0.07818564772605896,
0.022792058065533638,
-0.00037964098737575114,
0.03124161995947361,
0.021051375195384026,
0.04130493849515915,
-0.0036468200851231813,
0.000794412917457521,
0.041921429336071014,
0.004245179705321789,
-0.021196432411670685,
0.03956425562500954,
-0.01978212781250477,
-0.017152972519397736,
0.026908045634627342,
0.021540943533182144,
-0.009619082324206829,
-0.02917456068098545,
0.030026769265532494,
-0.03894776478409767,
0.0640425980091095,
0.08616377413272858,
-0.05863923206925392,
-0.03693510219454765,
0.00270848348736763,
-0.018567277118563652,
-0.024025041610002518,
-0.018268097192049026,
0.03218448907136917,
0.0067632757127285,
0.002395704621449113,
-0.04420607537031174,
-0.043807171285152435,
0.0949397087097168,
-0.005793208256363869,
0.0409785620868206,
-0.004814074374735355,
-0.047905027866363525,
0.007221111562103033,
-0.01713484153151512,
-0.007443229667842388,
-0.013907326385378838,
0.07336250692605972,
-0.03617355227470398,
-0.03789610415697098,
-0.05457764118909836,
0.04086976870894432,
0.011241906322538853,
0.03829500824213028,
0.023952513933181763,
0.010063319467008114,
-0.009936394169926643,
-0.055991947650909424,
0.015620809979736805,
0.00428371038287878,
-0.039310406893491745,
-0.003939200192689896,
0.06654483079910278,
-0.02585638500750065,
0.029337748885154724,
0.042465392500162125,
0.03385264426469803,
0.02645474299788475,
-0.021395886316895485,
-0.08493078500032425,
0.06959102302789688,
-0.0003178784972988069,
-0.028104765340685844,
-0.002026262925937772,
-0.008114118129014969,
0.013435890898108482,
-0.02877565287053585,
0.04714347794651985,
0.06861189007759094,
-0.09356167167425156,
-0.03651806339621544,
0.05751504376530647,
0.004093322902917862,
-0.019310694187879562,
0.003397503634914756,
0.013227371498942375,
-0.0013304433086887002,
0.027796519920229912,
-0.04329947009682655,
-0.018240898847579956,
-0.01026277244091034,
0.009247374720871449,
-0.044097281992435455,
0.011314434930682182,
0.03080645017325878,
-0.028249822556972504,
-0.007692546118050814,
0.04536653310060501,
-0.007384300697594881,
-0.03345373645424843,
-0.02496791072189808,
-0.04406102001667023,
0.04674457013607025,
0.06244697421789169,
0.007674414198845625,
0.043843433260917664,
0.04688962921500206,
0.05827658995985985,
-0.009365233592689037,
-0.018929919227957726,
0.04275550693273544,
-0.062011804431676865,
0.019727732986211777,
0.042864300310611725,
0.000259515771176666,
-0.038077425211668015,
-0.08319010585546494,
-0.06273709237575531,
0.016128508374094963,
-0.002654087031260133,
-0.003284177742898464,
0.01865793764591217,
0.05718866363167763,
0.029736654832959175,
0.0063598365522921085,
0.06980860978364944,
0.009691610932350159,
-0.01381666585803032,
-0.006559289526194334,
-0.05425126478075981,
0.04329947009682655,
-0.009863866493105888,
0.006822205148637295,
-0.034614190459251404,
0.01762440800666809,
0.014596345834434032,
0.01611037738621235,
-0.023753060027956963,
0.02906576730310917,
-0.04525773972272873,
0.000014174562238622457,
0.004959131125360727,
-0.022628869861364365,
0.010280904360115528,
0.0342152863740921,
-0.012193841859698296,
0.025892648845911026,
-0.015385092236101627,
-0.014741403050720692,
0.003644553478807211,
-0.00977320596575737,
-0.013091380707919598,
0.0028444742783904076,
-0.005920133087784052,
-0.029845448210835457,
0.09559246897697449,
0.005104187875986099,
0.03187624365091324,
0.0076970793306827545,
-0.004569291137158871,
0.010453159920871258,
0.037787310779094696,
-0.031459204852581024,
0.061721689999103546,
-0.01246582344174385,
0.006377968471497297,
0.002108990680426359,
0.03153173252940178,
-0.03651806339621544,
0.0009938661241903901,
-0.03213009238243103,
-0.010099583305418491,
0.024986043572425842,
0.025729458779096603,
-0.037388402968645096,
-0.02650913968682289,
0.011930926702916622,
-0.08050655573606491,
0.012384229339659214,
0.05657217279076576,
0.04630940034985542,
-0.0773153007030487,
-0.036246079951524734,
0.01483206357806921,
-0.040833503007888794,
0.04812261089682579,
0.023136569187045097,
-0.018966183066368103,
-0.008707944303750992,
0.03307296335697174,
0.011151245795190334,
-0.045874230563640594,
-0.011486689560115337,
-0.03582904487848282,
0.0397818423807621,
-0.04061591997742653,
-0.020253563299775124,
0.04685336351394653,
0.05018967017531395,
-0.03390704095363617,
-0.07151302695274353,
0.018041446805000305,
-0.015584546141326427,
-0.01145042572170496,
0.012357030995190144,
-0.04678083583712578,
0.018694201484322548,
0.002477299189195037,
0.04616434499621391,
0.0008924396242946386,
0.0637887492775917,
0.026672329753637314,
-0.02235688827931881,
0.04892042279243469,
0.07426910847425461,
0.10632667690515518,
0.022864587604999542,
-0.005684415344148874,
0.004383436869829893,
-0.016264500096440315,
0.013281768187880516,
0.02235688827931881,
0.01989092119038105,
0.039020292460918427,
-0.006663549225777388,
0.0032297815196216106,
0.02063433825969696,
0.04268297925591469,
-0.009582818485796452,
0.03173118829727173,
0.010752338916063309,
-0.01601971685886383,
0.022574473172426224,
0.016980718821287155,
-0.0718756690621376,
-0.03727961331605911,
0.007814938202500343,
0.008762340992689133,
-0.013925458304584026,
-0.01693538762629032,
-0.043698377907276154,
0.0025928912218660116,
0.02877565287053585,
0.07949115335941315,
0.0004099555953871459,
-0.06494920700788498,
-0.018023313954472542,
-0.03800489753484726,
-0.01983652450144291,
0.04917427524924278,
0.008544755168259144,
0.0038168085739016533,
-0.035557061433792114,
0.042864300310611725,
-0.01083393394947052,
-0.044097281992435455,
-0.027089368551969528,
0.0015842928551137447,
0.03840380162000656,
0.041776373982429504,
-0.05958210304379463,
-0.012919126078486443,
-0.029700390994548798,
0.020652469247579575,
-0.017470285296440125,
-0.022084906697273254,
-0.04264671355485916,
0.0027583467308431864,
0.014587280340492725,
-0.0017259499290958047,
0.020996980369091034,
-0.03287351131439209,
-0.016128508374094963,
0.02679925411939621,
-0.021649735048413277,
0.010598216205835342,
-0.014079581014811993,
0.007388833444565535,
0.07336250692605972,
0.013327098451554775,
-0.061395313590765,
-0.04721600562334061,
-0.032655924558639526,
0.04007195681333542,
0.05903813987970352,
0.00806878786534071,
0.01036249939352274,
-0.043553318828344345,
0.017932653427124023,
-0.05824032798409462,
-0.0012273170286789536,
-0.00037652452010661364,
0.05566556751728058,
0.0032161823473870754,
-0.05182155966758728,
0.013390560634434223,
-0.05769636482000351,
-0.03356252983212471,
-0.012520220130681992,
0.02971852384507656,
-0.017642540857195854,
0.0008731742855161428,
0.03731587529182434,
0.023317890241742134,
0.07666254788637161,
0.0579502135515213,
0.0012295835185796022,
-0.030480071902275085,
0.04475003853440285,
-0.012211973778903484,
-0.053525980561971664,
-0.0818120688199997,
0.026835517957806587,
-0.006690747570246458,
-0.027578935027122498,
0.033580660820007324,
0.011051518842577934,
-0.01960080675780773,
-0.019074976444244385,
-0.029247088357806206,
-0.012810333631932735,
0.08754181116819382,
0.05207541212439537,
0.025638798251748085,
0.06719759106636047,
-0.05454137921333313,
-0.03617355227470398,
0.041486259549856186,
-0.014297165907919407,
-0.006210246589034796,
-0.03271032124757767,
0.018023313954472542,
-0.02522176131606102,
-0.04863031208515167,
-0.04725227132439613,
-0.08920996636152267,
0.020108506083488464,
0.008082387037575245,
-0.01994531787931919,
-0.045874230563640594,
0.005435098893940449,
0.037243347615003586,
-0.04950065165758133,
-0.04703468456864357,
0.005430566146969795,
-0.020616205409169197,
0.052438054233789444,
0.008535689674317837,
-0.06734264642000198,
0.02215743437409401,
-0.05784142017364502,
-0.015720536932349205,
-0.007153116166591644,
-0.052691902965307236,
-0.017706003040075302,
0.05726119503378868,
0.04721600562334061,
0.02576572448015213,
0.005027126520872116,
-0.07709772139787674,
-0.026273421943187714,
0.040543392300605774,
-0.04685336351394653,
-0.06429645419120789,
0.0347411185503006,
0.05468643456697464,
-0.022592606022953987,
0.019419485703110695,
-0.0006147917592898011,
-0.004863937851041555,
-0.005743344780057669,
0.00799625925719738,
0.021250829100608826,
-0.010870197787880898,
0.002239315304905176,
-0.005208447575569153,
0.00513138622045517,
-0.06549316644668579,
-0.006695280317217112,
0.0011604548199102283,
0.07688013464212418,
-0.008925529196858406,
-0.0137260053306818,
0.029845448210835457,
-0.005185782443732023,
-0.02023543044924736,
0.07528451085090637,
-0.002144121564924717,
0.021740395575761795,
0.02023543044924736,
-0.03084271401166916,
0.05468643456697464,
-0.027814652770757675,
-0.015756800770759583,
-0.049827028065919876,
-0.017533747479319572,
0.00967347901314497,
0.029936108738183975,
-0.011042453348636627,
0.05562930554151535,
-0.015439488925039768,
0.026672329753637314,
0.005920133087784052,
0.01854007877409458,
0.026817385107278824,
-0.008658081293106079,
0.003386171068996191,
0.02404317446053028,
-0.05439632013440132,
-0.052728164941072464,
0.02823168970644474,
0.015158440917730331,
-0.01751561462879181,
-0.01940135471522808,
-0.013046050444245338,
-0.05454137921333313,
-0.02803223766386509,
-0.04290056601166725,
-0.0007507825503125787,
0.04924680292606354,
-0.008345302194356918,
0.035955969244241714,
0.03479551151394844,
-0.018875522539019585,
-0.003798676421865821,
-0.05356224253773689,
-0.033689454197883606,
0.006831271108239889,
0.03771478310227394,
-0.07082401216030121,
0.05222046747803688,
0.02284645475447178,
-0.0014573681401088834,
0.02665419690310955,
-0.023263493552803993,
0.0026495540514588356,
0.013898259960114956,
-0.012928192503750324,
0.0033952370285987854,
-0.007932797074317932,
-0.004673550371080637,
0.015530149452388287,
0.048992954194545746,
-0.009206577204167843,
-0.04895668849349022,
0.008902864530682564,
-0.0043449061922729015,
-0.05486775562167168,
-0.018839258700609207,
0.024224495515227318,
0.0015865593450143933,
-0.012175709940493107,
0.0682855173945427,
0.04540279507637024,
-0.04453245550394058,
-0.03653619438409805,
0.016609009355306625,
0.038186218589544296,
-0.007425097748637199,
-0.07898345589637756,
-0.001755414647050202,
0.011142179369926453,
0.04514894634485245,
-0.0037850772496312857,
0.0037488131783902645,
0.01998158171772957,
-0.02556627057492733,
0.07847575843334198,
-0.03941920027136803,
0.010988056659698486,
0.037388402968645096,
-0.013290834613144398,
-0.020126638934016228,
0.01544855535030365,
-0.008095985278487206,
-0.01374413724988699,
0.052982017397880554,
0.011187509633600712,
-0.020307959988713264,
0.013272701762616634,
-0.0385851226747036,
0.03648179769515991,
-0.0051676505245268345,
0.02155907452106476,
0.005326306447386742,
0.034469135105609894,
0.05319960042834282,
-0.016663406044244766,
-0.034868042916059494,
0.019183769822120667,
-0.04609181731939316,
-0.0005966596654616296,
0.03147733584046364,
0.010208375751972198,
-0.03533947467803955,
-0.022792058065533638,
0.08094172179698944,
-0.04297309368848801,
-0.03164052590727806,
-0.024750325828790665,
-0.07550209015607834,
0.014405959285795689,
-0.016636207699775696,
-0.0005425466224551201,
-0.0015740934759378433,
-0.019310694187879562,
0.004886602982878685,
0.014768601395189762,
0.026781121268868446,
0.07818564772605896,
0.010897396132349968,
0.03064326010644436,
0.04551158845424652,
0.023753060027956963,
0.017506549134850502,
-0.013191107660531998,
0.01265621092170477,
-0.06045244261622429,
-0.008680745959281921,
0.03214822709560394,
-0.05185782536864281,
0.03735214099287987,
0.02009037509560585,
-0.01381666585803032,
0.03532134369015694,
-0.12329832464456558,
-0.022864587604999542,
0.020561808720231056,
-0.0010816934518516064,
-0.006264642812311649,
0.046563249081373215,
-0.021776659414172173,
0.032057564705610275,
-0.02241128496825695,
-0.047905027866363525,
-0.06183048337697983,
0.011550151742994785,
0.052438054233789444,
0.029247088357806206,
0.03345373645424843,
-0.04703468456864357,
-0.043009355664253235,
0.010036121122539043,
-0.027905313298106194,
-0.042175281792879105,
0.028739389032125473,
0.04743359237909317,
-0.022248094901442528,
-0.012846597470343113,
0.0011491222539916635,
0.008925529196858406,
-0.059291988611221313,
-0.002713016467168927,
0.0440247543156147,
-0.003732947399839759,
-0.010398763231933117,
0.052438054233789444,
-0.04721600562334061,
-0.020054109394550323,
0.022828321903944016,
-0.044641248881816864,
0.010489423759281635,
-0.048050083220005035,
-0.002006997587159276,
-0.014505685307085514,
0.00841329712420702,
-0.016001584008336067,
0.07042510062456131,
-0.024260759353637695,
-0.03796863183379173,
0.05182155966758728,
-0.00006151459092507139,
-0.0036989497020840645,
0.0696272924542427,
0.053525980561971664,
-0.01905684359371662,
-0.06476788222789764,
0.045040152966976166,
0.018068645149469376,
0.05519413203001022,
-0.01765160635113716,
-0.03619168698787689,
0.0428280346095562,
0.04812261089682579,
0.05116880685091019,
0.038331273943185806,
0.04155878722667694,
-0.004494496155530214,
0.02788718044757843,
-0.08144942671060562,
-0.07804058492183685,
0.010507555678486824,
0.0393829345703125,
-0.05519413203001022,
0.011967190541327,
-0.030933374539017677,
0.026237158104777336,
0.012755936942994595,
0.014569147489964962,
-0.032111961394548416,
0.016182905063033104,
-0.05127759650349617,
0.000737750087864697,
-0.051894091069698334,
0.08210217952728271,
-0.015901857987046242,
-0.04565664380788803,
0.03347186744213104,
0.014206505380570889,
0.013046050444245338,
0.03651806339621544,
0.011967190541327,
-0.04801381751894951,
0.003377104876562953,
-0.04007195681333542,
0.001015964662656188,
0.014197439886629581,
0.0011015255004167557,
-0.043009355664253235,
0.004759678151458502,
-0.01295538991689682,
0.021432150155305862,
-0.04268297925591469,
-0.024840986356139183,
0.046418193727731705,
0.07499439269304276,
-0.02645474299788475,
0.008739675395190716,
-0.007388833444565535
] |
10,148 | pygments.formatters.html | wrap |
Wrap the ``source``, which is a generator yielding
individual lines, in custom generators. See docstring
for `format`. Can be overridden.
| def wrap(self, source):
"""
Wrap the ``source``, which is a generator yielding
individual lines, in custom generators. See docstring
for `format`. Can be overridden.
"""
output = source
if self.wrapcode:
output = self._wrap_code(output)
output = self._wrap_pre(output)
return output
| (self, source) | [
-0.06153607740998268,
-0.06633109599351883,
0.03028520569205284,
0.03596264123916626,
0.0002484398428350687,
-0.023542210459709167,
-0.05627487599849701,
0.07632071524858475,
0.06296791881322861,
-0.013569237664341927,
0.010663921944797039,
-0.023026080802083015,
0.011812728829681873,
0.03053494729101658,
-0.011354871094226837,
0.042455896735191345,
-0.01582522690296173,
-0.0405578687787056,
-0.012828340753912926,
-0.0037252968177199364,
0.015900149941444397,
0.047117721289396286,
0.040924154222011566,
-0.007846016436815262,
0.0017294534482061863,
0.08271407335996628,
0.013552588410675526,
-0.020045842975378036,
-0.022942833602428436,
-0.051746245473623276,
-0.021261246874928474,
-0.03214993700385094,
-0.010530726984143257,
-0.010580675676465034,
0.03536326438188553,
-0.001268473919481039,
-0.07578793913125992,
-0.017165502533316612,
0.014335108920931816,
-0.03374827653169632,
0.04042467474937439,
0.010772143490612507,
-0.009681609459221363,
0.024141589179635048,
-0.030468350276350975,
0.018414204940199852,
0.013136354275047779,
-0.024890810251235962,
0.04791688919067383,
-0.06153607740998268,
0.0648326501250267,
0.0036836734507232904,
0.03752768412232399,
-0.0006826242315582931,
0.025173848494887352,
0.01315300352871418,
0.004108232446014881,
0.017348645254969597,
0.05684095248579979,
-0.00048023031558841467,
0.019612958654761314,
0.03612913563847542,
0.02429143339395523,
0.02573992870748043,
0.010905338451266289,
-0.023475613445043564,
-0.03005211427807808,
-0.0007669116603210568,
0.01786477491259575,
0.025173848494887352,
-0.013103054836392403,
-0.011812728829681873,
0.012745093554258347,
0.030152011662721634,
0.012795042246580124,
0.028470424935221672,
-0.07572133839130402,
0.001005726051516831,
0.056940849870443344,
-0.07112611085176468,
0.04578576982021332,
0.03852664679288864,
-0.025839824229478836,
0.02420818619430065,
0.030468350276350975,
-0.08597735315561295,
-0.029652530327439308,
0.030018815770745277,
0.015475590713322163,
0.015209200792014599,
-0.028953256085515022,
0.06782954186201096,
-0.029835673049092293,
0.03809376060962677,
-0.016491202637553215,
0.00511968182399869,
0.017315346747636795,
-0.0037024039775133133,
0.038160357624292374,
0.0377274751663208,
0.03949230909347534,
0.07758606970310211,
0.004391271620988846,
0.013760705478489399,
0.0589720718562603,
-0.021011507138609886,
-0.002312181517481804,
-0.005818955134600401,
0.017481839284300804,
0.01653282530605793,
-0.008482854813337326,
-0.10682236403226852,
-0.054809730499982834,
-0.039725400507450104,
0.029352841898798943,
-0.05004800856113434,
-0.029835673049092293,
0.024807563051581383,
0.015317421406507492,
0.02275969088077545,
0.018197763711214066,
-0.04858286678791046,
-0.022060416638851166,
0.012137391604483128,
-0.01829765923321247,
0.0020312233828008175,
0.030468350276350975,
-0.01576695404946804,
0.04791688919067383,
-0.08944042026996613,
0.017481839284300804,
0.0003402715374249965,
0.007425619754940271,
-0.01673261821269989,
-0.005548403132706881,
0.016566123813390732,
-0.025190498679876328,
0.029752425849437714,
0.012362157925963402,
0.004736746195703745,
0.033132247626781464,
0.039725400507450104,
0.009814804419875145,
-0.014493277296423912,
0.001517173950560391,
-0.02340901643037796,
0.057906512171030045,
0.046152058988809586,
0.03692830726504326,
0.020645219832658768,
0.019862700253725052,
-0.02309267781674862,
0.0909721627831459,
0.05031440034508705,
-0.013810653239488602,
0.048616163432598114,
-0.052545417100191116,
0.015941772609949112,
0.02377530187368393,
0.03076803870499134,
0.04175662249326706,
-0.040358077734708786,
0.04838307201862335,
-0.01616653986275196,
0.03329874202609062,
0.03321549668908119,
-0.05187943950295448,
-0.028270632028579712,
-0.010172765702009201,
-0.03925921767950058,
0.009157153777778149,
-0.05920516327023506,
0.012137391604483128,
0.05853918939828873,
0.003912602085620165,
0.040691062808036804,
-0.007737795356661081,
0.061203088611364365,
-0.06323431432247162,
-0.012670171447098255,
0.010397532023489475,
0.011429793201386929,
-0.0444871187210083,
0.00648492993786931,
-0.029652530327439308,
-0.01733199506998062,
0.06143618002533913,
-0.054410144686698914,
0.029918920248746872,
-0.01602501980960369,
0.030451700091362,
0.0007866827654652297,
0.008166516199707985,
-0.03183359652757645,
-0.05797310918569565,
-0.034697290509939194,
-0.05088047683238983,
-0.0348304845392704,
0.008974011056125164,
0.02221026085317135,
-0.06839561462402344,
0.04042467474937439,
0.03562965616583824,
0.03383152186870575,
0.03689500689506531,
0.04698452726006508,
0.0003834558301605284,
0.02292618341743946,
-0.06832902133464813,
0.010705545544624329,
0.04528629034757614,
-0.03374827653169632,
-0.005735708400607109,
-0.0009282024693675339,
0.014493277296423912,
0.026971980929374695,
-0.017598384991288185,
0.021028155460953712,
-0.05507611855864525,
0.0094318687915802,
0.03656201809644699,
-0.01585020124912262,
-0.05004800856113434,
-0.029652530327439308,
0.04991481453180313,
-0.024308081716299057,
0.02474096603691578,
-0.04698452726006508,
0.01025601290166378,
-0.01878049038350582,
0.02908645197749138,
-0.02437467873096466,
-0.030235258862376213,
0.03882633522152901,
-0.0072591258212924,
-0.053111493587493896,
-0.003084296127781272,
-0.02647249959409237,
-0.062002260237932205,
-0.0030905394814908504,
-0.039758697152137756,
0.018847087398171425,
0.057340435683727264,
-0.0246577188372612,
0.007879314944148064,
-0.02062857151031494,
-0.052911702543497086,
0.017165502533316612,
0.03254951909184456,
0.052545417100191116,
-0.0318668968975544,
0.018813788890838623,
0.004124881699681282,
0.006755482405424118,
-0.012536976486444473,
-0.012961535714566708,
0.06133628264069557,
-0.055209316313266754,
-0.009598362259566784,
0.02309267781674862,
0.000070889902417548,
-0.027055228129029274,
-0.02951933443546295,
-0.003167542861774564,
0.04375454783439636,
-0.006372546777129173,
-0.08644353598356247,
0.02011243999004364,
0.012836664915084839,
0.02187727391719818,
-0.004703447222709656,
0.026688942685723305,
-0.00843706913292408,
-0.0073049115017056465,
-0.0026597371324896812,
0.0032112475018948317,
-0.021011507138609886,
0.023875199258327484,
0.010688896290957928,
-0.05610838159918785,
0.05108027160167694,
0.05933836102485657,
-0.027937645092606544,
-0.07632071524858475,
-0.019479764625430107,
-0.037461087107658386,
-0.025490187108516693,
-0.017398592084646225,
-0.018897036090493202,
-0.044986601918935776,
0.0009099922026507556,
0.029835673049092293,
0.007413132581859827,
-0.010181090794503689,
0.07185868918895721,
-0.007700334303081036,
-0.05707404389977455,
-0.0038335176650434732,
0.00781271792948246,
-0.05234562233090401,
-0.04328836500644684,
-0.03812706097960472,
0.08824166655540466,
0.06613130122423172,
-0.02911975048482418,
-0.00584392948076129,
-0.028820062056183815,
-0.07438939064741135,
-0.06563182175159454,
-0.05437684804201126,
0.012686820700764656,
0.04415413364768028,
0.00951511599123478,
-0.057740017771720886,
0.02365875616669655,
-0.03486378490924835,
0.003244546242058277,
0.05147985741496086,
0.010031246580183506,
0.021094752475619316,
-0.06436646729707718,
-0.050414297729730606,
0.015700357034802437,
0.027138475328683853,
0.05514271929860115,
0.016499526798725128,
0.05584198981523514,
0.022293508052825928,
0.0008688890375196934,
-0.042422596365213394,
-0.006643099244683981,
-0.00512800645083189,
0.008224789053201675,
0.03443089872598648,
-0.04598556458950043,
-0.004000011365860701,
0.013302847743034363,
-0.05627487599849701,
-0.020345531404018402,
-0.04948193207383156,
0.051346659660339355,
-0.0030905394814908504,
0.0012632710859179497,
0.02787104807794094,
-0.04025818035006523,
-0.011970898136496544,
0.02019568718969822,
-0.015209200792014599,
0.043621353805065155,
-0.010863714851439,
0.001951098209246993,
-0.008840816095471382,
0.04818328097462654,
-0.00466598616912961,
0.010805441997945309,
-0.03258281946182251,
0.008382958360016346,
-0.0357295498251915,
-0.04705112427473068,
-0.015209200792014599,
0.018364256247878075,
0.025207148864865303,
0.022992782294750214,
0.053311288356781006,
-0.03882633522152901,
0.0337982252240181,
-0.03582944720983505,
0.006784618832170963,
0.0016378818545490503,
0.08544457703828812,
-0.039925191551446915,
-0.0011540096020326018,
-0.01003957074135542,
-0.00020577582472469658,
-0.02340901643037796,
-0.06643099337816238,
-0.034164510667324066,
0.01518422644585371,
-0.05337788537144661,
0.016099942848086357,
0.06999395787715912,
0.05061408877372742,
-0.011612936854362488,
0.00817900337278843,
-0.02948603592813015,
-0.01934656873345375,
0.040691062808036804,
-0.01974615454673767,
-0.025356993079185486,
-0.024957407265901566,
-0.038027163594961166,
-0.042655687779188156,
0.038959529250860214,
0.021594233810901642,
-0.0909055694937706,
-0.07418959587812424,
-0.003513017436489463,
0.0415901280939579,
-0.032283131033182144,
-0.06213545426726341,
0.06323431432247162,
-0.002474512904882431,
0.004507817327976227,
-0.012603574432432652,
-0.019296621903777122,
-0.05068068578839302,
0.055042821913957596,
0.032366376370191574,
0.03233307972550392,
-0.018597347661852837,
-0.0947016254067421,
-0.0261395126581192,
-0.0016378818545490503,
-0.04272228851914406,
0.03116762265563011,
-0.004670148715376854,
-0.0027783638797700405,
0.002586896065622568,
-0.023042729124426842,
0.00035015708999708295,
0.016890786588191986,
-0.0038002189248800278,
0.003852248191833496,
0.021810676902532578,
-0.014010446146130562,
-0.06866201013326645,
-0.005785656627267599,
-0.0101394671946764,
-0.002767957979813218,
-0.004185235593467951,
-0.029918920248746872,
-0.03836015239357948,
0.032799262553453445,
0.025190498679876328,
0.009731557220220566,
-0.019096828997135162,
0.0007039562333375216,
0.04175662249326706,
0.06643099337816238,
0.00548180565237999,
0.04005838558077812,
-0.0123288594186306,
-0.019879348576068878,
0.016491202637553215,
-0.017398592084646225,
-0.007400645408779383,
-0.045386187732219696,
0.002559840911999345,
-0.017282048240303993,
0.012104093097150326,
0.004212290979921818,
0.027804449200630188,
0.023825250566005707,
-0.03000216744840145,
-0.04791688919067383,
-0.03696160390973091,
0.009864752180874348,
-0.04798348620533943,
-0.009706583805382252,
0.03258281946182251,
0.02940278872847557,
0.026638993993401527,
0.07285764813423157,
-0.005406883545219898,
0.013652484863996506,
-0.057906512171030045,
-0.038759734481573105,
0.00043860686128027737,
-0.03736118972301483,
0.011254974640905857,
0.06666408479213715,
-0.013669134117662907,
-0.042422596365213394,
0.018131164833903313,
0.06173586845397949,
0.03536326438188553,
-0.03542986139655113,
0.010147791355848312,
-0.025073952972888947,
-0.00837879627943039,
-0.04868276044726372,
-0.05054749175906181,
0.039758697152137756,
-0.004819992929697037,
-0.02184397540986538,
0.007084307260811329,
0.08198150247335434,
-0.04814998060464859,
0.04994811490178108,
0.030668141320347786,
0.010405857115983963,
0.07885142415761948,
-0.00931532308459282,
-0.03909272328019142,
-0.006655585952103138,
0.026738889515399933,
0.019296621903777122,
-0.046152058988809586,
-0.0011966736055910587,
-0.03962550312280655,
-0.0020894960034638643,
-0.029352841898798943,
-0.030718090012669563,
-0.025273745879530907,
0.10855390131473541,
0.057340435683727264,
0.011995871551334858,
0.023242522031068802,
-0.05727383866906166,
0.053644273430109024,
-0.012761742807924747,
0.028187384828925133,
-0.002834555460140109,
-0.027571359649300575,
-0.028503723442554474,
-0.015475590713322163,
-0.052911702543497086,
0.05737373232841492,
-0.036295630037784576,
-0.024308081716299057,
0.03436430171132088,
0.023558860644698143,
0.013144678436219692,
-0.03532996401190758,
0.014077043160796165,
0.049215540289878845,
0.026172811165452003,
-0.0037731637712568045,
0.016316384077072144,
0.018231062218546867,
-0.001770036295056343,
0.02400839328765869,
-0.018131164833903313,
-0.015492239966988564,
-0.010181090794503689,
0.04601886123418808,
-0.07578793913125992,
0.024924108758568764,
0.04125714302062988,
-0.011013559065759182,
-0.005365259945392609,
0.03223318234086037,
-0.045918967574834824,
0.045719172805547714,
-0.011304923333227634,
0.038160357624292374,
0.01389390043914318,
-0.005947988014668226,
-0.04974832013249397,
-0.05201263725757599,
-0.037394486367702484,
-0.04501989856362343,
0.005277850665152073,
0.07525515556335449,
0.0029136398807168007,
-0.018996933475136757,
0.009306998923420906,
0.028736814856529236,
0.016965709626674652,
0.04175662249326706,
0.06403347849845886,
0.07505536824464798,
-0.030185310170054436,
-0.0636671930551529,
-0.0094152195379138,
0.03125087171792984,
0.033731624484062195,
0.026555746793746948,
-0.024607770144939423,
0.03736118972301483,
0.030901232734322548,
-0.018680594861507416,
0.03053494729101658,
0.029269594699144363,
-0.04135703667998314,
0.01801461912691593,
-0.03383152186870575,
0.0512467660009861,
-0.0405578687787056,
-0.0386931374669075,
-0.049781620502471924,
0.0026805486995726824,
0.029935570433735847,
-0.05760682374238968,
-0.014385056681931019,
-0.06143618002533913,
-0.05747362971305847,
0.0064516314305365086,
0.012420430779457092,
0.09849768131971359,
-0.008774219080805779,
-0.012087443843483925,
-0.06293462216854095,
-0.008079107850790024,
0.08824166655540466,
-0.010505753569304943,
-0.02667229250073433,
0.0006550487014465034,
-0.014368407428264618,
0.03348188474774361,
-0.02618946135044098,
0.01684916391968727,
-0.0376608781516552,
0.07585453242063522,
0.01607496850192547,
-0.006280975416302681,
-0.0013766948832198977,
-0.05893877521157265,
-0.03459739312529564,
0.0028241495601832867,
-0.02289288491010666,
0.06320101022720337,
0.011354871094226837,
-0.05840599536895752,
-0.03542986139655113,
0.019279971718788147,
-0.006643099244683981,
-0.015891825780272484,
0.015134278684854507,
-0.03699490427970886,
0.057173941284418106,
0.003100945381447673,
-0.016999008134007454,
-0.005356935318559408,
0.012437080033123493,
0.046418447047472,
-0.007051008753478527,
-0.034697290509939194,
0.010264337062835693,
-0.027604658156633377,
-0.011196701787412167,
0.0038418425247073174,
0.05197933688759804,
-0.04102405160665512,
-0.021660832688212395,
0.03536326438188553,
-0.013003159314393997,
-0.006867865566164255,
-0.03729459270834923,
-0.04518639296293259,
0.025190498679876328,
-0.031517259776592255,
-0.039325814694166183,
-0.002761714393272996,
-0.028470424935221672,
-0.07199188321828842,
-0.04295537620782852,
-0.021494338288903236,
-0.027005279436707497,
-0.04139033704996109,
-0.019879348576068878,
0.038959529250860214,
-0.0123288594186306,
0.05567549914121628,
0.024790914729237556,
0.05923846364021301,
-0.004503654781728983,
0.017881425097584724,
0.015009407885372639,
-0.027654604986310005,
0.04798348620533943,
0.037227995693683624,
-0.00957338884472847,
-0.00041909588617272675,
-0.03999178856611252,
-0.014201913960278034,
-0.009956324473023415,
0.01460149884223938,
0.009240400977432728,
-0.011471416801214218,
-0.011496391147375107,
-0.017007332295179367,
-0.07485557347536087,
-0.033248793333768845,
-0.010006272234022617,
-0.05923846364021301,
0.028420476242899895,
-0.04511979594826698,
-0.0484163723886013,
-0.007904289290308952,
-0.10588999837636948,
-0.007846016436815262,
-0.007758607156574726,
-0.02244335226714611,
-0.02943608909845352,
0.0677296444773674,
-0.0348304845392704,
0.014235212467610836,
-0.01806456781923771,
-0.055209316313266754,
0.014834590256214142,
0.0005228943191468716,
0.0022726391907781363,
-0.02767125517129898,
0.006434982176870108,
0.01729869656264782,
-0.01854739896953106,
-0.07518856227397919,
0.0145016023889184,
-0.013469341211020947,
0.06706366688013077,
0.012145716696977615,
0.03519676998257637,
-0.022743040695786476,
-0.02585647441446781,
-0.049382034689188004,
0.032199885696172714,
-0.00403331033885479,
-0.005377747118473053,
0.025390291586518288,
0.05247882008552551,
0.0473841093480587,
0.06536543369293213,
0.02542359009385109,
0.05394396185874939,
-0.04618535563349724,
-0.05121346563100815,
0.0035733713302761316,
0.04298867657780647,
0.04761720076203346,
-0.023875199258327484,
0.04868276044726372,
0.008740919642150402,
-0.0405578687787056,
-0.026006318628787994,
0.0531780906021595,
-0.057173941284418106,
-0.008511991240084171,
0.004045797046273947,
-0.014077043160796165,
0.003950063139200211,
0.03942571207880974,
-0.039159320294857025,
-0.0073049115017056465,
0.011854352429509163,
0.03692830726504326,
-0.042655687779188156,
0.07365681976079941,
0.016740942373871803,
-0.05567549914121628,
-0.01644957810640335,
0.01669931970536709,
0.019979245960712433,
0.004828317556530237,
0.013852276839315891,
-0.0010114492615684867,
0.06509903818368912,
0.032765962183475494,
-0.003171705175191164,
0.05764012411236763,
-0.005456831306219101,
0.023209223523736,
-0.0004549961013253778,
-0.003034347901120782,
0.042455896735191345,
-0.01315300352871418,
0.0034401763696223497,
0.03536326438188553,
0.020528674125671387,
0.012512002140283585,
-0.029069801792502403,
0.010405857115983963,
0.07612092792987823,
0.038027163594961166,
0.06163597106933594,
0.003400634042918682,
-0.007870989851653576,
0.08591075241565704
] |
10,216 | wsdiff | RecordFormatter | null | class RecordFormatter(Formatter):
def __init__(self, side, diff):
self.side = side
if side == 'right':
diff = [(right, left, change) for left, right, change in diff]
self.diff = diff
def format(self, tokensource, outfile):
diff = iter(self.diff)
self.lines = []
for lineno, tokens in groupby(iter_token_lines(tokensource), key=lambda arg: arg[0]):
for (lineno_ours, diff_ours), (lineno_theirs, _diff_theirs), change in diff:
if lineno_ours == lineno:
break
else:
self.lines.append(f'<span class="wsd-lineno wsd-{self.side} wsd-empty"></span><span class="wsd-line wsd-{self.side} wsd-empty"></span>')
if not change:
change_class = ''
elif not lineno_ours or not lineno_theirs:
change_class = ' wsd-insert'
else:
change_class = ' wsd-change'
line = f'<span class="wsd-lineno wsd-{self.side}{change_class}">{lineno}</span><span class="wsd-line wsd-{self.side}{change_class}">'
parts = re.split(r'(\00.|\01|$)', diff_ours)
source_pos = 0
diff_markers = []
if lineno_theirs: # Do not highlight word changes if the whole line got added or removed.
for span, sep in zip(parts[0:-2:2], parts[1:-2:2]):
source_pos += len(span)
diff_markers.append((source_pos, sep))
diff_class = ''
source_pos = 0
for _lineno, ttype, value in tokens:
css_class = get_token_class(ttype)
while diff_markers:
next_marker_pos, next_marker_type = diff_markers[0]
if source_pos <= next_marker_pos < source_pos + len(value):
split_pos = next_marker_pos - source_pos
left, value = value[:split_pos], value[split_pos:]
line += f'<span class="wsd-{css_class}{diff_class}">{html.escape(left)}</span>'
source_pos += len(left)
diff_class = ' wsd-word-change' if next_marker_type.startswith('\0') else ''
diff_markers = diff_markers[1:]
else:
break
line += f'<span class="{css_class}{diff_class}">{html.escape(value)}</span>'
source_pos += len(value)
if css_class is not None:
line += '</span>'
line += '</span>'
self.lines.append(line)
for _ours_empty, (lineno_theirs, _diff_theirs), change in diff:
self.lines.append(f'<span class="wsd-lineno wsd-{self.side} wsd-empty"></span><span class="wsd-line wsd-{self.side} wsd-empty"></span>')
| (side, diff) | [
0.018278462812304497,
-0.048508938401937485,
-0.003919448237866163,
0.06462939828634262,
-0.013833347707986832,
-0.05256671831011772,
-0.02084224298596382,
0.048545826226472855,
-0.0002234950225101784,
0.004618032369762659,
-0.017208684235811234,
-0.029750918969511986,
0.027482250705361366,
-0.01931135356426239,
-0.027113361284136772,
0.013427569530904293,
-0.01927446387708187,
-0.02718713879585266,
-0.021377133205533028,
-0.027869584038853645,
0.015345793217420578,
-0.003363808849826455,
0.015991348773241043,
0.02119268849492073,
0.022723577916622162,
-0.0036935037933290005,
-0.026615360751748085,
-0.04076226428151131,
0.00046168797416612506,
-0.02781425043940544,
-0.003059475217014551,
-0.06735917925834656,
-0.02467869222164154,
-0.047180935740470886,
-0.018343018367886543,
-0.09450943022966385,
-0.030839141458272934,
-0.004864727146923542,
-0.006469395477324724,
-0.005634783301502466,
0.02349824644625187,
0.0016576960915699601,
0.018306130543351173,
-0.006925895810127258,
-0.005902228411287069,
0.034564923495054245,
-0.0007112646126188338,
0.022262467071413994,
-0.03216714411973953,
-0.04175826534628868,
0.044045377522706985,
-0.03991381824016571,
-0.01127878949046135,
0.02726091630756855,
0.022428467869758606,
-0.05323072150349617,
0.01762368530035019,
0.023793358355760574,
0.028976252302527428,
-0.03187203407287598,
0.008147841319441795,
0.0398031510412693,
0.04271737486124039,
0.07031029462814331,
-0.01942201890051365,
-0.02788802795112133,
0.035856034606695175,
-0.007986452430486679,
-0.002139557618647814,
0.03740537166595459,
0.016157349571585655,
-0.013934792019426823,
0.04249604418873787,
0.0008144383318722248,
-0.02290802262723446,
0.02596980333328247,
-0.07130629569292068,
0.003525197971612215,
0.04135248810052872,
-0.019126908853650093,
0.029603363946080208,
0.0505378283560276,
0.06451873481273651,
0.022742023691534996,
0.06824451684951782,
-0.07134318351745605,
0.010909900069236755,
0.023276912048459053,
-0.0022698217071592808,
0.00019582832464948297,
-0.06997829675674438,
0.0031424753833562136,
0.02381180226802826,
-0.04736538231372833,
-0.016360238194465637,
-0.016129683703184128,
-0.017291683703660965,
-0.018592018634080887,
-0.04832449182868004,
0.012901902198791504,
0.04906227067112923,
0.07315073907375336,
-0.004161532036960125,
-0.00022435959544964135,
0.009978454560041428,
-0.017494574189186096,
-0.018011018633842468,
0.008170897141098976,
-0.02143246680498123,
0.015170571394264698,
-0.00830000825226307,
-0.07016273587942123,
0.002907308517023921,
-0.01669223979115486,
0.05193960666656494,
-0.036058925092220306,
-0.045262712985277176,
0.04622182622551918,
0.022926468402147293,
-0.036169592291116714,
0.05020583048462868,
-0.06953562796115875,
-0.02847825177013874,
0.018702685832977295,
-0.06105117127299309,
-0.05031649395823479,
0.03218558803200722,
0.005671672523021698,
0.10719922184944153,
-0.008558230474591255,
-0.007018118165433407,
0.011205011047422886,
-0.025711581110954285,
-0.02718713879585266,
0.04419293254613876,
0.002292877295985818,
-0.0314846970140934,
0.03469403460621834,
-0.0442667119204998,
0.027426917105913162,
0.0553702786564827,
-0.02025202102959156,
0.010992900468409061,
-0.012376234866678715,
-0.0786471888422966,
0.02589602582156658,
-0.031669143587350845,
0.08654142171144485,
0.01176756713539362,
0.06680584698915482,
-0.03130025416612625,
-0.014893904328346252,
0.05205027386546135,
0.031226476654410362,
0.04946805164217949,
0.02032579854130745,
-0.03340292349457741,
-0.015474904328584671,
-0.006612339988350868,
0.029308252036571503,
0.04684893786907196,
-0.03947114944458008,
0.05644005537033081,
0.017881907522678375,
0.04507826641201973,
0.12335656583309174,
-0.05843205749988556,
-0.026486249640583992,
-0.045262712985277176,
-0.019403574988245964,
0.011039011180400848,
0.038364484906196594,
-0.0015550988027825952,
0.067543625831604,
0.0005069345352239907,
0.05625561252236366,
-0.028146250173449516,
0.044709376990795135,
-0.02181980013847351,
-0.025674693286418915,
0.01169378962367773,
0.016185017302632332,
0.005487227812409401,
0.009711009450256824,
-0.04260671138763428,
0.003977087326347828,
0.029916919767856598,
-0.03415914624929428,
0.02322157844901085,
-0.008355341851711273,
0.015235126949846745,
-0.05717783421278,
-0.0009118481539189816,
-0.04673827067017555,
0.006118950434029102,
0.03165069967508316,
-0.05396850034594536,
-0.012901902198791504,
0.08314763754606247,
-0.03917603939771652,
-0.06105117127299309,
0.018499797210097313,
-0.02021513134241104,
-0.008484452962875366,
-0.015106014907360077,
0.04489382356405258,
0.0068290624767541885,
0.05219782888889313,
-0.12033167481422424,
0.04183204099535942,
0.018822574988007545,
-0.04629560187458992,
0.028220027685165405,
0.04043026268482208,
0.04371337592601776,
-0.07492140680551529,
0.02314780093729496,
0.07613874226808548,
-0.05810005962848663,
-0.003230086527764797,
0.06381784379482269,
0.029474252834916115,
-0.06806007027626038,
-0.0041845873929560184,
0.015235126949846745,
-0.006183506455272436,
0.05747294798493385,
-0.019680242985486984,
-0.0007965702679939568,
-0.02523202635347843,
0.016314128413796425,
-0.04352893307805061,
-0.05142316222190857,
0.009563454426825047,
0.02495535835623741,
-0.05780494585633278,
0.007944952696561813,
-0.02001224271953106,
0.009545009583234787,
-0.029400473460555077,
-0.0335320346057415,
0.02768513932824135,
0.04068848490715027,
-0.013750347308814526,
0.01380568090826273,
-0.056181833148002625,
0.05496450141072273,
-0.03441736847162247,
-0.027832694351673126,
0.04747604951262474,
-0.014515792950987816,
0.03386403247714043,
-0.009581898339092731,
0.008212396875023842,
0.0025153637398034334,
-0.02381180226802826,
-0.04076226428151131,
0.005021505057811737,
-0.0036681427154690027,
-0.028017139062285423,
0.022778911516070366,
-0.004463559947907925,
0.020657798275351524,
-0.016904350370168686,
0.03185358643531799,
0.011730678379535675,
0.02921602874994278,
-0.03668603673577309,
0.03913915157318115,
0.040282707661390305,
-0.05872717127203941,
0.005952950567007065,
-0.050353385508060455,
0.014644904062151909,
-0.0751427412033081,
-0.013243124820291996,
0.007645229808986187,
0.010024565272033215,
-0.0035989759489893913,
-0.021764466539025307,
-0.0059944503009319305,
-0.0059068393893539906,
-0.027242472395300865,
0.030912920832633972,
0.04002448543906212,
0.012486901134252548,
-0.03364270180463791,
-0.01563168317079544,
0.008770341984927654,
-0.037811148911714554,
0.01966179721057415,
-0.010854566469788551,
0.0482507161796093,
-0.004726393613964319,
0.04382404312491417,
0.010033788159489632,
0.009452787227928638,
0.01245923526585102,
-0.02886558510363102,
-0.0056071169674396515,
-0.0688716247677803,
-0.00274130841717124,
0.0733351856470108,
0.011961234733462334,
-0.0256931371986866,
-0.009346731938421726,
0.005810006055980921,
-0.05562850087881088,
0.059833839535713196,
-0.06643695384263992,
-0.014700236730277538,
0.05079605057835579,
-0.0017038072692230344,
-0.027426917105913162,
0.027039583772420883,
0.0008611258817836642,
-0.03380870074033737,
0.045963604003190994,
0.025859137997031212,
0.06023961678147316,
-0.0294926967471838,
-0.022539133206009865,
-0.0066307843662798405,
0.025803804397583008,
0.037811148911714554,
-0.04681204631924629,
0.04068848490715027,
-0.005468783434480429,
0.016756795346736908,
0.01887790858745575,
-0.01455268170684576,
-0.053673386573791504,
-0.005496450234204531,
-0.003758059348911047,
-0.03445425629615784,
-0.07211785018444061,
-0.004101587459445,
-0.022649800404906273,
-0.007659063208848238,
-0.05134938657283783,
0.061124950647354126,
0.02910536341369152,
-0.014810903929173946,
-0.008964008651673794,
0.011297233402729034,
-0.014893904328346252,
-0.004878560546785593,
0.040836039930582047,
0.029990697279572487,
0.08912364393472672,
0.02060246467590332,
-0.010992900468409061,
-0.01075312215834856,
0.020547131076455116,
0.05703027918934822,
-0.06035028398036957,
0.00410389294847846,
-0.0737040713429451,
-0.015345793217420578,
-0.0218935776501894,
-0.03532114624977112,
0.036409370601177216,
0.028072472661733627,
0.02482624724507332,
-0.006460173055529594,
-0.01722712814807892,
-0.03316314518451691,
-0.04707026854157448,
-0.02252068929374218,
0.02558246999979019,
-0.02021513134241104,
0.012643679045140743,
0.060608506202697754,
-0.05880094692111015,
-0.011638456024229527,
-0.010494899936020374,
-0.002427752362564206,
0.029345141723752022,
-0.03155847638845444,
-0.05880094692111015,
0.03803248330950737,
0.0629693940281868,
0.013012568466365337,
0.06204717233777046,
-0.03152158856391907,
-0.03596670180559158,
-0.0047863381914794445,
-0.010144454427063465,
0.0317244753241539,
0.01692279428243637,
-0.0372762605547905,
-0.011869012378156185,
-0.015760794281959534,
-0.00969256553798914,
-0.061198730021715164,
0.01609279401600361,
-0.05444805696606636,
0.010992900468409061,
-0.01676601730287075,
-0.03463870286941528,
0.017734350636601448,
-0.003100975416600704,
-0.04179515317082405,
0.013741125352680683,
-0.036796703934669495,
-0.012440790422260761,
0.017596017569303513,
0.06787562370300293,
-0.043455153703689575,
0.03338447958230972,
-0.043492045253515244,
0.018619686365127563,
0.010236676782369614,
0.0015401126584038138,
0.014395903795957565,
-0.026191137731075287,
0.002944197505712509,
0.023940913379192352,
-0.0652565136551857,
0.01703346148133278,
-0.057989392429590225,
0.041536930948495865,
0.08609875291585922,
0.028699584305286407,
0.02248380146920681,
-0.0527142770588398,
-0.04839827120304108,
-0.014423570595681667,
-0.004161532036960125,
0.018619686365127563,
0.03471247851848602,
-0.020897576585412025,
-0.0024646413512527943,
-0.016544682905077934,
0.0049016159027814865,
-0.04050404205918312,
0.010190566070377827,
0.022059578448534012,
0.09000898152589798,
0.019809354096651077,
-0.003073308616876602,
0.02025202102959156,
0.05666138976812363,
0.01840757392346859,
0.005648616701364517,
-0.03290492296218872,
-0.015161348506808281,
-0.001666918396949768,
-0.05400538817048073,
-0.01798335090279579,
-0.003453725716099143,
0.0763600766658783,
-0.0419795997440815,
-0.014257569797337055,
0.03474937006831169,
-0.039618708193302155,
0.0016634600469842553,
0.003539031371474266,
0.04994760453701019,
0.024180691689252853,
0.04006137326359749,
0.06769117712974548,
-0.013187791220843792,
0.032370034605264664,
-0.04271737486124039,
-0.07259740680456161,
0.03818003833293915,
-0.02412535808980465,
-0.04548404738306999,
0.0009931190870702267,
0.05275116488337517,
-0.031115809455513954,
-0.04050404205918312,
0.0055932835675776005,
-0.018186241388320923,
0.04629560187458992,
-0.02161691151559353,
-0.0776880756020546,
-0.034491147845983505,
-0.003121725283563137,
-0.04050404205918312,
-0.0047586713917553425,
-0.05072227492928505,
-0.027353139594197273,
-0.007031951565295458,
0.0042399209924042225,
0.03297869861125946,
-0.057399168610572815,
0.03200114518404007,
-0.028847141191363335,
-0.03873337432742119,
-0.0002770992286968976,
-0.01609279401600361,
-0.02119268849492073,
-0.045447155833244324,
0.0009153065038844943,
0.009153065271675587,
-0.018887130543589592,
0.019956909120082855,
-0.039102260023355484,
0.04386093467473984,
-0.05385783314704895,
-0.02181980013847351,
0.00018775886564981192,
0.04865649342536926,
0.006294173188507557,
0.024254469200968742,
0.059243615716695786,
-0.013215458020567894,
-0.03720248118042946,
-0.01876724138855934,
-0.024070024490356445,
0.06422361731529236,
0.029234474524855614,
-0.059981394559144974,
-0.07842585444450378,
-0.03482314571738243,
0.04006137326359749,
0.016987349838018417,
0.027703583240509033,
-0.016185017302632332,
-0.038364484906196594,
-0.00030029891058802605,
-0.03161380812525749,
-0.0029603363946080208,
0.033937811851501465,
-0.019993798807263374,
0.005800783634185791,
0.02768513932824135,
-0.06577295809984207,
0.007968008518218994,
-0.009913899004459381,
0.05573916807770729,
-0.038290705531835556,
0.015991348773241043,
0.015428793616592884,
0.06145695224404335,
-0.047771159559488297,
-0.009406676515936852,
0.026228027418255806,
0.02890247292816639,
-0.005086060613393784,
-0.05396850034594536,
-0.03179825469851494,
-0.02154313214123249,
0.06086672842502594,
0.0013418346643447876,
-0.04389782249927521,
-0.02220713347196579,
0.017596017569303513,
0.001885946374386549,
-0.0007654452347196639,
0.013197013176977634,
0.022649800404906273,
-0.010688566602766514,
0.04906227067112923,
-0.0066861179657280445,
0.037995595484972,
0.0911894291639328,
0.008724231272935867,
0.04998449608683586,
0.016480127349495888,
0.03211180865764618,
-0.008816453628242016,
-0.0077789523638784885,
0.037073370069265366,
0.038327593356370926,
0.028090916574001312,
-0.06540406495332718,
0.05883783847093582,
0.03109736554324627,
0.03806937113404274,
0.020381132140755653,
-0.023553580045700073,
-0.05894850566983223,
0.03757137060165405,
-0.01410079188644886,
0.035579368472099304,
0.013851791620254517,
-0.024586468935012817,
-0.010144454427063465,
0.042200930416584015,
0.035856034606695175,
-0.04422982409596443,
0.02879180759191513,
0.0045880600810050964,
-0.03998759761452675,
0.014875459484755993,
0.034564923495054245,
0.05651383474469185,
-0.021672245115041733,
-0.00672761769965291,
-0.0254533588886261,
-0.026486249640583992,
0.03275736793875694,
0.03450959175825119,
0.026781359687447548,
0.02443891391158104,
-0.029234474524855614,
0.016037460416555405,
-0.03430670127272606,
-0.04179515317082405,
-0.032370034605264664,
-0.01460801437497139,
0.030304253101348877,
-0.028146250173449516,
0.08034408092498779,
-0.05603427812457085,
-0.03681514784693718,
0.016286460682749748,
0.009346731938421726,
0.03611426055431366,
0.044156044721603394,
-0.026228027418255806,
-0.003534420160576701,
0.0036796703934669495,
0.041500043123960495,
-0.02318469062447548,
-0.005247449968010187,
-0.028994696214795113,
0.052972499281167984,
0.031355585902929306,
-0.040208928287029266,
-0.008433730341494083,
-0.006967396009713411,
0.03508136793971062,
-0.006363339722156525,
0.0031240310054272413,
0.009840121492743492,
-0.06614184379577637,
-0.022705134004354477,
0.0464431568980217,
-0.009904677048325539,
-0.06820762157440186,
-0.04371337592601776,
0.062342286109924316,
-0.0033384477719664574,
-0.05957561731338501,
-0.006566228810697794,
0.011675344780087471,
0.047144047915935516,
-0.05666138976812363,
0.02639402635395527,
0.002091140951961279,
-0.05514894425868988,
-0.00422147661447525,
0.012689790688455105,
-0.02761136181652546,
-0.022391578182578087,
0.030267363414168358,
0.010411899536848068,
0.04810316115617752,
-0.022815801203250885,
-0.015281237661838531,
-0.004673365969210863,
0.024070024490356445,
-0.007359340786933899,
-0.04581604525446892,
0.04120492935180664,
0.016710683703422546,
0.02134024351835251,
0.003767281537875533,
-0.0037188648711889982,
-0.02667069435119629,
-0.010937566868960857,
-0.014266792684793472,
0.06514584273099899,
0.07440496236085892,
0.07702407985925674,
-0.01868424192070961,
-0.030341142788529396,
0.00046572269639000297,
-0.022944912314414978,
0.007968008518218994,
-0.04076226428151131,
-0.05662450194358826,
0.07204407453536987,
0.00516906101256609,
-0.000887063390109688,
-0.037110261619091034,
0.006718395743519068,
0.07857341319322586,
0.005141394212841988,
-0.053673386573791504,
-0.006741451099514961,
0.06459251046180725,
-0.032886479049921036,
-0.017568351700901985,
0.05784183740615845,
-0.04068848490715027,
-0.04172137379646301,
0.013741125352680683,
0.003967864904552698,
-0.005833061411976814,
-0.05208716541528702,
0.0023009467404335737,
0.0033868644386529922,
-0.07399918884038925,
-0.017402350902557373,
-0.006649228744208813,
0.0464431568980217,
-0.010273565538227558,
0.040172040462493896,
0.003354586660861969,
0.010411899536848068,
-0.015714682638645172,
-0.022078022360801697,
-0.03541336953639984,
0.008078674785792828,
0.004680282436311245,
0.00820778589695692,
0.04323382303118706,
0.014156125485897064,
0.034804701805114746,
0.007165674120187759,
-0.04422982409596443,
-0.028183139860630035,
-0.01317856926470995,
0.051755163818597794,
0.005703950300812721,
-0.008581286296248436,
0.0482507161796093,
-0.002884252928197384,
0.02419913560152054,
-0.05714094638824463,
0.03694425895810127,
-0.00969256553798914,
-0.019827798008918762,
-0.06614184379577637,
-0.09141075611114502,
0.002722863806411624,
0.04493071138858795,
-0.012735901400446892,
-0.012403901666402817,
0.020823799073696136,
0.0297324750572443,
-0.007502285297960043,
-0.03126336634159088,
0.050980497151613235,
0.02831225097179413,
-0.02060246467590332,
-0.01033812202513218,
-0.05013205111026764,
0.05382094159722328,
-0.059243615716695786,
0.05382094159722328,
0.06219473108649254,
0.06702718138694763,
-0.03559781238436699,
0.010430343449115753,
0.03526581451296806,
-0.05072227492928505,
-0.027242472395300865,
0.008387619629502296,
0.02464180253446102,
0.0250291358679533,
0.006838284898549318,
-0.002660613739863038,
-0.0077097853645682335,
0.003396086860448122,
0.07363029569387436,
-0.021082021296024323,
0.02185668796300888,
0.05061160773038864,
0.03404847905039787,
0.028976252302527428,
-0.058579616248607635,
0.06979385018348694
] |
10,217 | wsdiff | __init__ | null | def __init__(self, side, diff):
self.side = side
if side == 'right':
diff = [(right, left, change) for left, right, change in diff]
self.diff = diff
| (self, side, diff) | [
0.021472904831171036,
0.002303481101989746,
0.047495897859334946,
-0.012372734025120735,
-0.07903148978948593,
-0.056526068598032,
0.012521486729383469,
0.05712107941508293,
0.02439546026289463,
-0.009100171737372875,
-0.016467811539769173,
0.06461121886968613,
0.013247750699520111,
0.02889304608106613,
-0.06226617842912674,
0.007043883204460144,
-0.010272693820297718,
-0.001100333291105926,
-0.036960698664188385,
0.03650568798184395,
0.0508909597992897,
0.005901986733078957,
-0.016117803752422333,
0.07434140145778656,
0.020335383713245392,
0.06268618255853653,
-0.016677815467119217,
-0.013291501440107822,
0.04116077721118927,
-0.04396083205938339,
0.01001018937677145,
0.030468076467514038,
-0.022505424916744232,
-0.00898641999810934,
-0.01240773405879736,
-0.04259580373764038,
-0.0069870068691670895,
0.024150457233190536,
-0.05169597640633583,
0.07560142874717712,
0.052991002798080444,
-0.05761108919978142,
0.015452791936695576,
0.015094035305082798,
-0.006707001943141222,
0.0019458180759102106,
0.014875280670821667,
-0.04735589399933815,
-0.025217976421117783,
-0.03629568591713905,
0.011445215903222561,
-0.010176442563533783,
0.05285099893808365,
0.0064182463102042675,
-0.02590048871934414,
0.04620087146759033,
0.03209560737013817,
0.06748127192258835,
0.025112975388765335,
0.0527459979057312,
-0.022015415132045746,
0.04886092245578766,
-0.013886512257158756,
-0.022522926330566406,
-0.007446390576660633,
-0.03400314226746559,
-0.02311793714761734,
-0.006335119716823101,
0.021385403349995613,
0.06289619207382202,
0.022662928327918053,
0.042770806699991226,
-0.007315138354897499,
0.0132039999589324,
0.026810506358742714,
0.025532983243465424,
-0.009362677112221718,
0.056596070528030396,
0.06940630823373795,
-0.023292940109968185,
-0.03566567227244377,
0.043890830129384995,
0.03344313055276871,
0.07735145837068558,
0.016599062830209732,
-0.006304494105279446,
0.0074638910591602325,
-0.012810242362320423,
0.004878217354416847,
-0.005005094688385725,
-0.07469141483306885,
0.0011150991776958108,
-0.03720570355653763,
-0.03375813737511635,
-0.009047671221196651,
0.0199853777885437,
-0.00938892737030983,
-0.05348100885748863,
-0.038045719265937805,
0.013510255143046379,
-0.00041617974056862295,
0.01839284785091877,
-0.05313100293278694,
-0.0005840735393576324,
-0.007853273302316666,
-0.07322138547897339,
0.009170173667371273,
-0.08435159176588058,
-0.048580918461084366,
-0.012346483767032623,
0.005932611878961325,
0.04837091267108917,
-0.021892914548516273,
0.06335119903087616,
-0.03941074386239052,
0.06272118538618088,
-0.027860525995492935,
-0.03232311084866524,
0.025777986273169518,
-0.01721157506108284,
0.05950112268328667,
-0.035910677164793015,
-0.019215364009141922,
0.03794071823358536,
0.007236386649310589,
0.046410877257585526,
0.013317751698195934,
-0.03174560144543648,
-0.011112709529697895,
0.009196423925459385,
0.033670637756586075,
-0.03965574875473976,
-0.050400953739881516,
-0.006956381257623434,
-0.0050882212817668915,
-0.0364006869494915,
0.02656550146639347,
-0.008785165846347809,
0.009791434742510319,
-0.0030581827741116285,
0.04438083991408348,
0.046060871332883835,
0.05278099700808525,
0.007914524525403976,
-0.0638062059879303,
0.0803615152835846,
-0.05558105185627937,
0.031185589730739594,
0.017010321840643883,
0.1128421351313591,
-0.028718043118715286,
0.020300382748246193,
0.02857803925871849,
0.006256368011236191,
0.05131097137928009,
-0.03097558580338955,
-0.05456602945923805,
-0.021735411137342453,
0.021962914615869522,
0.052955999970436096,
0.0053594764322042465,
-0.051170967519283295,
0.01140146516263485,
0.00736763933673501,
0.04928093031048775,
0.03381063789129257,
0.0068338792771101,
-0.07833147794008255,
-0.03176309913396835,
0.018655352294445038,
0.005066345911473036,
-0.06482122838497162,
-0.026968009769916534,
0.018480349332094193,
0.0021241025533527136,
0.032708119601011276,
0.0033863140270113945,
0.04410083219408989,
-0.027668023481965065,
-0.05498603731393814,
0.012206480838358402,
-0.002373482333496213,
0.03256811574101448,
0.020650390535593033,
-0.0003185607201885432,
-0.032393112778663635,
0.005858235526829958,
0.0035197539255023003,
0.037660710513591766,
0.0014995596138760448,
-0.012775241397321224,
-0.013396503403782845,
-0.06401620805263519,
0.006006988696753979,
0.02625049650669098,
0.007953899912536144,
-0.028140531852841377,
-0.00785764865577221,
0.04042576253414154,
0.039480745792388916,
-0.04595586657524109,
0.00793640036135912,
0.0014033077750355005,
-0.018130343407392502,
0.025042973458766937,
0.08050151914358139,
0.013133998028934002,
-0.005901986733078957,
0.023135436698794365,
-0.02269792929291725,
0.05166097730398178,
-0.0011703346390277147,
0.026670504361391068,
-0.016371559351682663,
0.0011178336571902037,
-0.0454658605158329,
-0.01881285570561886,
0.01312524825334549,
-0.027895526960492134,
0.01417526789009571,
0.06107615306973457,
0.005009469576179981,
-0.056631069630384445,
-0.011952726170420647,
-0.004022888373583555,
0.022487925365567207,
0.009651432745158672,
-0.04851091653108597,
-0.07903148978948593,
0.027860525995492935,
-0.027895526960492134,
-0.056526068598032,
-0.027580522000789642,
-0.05747108533978462,
-0.01862035132944584,
0.01897035911679268,
-0.03062557801604271,
-0.014070265926420689,
-0.05932611972093582,
-0.003298812313005328,
0.005175722762942314,
-0.0030516202095896006,
0.030135570093989372,
0.02107039839029312,
0.028473038226366043,
-0.012731490656733513,
0.04445083811879158,
0.027860525995492935,
-0.05614105984568596,
0.03685569763183594,
-0.059151116758584976,
-0.005814484786242247,
-0.01807784102857113,
0.022942934185266495,
0.044205836951732635,
-0.020475387573242188,
-0.0041475784964859486,
-0.04956093803048134,
0.007153260055929422,
-0.03143059462308884,
0.001206429093144834,
-0.008815791457891464,
0.008194529451429844,
0.02164790965616703,
0.008325782604515553,
0.0005274708964861929,
-0.010841455310583115,
0.0060813650488853455,
-0.012355233542621136,
0.01874285377562046,
0.02234792150557041,
-0.028980547562241554,
-0.01583779975771904,
0.034248147159814835,
-0.010307694785296917,
-0.015129036270081997,
0.04032076150178909,
-0.02362544648349285,
-0.016362808644771576,
-0.013195249252021313,
0.011261463165283203,
-0.017605332657694817,
-0.04007575660943985,
0.04070577025413513,
-0.056316062808036804,
-0.020072879269719124,
-0.004821341019123793,
0.018095342442393303,
0.01295024435967207,
-0.025532983243465424,
0.005180098116397858,
0.06149616092443466,
0.02234792150557041,
0.028858045116066933,
0.07742146402597427,
0.04308581352233887,
0.024307958781719208,
0.03561317175626755,
0.018095342442393303,
-0.007319513242691755,
-0.03127308934926987,
-0.0419657938182354,
0.0019108173437416553,
0.004943843465298414,
-0.027948027476668358,
-0.030450575053691864,
-0.006413871422410011,
-0.044975850731134415,
0.0911417230963707,
-0.04651587828993797,
0.041335780173540115,
0.0798715129494667,
-0.05362101271748543,
0.04266580566763878,
0.02749301865696907,
0.040565766394138336,
-0.021630408242344856,
-0.04945593327283859,
0.011725221760571003,
0.08890167623758316,
-0.0273355171084404,
-0.02206791751086712,
-0.0508909597992897,
0.060306139290332794,
-0.009668932296335697,
0.032935623079538345,
0.004361957311630249,
0.004620087333023548,
0.06300119310617447,
0.03741570562124252,
-0.053761016577482224,
0.016406560316681862,
0.04959593713283539,
-0.03724070265889168,
-0.01820034347474575,
-0.023432942107319832,
0.013974013738334179,
-0.004197891801595688,
-0.002876616781577468,
-0.014726527966558933,
0.06429621577262878,
-0.02570798620581627,
-0.022977933287620544,
0.020457886159420013,
0.06611625105142593,
0.018147842958569527,
-0.019530368968844414,
0.001544404192827642,
0.0437508262693882,
0.0036116307601332664,
-0.029750561341643333,
-0.006501372903585434,
-0.02966305986046791,
0.014612776227295399,
0.028560539707541466,
-0.025410480797290802,
-0.027265515178442,
-0.07203136384487152,
-0.02478046901524067,
-0.04403083026409149,
0.062126174569129944,
-0.03909573704004288,
0.01240773405879736,
0.01704532280564308,
-0.034983161836862564,
-0.019145362079143524,
-0.011532718315720558,
-0.03538566827774048,
-0.06191616877913475,
0.05488103628158569,
0.007253887131810188,
-0.020545387640595436,
0.01047394797205925,
-0.005757608916610479,
-0.00790139939635992,
0.012556487694382668,
-0.05456602945923805,
0.019232863560318947,
0.043540824204683304,
-0.04620087146759033,
-0.029015548527240753,
-0.02416795678436756,
0.020335383713245392,
0.09751184284687042,
-0.0355081707239151,
-0.012853993102908134,
0.04875592142343521,
0.00866703875362873,
0.11389215290546417,
0.0639462098479271,
-0.04235079884529114,
-0.02528797835111618,
0.02350294403731823,
-0.05162597447633743,
-0.04956093803048134,
0.01039519626647234,
0.011208961717784405,
0.007560142781585455,
-0.005166972521692514,
-0.04186079278588295,
0.01932036504149437,
-0.027370518073439598,
-0.014840280637145042,
0.04434583708643913,
-0.006566999014467001,
0.004388208035379648,
0.011550217866897583,
0.10521198809146881,
-0.013947763480246067,
-0.03438815101981163,
-0.04252580180764198,
-0.0041738287545740604,
0.045360855758190155,
-0.03477315604686737,
0.017229076474905014,
-0.04217579588294029,
0.0328306220471859,
-0.004359770100563765,
0.00815952941775322,
-0.02408045530319214,
-0.008675788529217243,
0.03125559166073799,
0.06800628453493118,
0.0190578605979681,
0.008653913624584675,
-0.0026316121220588684,
0.05761108919978142,
0.002859116531908512,
-0.004049139097332954,
0.058101098984479904,
-0.019775373861193657,
0.03234061226248741,
0.002961931051686406,
-0.059886131435632706,
0.047180891036987305,
-0.020335383713245392,
0.006435746792703867,
0.017491580918431282,
0.02877054363489151,
0.03398564085364342,
-0.017727835103869438,
0.0473908968269825,
0.027388017624616623,
-0.03209560737013817,
-0.051555972546339035,
-0.059536125510931015,
-0.04504585266113281,
-0.05439102649688721,
-0.014761528931558132,
-0.0526759959757328,
0.040635768324136734,
0.06128615885972977,
0.018217844888567924,
-0.0075426422990858555,
0.018497848883271217,
-0.02784302644431591,
-0.0691613033413887,
-0.011786472983658314,
-0.004484459757804871,
0.00994893815368414,
0.010683951899409294,
0.00713576003909111,
-0.04763590171933174,
0.0026228621136397123,
-0.054426029324531555,
-0.04592086747288704,
0.040215760469436646,
-0.014009014703333378,
-0.06965131312608719,
-0.016695315018296242,
0.03171059861779213,
-0.023432942107319832,
0.026460500434041023,
0.026670504361391068,
-0.014000264927744865,
-0.017447829246520996,
-0.00464633759111166,
-0.07483141124248505,
-0.09289175271987915,
-0.08330157399177551,
-0.10780203342437744,
-0.02745801955461502,
-0.04221079871058464,
0.013807760551571846,
-0.022522926330566406,
-0.053341008722782135,
-0.05866110697388649,
-0.013151498511433601,
-0.0021951976232230663,
-0.020772892981767654,
-0.07476141303777695,
-0.0012042415328323841,
-0.032585617154836655,
0.004033826291561127,
-0.024027954787015915,
0.04518585279583931,
-0.026460500434041023,
-0.027580522000789642,
-0.016529062762856483,
-0.009493929333984852,
0.026302997022867203,
-0.03519316390156746,
0.002646924927830696,
-0.012906493619084358,
0.03160559758543968,
-0.015575294382870197,
-0.05635106563568115,
-0.023187939077615738,
-0.03885073587298393,
0.016520312055945396,
0.03391564264893532,
-0.0710863396525383,
0.044940847903490067,
0.018532849848270416,
-0.015557793900370598,
0.001218460500240326,
-0.05418102443218231,
0.06548623740673065,
-0.006435746792703867,
0.0035503795370459557,
0.010132691822946072,
-0.0491059273481369,
-0.0057619838044047356,
-0.0002157462586183101,
0.013116497546434402,
-0.024500463157892227,
0.0017369078705087304,
-0.0798715129494667,
0.04161578789353371,
-0.06958131492137909,
0.0012851805659011006,
-0.027020510286092758,
0.013562756590545177,
0.03909573704004288,
-0.03636568784713745,
0.060621146112680435,
0.01753533072769642,
-0.01475277915596962,
-0.017237825319170952,
-0.012573987245559692,
0.0219104140996933,
0.023222938179969788,
-0.0025769236963242292,
-0.02854304015636444,
-0.008780790492892265,
0.006693876348435879,
-0.02219041995704174,
-0.04336582124233246,
0.017649084329605103,
-0.022872932255268097,
-0.009887686930596828,
-0.00785764865577221,
-0.03934074193239212,
0.0008082965505309403,
-0.035525672137737274,
0.02381795085966587,
-0.011007707566022873,
-0.023940453305840492,
0.09128172695636749,
0.010692701674997807,
-0.0082251550629735,
-0.019932877272367477,
0.013387752696871758,
0.01752658188343048,
0.026810506358742714,
0.04403083026409149,
0.07777146995067596,
0.017640333622694016,
0.008557661436498165,
0.012845242395997047,
0.01842784881591797,
0.013238999992609024,
0.021752910688519478,
0.018760355189442635,
-0.0023931702598929405,
-0.019652871415019035,
0.027370518073439598,
0.01730782724916935,
-0.02149040624499321,
-0.03983075171709061,
-0.021245401352643967,
0.009021420031785965,
-0.06405121088027954,
-0.004904467612504959,
-0.0048169661313295364,
0.049700938165187836,
-0.007638894487172365,
0.04448584094643593,
0.041895791888237,
0.03190310299396515,
-0.002214885549619794,
-0.07441140711307526,
-0.01862035132944584,
0.025760486721992493,
-0.00519759813323617,
-0.00020549216424115002,
0.021017897874116898,
-0.027265515178442,
-0.04119578003883362,
0.015076534822583199,
-0.039865754544734955,
-0.0009619712946005166,
-0.011707721278071404,
0.026583002880215645,
-0.022277921438217163,
-0.04830091446638107,
0.014604025520384312,
-0.03230560943484306,
-0.06835629045963287,
0.03829072415828705,
0.06114615499973297,
0.00847891066223383,
0.059571124613285065,
-0.0031063086353242397,
0.03522816672921181,
-0.039165738970041275,
-0.008933918550610542,
0.013597756624221802,
-0.0016789379296824336,
-0.015347789973020554,
-0.041685786098241806,
-0.0025134850293397903,
-0.04070577025413513,
0.0030166194774210453,
-0.05173097923398018,
-0.007796397432684898,
0.0346156544983387,
-0.053061001002788544,
-0.006085739936679602,
-0.056316062808036804,
0.04959593713283539,
-0.020492887124419212,
-0.002644737483933568,
-0.08134153485298157,
0.008557661436498165,
0.0028613039758056402,
0.029068049043416977,
-0.04266580566763878,
0.02149040624499321,
0.049770940095186234,
0.013466504402458668,
-0.01785033755004406,
0.039585746824741364,
0.012285232543945312,
-0.03678569570183754,
-0.06149616092443466,
-0.02206791751086712,
-0.016371559351682663,
-0.07588143646717072,
-0.020860394462943077,
0.011847724206745625,
0.0473208948969841,
-0.027265515178442,
0.05393601953983307,
-0.008426409214735031,
0.036610692739486694,
0.006978257093578577,
-0.016879068687558174,
0.06590624898672104,
-0.0037035075947642326,
-0.007319513242691755,
0.04112577810883522,
0.027388017624616623,
-0.018497848883271217,
-0.006422621197998524,
0.01612655445933342,
0.030468076467514038,
0.02535797841846943,
0.015592794865369797,
0.04298081248998642,
0.01925036311149597,
-0.02056288905441761,
-0.017710335552692413,
0.011471467092633247,
-0.008417659439146519,
-0.06335119903087616,
0.07560142874717712,
0.012635238468647003,
0.05950112268328667,
0.039585746824741364,
-0.056526068598032,
0.06478622555732727,
-0.004348832182586193,
-0.04987594112753868,
0.05162597447633743,
0.0654512345790863,
-0.007713270839303732,
0.06541623920202255,
0.028875546529889107,
-0.04294580966234207,
-0.016275307163596153,
-0.013449003919959068,
0.012670239433646202,
-0.0068163787946105,
-0.017194075509905815,
-0.03449315205216408,
-0.06226617842912674,
-0.08407159149646759,
0.0018845668528228998,
0.020650390535593033,
0.09016170352697372,
0.020125379785895348,
-0.005403227172791958,
0.04837091267108917,
0.020667890086770058,
-0.07038632780313492,
-0.0014765904052183032,
-0.029033048078417778,
0.056526068598032,
-0.019932877272367477,
-0.007643269374966621,
0.060621146112680435,
0.010648950934410095,
-0.028298035264015198,
0.02835053578019142,
0.019967878237366676,
0.009231424890458584,
0.007354513742029667,
-0.03629568591713905,
-0.0027913027442991734,
-0.006873254664242268,
-0.024097954854369164,
0.05488103628158569,
-0.0024391086772084236,
-0.0008493129280395806,
-0.0015586231602355838,
0.035683173686265945,
0.007923274300992489,
-0.07073633372783661,
-0.07910149544477463,
-0.02490297146141529,
0.03983075171709061,
0.041895791888237,
-0.005652606952935457,
0.004416645970195532,
-0.01109520997852087,
0.007415764965116978,
0.027755524963140488,
0.05873110890388489,
0.06650125980377197,
-0.001328931306488812,
-0.040950775146484375,
-0.0014634651597589254,
0.01560154464095831,
-0.08330157399177551,
0.004913217853754759,
0.010648950934410095,
0.028630541637539864,
-0.03113308921456337,
-0.023205438628792763,
-0.005906361620873213,
-0.005324475467205048,
-0.003729758085682988,
0.01657281257212162,
-0.019215364009141922,
-0.02114040032029152,
-0.0077613964676856995,
0.0030166194774210453,
-0.018655352294445038,
-0.046060871332883835,
0.013002745807170868,
0.015321539714932442,
0.04721589386463165,
0.05397101864218712,
0.006838254164904356,
0.04851091653108597,
0.03741570562124252,
0.03906073793768883
] |
10,218 | wsdiff | format | null | def format(self, tokensource, outfile):
diff = iter(self.diff)
self.lines = []
for lineno, tokens in groupby(iter_token_lines(tokensource), key=lambda arg: arg[0]):
for (lineno_ours, diff_ours), (lineno_theirs, _diff_theirs), change in diff:
if lineno_ours == lineno:
break
else:
self.lines.append(f'<span class="wsd-lineno wsd-{self.side} wsd-empty"></span><span class="wsd-line wsd-{self.side} wsd-empty"></span>')
if not change:
change_class = ''
elif not lineno_ours or not lineno_theirs:
change_class = ' wsd-insert'
else:
change_class = ' wsd-change'
line = f'<span class="wsd-lineno wsd-{self.side}{change_class}">{lineno}</span><span class="wsd-line wsd-{self.side}{change_class}">'
parts = re.split(r'(\00.|\01|$)', diff_ours)
source_pos = 0
diff_markers = []
if lineno_theirs: # Do not highlight word changes if the whole line got added or removed.
for span, sep in zip(parts[0:-2:2], parts[1:-2:2]):
source_pos += len(span)
diff_markers.append((source_pos, sep))
diff_class = ''
source_pos = 0
for _lineno, ttype, value in tokens:
css_class = get_token_class(ttype)
while diff_markers:
next_marker_pos, next_marker_type = diff_markers[0]
if source_pos <= next_marker_pos < source_pos + len(value):
split_pos = next_marker_pos - source_pos
left, value = value[:split_pos], value[split_pos:]
line += f'<span class="wsd-{css_class}{diff_class}">{html.escape(left)}</span>'
source_pos += len(left)
diff_class = ' wsd-word-change' if next_marker_type.startswith('\0') else ''
diff_markers = diff_markers[1:]
else:
break
line += f'<span class="{css_class}{diff_class}">{html.escape(value)}</span>'
source_pos += len(value)
if css_class is not None:
line += '</span>'
line += '</span>'
self.lines.append(line)
for _ours_empty, (lineno_theirs, _diff_theirs), change in diff:
self.lines.append(f'<span class="wsd-lineno wsd-{self.side} wsd-empty"></span><span class="wsd-line wsd-{self.side} wsd-empty"></span>')
| (self, tokensource, outfile) | [
0.011673995293676853,
-0.05644775182008743,
-0.007046591956168413,
0.0495464988052845,
-0.009503288194537163,
-0.052809588611125946,
-0.018894055858254433,
0.061586182564496994,
-0.001835489529184997,
0.022635361179709435,
-0.024548208341002464,
-0.061511170119047165,
0.02252284064888954,
-0.026123493909835815,
-0.019672323018312454,
0.03398117050528526,
-0.011749008670449257,
-0.02083503268659115,
-0.03593152388930321,
-0.03911960497498512,
0.019934870302677155,
0.005208758171647787,
-0.0033146643545478582,
-0.006160493474453688,
0.03437499329447746,
-0.0018097036518156528,
-0.023816825821995735,
-0.024360673502087593,
-0.006343339569866657,
-0.061961252242326736,
-0.02186647057533264,
-0.05187191814184189,
-0.005260330159217119,
-0.05832309275865555,
-0.016193564981222153,
-0.06567442417144775,
-0.00621206546202302,
-0.007055968977510929,
0.01432760152965784,
-0.009273558855056763,
0.018134543672204018,
-0.006732472684234381,
0.02010365016758442,
0.01851898804306984,
-0.003380301408469677,
0.033437322825193405,
0.004472687374800444,
0.002684081206098199,
-0.02674235589802265,
-0.032124582678079605,
0.03908209875226021,
-0.029367832466959953,
-0.011336433701217175,
0.02852392941713333,
0.03583775833249092,
-0.02925531193614006,
0.005832308903336525,
0.03855700045824051,
0.039044588804244995,
-0.02173519693315029,
-0.009611120447516441,
0.04163255915045738,
0.030418023467063904,
0.05262205749750137,
-0.009339195676147938,
-0.014562019146978855,
0.03124317340552807,
0.00642772950232029,
0.006047973409295082,
0.042270176112651825,
0.007595129311084747,
-0.0008573822560720146,
0.025917205959558487,
0.012358494102954865,
-0.009287623688578606,
0.026873629540205002,
-0.06076103448867798,
-0.008096782490611076,
0.03688794746994972,
-0.03703797608613968,
0.014505758881568909,
0.061698704957962036,
0.053072135895490646,
0.0456082820892334,
0.0723506361246109,
-0.07703898847103119,
0.0019362891325727105,
0.03276219964027405,
-0.031787022948265076,
-0.011036379262804985,
-0.05618520453572273,
0.024998288601636887,
0.004362510982900858,
-0.03775060549378395,
-0.016981208696961403,
-0.009207922033965588,
-0.020910046994686127,
-0.012508521787822247,
-0.045570775866508484,
0.022541593760252,
0.04868384078145027,
0.059410788118839264,
-0.0019866889342665672,
0.019090967252850533,
0.0234605111181736,
-0.01626857928931713,
-0.014890204183757305,
0.010492530651390553,
-0.010820714756846428,
0.006240195594727993,
-0.016249826177954674,
-0.08168983459472656,
0.00895943958312273,
-0.013764999806880951,
0.05460991710424423,
-0.05145934596657753,
-0.05464742332696915,
0.06301144510507584,
0.02781130000948906,
-0.030586805194616318,
0.03623158112168312,
-0.08243997395038605,
-0.029367832466959953,
0.031787022948265076,
-0.036344099789857864,
-0.03441249951720238,
0.028767723590135574,
0.01673741452395916,
0.10216855257749557,
-0.02432316727936268,
-0.006432418245822191,
0.007984261959791183,
-0.017937632277607918,
-0.04388296976685524,
0.03038051724433899,
-0.020328691229224205,
-0.06826239824295044,
0.019203487783670425,
-0.01666240021586418,
0.007210684474557638,
0.05172189325094223,
-0.007220061030238867,
-0.005640086717903614,
-0.01897844672203064,
-0.08304008096456528,
0.03741304576396942,
-0.05258454754948616,
0.07966446876525879,
0.012564782053232193,
0.06950011849403381,
-0.036475375294685364,
-0.011580227874219418,
0.052547041326761246,
-0.013624348677694798,
0.025860946625471115,
0.014374485239386559,
-0.0242481529712677,
-0.005630710162222385,
0.006568380165845156,
0.028636449947953224,
0.05299712345004082,
-0.045570775866508484,
0.07756408303976059,
0.013389931060373783,
0.041144970804452896,
0.09361699968576431,
-0.06496179848909378,
-0.023816825821995735,
-0.0429828055202961,
-0.023873085156083107,
0.0040624565444886684,
0.020122403278946877,
-0.012696055695414543,
0.055922653526067734,
-0.014299471862614155,
0.036531634628772736,
-0.0230666883289814,
0.04838378727436066,
-0.01687806472182274,
-0.003980410285294056,
-0.006062038242816925,
0.014449498616158962,
0.005522877909243107,
0.01653112657368183,
-0.046283405274152756,
0.011439577676355839,
0.02964913472533226,
-0.026273520663380623,
0.01580912061035633,
-0.013024239800870419,
0.02121010236442089,
-0.04594584181904793,
-0.011345810256898403,
-0.042532723397016525,
-0.008612501434981823,
0.0136337261646986,
-0.06890001147985458,
-0.012911719270050526,
0.061586182564496994,
-0.04050735756754875,
-0.07137545943260193,
0.02642354741692543,
-0.024135632440447807,
0.000688601634465158,
0.006699654273688793,
0.058548130095005035,
-0.000074940369813703,
0.02754875272512436,
-0.0836401879787445,
0.026536067947745323,
0.03069932386279106,
-0.04005727544426918,
5.265238200991007e-7,
0.03240588307380676,
0.04440806433558464,
-0.06781231611967087,
0.004789150785654783,
0.06259886920452118,
-0.08881612867116928,
-0.003687388263642788,
0.025617152452468872,
0.011252042837440968,
-0.0681498721241951,
-0.017478173598647118,
-0.002396919531747699,
-0.009315754286944866,
0.05363474041223526,
-0.01567784696817398,
-0.0007296247058548033,
-0.030793091282248497,
0.026329781860113144,
-0.02338549681007862,
-0.02173519693315029,
0.015105867758393288,
-0.004348445683717728,
-0.061848729848861694,
-0.0060292198322713375,
-0.025223329663276672,
-0.01982234977185726,
-0.029030270874500275,
-0.05310964584350586,
0.011214536614716053,
0.046808499842882156,
0.006183935329318047,
0.035031359642744064,
-0.02739872597157955,
0.032124582678079605,
-0.03240588307380676,
-0.023966852575540543,
0.06803735345602036,
-0.0249045230448246,
0.011242666281759739,
-0.01284608244895935,
-0.011767761781811714,
-0.0009997909655794501,
-0.032330870628356934,
-0.040169794112443924,
0.0003642262890934944,
-0.008504669182002544,
-0.03201206400990486,
0.03414995223283768,
-0.0011011764872819185,
0.0110738854855299,
-0.01242413092404604,
0.031468212604522705,
0.01955980248749256,
0.015077738091349602,
-0.02707991749048233,
0.029761655256152153,
0.03135569393634796,
-0.0964675173163414,
0.02186647057533264,
-0.04129499942064285,
0.01580912061035633,
-0.06481176614761353,
0.003157604718580842,
0.003516263561323285,
0.012536651454865932,
0.0028294201474636793,
-0.03116815909743309,
0.024867014959454536,
-0.002393403323367238,
-0.02338549681007862,
0.04647094011306763,
0.017421914264559746,
0.005541631486266851,
-0.03829445317387581,
-0.046620965003967285,
0.01229285728186369,
-0.04223266988992691,
0.01626857928931713,
0.005368162412196398,
0.06173621118068695,
-0.0018917497945949435,
0.03979472815990448,
0.022110264748334885,
0.029667887836694717,
0.023873085156083107,
-0.03572523593902588,
0.006723095662891865,
-0.05982336401939392,
-0.009217298589646816,
0.04834628105163574,
0.010314373299479485,
-0.03737553581595421,
-0.013952533714473248,
0.006619952153414488,
-0.06083604693412781,
0.04500817134976387,
-0.07295075058937073,
-0.018931562080979347,
0.037525564432144165,
0.011974049732089043,
-0.02655482292175293,
0.04658345878124237,
0.0010296792024746537,
-0.024604467675089836,
0.027642520144581795,
0.02721119113266468,
0.05877317115664482,
-0.036606647074222565,
-0.04407050460577011,
0.017965761944651604,
0.011767761781811714,
0.03803190588951111,
-0.03949467092752457,
0.038707029074430466,
-0.01745942048728466,
0.03221835196018219,
0.01453388947993517,
0.004205451346933842,
-0.06192374601960182,
0.0010548790451139212,
-0.010061201639473438,
-0.038369469344615936,
-0.059860870242118835,
0.0020077864173799753,
-0.03546268865466118,
0.0020335724111646414,
-0.06083604693412781,
0.049846552312374115,
0.039232123643159866,
-0.02841140888631344,
0.00916103832423687,
0.010108085349202156,
-0.01674679107964039,
-0.005471305921673775,
0.01857524737715721,
0.0228041410446167,
0.07047529518604279,
-0.0012506176717579365,
0.030736831948161125,
0.006952825002372265,
0.043057817965745926,
0.06882499903440475,
-0.029817914590239525,
0.006329274270683527,
-0.05569761246442795,
-0.017871994525194168,
-0.030024202540516853,
-0.04988405853509903,
0.05824807658791542,
0.0461333766579628,
0.019803596660494804,
0.00021683625527657568,
-0.012414754368364811,
-0.015077738091349602,
-0.04763365164399147,
-0.014074430800974369,
0.01720624975860119,
-0.04414551705121994,
0.016709284856915474,
0.04118247702717781,
-0.05866065248847008,
-0.022185279056429863,
-0.022504085674881935,
-0.04106995835900307,
0.029667887836694717,
-0.033906158059835434,
-0.0445580929517746,
0.04125749319791794,
0.06004840508103371,
0.026404794305562973,
0.05490997061133385,
-0.023816825821995735,
-0.03675667569041252,
-0.001799154793843627,
-0.028280135244131088,
0.030793091282248497,
0.01097074244171381,
-0.029161546379327774,
-0.010239358991384506,
-0.0038139738608151674,
0.031130652874708176,
-0.05528504028916359,
0.00018328524311073124,
-0.03632534667849541,
0.015180882066488266,
-0.015265271998941898,
-0.03276219964027405,
0.0487588532269001,
0.002365273190662265,
-0.04144502431154251,
0.016165435314178467,
-0.04789619892835617,
-0.044970665127038956,
0.001945665804669261,
0.05513501167297363,
-0.04050735756754875,
0.0263485349714756,
-0.05048416927456856,
0.025617152452468872,
0.0013396963477134705,
-0.007834235206246376,
0.0054291109554469585,
-0.014102560468018055,
-0.004165600053966045,
0.03919461742043495,
-0.029536614194512367,
-0.009465781040489674,
-0.052359506487846375,
0.018950317054986954,
0.10936985909938812,
0.022316552698612213,
0.00012416805839166045,
-0.05517251789569855,
-0.038313206285238266,
-0.028242629021406174,
-0.016578011214733124,
0.01594977080821991,
0.03606279939413071,
0.00273330882191658,
-0.02201649732887745,
-0.007520115468651056,
0.01838771440088749,
-0.03926962986588478,
0.006432418245822191,
0.024998288601636887,
0.10314372926950455,
0.016352970153093338,
-0.00012197039177408442,
0.01969107612967491,
0.05791051685810089,
0.04178258776664734,
0.0035936213098466396,
-0.025973467156291008,
-0.030849352478981018,
-0.029480352997779846,
-0.04050735756754875,
-0.023085441440343857,
-0.009742394089698792,
0.07906435430049896,
-0.03281845897436142,
-0.015321532264351845,
0.025935959070920944,
-0.0511217825114727,
-0.0025129562709480524,
0.00509154936298728,
0.044445570558309555,
0.023085441440343857,
0.026179753243923187,
0.06076103448867798,
0.013868143782019615,
0.04512069374322891,
-0.02906777895987034,
-0.08814100921154022,
0.02325422316789627,
-0.022616606205701828,
-0.021322622895240784,
-0.0002804220130201429,
0.056897833943367004,
-0.04677099362015724,
-0.034093692898750305,
-0.0004972582682967186,
-0.013436814770102501,
0.03814442828297615,
-0.03664415329694748,
-0.05693534016609192,
-0.02978040836751461,
0.0008099126862362027,
-0.05449739471077919,
0.007238814607262611,
-0.05078422278165817,
-0.01692494936287403,
-0.01462765596807003,
0.012245973572134972,
0.025429617613554,
-0.08243997395038605,
0.024491947144269943,
-0.03452501818537712,
-0.04358291253447533,
-0.008448408916592598,
-0.02707991749048233,
-0.05791051685810089,
-0.039307136088609695,
0.01963481493294239,
0.011130145750939846,
-0.009676757268607616,
0.028767723590135574,
-0.054009806364774704,
0.02919905260205269,
-0.03692545369267464,
-0.023235470056533813,
-0.005855750758200884,
0.04883386939764023,
0.019147226586937904,
0.029105285182595253,
0.04242020472884178,
-0.030192982405424118,
-0.022710373625159264,
-0.00760919414460659,
-0.02649856172502041,
0.047483623027801514,
0.035687729716300964,
-0.03141195327043533,
-0.07437600940465927,
-0.04842129349708557,
0.0749761164188385,
0.01007995568215847,
0.038707029074430466,
-0.016052914783358574,
-0.02432316727936268,
0.001767508452758193,
-0.022110264748334885,
-0.020441211760044098,
0.03182452917098999,
-0.024754494428634644,
0.012349117547273636,
0.02998669445514679,
-0.044633105397224426,
0.009854914620518684,
-0.013661855831742287,
0.055059999227523804,
-0.04594584181904793,
0.020647499710321426,
-0.00038004948874004185,
0.05052167549729347,
-0.04995907098054886,
-0.0034131198190152645,
0.03801315277814865,
0.015705976635217667,
-0.018143920227885246,
-0.03731927648186684,
-0.00418435363098979,
-0.04752112925052643,
0.06995020061731339,
0.002641886007040739,
-0.03979472815990448,
-0.04527072235941887,
0.018762782216072083,
0.013455568812787533,
-0.0004746955819427967,
0.012170960195362568,
0.04512069374322891,
-0.01653112657368183,
0.03806941211223602,
-0.008968816138803959,
0.05843561142683029,
0.09234176576137543,
0.016118552535772324,
0.0495464988052845,
0.027492491528391838,
0.042270176112651825,
-0.004582863301038742,
-0.0058651277795434,
0.05588514730334282,
0.02978040836751461,
0.028148861601948738,
-0.061848729848861694,
0.05355972424149513,
0.032049570232629776,
0.04103245213627815,
0.018359584733843803,
-0.025317097082734108,
-0.040169794112443924,
0.026461055502295494,
-0.008345265872776508,
0.03484382852911949,
-0.008073341101408005,
-0.019953623414039612,
-0.01903470605611801,
0.025729672983288765,
0.0644742101430893,
-0.04144502431154251,
0.03309975937008858,
0.013399308547377586,
-0.03349358215928078,
-0.0068824999034404755,
0.04519570618867874,
0.06162368878722191,
-0.024098126217722893,
-0.006746537517756224,
-0.028430161997675896,
-0.022504085674881935,
0.010698817670345306,
0.027098670601844788,
0.0230666883289814,
0.00398509856313467,
-0.03563147038221359,
0.025204576551914215,
-0.02207275852560997,
-0.0067043425515294075,
-0.019353514537215233,
0.012180336751043797,
0.040432341396808624,
-0.025317097082734108,
0.08183985948562622,
-0.08634068071842194,
-0.047971211373806,
0.03163699433207512,
0.02576717920601368,
0.03480632230639458,
0.05543506518006325,
-0.024548208341002464,
-0.012874213047325611,
0.03392491117119789,
0.05434736981987953,
-0.018415844067931175,
0.004397673532366753,
-0.03218084201216698,
0.07801416516304016,
0.03953217715024948,
-0.03281845897436142,
-0.013324294239282608,
0.008082717657089233,
0.04065738245844841,
0.013915026560425758,
0.0016608485020697117,
0.006877811625599861,
-0.049659017473459244,
-0.02754875272512436,
0.03893207013607025,
-0.0025856257416307926,
-0.07906435430049896,
-0.03375612944364548,
0.09421710669994354,
0.0030122657772153616,
-0.061586182564496994,
-0.02299167588353157,
0.009315754286944866,
0.04815874621272087,
-0.06162368878722191,
0.053409699350595474,
-0.0031200977973639965,
-0.0524345226585865,
-0.005260330159217119,
-0.00007772407843731344,
0.00010314372775610536,
-0.025973467156291008,
0.03501260653138161,
0.007890495471656322,
0.04275776445865631,
-0.02925531193614006,
-0.01452451292425394,
-0.001880028867162764,
0.02094755321741104,
-0.030849352478981018,
-0.05997338891029358,
0.04440806433558464,
0.01288358960300684,
0.03795689344406128,
0.005743230227380991,
0.01275231596082449,
-0.03424371778964996,
-0.02175395004451275,
-0.003469380084425211,
0.06301144510507584,
0.0466584712266922,
0.05344720557332039,
-0.012761692516505718,
-0.03533141687512398,
0.013746245764195919,
-0.03326854109764099,
-0.008495292626321316,
-0.041144970804452896,
-0.06008591130375862,
0.07583877444267273,
0.00710285222157836,
-0.0068824999034404755,
-0.03283721208572388,
-0.02312294952571392,
0.0794394239783287,
0.01018309872597456,
-0.08274002373218536,
-0.025973467156291008,
0.06627453863620758,
-0.05787301063537598,
0.0016315462999045849,
0.05434736981987953,
-0.04020730033516884,
-0.06398662179708481,
0.026536067947745323,
-0.013539958745241165,
-0.01284608244895935,
-0.027848806232213974,
0.02015991136431694,
0.003802252933382988,
-0.06732472777366638,
-0.014740176498889923,
-0.002665327861905098,
0.04388296976685524,
-0.011805268935859203,
0.03141195327043533,
0.01739378273487091,
0.0022328272461891174,
-0.026798617094755173,
0.005569761618971825,
-0.03129943460226059,
-0.011308303102850914,
0.01608104445040226,
0.018406467512249947,
0.007660766132175922,
0.021922731772065163,
0.04962151125073433,
0.015762237831950188,
-0.056372735649347305,
-0.0521719753742218,
-0.013943157158792019,
0.0715629979968071,
-0.0008984053274616599,
-0.008476539514958858,
0.057160381227731705,
0.012930473312735558,
0.00895943958312273,
-0.03446875885128975,
0.026929890736937523,
0.010126839391887188,
-0.014055677689611912,
-0.04373294115066528,
-0.06147366389632225,
-0.004095274955034256,
0.04163255915045738,
-0.015434052795171738,
-0.009151661768555641,
0.015462182462215424,
0.038707029074430466,
-0.013783752918243408,
-0.008424967527389526,
0.028223875910043716,
0.03379363566637039,
-0.0073700882494449615,
-0.01679367385804653,
-0.06338650733232498,
0.03953217715024948,
-0.044183023273944855,
0.038444481790065765,
0.05674780532717705,
0.06027344614267349,
-0.03866952285170555,
0.02042245864868164,
0.029011517763137817,
-0.040432341396808624,
-0.0044844080694019794,
0.006938760168850422,
0.03458128124475479,
0.03797564655542374,
0.036531634628772736,
-0.0004916908219456673,
0.015593457035720348,
0.021378882229328156,
0.0938420444726944,
0.0005892671761102974,
0.021228855475783348,
0.05449739471077919,
0.0487588532269001,
0.03030550293624401,
-0.06376157701015472,
0.0482337586581707
] |
10,220 | pygments.lexer | RegexLexer |
Base for simple stateful regular expression-based lexers.
Simplifies the lexing process so that you need only
provide a list of states and regular expressions.
| class RegexLexer(Lexer, metaclass=RegexLexerMeta):
"""
Base for simple stateful regular expression-based lexers.
Simplifies the lexing process so that you need only
provide a list of states and regular expressions.
"""
#: Flags for compiling the regular expressions.
#: Defaults to MULTILINE.
flags = re.MULTILINE
#: At all time there is a stack of states. Initially, the stack contains
#: a single state 'root'. The top of the stack is called "the current state".
#:
#: Dict of ``{'state': [(regex, tokentype, new_state), ...], ...}``
#:
#: ``new_state`` can be omitted to signify no state transition.
#: If ``new_state`` is a string, it is pushed on the stack. This ensure
#: the new current state is ``new_state``.
#: If ``new_state`` is a tuple of strings, all of those strings are pushed
#: on the stack and the current state will be the last element of the list.
#: ``new_state`` can also be ``combined('state1', 'state2', ...)``
#: to signify a new, anonymous state combined from the rules of two
#: or more existing ones.
#: Furthermore, it can be '#pop' to signify going back one step in
#: the state stack, or '#push' to push the current state on the stack
#: again. Note that if you push while in a combined state, the combined
#: state itself is pushed, and not only the state in which the rule is
#: defined.
#:
#: The tuple can also be replaced with ``include('state')``, in which
#: case the rules from the state named by the string are included in the
#: current one.
tokens = {}
def get_tokens_unprocessed(self, text, stack=('root',)):
"""
Split ``text`` into (tokentype, text) pairs.
``stack`` is the initial stack (default: ``['root']``)
"""
pos = 0
tokendefs = self._tokens
statestack = list(stack)
statetokens = tokendefs[statestack[-1]]
while 1:
for rexmatch, action, new_state in statetokens:
m = rexmatch(text, pos)
if m:
if action is not None:
if type(action) is _TokenType:
yield pos, action, m.group()
else:
yield from action(self, m)
pos = m.end()
if new_state is not None:
# state transition
if isinstance(new_state, tuple):
for state in new_state:
if state == '#pop':
if len(statestack) > 1:
statestack.pop()
elif state == '#push':
statestack.append(statestack[-1])
else:
statestack.append(state)
elif isinstance(new_state, int):
# pop, but keep at least one state on the stack
# (random code leading to unexpected pops should
# not allow exceptions)
if abs(new_state) >= len(statestack):
del statestack[1:]
else:
del statestack[new_state:]
elif new_state == '#push':
statestack.append(statestack[-1])
else:
assert False, f"wrong state def: {new_state!r}"
statetokens = tokendefs[statestack[-1]]
break
else:
# We are here only if all state tokens have been considered
# and there was not a match on any of them.
try:
if text[pos] == '\n':
# at EOL, reset state to "root"
statestack = ['root']
statetokens = tokendefs['root']
yield pos, Whitespace, '\n'
pos += 1
continue
yield pos, Error, text[pos]
pos += 1
except IndexError:
break
| (*args, **kwds) | [
-0.018164506182074547,
-0.023426217958331108,
0.016916785389184952,
-0.013144602999091148,
-0.026734130457043648,
-0.006025819107890129,
-0.021897999569773674,
-0.003286150749772787,
0.03149288147687912,
-0.09610358625650406,
-0.010049480013549328,
0.059039484709501266,
0.008671182207763195,
0.052539724856615067,
-0.01493397168815136,
0.006403036881238222,
0.03201518580317497,
0.002744504250586033,
-0.02625051699578762,
0.0012259591603651643,
-0.03216994181275368,
0.04124252125620842,
0.04681374505162239,
0.032034531235694885,
0.007626578211784363,
-0.013154275715351105,
-0.029403675347566605,
-0.02087274007499218,
0.00010193656635237858,
-0.031841084361076355,
0.005174659658223391,
-0.009570702910423279,
0.00160196830984205,
-0.027179054915905,
-0.0035980811808258295,
-0.09022285789251328,
-0.03068041428923607,
0.024277376011013985,
-0.014798560179769993,
-0.04267401620745659,
0.01119080651551485,
-0.014692164957523346,
-0.014140846207737923,
0.03135747089982033,
-0.03464604169130325,
-0.013134931214153767,
-0.024915745481848717,
0.013115586712956429,
0.01799040660262108,
-0.06387561559677124,
0.06070311367511749,
-0.023890485987067223,
-0.01650087721645832,
0.006959191989153624,
0.038708388805389404,
-0.055093202739953995,
-0.02131766453385353,
-0.012274099513888359,
0.08086010813713074,
-0.05482237786054611,
0.015920542180538177,
0.03292437642812729,
0.013599199242889881,
0.026018382981419563,
0.0012126597575843334,
-0.03894052281975746,
0.004773261025547981,
-0.039269380271434784,
-0.024083930999040604,
-0.012806073762476444,
-0.050837405025959015,
-0.0064368899911642075,
0.05842046067118645,
-0.03118337132036686,
-0.017671221867203712,
0.003351438557729125,
-0.08906218409538269,
0.05373908579349518,
0.019325178116559982,
-0.001928407116793096,
-0.017719583585858345,
0.03654180467128754,
0.006151558365672827,
0.02193668857216835,
0.008656674064695835,
-0.014885609969496727,
0.020408472046256065,
0.0197217408567667,
-0.054706308990716934,
-0.016094643622636795,
-0.027411188930273056,
0.03255683183670044,
0.028920061886310577,
0.013841005973517895,
0.012641645967960358,
0.012254755012691021,
-0.0015814147191122174,
0.011974259279668331,
-0.011016706004738808,
-0.00718649011105299,
-0.006470743101090193,
0.06271494179964066,
-0.09865706413984299,
-0.05811094865202904,
-0.016384810209274292,
0.036212947219610214,
-0.023580973967909813,
0.009478815831243992,
0.02230423502624035,
-0.04193892702460289,
-0.044840604066848755,
-0.076217420399189,
0.008385851047933102,
0.0070849317125976086,
0.021472420543432236,
-0.006170902866870165,
-0.04012054204940796,
-0.0077184648253023624,
-0.021201597526669502,
-0.013599199242889881,
0.030351556837558746,
-0.04603996500372887,
-0.014324619434773922,
0.06766714155673981,
0.006020982749760151,
0.017516465857625008,
0.039598237723112106,
-0.028455793857574463,
0.07834532111883163,
-0.004458912648260593,
-0.03948217257857323,
0.057221099734306335,
-0.007974779233336449,
-0.00791191030293703,
-0.030777135863900185,
0.04603996500372887,
-0.012660990469157696,
-0.008588967844843864,
-0.07900302857160568,
-0.023851796984672546,
0.0545128658413887,
-0.0389985591173172,
-0.011335890740156174,
-0.023155393078923225,
-0.0292489193379879,
-0.006432054098695517,
0.018976977095007896,
0.04832261800765991,
0.006741566117852926,
0.040584810078144073,
0.03629032522439957,
-0.04956066608428955,
0.01818385161459446,
0.048593442887067795,
0.02468361146748066,
0.05532533675432205,
-0.009677097201347351,
-0.004265467170625925,
-0.026269862428307533,
0.01147130224853754,
0.022517025470733643,
-0.021259630098938942,
-0.0577627457678318,
-0.004127637483179569,
0.0009037519339472055,
-0.0007695492822676897,
-0.0005440647364594042,
-0.04023660719394684,
-0.07602397352457047,
-0.03398832678794861,
-0.03193780779838562,
-0.002061400795355439,
-0.01773892715573311,
0.05393252894282341,
-0.06031622365117073,
0.0020940445829182863,
-0.041784171015024185,
0.10801981389522552,
-0.039269380271434784,
-0.002867825562134385,
0.04244188219308853,
0.017632532864809036,
-0.06418512761592865,
-0.049212466925382614,
0.008497081696987152,
0.018754515796899796,
0.01593988761305809,
0.006659352220594883,
0.0259990394115448,
0.04124252125620842,
-0.00139038753695786,
-0.09540718793869019,
0.04518880695104599,
-0.0038640685379505157,
-0.0021000897977501154,
0.043099597096443176,
-0.04592389613389969,
0.0006649679853580892,
0.10175219178199768,
-0.03282765671610832,
-0.052771858870983124,
-0.004350099712610245,
-0.010455714538693428,
-0.02300063706934452,
-0.05339088290929794,
0.012583612464368343,
-0.020292405039072037,
-0.004712809342890978,
-0.03743165358901024,
-0.01627841591835022,
-0.02832038141787052,
-0.036329012364149094,
0.03286634385585785,
0.07842269539833069,
-0.0052810548804700375,
-0.03437521681189537,
0.08000894635915756,
0.07733940333127975,
0.02344556152820587,
-0.013086569495499134,
0.0704527497291565,
0.014256913214921951,
-0.017323020845651627,
-0.05064396187663078,
0.03760575130581856,
-0.02224620059132576,
-0.0015378895914182067,
0.012960830703377724,
-0.010117185302078724,
0.007573380600661039,
0.03261486440896988,
-0.06797665357589722,
0.06128344684839249,
0.005518025252968073,
0.00411071116104722,
-0.04588520899415016,
0.07702989131212234,
-0.06205723062157631,
0.02961646392941475,
0.048283930867910385,
-0.07176817953586578,
-0.007525019347667694,
0.02468361146748066,
-0.08441949635744095,
-0.0030491803772747517,
0.03247945383191109,
0.04832261800765991,
0.0036343522369861603,
-0.03414308279752731,
0.027469223365187645,
-0.04774228110909462,
0.019460590556263924,
-0.004845803137868643,
-0.015069383196532726,
-0.00040170110878534615,
-0.022014066576957703,
-0.017864666879177094,
0.027778735384345055,
0.0406234972178936,
-0.01857074163854122,
0.03168632835149765,
0.008274619467556477,
-0.03876642510294914,
-0.016326777637004852,
0.02437409944832325,
0.011345562525093555,
0.049599356949329376,
-0.01274804025888443,
-0.01737138070166111,
0.017893683165311813,
0.11629927158355713,
0.0016853915294632316,
-0.03476210683584213,
0.055712226778268814,
-0.03166698291897774,
-0.008090847171843052,
-0.04797441512346268,
0.010823260992765427,
-0.01262230146676302,
-0.06565531343221664,
-0.0038108709268271923,
0.0320538729429245,
-0.04120383411645889,
-0.008835610933601856,
0.031144682317972183,
0.03480079770088196,
-0.026424618437886238,
-0.026521340012550354,
0.004466166719794273,
0.0011497901286929846,
0.061709027737379074,
-0.02350359596312046,
0.019199438393115997,
0.003808452980592847,
0.054280731827020645,
-0.014102157205343246,
-0.036599837243556976,
0.03155091777443886,
-0.0027420860715210438,
-0.008951677940785885,
-0.029925977811217308,
-0.026850197464227676,
0.031164025887846947,
0.007713628467172384,
-0.02605707198381424,
0.020582571625709534,
-0.03731558471918106,
0.026656752452254295,
0.02656003087759018,
-0.05157249793410301,
-0.002483353018760681,
0.031105993315577507,
-0.027043642476201057,
-0.057221099734306335,
-0.02100815251469612,
-0.030467623844742775,
0.0019138987408950925,
-0.010088169015944004,
0.046465545892715454,
0.01627841591835022,
-0.04039136320352554,
-0.011529335752129555,
-0.010475059039890766,
-0.025766905397176743,
0.004961870145052671,
0.0027469221968203783,
0.01669432409107685,
-0.020776018500328064,
-0.017439087852835655,
-0.002412020228803158,
-0.014227896928787231,
-0.04170679301023483,
-0.010649159550666809,
0.008971022441983223,
-0.02294260449707508,
-0.04089432209730148,
0.003972881473600864,
0.01980879157781601,
0.00862765684723854,
-0.0680927187204361,
0.07292885333299637,
0.009512669406831264,
-0.027469223365187645,
-0.03675459325313568,
0.024548199027776718,
-0.025515425950288773,
-0.013744283467531204,
-0.006886650342494249,
0.05799487978219986,
0.012099999003112316,
0.013154275715351105,
-0.03336930274963379,
0.013492804951965809,
-0.01262230146676302,
0.02025371603667736,
-0.05822701379656792,
0.0046451035887002945,
-0.008840447291731834,
0.012264427728950977,
-0.05033444985747337,
0.0016358211869373918,
0.04468584805727005,
-0.013192964717745781,
0.03667721524834633,
0.02336818352341652,
-0.05536402389407158,
-0.02975187636911869,
0.012777057476341724,
0.0031894282437860966,
-0.01627841591835022,
0.02955843135714531,
-0.03048696741461754,
0.004872401710599661,
0.00006853703962406144,
-0.027527255937457085,
0.008119863457977772,
0.04631078615784645,
-0.019547641277313232,
0.005116626154631376,
-0.005537369754165411,
0.040081851184368134,
0.051533810794353485,
0.01787433959543705,
0.023851796984672546,
-0.004746662452816963,
-0.03329192474484444,
0.022729814052581787,
0.048593442887067795,
0.05749192088842392,
0.01700383611023426,
-0.054280731827020645,
-0.02507050149142742,
-0.010455714538693428,
-0.04642685502767563,
-0.03894052281975746,
-0.007626578211784363,
0.04143596813082695,
0.0014677656581625342,
-0.04700719192624092,
0.000793125422205776,
0.0010651578195393085,
0.04720063507556915,
-0.016017265617847443,
-0.04797441512346268,
0.0288813728839159,
-0.010281614027917385,
0.04418288916349411,
0.10275810211896896,
-0.04905771091580391,
0.008690526708960533,
0.050837405025959015,
-0.01796139031648636,
-0.02137569710612297,
-0.05636994168162346,
-0.038224779069423676,
-0.09324060380458832,
0.06310183554887772,
0.030448278412222862,
0.019741086289286613,
0.023406872525811195,
0.02936498634517193,
0.022342924028635025,
0.009812509641051292,
0.028978094458580017,
0.0025824937038123608,
0.06608089059591293,
-0.0511082299053669,
-0.029326297342777252,
-0.024915745481848717,
0.0128157464787364,
-0.020021582022309303,
-0.06952421367168427,
-0.013860350474715233,
0.016423499211668968,
0.01734236441552639,
-0.03880511224269867,
-0.011819503270089626,
0.03553588688373566,
0.003501358674839139,
0.06592613458633423,
0.03812805563211441,
0.054396796971559525,
0.0438733771443367,
0.07010455429553986,
0.0781518742442131,
-0.03520703315734863,
0.024161309003829956,
0.03569064661860466,
-0.028920061886310577,
0.025766905397176743,
-0.04348648712038994,
0.026385929435491562,
-0.039849717170000076,
-0.01199360378086567,
-0.0025244602002203465,
0.049831490963697433,
0.02893940545618534,
0.08078272640705109,
-0.012883452698588371,
0.02611510641872883,
0.03961758315563202,
0.06074180081486702,
0.006760910619050264,
0.0797768160700798,
-0.0610126256942749,
-0.004884492140263319,
-0.01744876056909561,
0.01493397168815136,
-0.026269862428307533,
-0.0061273775063455105,
-0.027778735384345055,
0.01966370828449726,
-0.06205723062157631,
0.0139957619830966,
-0.03193780779838562,
-0.01882222108542919,
-0.0312414038926363,
-0.08558017015457153,
-0.016181694343686104,
-0.04491798207163811,
0.004543544724583626,
0.014034450985491276,
-0.012573939748108387,
-0.02586362697184086,
0.004074440337717533,
-0.00977865606546402,
0.11428744345903397,
-0.038534291088581085,
-0.00537294102832675,
0.018841564655303955,
-0.05501582473516464,
-0.021104874089360237,
0.02443213202059269,
0.0296938419342041,
-0.05300399288535118,
0.0012132643023505807,
-0.051030851900577545,
-0.009923740290105343,
0.04987018182873726,
-0.04569176211953163,
0.030409589409828186,
-0.026714786887168884,
-0.02899743989109993,
-0.0035908271092921495,
0.05880735069513321,
0.03586474433541298,
0.014295602217316628,
-0.0166169460862875,
-0.002271772362291813,
-0.010929655283689499,
-0.010668504051864147,
0.004862729460000992,
0.045459628105163574,
-0.022787848487496376,
-0.01924780011177063,
-0.02207210101187229,
0.043602555990219116,
0.036096878349781036,
-0.04031398519873619,
-0.00430657435208559,
-0.007437969092279673,
-0.014798560179769993,
-0.02400655299425125,
-0.027179054915905,
-0.00851642619818449,
0.06449463963508606,
0.008458392694592476,
0.0018607012461870909,
0.03394963592290878,
-0.07904171943664551,
0.029597120359539986,
0.010562109760940075,
0.0044951834715902805,
0.02213013358414173,
0.008753396570682526,
-0.05517058074474335,
0.10856146365404129,
-0.012041965499520302,
-0.005851718131452799,
0.022884570062160492,
0.014015106484293938,
0.02056322805583477,
-0.01885123737156391,
0.017913028597831726,
-0.02880399487912655,
0.01361854374408722,
-0.019151078537106514,
-0.04012054204940796,
-0.08217553049325943,
0.009773820638656616,
-0.06333396583795547,
-0.05373908579349518,
-0.031222060322761536,
-0.007897401228547096,
0.0422484390437603,
-0.05172725394368172,
0.03605819121003151,
0.07200031727552414,
0.010417025536298752,
0.0060935248620808125,
-0.006170902866870165,
0.03748968616127968,
-0.033717501908540726,
-0.08403261005878448,
0.018338607624173164,
0.012989846989512444,
0.015707751736044884,
0.035090964287519455,
0.02207210101187229,
0.08735986799001694,
0.039772339165210724,
0.007525019347667694,
0.03907593712210655,
0.004376698285341263,
0.0012900378787890077,
-0.026463307440280914,
-0.015552996657788754,
0.05017969384789467,
0.04112645611166954,
-0.004052677657455206,
0.11173396557569504,
0.03449128568172455,
-0.01531118992716074,
-0.010358992032706738,
0.0021786768920719624,
-0.0018848819890990853,
-0.03437521681189537,
0.07486330717802048,
-0.026772819459438324,
0.018541725352406502,
0.003931774292141199,
0.021762588992714882,
0.07308360934257507,
0.009000039659440517,
-0.03832149878144264,
0.0026647080667316914,
0.05060527101159096,
0.0030104913748800755,
-0.029539085924625397,
-0.004666866268962622,
-0.02336818352341652,
0.0021544962655752897,
0.013454115949571133,
-0.02750791236758232,
0.026153795421123505,
-0.0026501996908336878,
0.011906553991138935,
-0.0013335630064830184,
-0.03143484890460968,
0.0034022179897874594,
0.029925977811217308,
-0.014498719945549965,
-0.001530635403469205,
-0.01787433959543705,
-0.056021738797426224,
0.00870019942522049,
-0.04089432209730148,
0.04894164204597473,
-0.0031700837425887585,
0.007423460483551025,
0.014508392661809921,
-0.03211190924048424,
-0.0738573893904686,
0.013454115949571133,
-0.0003339952672831714,
0.05176594480872154,
0.006843124981969595,
-0.001634612213820219,
-0.044028133153915405,
-0.02193668857216835,
0.0016587928403168917,
-0.0011437449138611555,
0.000618420192040503,
-0.0494832880795002,
-0.02230423502624035,
0.02443213202059269,
0.03799264132976532,
0.014885609969496727,
-0.018793204799294472,
0.028610549867153168,
-0.05629255995154381,
-0.08403261005878448,
0.012003276497125626,
0.0038785769138485193,
-0.03536178916692734,
-0.005310071632266045,
-0.001044604228809476,
-0.017042525112628937,
0.040778253227472305,
0.030100077390670776,
0.04720063507556915,
0.03814740106463432,
0.011335890740156174,
-0.006973700597882271,
-0.011558352038264275,
0.014140846207737923,
0.0005307653336785734,
0.010291285812854767,
0.039404794573783875,
-0.04213237017393112,
-0.03719951584935188,
0.02980990894138813,
0.017323020845651627,
0.08805626630783081,
0.008095682598650455,
0.037818543612957,
0.04197761416435242,
0.05989064276218414,
0.009004875086247921,
0.011480974033474922,
-0.01986682415008545,
-0.018889926373958588,
0.0037697639781981707,
0.00526654627174139,
-0.020466504618525505,
0.005972621496766806,
0.04530487209558487,
-0.0006897531566210091,
0.02986794337630272,
-0.02106618508696556,
-0.04812917485833168,
0.025515425950288773,
0.005851718131452799,
-0.04356386512517929,
0.00718649011105299,
0.03449128568172455,
0.015901198610663414,
-0.004473420791327953,
0.08511590212583542,
-0.03499424085021019,
-0.00946914404630661,
0.06124475970864296,
0.004047841299325228,
-0.028204314410686493,
-0.07993157207965851,
0.013763627968728542,
-0.049328532069921494,
-0.07339312136173248,
-0.00410345708951354,
-0.06731893867254257,
0.023890485987067223,
-0.00958037469536066,
0.02787545695900917,
-0.04824524000287056,
0.027217743918299675,
-0.009851198643445969,
-0.03857297822833061,
-0.0292489193379879,
-0.003762509673833847,
0.006412709131836891,
0.0070994398556649685,
-0.039520859718322754,
-0.022014066576957703,
0.09796066582202911,
0.041784171015024185,
-0.1090257316827774,
0.06844092160463333,
0.03787657618522644,
-0.003136230865493417,
0.03143484890460968,
-0.010329974815249443,
0.011432613246142864,
-0.023329494521021843,
0.011983931995928288,
-0.006533612497150898,
0.04031398519873619,
-0.03168632835149765,
-0.004364607855677605,
0.02182062156498432,
-0.04770359396934509,
-0.031086647883057594,
0.07188424468040466,
-0.024199998006224632,
-0.032150596380233765,
-0.006959191989153624,
-0.035032931715250015,
-0.002023920649662614,
-0.03795395419001579,
0.004011570475995541,
0.032460108399391174,
-0.002858153311535716,
-0.004932853393256664,
-0.047587525099515915,
0.004816786386072636,
-0.040971700102090836,
0.03681262582540512,
0.016636289656162262,
0.018580414354801178,
-0.03195715323090553,
0.01627841591835022,
-0.007945762947201729,
-0.02605707198381424,
0.01664596237242222,
-0.020466504618525505,
-0.025902315974235535,
0.02886202745139599,
0.004475838970392942,
-0.01941222883760929,
-0.0706075057387352,
0.013841005973517895,
0.00843421183526516,
-0.054783690720796585,
0.048283930867910385,
-0.021549798548221588,
0.07107177376747131,
-0.024103276431560516,
0.002287489827722311,
0.022110790014266968
] |
10,221 | pygments.lexer | __init__ |
This constructor takes arbitrary options as keyword arguments.
Every subclass must first process its own options and then call
the `Lexer` constructor, since it processes the basic
options like `stripnl`.
An example looks like this:
.. sourcecode:: python
def __init__(self, **options):
self.compress = options.get('compress', '')
Lexer.__init__(self, **options)
As these options must all be specifiable as strings (due to the
command line usage), there are various utility functions
available to help with that, see `Utilities`_.
| def __init__(self, **options):
"""
This constructor takes arbitrary options as keyword arguments.
Every subclass must first process its own options and then call
the `Lexer` constructor, since it processes the basic
options like `stripnl`.
An example looks like this:
.. sourcecode:: python
def __init__(self, **options):
self.compress = options.get('compress', '')
Lexer.__init__(self, **options)
As these options must all be specifiable as strings (due to the
command line usage), there are various utility functions
available to help with that, see `Utilities`_.
"""
self.options = options
self.stripnl = get_bool_opt(options, 'stripnl', True)
self.stripall = get_bool_opt(options, 'stripall', False)
self.ensurenl = get_bool_opt(options, 'ensurenl', True)
self.tabsize = get_int_opt(options, 'tabsize', 0)
self.encoding = options.get('encoding', 'guess')
self.encoding = options.get('inencoding') or self.encoding
self.filters = []
for filter_ in get_list_opt(options, 'filters', ()):
self.add_filter(filter_)
| (self, **options) | [
-0.030012939125299454,
-0.0004891001735813916,
0.04619675502181053,
-0.0349091961979866,
-0.01988403871655464,
-0.0026326728984713554,
-0.028032010421156883,
-0.024761609733104706,
0.0002937521203421056,
-0.0375068299472332,
0.0038567373994737864,
0.00763405067846179,
-0.040403470396995544,
0.07946140319108963,
-0.0174545980989933,
-0.01162394043058157,
0.0001638120593270287,
0.03040538728237152,
0.02769562602043152,
0.015716614201664925,
-0.031246347352862358,
0.03229287639260292,
0.017800327390432358,
0.08753462135791779,
0.019809287041425705,
0.03214337304234505,
-0.028592649847269058,
-0.03754420578479767,
-0.019809287041425705,
-0.010782980360090733,
0.003485313383862376,
0.011025924235582352,
-0.009236547164618969,
0.04432795196771622,
-0.011362308636307716,
-0.07669558376073837,
-0.029713930562138557,
0.023771144449710846,
-0.032946955412626266,
0.014735493808984756,
0.005863361991941929,
-0.027901194989681244,
0.022145288065075874,
0.027396617457270622,
-0.048813074827194214,
-0.008446979336440563,
-0.010493315756320953,
-0.03743207827210426,
-0.04111361503601074,
-0.03401217237114906,
0.038572046905756,
0.004429057706147432,
0.027639562264084816,
-0.01538022980093956,
-0.03027457185089588,
-0.032180748879909515,
0.001985600683838129,
0.006110978312790394,
0.018902918323874474,
0.015043845400214195,
-0.025060618296265602,
0.029209354892373085,
0.04137524589896202,
-0.010698883794248104,
-0.022743305191397667,
-0.03466625139117241,
-0.03453543782234192,
-0.011222148314118385,
0.020407304167747498,
0.00523731391876936,
0.009470148012042046,
-0.007479874882847071,
-0.005933442153036594,
-0.0025462410412728786,
0.006339906249195337,
-0.0020638566929847,
-0.11220279335975647,
0.008358211256563663,
-0.03660980612039566,
-0.006391298491507769,
0.020220423117280006,
0.054793234914541245,
-0.0009139603353105485,
0.0208745039999485,
0.0530739389359951,
-0.036535054445266724,
0.00901696365326643,
-0.00875065941363573,
0.05419522151350975,
0.033302027732133865,
-0.05737218260765076,
-0.02707892283797264,
0.040590349584817886,
0.033881355077028275,
-0.03403086215257645,
-0.006232450250536203,
0.05042024329304695,
-0.005886722356081009,
0.006881858687847853,
-0.011091331951320171,
-0.0077601950615644455,
0.04619675502181053,
-0.03309645876288414,
-0.05681154131889343,
0.010007428005337715,
0.0006937922444194555,
-0.018015239387750626,
-0.007676098961383104,
0.02986343577504158,
-0.00015972406254149973,
-0.01011955551803112,
-0.053858835250139236,
0.0321994349360466,
0.011166084557771683,
0.03403086215257645,
-0.00721824262291193,
-0.06181992590427399,
0.0004899761988781393,
0.00257427291944623,
-0.010988548398017883,
-0.00872729904949665,
0.004956993740051985,
-0.04358043149113655,
0.02446260116994381,
-0.010960516519844532,
0.0009303123224526644,
0.04896257817745209,
-0.029115915298461914,
0.0779663622379303,
0.03494657203555107,
0.05953998863697052,
0.018202118575572968,
-0.008222723379731178,
-0.07049116492271423,
0.04365518316626549,
-0.01915520802140236,
-0.013193733058869839,
0.02775168977677822,
-0.06589391082525253,
0.020743688568472862,
0.08118069916963577,
-0.028162825852632523,
0.021080071106553078,
-0.03120897151529789,
-0.10233552753925323,
0.010969860479235649,
0.020725000649690628,
-0.044365327805280685,
0.014090756885707378,
0.03664718195796013,
0.0231170654296875,
-0.009278595447540283,
-0.008376899175345898,
0.02036992833018303,
0.04118836671113968,
0.04421582445502281,
-0.047243282198905945,
-0.03341415524482727,
0.01266112457960844,
0.02608845755457878,
0.014913029968738556,
-0.016707077622413635,
-0.0424591526389122,
-0.03513345494866371,
-0.014782213605940342,
-0.009077699854969978,
-0.001198368496261537,
-0.05019598826766014,
-0.026723850518465042,
0.03053620271384716,
0.02631271444261074,
-0.06447362154722214,
-0.01126886811107397,
0.08536681532859802,
0.013595525175333023,
0.05550337955355644,
0.01266112457960844,
0.09396330267190933,
-0.049710098654031754,
-0.016043653711676598,
0.03466625139117241,
0.012605060823261738,
-0.04492596909403801,
-0.01398797333240509,
0.060511767864227295,
-0.02905985154211521,
0.05382145941257477,
0.02801332250237465,
0.030050314962863922,
-0.0031536011956632137,
0.06413724273443222,
-0.059652119874954224,
0.0036418254021555185,
-0.032180748879909515,
-0.04115099087357521,
-0.01277325302362442,
0.019528966397047043,
-0.0019972806330770254,
0.00008708903624210507,
-0.0045131538063287735,
-0.032984331250190735,
0.06731420010328293,
0.009745795279741287,
-0.0818534716963768,
-0.02212660014629364,
0.023752456530928612,
-0.02756481058895588,
0.019940104335546494,
-0.05778331682085991,
0.01252096425741911,
0.04201063886284828,
-0.09628061205148697,
0.04959797114133835,
0.05355982854962349,
-0.013184389099478722,
-0.02765825018286705,
0.04911208152770996,
0.04985960200428963,
-0.013081604614853859,
0.023322632536292076,
0.11324932426214218,
0.015996934846043587,
-0.013698308728635311,
-0.0035694092512130737,
0.017323782667517662,
-0.014941061846911907,
0.0332646518945694,
-0.02707892283797264,
-0.012941445223987103,
0.021379079669713974,
-0.0051859221421182156,
-0.06686569005250931,
0.005690498277544975,
0.049896977841854095,
0.0010249203769490123,
-0.03261057287454605,
0.06641718000173569,
-0.01315635722130537,
-0.05258805304765701,
-0.04204801470041275,
0.013623557053506374,
0.012464900501072407,
0.011091331951320171,
-0.03720782324671745,
-0.016753798350691795,
0.03920743986964226,
0.015520390123128891,
0.02621927298605442,
-0.007643394637852907,
0.03390004485845566,
-0.040590349584817886,
-0.027415305376052856,
-0.00638662651181221,
0.030050314962863922,
-0.016697734594345093,
0.02100531943142414,
-0.019958792254328728,
-0.019192583858966827,
0.0037492814008146524,
-0.005456897895783186,
-0.018688006326556206,
0.006760386750102043,
-0.038572046905756,
0.03378791734576225,
0.068173848092556,
0.004165089689195156,
0.03270401060581207,
-0.03902055695652962,
0.023285256698727608,
-0.0003942001494579017,
0.05927835777401924,
0.01785639114677906,
-0.014081412926316261,
0.03845991939306259,
-0.05109301209449768,
-0.01766951009631157,
-0.054793234914541245,
-0.015763333067297935,
0.004667329601943493,
-0.024518664926290512,
0.042795535176992416,
0.019809287041425705,
-0.02149120718240738,
-0.029153291136026382,
0.02298624813556671,
-0.0071388185024261475,
-0.03520820662379265,
-0.027620874345302582,
-0.05337294936180115,
-0.0015814725775271654,
-0.0022647527512162924,
0.027265802025794983,
0.01911783032119274,
-0.0027938571292907,
0.07635919749736786,
-0.03733863681554794,
0.03913268819451332,
-0.023752456530928612,
-0.021080071106553078,
-0.08663760125637054,
-0.04339355230331421,
-0.07744310051202774,
0.07235996425151825,
0.04582299292087555,
-0.057858068495988846,
0.02640615403652191,
-0.052774932235479355,
0.00831616297364235,
0.05311131477355957,
-0.005517634097486734,
0.019715847447514534,
0.06544540077447891,
0.025023240596055984,
-0.008232067339122295,
-0.03076045960187912,
0.017118213698267937,
0.0001681920693954453,
-0.016791174188256264,
0.0004745001788251102,
0.049224209040403366,
-0.05554075539112091,
-0.02820020169019699,
-0.016081029549241066,
-0.0614461675286293,
-0.02257511205971241,
0.021192200481891632,
0.03436724469065666,
-0.030424075201153755,
0.010362500324845314,
-0.02522880956530571,
-0.041935887187719345,
0.021248264238238335,
-0.0002890801115427166,
-0.003240033285692334,
-0.027546122670173645,
-0.05184053257107735,
-0.007120130583643913,
0.008320835418999195,
-0.036497678607702255,
-0.03133978694677353,
0.08663760125637054,
-0.05288705974817276,
-0.009512195363640785,
-0.02167808823287487,
-0.02778906561434269,
-0.0546063557267189,
-0.04029134288430214,
-0.05221429094672203,
0.05113038793206215,
0.03206862136721611,
0.03584359586238861,
-0.016361350193619728,
0.01437107753008604,
0.015146629884839058,
0.04933634027838707,
-0.100018210709095,
-0.032180748879909515,
0.011166084557771683,
0.004333281423896551,
-0.05184053257107735,
0.009792516008019447,
0.0629785805940628,
-0.03214337304234505,
0.041300494223833084,
-0.02874215506017208,
-0.04563611373305321,
0.046159375458955765,
-0.030685707926750183,
-0.016342662274837494,
0.047243282198905945,
0.03236762806773186,
-0.017734918743371964,
-0.0006435682298615575,
-0.07082754373550415,
-0.017305094748735428,
-0.018631942570209503,
-0.012147204950451851,
0.01558579783886671,
-0.057858068495988846,
0.006176386494189501,
-0.009101059287786484,
0.08357276767492294,
-0.0004774201661348343,
0.024387849494814873,
-0.05400833860039711,
-0.05337294936180115,
-0.059614744037389755,
0.05441947653889656,
0.06566965579986572,
0.017164934426546097,
-0.03274138644337654,
-0.0042678737081587315,
0.012119172140955925,
-0.01979059912264347,
-0.04982222616672516,
0.034610189497470856,
-0.024892425164580345,
0.027097610756754875,
-0.04630888253450394,
-0.01200704462826252,
0.023939337581396103,
-0.03533902019262314,
0.03733863681554794,
0.026555657386779785,
-0.004650977905839682,
0.006601538509130478,
0.07355599850416183,
0.049448467791080475,
-0.020164359360933304,
0.05625090003013611,
0.0544942282140255,
-0.04025396704673767,
-0.000046063018089625984,
-0.014847621321678162,
-0.0765460804104805,
-0.042160142213106155,
0.03356366232037544,
0.03040538728237152,
0.00715283490717411,
0.006965954788029194,
-0.020089607685804367,
0.040366094559431076,
-0.013090948574244976,
0.02864871546626091,
0.05060712248086929,
0.037077005952596664,
-0.015370885841548443,
-0.020444680005311966,
-0.021285640075802803,
-0.04432795196771622,
-0.031059468165040016,
-0.025023240596055984,
0.018501127138733864,
-0.00791904330253601,
-0.013679620809853077,
0.02257511205971241,
-0.010951172560453415,
0.026107145473361015,
0.0011691683903336525,
0.029938187450170517,
0.03913268819451332,
-0.04515022411942482,
0.020650247111916542,
0.053671956062316895,
0.019622407853603363,
-0.019715847447514534,
-0.029751306399703026,
0.04933634027838707,
-0.05348507687449455,
0.00431692972779274,
0.030012939125299454,
0.03831041604280472,
-0.030162442475557327,
-0.03309645876288414,
-0.0016375365667045116,
-0.026742538437247276,
0.024163592606782913,
0.039469070732593536,
-0.009970052167773247,
0.0734812468290329,
0.027153674513101578,
0.03477838262915611,
0.040590349584817886,
-0.005573698319494724,
-0.053858835250139236,
0.08275049179792404,
0.010876419954001904,
0.06787484139204025,
-0.03817959874868393,
-0.011203460395336151,
-0.05726005509495735,
0.048140306025743484,
-0.06279170513153076,
0.03367578983306885,
-0.02590157836675644,
0.027415305376052856,
-0.009876611642539501,
-0.07751785218715668,
-0.05628827586770058,
-0.021472519263625145,
-0.028630027547478676,
-0.025172745808959007,
0.0022986249532550573,
-0.010212996043264866,
-0.0020790407434105873,
-0.02586420252919197,
0.08760938048362732,
-0.050532370805740356,
-0.00881606712937355,
0.030966026708483696,
-0.0021631368435919285,
0.0455239862203598,
-0.005452225916087627,
-0.006793090607970953,
0.06608079373836517,
0.02580813691020012,
0.007297666743397713,
0.017043462023139,
0.031844362616539,
-0.011250180192291737,
0.02337869629263878,
-0.06462312489748001,
-0.018519815057516098,
-0.05352245271205902,
0.0652211457490921,
0.02023911103606224,
-0.03427380323410034,
0.04242177680134773,
-0.04115099087357521,
0.01295078918337822,
-0.040403470396995544,
0.012343429028987885,
-0.010568068362772465,
0.005213954020291567,
0.011053956113755703,
0.007120130583643913,
-0.034329868853092194,
0.017370503395795822,
-0.015669893473386765,
0.02382720820605755,
-0.0014459845842793584,
0.04455220699310303,
-0.03804878145456314,
-0.07811586558818817,
-0.018370311707258224,
0.03743207827210426,
-0.013034884817898273,
0.006176386494189501,
0.05905410274863243,
-0.03920743986964226,
0.004188449587672949,
-0.03229287639260292,
-0.03909531235694885,
0.0022799368016421795,
-0.0100541478022933,
0.009801859967410564,
-0.007194882724434137,
0.06974364072084427,
0.08192822337150574,
-0.012464900501072407,
0.043991569429636,
0.07015477865934372,
0.004027265589684248,
-0.03296564519405365,
-0.005685826297849417,
-0.015950214117765427,
-0.03158273175358772,
0.03943169489502907,
-0.022631175816059113,
0.011409028433263302,
-0.05004648119211197,
-0.026705162599682808,
-0.03261057287454605,
0.03193780407309532,
0.04402894526720047,
-0.031507980078458786,
0.03530164435505867,
0.053036563098430634,
0.049224209040403366,
0.027265802025794983,
0.0182208064943552,
0.0021981769241392612,
-0.09261776506900787,
-0.04672001674771309,
-0.00685849878937006,
0.00215846486389637,
0.01579136587679386,
-0.00594745809212327,
-0.04645838588476181,
0.04668264091014862,
0.02756481058895588,
-0.008666562847793102,
-0.02225741557776928,
0.05591451749205589,
-0.036497678607702255,
-0.01239014882594347,
0.010147587396204472,
0.11571613699197769,
-0.018603911623358727,
-0.026163209229707718,
0.011922948062419891,
0.061894677579402924,
-0.0688839927315712,
-0.01848243921995163,
-0.028723467141389847,
-0.03511476516723633,
0.018136709928512573,
0.0032704011537134647,
0.010138243436813354,
0.017968518659472466,
-0.004868225660175085,
-0.028816906735301018,
0.006872514728456736,
-0.0062417942099273205,
-0.0330217070877552,
0.0204633679240942,
0.009470148012042046,
-0.03961857408285141,
-0.006503426469862461,
0.010091523639857769,
-0.055204372853040695,
0.021210888400673866,
-0.03999233618378639,
0.03315252438187599,
0.0583813339471817,
-0.002882624976336956,
-0.00789101142436266,
0.0546063557267189,
-0.04272078350186348,
-0.0068631707690656185,
-0.018818823620676994,
0.0036651853006333113,
-0.004221153445541859,
-0.037077005952596664,
-0.03130241110920906,
-0.006246466189622879,
0.009624323807656765,
-0.02657434530556202,
0.06809909641742706,
-0.009409411810338497,
-0.0015090565430000424,
0.060287509113550186,
-0.011680004186928272,
0.032442379742860794,
-0.05180315673351288,
0.026462217792868614,
-0.0008678243029862642,
0.004657985642552376,
-0.03894580528140068,
-0.042571280151605606,
0.02436916157603264,
-0.00899360328912735,
0.017202310264110565,
-0.042384400963783264,
-0.04208539053797722,
0.02724711410701275,
-0.018650630488991737,
0.010848388075828552,
0.02014567144215107,
0.012165892869234085,
0.00994201935827732,
-0.041935887187719345,
0.02036992833018303,
-0.008428291417658329,
-0.031227659434080124,
-0.03216205909848213,
-0.048999954015016556,
0.014969093725085258,
0.0590914785861969,
-0.0010406883666291833,
0.003039137227460742,
0.04208539053797722,
0.01979059912264347,
0.0008222723263315856,
-0.04335617646574974,
0.02954573929309845,
0.009049667045474052,
0.04496334493160248,
0.08162921667098999,
-0.038833677768707275,
-0.026723850518465042,
0.043879441916942596,
0.06125928834080696,
0.022051848471164703,
0.007335042580962181,
-0.010726915672421455,
-0.019622407853603363,
0.0019061766797676682,
0.011736067943274975,
-0.016267910599708557,
-0.02801332250237465,
0.024929801002144814,
-0.02414490468800068,
0.014660741202533245,
-0.04212276637554169,
-0.006970626767724752,
0.017566727474331856,
-0.06787484139204025,
0.03264794871211052,
-0.04025396704673767,
-0.05598926916718483,
0.033881355077028275,
0.03382529318332672,
-0.048551443964242935,
-0.049037329852581024,
0.04025396704673767,
-0.027321865782141685,
0.006325890310108662,
0.06331496685743332,
-0.04522497579455376,
-0.03423642739653587,
0.047504913061857224,
0.02788250707089901,
-0.009661699645221233,
-0.0031162251252681017,
-0.026929417625069618,
-0.036535054445266724,
-0.10876420140266418,
0.03225550055503845,
-0.04073985666036606,
0.052363794296979904,
-0.036665868014097214,
-0.0060736024752259254,
0.013006852939724922,
-0.002548577031120658,
0.003529697423800826,
0.003583425423130393,
-0.023733768612146378,
0.043692559003829956,
0.010717571713030338,
0.01911783032119274,
0.043057169765233994,
0.021921033039689064,
0.012651780620217323,
0.007082754746079445,
-0.022967560216784477,
0.006480066571384668,
0.03431117907166481,
0.008498371578752995,
0.007003330625593662,
0.029377546161413193,
-0.005704514216631651,
-0.0034339213743805885,
0.07635919749736786,
0.017473286017775536,
0.010446595959365368,
-0.09261776506900787,
-0.039244815707206726,
0.006512770429253578,
-0.08342326432466507,
0.0069145625457167625,
0.020313862711191177,
-0.05976424738764763,
-0.01443648524582386,
-0.03588097169995308,
-0.03477838262915611,
0.006012866273522377,
-0.024443913251161575,
0.07026690989732742,
0.04212276637554169,
-0.004798145964741707,
0.022631175816059113,
-0.030928650870919228,
0.04739278554916382,
0.015501702204346657,
0.03382529318332672,
0.07871388643980026,
0.017968518659472466,
0.0018162407213822007,
0.03120897151529789,
-0.02059418335556984,
-0.017473286017775536,
-0.008353538811206818,
0.05023336410522461,
-0.008909507654607296,
0.0168659258633852,
-0.001777696656063199,
0.00901696365326643,
-0.02014567144215107,
-0.02266855165362358,
-0.031190283596515656,
-0.02990081161260605,
0.03347022086381912,
-0.018454406410455704,
0.07333173602819443,
0.0013852484989911318,
0.041076239198446274,
0.01423091720789671
] |
10,222 | pygments.lexer | __repr__ | null | def __repr__(self):
if self.options:
return f'<pygments.lexers.{self.__class__.__name__} with {self.options!r}>'
else:
return f'<pygments.lexers.{self.__class__.__name__}>'
| (self) | [
0.017057033255696297,
-0.06276708096265793,
0.12392385303974152,
-0.015271688811480999,
0.035146765410900116,
-0.010230719111859798,
0.0017218939028680325,
-0.02315695770084858,
0.031611084938049316,
0.00835348293185234,
0.0026364449877291918,
-0.026867670938372612,
-0.019201194867491722,
0.041728030890226364,
-0.04421351104974747,
0.018746107816696167,
-0.026395080611109734,
-0.044528570026159286,
0.000814453640487045,
0.04407348111271858,
0.0073951734229922295,
0.020303906872868538,
0.023664554581046104,
-0.022859400138258934,
0.004870312288403511,
0.03843739628791809,
-0.016488173976540565,
-0.03714215010404587,
-0.043828435242176056,
-0.014116466976702213,
-0.049709565937519073,
-0.042323146015405655,
0.000049809390475274995,
-0.02557242102921009,
0.012304868549108505,
0.001716424128971994,
-0.045368731021881104,
0.0585312657058239,
0.007172005251049995,
-0.045858826488256454,
0.024959804490208626,
-0.0014965380541980267,
-0.017625892534852028,
-0.028653014451265335,
-0.05671091377735138,
-0.003273129928857088,
0.014965380541980267,
-0.01572677679359913,
-0.03472668305039406,
-0.08653665333986282,
0.08947721868753433,
0.012926237657666206,
-0.011744759976863861,
0.01402019802480936,
-0.06035161390900612,
-0.029615700244903564,
0.020391425117850304,
0.03472668305039406,
0.018938645720481873,
0.033361420035362244,
-0.02460973709821701,
0.04911445081233978,
0.04407348111271858,
-0.018571075052022934,
0.015437970869243145,
-0.0009490107768215239,
-0.013433835469186306,
0.03173360601067543,
-0.0018881758442148566,
0.025379884988069534,
0.028828049078583717,
-0.02783035673201084,
-0.0534902960062027,
0.012506157159805298,
-0.0013597930083051324,
-0.05559070035815239,
-0.05639585480093956,
0.01665445603430271,
0.008432247675955296,
-0.031208505854010582,
-0.025222353637218475,
0.043128300458192825,
-0.010388249531388283,
-0.009136758744716644,
0.03316888213157654,
-0.08597654849290848,
0.012453646399080753,
-0.058076176792383194,
-0.030683405697345734,
0.0004947436391375959,
-0.03602193295955658,
0.0067869313061237335,
0.0009397121029905975,
0.0068131862208247185,
-0.06973341852426529,
0.006091172341257334,
0.02305193617939949,
-0.05307021364569664,
0.08590653538703918,
-0.01302250660955906,
0.03329140692949295,
0.013005003333091736,
-0.015796789899468422,
-0.0010277759283781052,
-0.019113678485155106,
0.014072708785533905,
-0.006279333494603634,
0.019708793610334396,
0.00827909354120493,
-0.026465093716979027,
-0.017975959926843643,
-0.0029164988081902266,
0.04295326769351959,
0.0004012100398540497,
0.04095788300037384,
-0.021459130570292473,
-0.04956953972578049,
0.007460810709744692,
0.054645515978336334,
0.013005003333091736,
0.0040607815608382225,
0.013197540305554867,
-0.05440047010779381,
-0.02208925224840641,
-0.06066667661070824,
0.020408928394317627,
-0.02042643167078495,
0.003997331950813532,
0.00029318142333067954,
-0.0570259764790535,
0.057761117815971375,
0.03512926027178764,
-0.0746343657374382,
-0.03931256756186485,
0.06791307032108307,
0.014405272901058197,
-0.02084651216864586,
0.007780247367918491,
-0.025817468762397766,
0.11076131463050842,
0.001683605252765119,
-0.04158800467848778,
-0.01010819524526596,
0.02326197735965252,
-0.07897520065307617,
0.003831049893051386,
-0.015350454486906528,
0.0756845697760582,
0.04228813946247101,
-0.0012700881343334913,
0.028267940506339073,
0.03050837107002735,
0.052720148116350174,
-0.007246394641697407,
0.005032218527048826,
0.03413156792521477,
-0.03565436229109764,
0.01699577085673809,
0.04690902680158615,
-0.029930761083960533,
0.013573862612247467,
-0.031716104596853256,
0.007132622878998518,
-0.019813813269138336,
0.014142721891403198,
-0.004056405741721392,
0.009696866385638714,
-0.034551650285720825,
-0.02133660577237606,
0.05135488510131836,
0.004316768143326044,
-0.07827506214380264,
-0.052405085414648056,
0.05993153527379036,
0.010650799609720707,
0.08051549643278122,
0.0010950545547530055,
0.16369150578975677,
-0.028495484963059425,
-0.04337334632873535,
0.03735218942165375,
-0.011587230488657951,
-0.0777149572968483,
-0.026342570781707764,
0.044248517602682114,
-0.048589352518320084,
0.05187998339533806,
-0.0015009138733148575,
0.01897365227341652,
0.00013113851309753954,
0.047154076397418976,
-0.005999279674142599,
0.004012647084891796,
-0.019953839480876923,
-0.04522870481014252,
-0.03519927337765694,
-0.03547932952642441,
-0.057971157133579254,
0.03973264619708061,
-0.015551743097603321,
-0.02219427190721035,
0.0504797138273716,
-0.00903173815459013,
-0.007622716948390007,
-0.0051897489465773106,
0.030700908973813057,
0.009521832689642906,
0.0005097856046631932,
0.01522793062031269,
0.009618100710213184,
0.01037074625492096,
-0.04340835288167,
0.021686673164367676,
0.001404645387083292,
-0.005040970165282488,
-0.023559534922242165,
0.022579345852136612,
0.006441239733248949,
-0.08303598314523697,
0.0630471333861351,
0.09948914498090744,
-0.024469709023833275,
0.012366130016744137,
-0.015096655115485191,
-0.040397774428129196,
-0.017013274133205414,
0.031873635947704315,
-0.03323889896273613,
-0.00168798107188195,
-0.0315585732460022,
0.026395080611109734,
-0.05741104856133461,
-0.03113849274814129,
0.017993463203310966,
-0.05881131812930107,
0.019341222941875458,
0.011324679479002953,
0.02011137083172798,
-0.027690328657627106,
0.014597809873521328,
-0.010484517551958561,
0.07386421412229538,
0.04043278098106384,
0.003765412140637636,
0.026447590440511703,
-0.02058396115899086,
0.02224678173661232,
0.011902290396392345,
-0.02588748186826706,
0.016628200188279152,
0.013757647946476936,
-0.05037469416856766,
-0.015936817973852158,
0.011315927840769291,
0.031331028789281845,
-0.03703712671995163,
-0.01647942140698433,
-0.026150032877922058,
0.015157917514443398,
0.03173360601067543,
-0.022631855681538582,
0.007333911489695311,
-0.014737836085259914,
0.03152356669306755,
0.0393475741147995,
0.0072288913652300835,
-0.026710141450166702,
-0.0052160038612782955,
0.0030784050468355417,
0.012208599597215652,
0.10502021014690399,
0.009005483239889145,
-0.06388729810714722,
0.040397774428129196,
-0.01850106008350849,
-0.013705138117074966,
-0.005566071253269911,
0.0030543378088623285,
-0.031015969812870026,
-0.01107088103890419,
0.03588190674781799,
-0.0355493426322937,
-0.0005715943989343941,
-0.00872105360031128,
0.02364705130457878,
0.0027983509935438633,
-0.0018958336440846324,
0.02674514800310135,
0.018746107816696167,
0.01733708754181862,
0.06192691996693611,
0.042043089866638184,
-0.002133222995325923,
0.01112339086830616,
0.08912715315818787,
0.001796283177100122,
0.05548567697405815,
0.01402019802480936,
-0.021021544933319092,
-0.022911909967660904,
-0.02411964163184166,
-0.0948682576417923,
0.051599930971860886,
0.062101952731609344,
-0.046068865805864334,
-0.01452779583632946,
-0.005412916652858257,
0.00549605768173933,
0.019918832927942276,
0.0026167535688728094,
-0.014449031092226505,
0.05209002643823624,
0.014046452939510345,
0.013766399584710598,
-0.02557242102921009,
0.015079151839017868,
0.01632189191877842,
-0.016540683805942535,
0.026500100269913673,
0.0716938003897667,
-0.09409811347723007,
0.01016070507466793,
-0.017057033255696297,
-0.05163493752479553,
0.006992595735937357,
-0.037492215633392334,
-0.030368344858288765,
0.005640460643917322,
0.022876903414726257,
-0.016689462587237358,
-0.022631855681538582,
-0.06451741605997086,
-0.01177101582288742,
-0.015613004565238953,
-0.02643008716404438,
-0.02289440669119358,
0.04022274166345596,
0.023034432902932167,
-0.05678092688322067,
-0.053315259516239166,
0.058671291917562485,
0.0099681681022048,
-0.020338915288448334,
-0.0009971450781449676,
-0.041938070207834244,
0.03906751796603203,
-0.026657629758119583,
0.0046427687630057335,
0.04015272855758667,
0.01907867193222046,
-0.03323889896273613,
0.007819630205631256,
0.02788286656141281,
0.022316794842481613,
-0.017407100647687912,
-0.0504797138273716,
-0.03007078729569912,
0.024469709023833275,
-0.027357764542102814,
0.035951919853687286,
-0.0068963272497057915,
0.01892114244401455,
-0.011062129400670528,
0.03766724839806557,
-0.02042643167078495,
-0.009889403358101845,
0.01409896370023489,
-0.01839604042470455,
0.02530987188220024,
-0.012593673542141914,
-0.03962762653827667,
-0.0010075377067551017,
-0.02734026126563549,
-0.07729487866163254,
-0.025064824149012566,
0.025922488421201706,
-0.039277561008930206,
0.03269629180431366,
-0.039487600326538086,
-0.05307021364569664,
0.04064282029867172,
0.04953453317284584,
0.038402389734983444,
0.020076364278793335,
-0.020829008892178535,
-0.026150032877922058,
-0.042043089866638184,
0.03640700876712799,
0.06126179173588753,
0.010230719111859798,
-0.05300020053982735,
-0.046173885464668274,
0.0020325786899775267,
0.01345133874565363,
-0.07151876389980316,
-0.004404284991323948,
-0.0024854782968759537,
-0.0026845792308449745,
-0.051494911313056946,
-0.004139546770602465,
0.06948837637901306,
0.011429700069129467,
0.01074706856161356,
-0.001467001042328775,
0.015525488182902336,
0.008314100094139576,
0.06857819855213165,
0.09073746204376221,
-0.0008549301419407129,
0.00121648411732167,
-0.022229278460144997,
-0.04680400714278221,
-0.042323146015405655,
-0.018903637304902077,
0.007557079661637545,
-0.023944608867168427,
0.022544339299201965,
0.031716104596853256,
-0.03976765275001526,
-0.00505409762263298,
0.004314580466598272,
0.014895366504788399,
0.04809925705194473,
0.03451664373278618,
0.026290059089660645,
0.025537414476275444,
-0.019061168655753136,
-0.0011891351314261556,
0.01283872127532959,
0.0034415998961776495,
-0.04354838281869888,
-0.02947567217051983,
0.08611657470464706,
-0.006883199792355299,
0.00005059567411080934,
-0.05506559833884239,
-0.021144069731235504,
-0.00770585797727108,
0.0026780155021697283,
0.029248129576444626,
0.09521832317113876,
-0.01479909848421812,
0.007618341129273176,
0.02089902199804783,
0.03423658758401871,
0.023839587345719337,
-0.05468052253127098,
0.023349493741989136,
0.01079957839101553,
-0.025012314319610596,
0.03469167649745941,
0.03861243277788162,
-0.008506637066602707,
0.010537028312683105,
0.008121563121676445,
-0.03329140692949295,
0.002332323929294944,
-0.006279333494603634,
-0.015569246374070644,
0.014965380541980267,
-0.03843739628791809,
0.015052896924316883,
0.013188788667321205,
0.05026967450976372,
-0.008449750952422619,
0.012541163712739944,
0.05054973065853119,
0.05037469416856766,
-0.08912715315818787,
-0.04529871791601181,
0.01655818708240986,
-0.0005737823084928095,
-0.03756222873926163,
-0.005255386233329773,
-0.023086942732334137,
0.06105174869298935,
-0.02723524160683155,
-0.014764091931283474,
-0.03472668305039406,
-0.0367920808494091,
-0.07554453611373901,
-0.061296798288822174,
-0.026027509942650795,
-0.0165319312363863,
-0.01056328322738409,
-0.006546259857714176,
0.01016070507466793,
0.004756540525704622,
0.013748896308243275,
-0.004879063926637173,
-0.009705618023872375,
0.07309406995773315,
-0.07225390523672104,
-0.007990287616848946,
0.018238510936498642,
0.026675133034586906,
0.0033584588672965765,
-0.02658761665225029,
-0.001006990671157837,
-0.011937297880649567,
0.023559534922242165,
-0.03745720908045769,
0.0015982763143256307,
-0.03885747864842415,
0.07715485244989395,
0.007163253612816334,
0.021529143676161766,
0.03533929958939552,
-0.03560185059905052,
-0.004375842399895191,
-0.014484037645161152,
-0.020233893766999245,
0.040607813745737076,
0.040397774428129196,
0.007150126155465841,
-0.03220620006322861,
0.009057993069291115,
0.05884632468223572,
0.01923620142042637,
-0.0026233172975480556,
-0.012628680095076561,
0.011280921287834644,
-0.07806502282619476,
-0.035024240612983704,
-0.0010277759283781052,
0.03392152860760689,
0.011280921287834644,
0.016304388642311096,
-0.022649358958005905,
0.027112718671560287,
0.021686673164367676,
-0.04648894816637039,
-0.016514427959918976,
-0.02289440669119358,
-0.058776311576366425,
0.08338604867458344,
-0.04123793542385101,
0.07379420101642609,
0.04981458559632301,
0.01941123604774475,
0.011298424564301968,
-0.005640460643917322,
-0.02331448718905449,
-0.034061554819345474,
0.017144549638032913,
-0.04648894816637039,
-0.03472668305039406,
0.032783810049295425,
0.03087594173848629,
0.005447923671454191,
0.013232546858489513,
-0.018851127475500107,
-0.030105793848633766,
0.025817468762397766,
0.01391517836600542,
0.04389844834804535,
0.013425083830952644,
0.05965147912502289,
0.06644278764724731,
0.041833050549030304,
0.01535920612514019,
0.02685016766190529,
0.005233507137745619,
-0.07890518754720688,
0.04347836971282959,
0.05496057868003845,
0.018185999244451523,
-0.017118293792009354,
-0.024154648184776306,
0.004826554097235203,
0.04088786989450455,
-0.01923620142042637,
0.019341222941875458,
0.011639740318059921,
-0.027865363284945488,
0.047959230840206146,
0.04603385925292969,
0.07876516133546829,
-0.002516109263524413,
0.0063712261617183685,
-0.007872140035033226,
0.03183862939476967,
0.003610069863498211,
-0.04953453317284584,
-0.018956148996949196,
-0.05012964829802513,
-0.032573770731687546,
-0.029038088396191597,
0.02868802100419998,
0.013617620803415775,
-0.04991960898041725,
-0.059966541826725006,
-0.009556839242577553,
-0.019148685038089752,
0.06738796830177307,
0.0023563909344375134,
0.01956876553595066,
-0.051599930971860886,
0.01827351748943329,
0.05527563765645027,
0.0024964180774986744,
-0.0038616806268692017,
-0.03313387557864189,
0.011219658888876438,
0.011473458260297775,
-0.0029755725990980864,
0.0595114529132843,
-0.001329162041656673,
-0.01490411814302206,
-0.010178209282457829,
-0.028162920847535133,
0.006664407439529896,
-0.015499233268201351,
-0.06735296547412872,
-0.046769000589847565,
-0.04428352415561676,
0.007622716948390007,
0.009959416463971138,
0.007622716948390007,
0.04760916158556938,
0.009066744707524776,
0.04176303744316101,
-0.04340835288167,
0.009959416463971138,
-0.01850106008350849,
0.02299942634999752,
0.007530824281275272,
-0.005150366108864546,
0.025957494974136353,
-0.000115891445602756,
0.059581466019153595,
-0.005793615244328976,
0.005224755499511957,
-0.09472823143005371,
-0.04872937873005867,
0.05226505920290947,
0.012681190855801105,
0.04148298501968384,
-0.02476726658642292,
0.031120989471673965,
-0.013818909414112568,
-0.08597654849290848,
-0.04389844834804535,
0.010274477303028107,
-0.058356232941150665,
0.0015140414470806718,
-0.029738223180174828,
-0.0047171576879918575,
0.027252744883298874,
0.01471158117055893,
-0.013932681642472744,
0.018781114369630814,
0.004603385925292969,
-0.00973187293857336,
-0.03183862939476967,
0.024959804490208626,
-0.01907867193222046,
0.03833237662911415,
-0.01881612092256546,
-0.02417215146124363,
-0.032188694924116135,
-0.01577053591609001,
-0.0023760823532938957,
-0.017293328419327736,
0.04659396782517433,
0.014046452939510345,
-0.031155996024608612,
0.013145029544830322,
0.012786210514605045,
-0.03467417508363724,
-0.05965147912502289,
0.019796309992671013,
-0.07400424033403397,
-0.032503753900527954,
-0.05601077899336815,
-0.0016245314618572593,
0.004097976256161928,
-0.037072133272886276,
0.022124258801341057,
-0.03521677851676941,
-0.06164686381816864,
0.022264285013079643,
-0.046348921954631805,
-0.007929026149213314,
-0.027042705565690994,
0.05611579865217209,
-0.001970222918316722,
0.009898154996335506,
0.03381650894880295,
-0.03007078729569912,
-0.07827506214380264,
0.009504329413175583,
0.007373293861746788,
-0.017345838248729706,
0.0580061636865139,
-0.020128874108195305,
-0.006139306351542473,
-0.14247742295265198,
0.020023854449391365,
-0.05783113092184067,
0.08940720558166504,
0.027637818828225136,
0.023717064410448074,
-0.017923450097441673,
0.02310444600880146,
0.007670851424336433,
0.06794808059930801,
-0.007946529425680637,
-0.003478794591501355,
0.018483556807041168,
0.026972690597176552,
0.08366610109806061,
0.03441162407398224,
0.021319102495908737,
-0.017555879428982735,
-0.06014157459139824,
0.003782915649935603,
0.038192350417375565,
0.006585642695426941,
0.0032643782906234264,
-0.006922582164406776,
0.01645316742360592,
-0.005526688881218433,
0.038997504860162735,
0.03493672236800194,
0.06885825097560883,
-0.05678092688322067,
-0.056535881012678146,
-0.030648399144411087,
-0.046278905123472214,
-0.0021386928856372833,
0.015464226715266705,
-0.05012964829802513,
-0.027637818828225136,
-0.0020402364898473024,
-0.036582041531801224,
0.022019237279891968,
0.016365649178624153,
0.06416735053062439,
0.00005722781133954413,
0.02112656645476818,
0.014484037645161152,
-0.04508867859840393,
0.04508867859840393,
0.04179804399609566,
-0.007784623187035322,
0.029038088396191597,
0.038402389734983444,
-0.01549048162996769,
0.0449136458337307,
0.01876361109316349,
-0.014361513778567314,
-0.021721679717302322,
0.04218311980366707,
0.017975959926843643,
-0.024784769862890244,
0.028828049078583717,
0.011000867001712322,
0.0020117934327572584,
-0.028583001345396042,
0.0013838601298630238,
-0.02872302755713463,
0.06269706785678864,
0.0032359352335333824,
0.007627092767506838,
0.011893538758158684,
-0.04851933941245079,
-0.013442587107419968
] |
10,223 | pygments.lexer | _preprocess_lexer_input | Apply preprocessing such as decoding the input, removing BOM and normalizing newlines. | def _preprocess_lexer_input(self, text):
"""Apply preprocessing such as decoding the input, removing BOM and normalizing newlines."""
if not isinstance(text, str):
if self.encoding == 'guess':
text, _ = guess_decode(text)
elif self.encoding == 'chardet':
try:
import chardet
except ImportError as e:
raise ImportError('To enable chardet encoding guessing, '
'please install the chardet library '
'from http://chardet.feedparser.org/') from e
# check for BOM first
decoded = None
for bom, encoding in _encoding_map:
if text.startswith(bom):
decoded = text[len(bom):].decode(encoding, 'replace')
break
# no BOM found, so use chardet
if decoded is None:
enc = chardet.detect(text[:1024]) # Guess using first 1KB
decoded = text.decode(enc.get('encoding') or 'utf-8',
'replace')
text = decoded
else:
text = text.decode(self.encoding)
if text.startswith('\ufeff'):
text = text[len('\ufeff'):]
else:
if text.startswith('\ufeff'):
text = text[len('\ufeff'):]
# text now *is* a unicode string
text = text.replace('\r\n', '\n')
text = text.replace('\r', '\n')
if self.stripall:
text = text.strip()
elif self.stripnl:
text = text.strip('\n')
if self.tabsize > 0:
text = text.expandtabs(self.tabsize)
if self.ensurenl and not text.endswith('\n'):
text += '\n'
return text
| (self, text) | [
-0.03304813429713249,
0.005838942714035511,
0.032445888966321945,
0.011499093845486641,
-0.029716970399022102,
-0.024823740124702454,
-0.017690913751721382,
0.041103143244981766,
0.03169308230280876,
-0.021492578089237213,
0.03617227077484131,
-0.037207379937171936,
-0.029095906764268875,
0.07264566421508789,
0.008850161917507648,
0.008262033574283123,
-0.017436841502785683,
0.04987332224845886,
0.006276510190218687,
-0.007189286407083273,
-0.0808512419462204,
-0.03982337564229965,
0.016947519034147263,
0.04388852044939995,
0.007772710174322128,
-0.010925080627202988,
-0.005834237672388554,
-0.024861380457878113,
-0.045356493443250656,
-0.028173720464110374,
0.0518682524561882,
0.026781031861901283,
0.018867170438170433,
-0.007165761198848486,
0.015714801847934723,
-0.04434020444750786,
-0.019968148320913315,
-0.027665577828884125,
0.021925441920757294,
-0.06210640072822571,
-0.010445167310535908,
-0.027119794860482216,
-0.021059716120362282,
0.03319869190454483,
-0.06568222492933273,
0.00135387247428298,
-0.044453125447034836,
-0.007899745367467403,
-0.017483891919255257,
0.022452404722571373,
-0.012148387730121613,
-0.017643863335251808,
0.02301700785756111,
0.021003255620598793,
0.020946795120835304,
-0.06372492760419846,
0.0003508188237901777,
-0.04373796284198761,
-0.0020878571085631847,
-0.005975388456135988,
-0.0008463173289783299,
0.017756784334778786,
0.052583418786525726,
0.002604234265163541,
-0.004281577654182911,
-0.059433940798044205,
0.03325515240430832,
-0.011150921694934368,
0.0044462536461651325,
0.01008758507668972,
-0.0645153746008873,
0.03035685606300831,
0.008045601658523083,
-0.01735215075314045,
0.0577777698636055,
-0.014980816282331944,
-0.024146215990185738,
0.04001157730817795,
-0.015225477516651154,
0.016401736065745354,
0.04802894964814186,
0.05973506346344948,
0.017154540866613388,
0.01974230632185936,
0.03359391540288925,
-0.04102786257863045,
0.026141148060560226,
0.04068910330533981,
0.021906621754169464,
0.04516829177737236,
0.018631920218467712,
-0.038204845041036606,
0.0037804918829351664,
0.05145421251654625,
-0.04486716911196709,
0.025670645758509636,
0.027797318994998932,
-0.016872238367795944,
-0.02503076009452343,
-0.012148387730121613,
0.004279225133359432,
0.12361055612564087,
-0.08702424168586731,
-0.04129134491086006,
0.008572565391659737,
-0.023713352158665657,
-0.001856134389527142,
-0.011640245094895363,
0.0365486741065979,
-0.01226130872964859,
0.007480998057872057,
-0.08619615435600281,
0.03182482346892357,
0.005311978980898857,
0.040162138640880585,
-0.07949618995189667,
-0.08566918969154358,
-0.0023772164713591337,
0.04215707257390022,
0.03558884933590889,
-0.03024393506348133,
0.010256965644657612,
-0.019874047487974167,
-0.03208830580115318,
-0.016524067148566246,
0.023920373991131783,
0.07693665474653244,
0.021266736090183258,
0.06590806692838669,
0.0020243392791599035,
0.0022842921316623688,
0.03270937129855156,
0.0016679331893101335,
-0.06918276846408844,
-0.0071610561572015285,
0.0013068221742287278,
-0.03333043307065964,
0.02015634998679161,
-0.0047544329427182674,
-0.0537126250565052,
0.06282156705856323,
0.00463680736720562,
0.007109300699084997,
-0.027025694027543068,
-0.12601953744888306,
-0.001876130816526711,
0.039145853370428085,
-0.0010815688874572515,
-0.0360405333340168,
0.003521715058013797,
0.027722038328647614,
-0.020325731486082077,
-0.011724935844540596,
0.02640463039278984,
0.037282660603523254,
0.039635173976421356,
-0.032991673797369,
-0.028192540630698204,
0.02397683449089527,
0.04415200278162956,
-0.014312702231109142,
-0.015536010265350342,
0.023261670023202896,
-0.006050669122487307,
-0.0048555913381278515,
0.0036816862411797047,
0.0341961607336998,
-0.09477812796831131,
-0.023224029690027237,
-0.004681505262851715,
0.04505537077784538,
-0.00767860934138298,
-0.03986101597547531,
0.02791023999452591,
0.010746289044618607,
0.0036111106164753437,
-0.01919652335345745,
0.046786822378635406,
-0.03903293237090111,
0.04426492378115654,
0.006351790856570005,
0.0014244478661566973,
-0.033838577568531036,
-0.0308273583650589,
0.049195796251297,
-0.029509950429201126,
0.04336155951023102,
-0.00602714391425252,
0.046786822378635406,
0.00588128762319684,
0.006309445481747389,
-0.06199347972869873,
0.012007237412035465,
-0.010915670543909073,
-0.02213246189057827,
-0.02457907795906067,
0.025727106258273125,
0.019591746851801872,
0.023449871689081192,
-0.08401302248239517,
-0.021040895953774452,
0.03033803589642048,
0.02839956246316433,
0.004074556287378073,
-0.05152949318289757,
-0.02740209549665451,
-0.06274628639221191,
0.018556639552116394,
-0.07659789174795151,
0.012863553129136562,
0.001949058729223907,
-0.0365486741065979,
0.039108213037252426,
0.023750992491841316,
-0.025124860927462578,
-0.03888237103819847,
0.038204845041036606,
0.03412088006734848,
0.03504306450486183,
0.00437803054228425,
0.01178139541298151,
0.05333622172474861,
-0.02830546163022518,
-0.049685120582580566,
0.00673289829865098,
-0.03519362583756447,
-0.04136662557721138,
0.02168077975511551,
0.04806658998131752,
0.00844082422554493,
0.04388852044939995,
-0.048781752586364746,
-0.03626637160778046,
0.02262178622186184,
0.030639156699180603,
-0.029020626097917557,
0.03374447673559189,
-0.0647035762667656,
-0.06308504939079285,
-0.01682518795132637,
-0.023487510159611702,
-0.024767279624938965,
0.022904086858034134,
-0.006351790856570005,
-0.04437784478068352,
0.055067673325538635,
0.015997102484107018,
0.061767637729644775,
-0.008516104891896248,
0.034854862838983536,
-0.025520084425807,
-0.007946795783936977,
0.02066449262201786,
0.025877665728330612,
0.005279044155031443,
-0.014736155048012733,
0.011489683762192726,
0.01725805178284645,
0.024353235960006714,
0.047840747982263565,
-0.01173434592783451,
-0.020288091152906418,
0.006596452556550503,
-0.002341928891837597,
0.011452043429017067,
-0.02600940689444542,
-0.018773071467876434,
0.027044514194130898,
-0.0043003978207707405,
-0.018424898386001587,
0.0432862788438797,
-0.016919288784265518,
-0.01445385254919529,
0.020815053954720497,
-0.028550123795866966,
-0.007095185574144125,
-0.053562063723802567,
0.009621786884963512,
0.04324863851070404,
-0.025331882759928703,
-0.014905535615980625,
-0.001936119981110096,
-0.047389063984155655,
-0.02075859345495701,
0.008153817616403103,
-0.030187474563717842,
-0.026536371558904648,
-0.0694086030125618,
-0.019102422520518303,
-0.04132898524403572,
0.0040533835999667645,
-0.016524067148566246,
-0.015441909432411194,
0.004523886367678642,
0.06970972567796707,
0.012440100312232971,
-0.04840535297989845,
-0.004693267866969109,
0.008106767199933529,
-0.06417661160230637,
-0.052884541451931,
0.025237781926989555,
0.044528406113386154,
-0.003695801366120577,
-0.004926166497170925,
0.02107853628695011,
-0.060450229793787,
0.02450379729270935,
-0.01594064198434353,
-0.03278465196490288,
0.030902639031410217,
0.008525514975190163,
-0.008464349433779716,
-0.013559897430241108,
-0.054051388055086136,
-0.008078536950051785,
0.06613390892744064,
0.03257763013243675,
0.03846832737326622,
0.011423813179135323,
-0.032050665467977524,
-0.06244516000151634,
0.005848352797329426,
-0.0028794785030186176,
-0.002964169019833207,
0.0014656169805675745,
0.07400071620941162,
-0.03541946783661842,
-0.004815598484128714,
-0.007448062766343355,
-0.04991096258163452,
0.058869339525699615,
-0.041140783578157425,
0.007264566607773304,
-0.011922546662390232,
-0.04460368677973747,
-0.02397683449089527,
-0.008309083059430122,
-0.006775243673473597,
-0.04896995425224304,
0.027590297162532806,
0.00367227615788579,
-0.0018514294642955065,
0.02691277302801609,
-0.024767279624938965,
0.018086135387420654,
-0.04004921764135361,
0.005476655438542366,
0.05198117345571518,
0.024842560291290283,
-0.0022572383750230074,
-0.058831699192523956,
0.024616718292236328,
-0.004434491042047739,
-0.0025901191402226686,
-0.050287362188100815,
-0.036830976605415344,
-0.055519357323646545,
-0.00936301052570343,
-0.05096488818526268,
0.04272167384624481,
0.030432134866714478,
0.006502351723611355,
0.05691204592585564,
-0.004695620387792587,
-0.04426492378115654,
-0.04336155951023102,
0.03229532763361931,
0.04140426591038704,
0.06289684772491455,
-0.014604413881897926,
0.04185594990849495,
-0.043436840176582336,
-0.05427723005414009,
-0.03541946783661842,
0.03513716533780098,
0.03907057270407677,
0.011988417245447636,
-0.0385812483727932,
0.03555120900273323,
0.020419830456376076,
0.07569452375173569,
-0.057024966925382614,
-0.026272889226675034,
-0.023675711825489998,
-0.0192906241863966,
-0.027289176359772682,
-0.0019643502309918404,
0.05137893185019493,
-0.03206948563456535,
-0.032859932631254196,
0.009635902009904385,
0.05397610738873482,
-0.011696705594658852,
-0.02504958026111126,
0.018283747136592865,
0.008153817616403103,
0.009617081843316555,
-0.011809625662863255,
-0.004695620387792587,
0.011320303194224834,
0.013117624446749687,
0.038769450038671494,
0.014500902965664864,
0.01127325277775526,
0.051266010850667953,
0.02015634998679161,
0.05834237486124039,
-0.017013389617204666,
0.08017371594905853,
0.07257038354873657,
0.012797682546079159,
0.03306695446372032,
-0.06861816346645355,
-0.041630107909440994,
-0.013766918331384659,
0.008906622417271137,
-0.0283807422965765,
0.011715525761246681,
0.013635178096592426,
-0.005467245355248451,
0.05254577845335007,
-0.0537126250565052,
0.011753165163099766,
0.007245746441185474,
0.028079621493816376,
0.019648205488920212,
0.004695620387792587,
-0.03937169164419174,
0.004827361088246107,
0.03274701163172722,
-0.07385015487670898,
0.005994208622723818,
-0.04814187064766884,
-0.014717334881424904,
0.027307996526360512,
-0.004140426404774189,
0.08679839968681335,
-0.011000360362231731,
-0.004274520091712475,
0.04388852044939995,
0.026235248893499374,
0.04275931417942047,
0.023242849856615067,
0.09357364475727081,
0.014867895282804966,
-0.035739410668611526,
0.04863119125366211,
-0.08800288289785385,
0.015451319515705109,
-0.04945927858352661,
0.0490075945854187,
-0.05965978279709816,
-0.008337313309311867,
-0.012816502712666988,
-0.015724211931228638,
0.040576182305812836,
0.021925441920757294,
0.032445888966321945,
0.09974664449691772,
-0.006191819906234741,
0.049308717250823975,
0.05386318638920784,
0.03481722250580788,
0.042985156178474426,
0.05235757678747177,
-0.03334925323724747,
0.0422699935734272,
-0.018500179052352905,
0.034422002732753754,
-0.015724211931228638,
0.010153455659747124,
-0.0009257147321477532,
0.0336880162358284,
-0.024202676489949226,
0.020288091152906418,
-0.05766485258936882,
-0.03955989331007004,
0.008845456875860691,
-0.001932591199874878,
-0.026686931028962135,
-0.005354324355721474,
0.0025195437483489513,
-0.03259645029902458,
-0.035833511501550674,
-0.028568943962454796,
0.08837928622961044,
-0.053674984723329544,
0.051717691123485565,
0.02843720279633999,
-0.005970683414489031,
0.035306546837091446,
-0.00041080795926973224,
0.032954033464193344,
0.016834598034620285,
-0.003954577725380659,
0.01274122204631567,
-0.013644588179886341,
0.05137893185019493,
-0.007273976691067219,
-0.01224248856306076,
0.017512122169137,
-0.028512483462691307,
-0.04196887090802193,
0.04509301111102104,
0.054089028388261795,
-0.010642778128385544,
0.00515671307221055,
-0.017907345667481422,
0.04373796284198761,
-0.058831699192523956,
-0.011856676079332829,
0.031147301197052002,
-0.05156712979078293,
-0.003352334024384618,
0.009635902009904385,
0.0010068764677271247,
0.02111617662012577,
-0.03933405131101608,
0.003373506711795926,
-0.0168440081179142,
-0.006422366481274366,
0.006215345114469528,
-0.09568149596452713,
-0.013569307513535023,
0.07422655820846558,
-0.012995293363928795,
-0.006130654364824295,
0.028041981160640717,
-0.061729997396469116,
-0.04723850265145302,
-0.03799782320857048,
0.00012710933515336365,
-0.030055733397603035,
-0.011452043429017067,
-0.049308717250823975,
-0.011404993012547493,
0.0226594265550375,
0.05401374772191048,
0.05043792352080345,
-0.003625225741416216,
0.03762142360210419,
-0.06809119880199432,
-0.009433585219085217,
0.020382191985845566,
-0.022734705358743668,
-0.03733912110328674,
0.0016220591496676207,
-0.06910748779773712,
0.032445888966321945,
-0.08973433822393417,
-0.04068910330533981,
-0.017107490450143814,
0.042044151574373245,
0.02883242629468441,
-0.05280926078557968,
0.04219471290707588,
0.026178788393735886,
0.041630107909440994,
0.011677885428071022,
-0.01247774064540863,
0.001690282137133181,
-0.08122764527797699,
-0.06263336539268494,
-0.015517190098762512,
0.007631558924913406,
-0.04524357244372368,
0.03415852040052414,
-0.052621059119701385,
0.05130365118384361,
0.08438942581415176,
-0.05544407665729523,
0.054089028388261795,
0.018895400688052177,
-0.03852478787302971,
-0.018199056386947632,
0.04464132711291313,
0.03380093723535538,
0.011856676079332829,
-0.019949328154325485,
0.03269055113196373,
0.04321099817752838,
0.0020584508311003447,
-0.046448059380054474,
-0.009123053401708603,
-0.0857444703578949,
0.03024393506348133,
0.0412537045776844,
0.017182771116495132,
-0.016382915899157524,
-0.04953455924987793,
0.002804198069497943,
0.0479913093149662,
-0.017926165834069252,
-0.007297501899302006,
-0.0018079078290611506,
0.00517553323879838,
0.01008758507668972,
-0.017502712085843086,
-0.04121606424450874,
0.019347084686160088,
-0.005763662047684193,
-0.01919652335345745,
0.002191367791965604,
0.09447700530290604,
-0.013973940163850784,
-0.06154179573059082,
0.016721677035093307,
0.001812612870708108,
0.017521532252430916,
0.03225768730044365,
0.0006404722225852311,
0.001992580248042941,
-0.018010856583714485,
0.0026465794071555138,
0.008299672976136208,
0.02314874902367592,
-0.05378790572285652,
0.0547289103269577,
0.04464132711291313,
0.052207015454769135,
0.006003618706017733,
-0.04953455924987793,
0.015573650598526001,
-0.014444442465901375,
0.028550123795866966,
-0.020833874121308327,
-0.029020626097917557,
0.006859933957457542,
-0.0048791165463626385,
0.026818672195076942,
0.011386172845959663,
0.033480994403362274,
-0.018594279885292053,
-0.005956568289548159,
0.04038798063993454,
-0.04863119125366211,
-0.014585593715310097,
-0.01706044003367424,
-0.042006511241197586,
-0.0007110476726666093,
-0.05156712979078293,
0.0035781755577772856,
-0.03033803589642048,
-0.03276583179831505,
-0.0005960685084573925,
-0.02252768538892269,
-0.02604704722762108,
0.0596221424639225,
-0.004949691705405712,
-0.022922907024621964,
0.006667027715593576,
0.01706044003367424,
0.07215634733438492,
-0.019149472936987877,
0.09191747009754181,
-0.019572926685214043,
0.03903293237090111,
0.015564240515232086,
-0.06428953260183334,
0.00614006444811821,
0.037282660603523254,
0.01300470344722271,
0.0283807422965765,
0.033970318734645844,
0.013098804280161858,
-0.010162865743041039,
0.051717691123485565,
0.027025694027543068,
-0.07347375154495239,
0.006883459165692329,
0.050212081521749496,
-0.020909154787659645,
-0.04102786257863045,
-0.018716610968112946,
-0.05732608959078789,
0.02890770509839058,
-0.009861743077635765,
0.06323560327291489,
-0.024880200624465942,
-0.0747535228729248,
0.0013491674326360226,
-0.009250089526176453,
-0.03122258000075817,
-0.029302928596735,
0.02452261745929718,
-0.0013279947452247143,
-0.027533836662769318,
0.07241982221603394,
-0.024880200624465942,
0.008516104891896248,
0.05081432685256004,
-0.0006013616803102195,
-0.031956564635038376,
-0.009937023743987083,
0.0035640604328364134,
-0.013343465514481068,
-0.07170466333627701,
-0.0015691275475546718,
-0.0018914222018793225,
0.05544407665729523,
-0.05533115565776825,
-0.021530218422412872,
-0.01882012188434601,
-0.013390515930950642,
0.009805283509194851,
-0.05901990085840225,
-0.028023160994052887,
-0.0498356819152832,
0.031580161303281784,
-0.010388706810772419,
0.0004113960894756019,
0.007612738758325577,
0.010718058794736862,
0.07396307587623596,
0.008596090599894524,
-0.006850523874163628,
0.006554107181727886,
0.03752732276916504,
0.01467028446495533,
0.010388706810772419,
-0.004836771171540022,
0.008600795641541481,
0.0853680670261383,
-0.006794063840061426,
0.03692507743835449,
-0.06199347972869873,
-0.022904086858034134,
0.007725659757852554,
-0.038298945873975754,
0.020946795120835304,
0.06425189226865768,
-0.04132898524403572,
0.019986968487501144,
-0.021360836923122406,
-0.04806658998131752,
0.014350342564284801,
-0.010256965644657612,
-0.00123389414511621,
0.0016679331893101335,
-0.01882012188434601,
-0.05954686179757118,
-0.0804748386144638,
0.08348605781793594,
0.062482800334692,
0.006412956397980452,
0.08348605781793594,
0.0045850519090890884,
-0.0034981900826096535,
0.042081791907548904,
0.0020278680603951216,
-0.03035685606300831,
-0.0212290957570076,
0.009024248458445072,
-0.02119145542383194,
0.034309081733226776,
0.0249178409576416,
0.008445529267191887,
0.00312649249099195,
0.022339483723044395,
-0.02792906016111374,
0.012938832864165306,
0.026084687560796738,
-0.013192905113101006,
0.05299746245145798,
-0.038204845041036606,
0.04505537077784538,
0.020890334621071815
] |
10,224 | pygments.lexer | add_filter |
Add a new stream filter to this lexer.
| def add_filter(self, filter_, **options):
"""
Add a new stream filter to this lexer.
"""
if not isinstance(filter_, Filter):
filter_ = get_filter_by_name(filter_, **options)
self.filters.append(filter_)
| (self, filter_, **options) | [
-0.05844122916460037,
-0.020766528323292732,
0.007540942169725895,
0.000854732992593199,
-0.02131527103483677,
0.018451513722538948,
-0.011609363369643688,
0.016059333458542824,
0.011197805404663086,
0.017414046451449394,
-0.0012786162551492453,
-0.08361485600471497,
0.009568721987307072,
0.032513078302145004,
-0.02092086151242256,
0.041601650416851044,
-0.04551145061850548,
-0.005466003902256489,
-0.02414473332464695,
0.0269913412630558,
-0.028140274807810783,
0.01508188433945179,
-0.00892566330730915,
0.02870616689324379,
0.017448341473937035,
0.0479465015232563,
-0.028071681037545204,
0.0005275765433907509,
-0.02110949344933033,
-0.04170453920960426,
-0.005187344737350941,
-0.03424505144357681,
-0.012381034903228283,
-0.06969048082828522,
-0.055183060467243195,
0.021881164982914925,
-0.028020236641168594,
0.05021006986498833,
0.009542999789118767,
0.03016376867890358,
0.015321959741413593,
0.05600617825984955,
-0.011455029249191284,
0.06557489931583405,
-0.013084112666547298,
0.017662694677710533,
-0.04269913583993912,
-0.012844037264585495,
0.01836577244102955,
-0.017071081325411797,
-0.004630026873201132,
0.016033612191677094,
0.006066192407160997,
0.03758895769715309,
0.013204150833189487,
-0.053468234837055206,
0.0142930643633008,
0.008719883859157562,
0.021761126816272736,
0.04489411413669586,
0.026031039655208588,
0.012295293621718884,
-0.0019838379230350256,
0.021864015609025955,
0.013975822366774082,
-0.03213581442832947,
-0.008304039016366005,
0.03487953543663025,
-0.0003783332067541778,
0.013967247679829597,
-0.05278230831027031,
0.0009661965887062252,
0.038583558052778244,
0.014978994615375996,
-0.05583469569683075,
0.06341422349214554,
-0.05439424142241478,
0.040126901119947433,
-0.04983280971646309,
0.0028551833238452673,
0.07215982675552368,
0.06386007368564606,
-0.036903027445077896,
0.05137614905834198,
0.0024521993473172188,
-0.0064777503721416,
-0.03033524937927723,
-0.05281660333275795,
-0.005333105102181435,
-0.004732916597276926,
-0.0637228861451149,
0.01505616120994091,
0.023012949153780937,
0.0031874305568635464,
0.05442854017019272,
0.0027437196113169193,
-0.019223185256123543,
-0.01982337422668934,
0.030781105160713196,
0.016299409791827202,
-0.023253023624420166,
0.03782903403043747,
0.008304039016366005,
-0.009208609350025654,
0.026202522218227386,
-0.049043986946344376,
0.04218468815088272,
0.0018820201512426138,
-0.0016419447492808104,
0.07421761751174927,
0.05257652699947357,
-0.029837951064109802,
0.03172425925731659,
0.0331132672727108,
-0.018743034452199936,
0.049112580716609955,
0.035393983125686646,
-0.004040556028485298,
0.01048615388572216,
0.02865472249686718,
-0.004728629253804684,
-0.014052988961338997,
0.002842321991920471,
0.00025213282788172364,
-0.04485981538891792,
-0.020046301186084747,
0.04228758066892624,
-0.03002658113837242,
0.043144989758729935,
0.010177484713494778,
0.001457601087167859,
0.002808025572448969,
-0.048906803131103516,
-0.03573694825172424,
0.020629342645406723,
-0.04046986624598503,
-0.007969648577272892,
0.013950099237263203,
-0.04400240257382393,
0.050381552428007126,
-0.0330275259912014,
-0.003689016681164503,
-0.023184431716799736,
0.0082783168181777,
-0.0644088163971901,
-0.022344166412949562,
-0.03721169754862785,
0.029426394030451775,
0.033850640058517456,
-0.001132856123149395,
-0.030815402045845985,
0.0392351895570755,
-0.012406757101416588,
0.0454428568482399,
0.045957304537296295,
0.044619739055633545,
-0.03649147227406502,
-0.01659093052148819,
0.033833492547273636,
0.025122182443737984,
0.012252422980964184,
0.0007079010829329491,
-0.04654034599661827,
-0.0036139932926744223,
-0.008162565529346466,
-0.04986710473895073,
-0.008291177451610565,
0.06190517544746399,
-0.025825260207057,
0.04979851096868515,
0.07236560434103012,
-0.04389951378107071,
0.02119523473083973,
0.08251737058162689,
0.02256709337234497,
0.056452032178640366,
0.023733174428343773,
0.036765843629837036,
-0.036868732422590256,
-0.04376232996582985,
0.023184431716799736,
0.0165137629956007,
-0.026562634855508804,
0.020817972719669342,
-0.013307040557265282,
-0.06468319147825241,
0.012552517466247082,
0.010477579198777676,
0.010940582491457462,
0.013229873031377792,
0.0714053064584732,
-0.03645717352628708,
-0.015493441373109818,
-0.04355654865503311,
-0.040126901119947433,
0.005873274989426136,
-0.024607734754681587,
-0.015947870910167694,
-0.0167281161993742,
0.010134614072740078,
-0.03909800574183464,
0.0744233950972557,
-0.010880563408136368,
-0.030506731942296028,
-0.029855098575353622,
0.011575067415833473,
0.023338764905929565,
0.07984223961830139,
-0.051753412932157516,
-0.032461632043123245,
-0.0058604138903319836,
-0.01951470598578453,
0.055114466696977615,
0.0518220029771328,
-0.038240592926740646,
0.04767213016748428,
-0.013804339803755283,
-0.01660807803273201,
0.03153562918305397,
0.04036697372794151,
0.06427162885665894,
-0.015073309652507305,
-0.0848495289683342,
0.005161622539162636,
0.024744922295212746,
-0.003296750597655773,
0.03489668294787407,
-0.039783935993909836,
-0.03040384314954281,
-0.015630627050995827,
0.03933808207511902,
0.04053845629096031,
-0.019051702693104744,
-0.024419104680418968,
-0.05312526971101761,
0.017079655081033707,
0.05607476830482483,
0.05617766082286835,
-0.06502615660429001,
-0.026236819103360176,
0.026579784229397774,
-0.024453401565551758,
-0.008865644223988056,
-0.017765585333108902,
-0.04211609810590744,
-0.00265797832980752,
-0.01937752030789852,
0.01432736124843359,
0.025207923725247383,
0.05580039694905281,
-0.011737975291907787,
-0.000734159373678267,
-0.047466348856687546,
-0.030643919482827187,
-0.007022207602858543,
-0.021932609379291534,
-0.03954385966062546,
0.014078711159527302,
-0.02723141759634018,
-0.05916145443916321,
-0.04033267870545387,
0.0395781546831131,
-0.022224128246307373,
0.0015165481017902493,
-0.004660036414861679,
-0.007905342616140842,
0.010340393520891666,
0.020492156967520714,
0.03885792940855026,
0.010014576837420464,
0.03728029131889343,
-0.023081541061401367,
0.0165566336363554,
0.017216840758919716,
0.023321617394685745,
-0.06427162885665894,
0.017371175810694695,
0.05281660333275795,
0.018760183826088905,
0.03323330357670784,
0.04979851096868515,
0.029049132019281387,
-0.0288433525711298,
-0.0010749808279797435,
0.006709252018481493,
0.0025636630598455667,
0.03446797654032707,
0.09294350445270538,
-0.04671182855963707,
-0.06362000107765198,
-0.006563491653650999,
0.023012949153780937,
0.0034382236190140247,
0.027711568400263786,
0.007159393280744553,
0.043110694736242294,
-0.008771328255534172,
-0.029340652748942375,
0.04698619991540909,
-0.047569237649440765,
-0.04245906323194504,
-0.0642373338341713,
0.04335077106952667,
0.008685587905347347,
-0.03649147227406502,
0.0015776387881487608,
-0.033730603754520416,
0.016985340043902397,
0.003695447463542223,
-0.004762925673276186,
0.007643831428140402,
0.03669724985957146,
-0.04780931398272514,
-0.04856383800506592,
0.024762069806456566,
0.04221898689866066,
0.014978994615375996,
0.03424505144357681,
-0.024642031639814377,
0.07023922353982925,
-0.02258424274623394,
-0.014798937365412712,
-0.007493784185498953,
-0.05545743182301521,
-0.01650518923997879,
0.014490269124507904,
0.02731715887784958,
-0.04801509529352188,
0.013324188068509102,
-0.0518220029771328,
-0.04945554584264755,
0.010880563408136368,
0.007695276290178299,
0.022086942568421364,
-0.05099888890981674,
-0.008715596981346607,
-0.0151761993765831,
-0.03301037847995758,
-0.034107863903045654,
-0.02702563814818859,
-0.022172683849930763,
0.0040748524479568005,
-0.01501329056918621,
0.025156479328870773,
-0.01674526371061802,
-0.025139331817626953,
-0.053468234837055206,
-0.040024008601903915,
0.031209811568260193,
0.00990311335772276,
0.06800995022058487,
-0.030883993953466415,
0.02138386480510235,
0.025173626840114594,
0.09664752334356308,
-0.05326245725154877,
-0.013255595229566097,
0.035428278148174286,
-0.02268713153898716,
-0.03954385966062546,
0.008274029940366745,
0.07593244314193726,
0.0016355140833184123,
-0.013984396122395992,
-0.01834862492978573,
-0.000025672132323961705,
0.06776987761259079,
-0.004295635968446732,
-0.020560748875141144,
-0.031209811568260193,
0.01130069512873888,
-0.026494042947888374,
0.017105376347899437,
0.02114379033446312,
-0.02573952078819275,
-0.01280974131077528,
0.05590328946709633,
0.01641087234020233,
-0.0390637069940567,
0.04132727533578873,
0.021949756890535355,
0.08464375138282776,
-0.038583558052778244,
0.04739775508642197,
0.015296236611902714,
-0.026013892143964767,
-0.06451170891523361,
0.011043471284210682,
0.07504073530435562,
0.005688931327313185,
0.015261940658092499,
-0.049009691923856735,
0.05103318393230438,
-0.057823892682790756,
-0.03153562918305397,
0.026253966614603996,
-0.07270856946706772,
-0.004810083657503128,
-0.07113093137741089,
0.007866758853197098,
0.04396810755133629,
-0.015364830382168293,
-0.003779045073315501,
0.04204750433564186,
0.00839406717568636,
-0.005701792426407337,
0.019103147089481354,
0.0637228861451149,
-0.025345109403133392,
-0.012381034903228283,
0.010306096635758877,
-0.05641773343086243,
-0.026768414303660393,
-0.009217183105647564,
-0.02098945528268814,
0.01356426440179348,
0.052164968103170395,
0.013084112666547298,
-0.041670240461826324,
0.055011577904224396,
-0.006670668255537748,
0.018331477418541908,
-0.020817972719669342,
0.059641607105731964,
0.027540085837244987,
-0.02695704624056816,
0.01663380116224289,
0.01650518923997879,
-0.02561948262155056,
0.0007175469654612243,
-0.05309097468852997,
0.027471492066979408,
0.052164968103170395,
-0.01670239306986332,
-0.004171311389654875,
0.010640488006174564,
-0.015536312013864517,
-0.022995799779891968,
-0.020286377519369125,
0.033867787569761276,
0.07524651288986206,
-0.0365600660443306,
-0.018708737567067146,
-0.02090371400117874,
-0.058235447853803635,
-0.012569665908813477,
-0.07167967408895493,
0.03642287850379944,
0.009834520518779755,
-0.04859813302755356,
0.05772100016474724,
0.002765154931694269,
-0.008672726340591908,
0.029855098575353622,
0.08093973249197006,
-0.017696991562843323,
0.012466776184737682,
0.005770385265350342,
0.008561262860894203,
-0.014224471524357796,
-0.009654463268816471,
0.06471748650074005,
0.023716026917099953,
-0.03367915749549866,
-0.02097230777144432,
0.0006730687455274165,
0.014147303998470306,
-0.037245992571115494,
0.010477579198777676,
-0.018725886940956116,
0.006554917898029089,
0.03016376867890358,
-0.042939212173223495,
-0.02570522390305996,
0.03465661033987999,
0.03728029131889343,
-0.027540085837244987,
-0.03482809290289879,
-0.049009691923856735,
0.01961759477853775,
-0.010400412604212761,
-0.01121495384722948,
0.0013204150600358844,
0.03475949913263321,
-0.006349138915538788,
0.0011457173386588693,
0.06169939413666725,
0.0011542914435267448,
0.027951644733548164,
0.03752036765217781,
0.015484867617487907,
-0.010374689474701881,
-0.01812569797039032,
-0.019068852066993713,
0.04568293318152428,
-0.012132384814321995,
0.011952328495681286,
0.025345109403133392,
0.059298641979694366,
0.022001201286911964,
-0.029649320989847183,
-0.05271371454000473,
-0.022035498172044754,
-0.03151847794651985,
0.04931836202740669,
0.022155536338686943,
-0.019137443974614143,
-0.0018873789813369513,
-0.05137614905834198,
0.04050416126847267,
0.008106834255158901,
-0.00991168711334467,
-0.020835120230913162,
-0.017628397792577744,
0.05631484463810921,
-0.014113008044660091,
-0.011172083206474781,
0.05442854017019272,
-0.0357026532292366,
0.013727172277867794,
0.012338164262473583,
0.018657293170690536,
0.0017298294696956873,
-0.07922490686178207,
0.04057275503873825,
-0.04204750433564186,
-0.0905427485704422,
-0.0484609492123127,
0.026614081114530563,
-0.05874989554286003,
0.0053588273003697395,
0.03738318011164665,
-0.03028380498290062,
-0.04547715187072754,
0.0167709868401289,
-0.013084112666547298,
0.055251654237508774,
-0.005213067401200533,
-0.006627797614783049,
-0.04396810755133629,
0.00990311335772276,
0.031244106590747833,
0.011403584852814674,
-0.028346054255962372,
-0.007240847684442997,
-0.013872932642698288,
-0.038240592926740646,
0.0005723227513954043,
0.015990741550922394,
-0.02237846329808235,
-0.042733434587717056,
-0.005684643983840942,
-0.10323245078325272,
0.044516850262880325,
0.03786333277821541,
-0.023801768198609352,
0.021469606086611748,
0.03971534222364426,
-0.0165995042771101,
0.040092602372169495,
-0.007986796088516712,
0.009680185467004776,
-0.06399726122617722,
0.003794049844145775,
-0.024607734754681587,
-0.05151333659887314,
0.03501672297716141,
-0.02886050008237362,
-0.0029109150636941195,
0.029100576415657997,
0.042904917150735855,
-0.003948383964598179,
-0.011446455493569374,
0.039783935993909836,
-0.06636372208595276,
-0.026699822396039963,
0.04359084740281105,
0.1056332066655159,
0.004381377249956131,
-0.02874046377837658,
-0.03510246425867081,
0.04046986624598503,
-0.028191719204187393,
-0.053811199963092804,
0.0003402855363674462,
-0.024556290358304977,
0.06598645448684692,
0.017122525721788406,
0.023698877543210983,
0.07113093137741089,
-0.005873274989426136,
-0.09500129520893097,
0.0038476381450891495,
-0.017319729551672935,
-0.027968792244791985,
-0.013958673924207687,
0.02246420457959175,
-0.05576610192656517,
-0.058201152831315994,
0.06646660715341568,
-0.03316470980644226,
0.012329590506851673,
0.005598902702331543,
-0.04489411413669586,
0.00835119653493166,
-0.0363885834813118,
-0.04324788227677345,
0.02395610138773918,
-0.04218468815088272,
0.005037297960370779,
0.00028830490191467106,
0.036903027445077896,
-0.006181943230330944,
0.05243934318423271,
0.04407099634408951,
-0.03156992420554161,
0.017156822606921196,
-0.03741747513413429,
0.05566321313381195,
0.05110177770256996,
-0.038480669260025024,
0.04887250438332558,
-0.033987827599048615,
0.002383606508374214,
-0.027780162170529366,
-0.044208183884620667,
0.003862642915919423,
-0.05463431775569916,
-0.026099633425474167,
-0.05007288232445717,
-0.032547373324632645,
0.004329932387918234,
-0.0057318019680678844,
-0.06787276268005371,
-0.024950699880719185,
0.014275915920734406,
-0.026579784229397774,
-0.006396296434104443,
-0.0030395269859582186,
-0.016256539151072502,
-0.009748779237270355,
-0.008805625140666962,
0.05003858730196953,
-0.04698619991540909,
0.008882792666554451,
0.028140274807810783,
-0.029597874730825424,
-0.022961502894759178,
0.026116780936717987,
-0.043144989758729935,
0.00909714587032795,
-0.005950442049652338,
-0.015219070017337799,
0.08066535741090775,
0.009971706196665764,
0.008325474336743355,
-0.002853039652109146,
0.05271371454000473,
0.0539826825261116,
-0.04369373619556427,
0.010983453132212162,
0.003734030993655324,
0.08388923108577728,
0.029855098575353622,
-0.004014833364635706,
-0.05024436488747597,
0.004878676496446133,
-0.04091572016477585,
-0.03431364521384239,
0.020286377519369125,
-0.07764726877212524,
-0.02704278752207756,
-0.013469948433339596,
0.04972991719841957,
0.01817714236676693,
-0.006970762740820646,
-0.013178428635001183,
-0.04654034599661827,
0.0036911603529006243,
0.011120638810098171,
-0.1271028071641922,
0.013024094514548779,
0.024539142847061157,
-0.03820629417896271,
-0.0358741357922554,
0.06684386730194092,
-0.05278230831027031,
-0.007952500134706497,
0.06382577866315842,
0.005894710309803486,
-0.00844551157206297,
-0.004415673669427633,
-0.007022207602858543,
0.005680357106029987,
0.046128787100315094,
0.0001504490792285651,
-0.050450146198272705,
-0.0701020359992981,
0.026305412873625755,
0.02282431721687317,
0.04424247890710831,
0.038480669260025024,
0.026185374706983566,
-0.03937237709760666,
0.0016815999988466501,
-0.06804424524307251,
-0.05628054961562157,
-0.04324788227677345,
0.06193947046995163,
0.021846868097782135,
-0.04403670132160187,
-0.01798851229250431,
-0.0058132559061050415,
0.04533996805548668,
-0.03484524041414261,
-0.002514361869543791,
-0.001004780177026987,
0.017071081325411797,
0.04115579277276993,
-0.0005508874310180545,
0.06982766836881638,
-0.01826288364827633,
-0.005157335661351681,
0.06499186158180237,
0.041430167853832245,
-0.003112406935542822,
-0.017782732844352722,
-0.021812571212649345,
-0.009808797389268875,
-0.05237074941396713,
0.02872331440448761,
0.03899511694908142,
-0.06759839504957199,
-0.007828175090253353,
0.009405814111232758,
-0.00013370274973567575,
-0.038309186697006226,
0.032273001968860626,
0.03985252603888512,
-0.020337821915745735,
0.019171740859746933,
0.017662694677710533,
0.009551573544740677,
-0.04966132715344429,
0.003918374422937632,
-0.043110694736242294,
0.09795079380273819,
-0.029512133449316025,
-0.05298808589577675,
0.04640315845608711,
-0.01970333606004715,
0.015364830382168293,
0.000746484671253711,
0.07620681077241898,
0.028671870008111,
0.024607734754681587,
0.04369373619556427,
0.033987827599048615,
-0.008102547377347946,
-0.044791221618652344,
0.002171396976336837,
0.012415331788361073,
0.09767641872167587,
-0.07600103318691254,
0.06989625841379166,
0.003954814746975899,
0.014018692076206207,
0.005444568581879139
] |
10,225 | pygments.util | text_analyse |
A static method which is called for lexer guessing.
It should analyse the text and return a float in the range
from ``0.0`` to ``1.0``. If it returns ``0.0``, the lexer
will not be selected as the most probable one, if it returns
``1.0``, it will be selected immediately. This is used by
`guess_lexer`.
The `LexerMeta` metaclass automatically wraps this function so
that it works like a static method (no ``self`` or ``cls``
parameter) and the return value is automatically converted to
`float`. If the return value is an object that is boolean `False`
it's the same as if the return values was ``0.0``.
| def make_analysator(f):
"""Return a static text analyser function that returns float values."""
def text_analyse(text):
try:
rv = f(text)
except Exception:
return 0.0
if not rv:
return 0.0
try:
return min(1.0, max(0.0, float(rv)))
except (ValueError, TypeError):
return 0.0
text_analyse.__doc__ = f.__doc__
return staticmethod(text_analyse)
| (text) | [
0.044924091547727585,
-0.08015074580907822,
0.05752340704202652,
0.013627830892801285,
0.025657789781689644,
-0.008420971222221851,
-0.0208458062261343,
-0.03520829230546951,
-0.04176507890224457,
0.0563112273812294,
0.02108456939458847,
0.061968062072992325,
0.025161897763609886,
-0.022443678230047226,
-0.029459623619914055,
0.03034120798110962,
-0.028927000239491463,
0.037687748670578,
0.003223294159397483,
0.036291904747486115,
-0.023968085646629333,
0.005197676829993725,
-0.044813890010118484,
0.010110675357282162,
0.035447053611278534,
0.01619911938905716,
-0.0054777637124061584,
-0.0331328921020031,
-0.0011421573581174016,
-0.045291416347026825,
0.016593996435403824,
-0.03388591483235359,
0.014031890779733658,
-0.011827928945422173,
-0.025712888687849045,
-0.04246300086379051,
-0.024372145533561707,
0.0006600406486541033,
-0.07008598744869232,
0.0005024918355047703,
0.04503428936004639,
-0.002566697308793664,
0.03131462633609772,
0.029147395864129066,
-0.02374769002199173,
0.035924579948186874,
-0.0006049416260793805,
-0.006419038865715265,
-0.05105844885110855,
-0.026502640917897224,
-0.007938854396343231,
0.008825031109154224,
0.042022205889225006,
0.03256353735923767,
-0.007929671555757523,
0.07478777319192886,
0.026925068348646164,
-0.014371667988598347,
0.037614282220602036,
-0.04260993003845215,
0.008108743466436863,
0.040993690490722656,
0.05322568118572235,
0.006584336049854755,
-0.007397047244012356,
0.03186561539769173,
-0.03776121512055397,
0.01480327732861042,
-0.013793128542602062,
0.032600268721580505,
0.007576119154691696,
0.010009660385549068,
0.0280454158782959,
-0.010487185791134834,
0.04308745637536049,
0.023637492209672928,
-0.041912008076906204,
-0.0005392245366238058,
0.028853533789515495,
0.018651027232408524,
0.026723038405179977,
0.040332503616809845,
0.030892198905348778,
-0.012553399428725243,
0.02488640323281288,
-0.09080322831869125,
-0.022260015830397606,
-0.05576023459434509,
0.053813401609659195,
0.07691826671361923,
-0.061490535736083984,
-0.010597383603453636,
0.0002582767920102924,
-0.011763646267354488,
-0.087276890873909,
0.019670359790325165,
0.02000095508992672,
-0.040699828416109085,
0.028724970296025276,
0.021433528512716293,
0.047825973480939865,
0.13238464295864105,
0.0061573185957968235,
0.012121790088713169,
0.03564908355474472,
-0.022994669154286385,
0.0032760975882411003,
-0.025841454043984413,
0.04260993003845215,
0.07853450626134872,
-0.027457691729068756,
-0.05135231092572212,
-0.02205798588693142,
0.005808358080685139,
-0.03721022233366966,
-0.01002802699804306,
-0.048670824617147446,
0.00690574711188674,
-0.03730205446481705,
-0.0281556136906147,
0.019229566678404808,
0.03669596463441849,
-0.05340934172272682,
0.0018159727333113551,
0.013618648052215576,
-0.019854024052619934,
0.020956004038453102,
-0.023968085646629333,
0.08602797985076904,
0.0000050534363253973424,
0.01576751098036766,
0.016823574900627136,
0.0281005147844553,
0.01910100318491459,
-0.00590478116646409,
0.013379884883761406,
0.011864661239087582,
0.050066668540239334,
-0.01831125095486641,
0.02345382794737816,
-0.010193323716521263,
0.020349914208054543,
0.014399217441678047,
-0.008471478708088398,
-0.030231010168790817,
0.013003375381231308,
-0.05656835436820984,
0.05201350152492523,
-0.030139178037643433,
0.015161421149969101,
0.013793128542602062,
0.0002776475448627025,
0.03342675417661667,
-0.009780080989003181,
0.0645393505692482,
-0.028614772483706474,
0.04338131844997406,
-0.03759591653943062,
0.04418943449854851,
0.004481389187276363,
0.015923624858260155,
0.040883492678403854,
0.019725458696484566,
0.008866354823112488,
-0.012158523313701153,
0.04235279932618141,
-0.00279398076236248,
-0.008650550618767738,
-0.03790814429521561,
-0.01799902133643627,
-0.030561605468392372,
-0.06332717090845108,
-0.06949826329946518,
0.0498095378279686,
0.006970029324293137,
0.03981824591755867,
0.003999272361397743,
0.0808854028582573,
0.06284964829683304,
0.05039726197719574,
-0.03625517338514328,
0.022811004891991615,
-0.08007728308439255,
-0.05216043069958687,
0.043050721287727356,
0.021855955943465233,
0.006731267087161541,
0.006354756653308868,
-0.0114514185115695,
-0.020313182845711708,
0.01770516112446785,
-0.03342675417661667,
0.0037398478016257286,
-0.0167317446321249,
-0.02429867908358574,
-0.032490070909261703,
-0.07919570058584213,
-0.0007380976458080113,
0.04911161586642265,
-0.037981610745191574,
0.001991600962355733,
0.07317153364419937,
0.0085816765204072,
0.04532815143465996,
-0.051682908087968826,
0.05902944505214691,
-0.021911054849624634,
0.03970804810523987,
-0.1066717579960823,
0.002268244046717882,
0.029771851375699043,
-0.0437486432492733,
-0.03069016896188259,
0.07085737586021423,
-0.02731076069176197,
-0.03372061625123024,
0.10799413174390793,
0.042022205889225006,
-0.010588199831545353,
0.044813890010118484,
0.0366041325032711,
-0.004463023040443659,
0.010762680321931839,
-0.013921692967414856,
0.06666984409093857,
-0.008751565590500832,
0.020313182845711708,
-0.010845329612493515,
-0.029275961220264435,
-0.09249293059110641,
0.03092893213033676,
-0.0037857636343687773,
0.0015565480571240187,
-0.0022085534874349833,
0.031094228848814964,
-0.06354756653308868,
0.06964519619941711,
0.008563309907913208,
-0.0583682581782341,
-0.05340934172272682,
-0.012259538285434246,
-0.0032118153758347034,
0.02356402575969696,
0.036291904747486115,
-0.024151749908924103,
0.010927977971732616,
-0.005519087892025709,
0.02385788783431053,
-0.03794487565755844,
-0.006547603290528059,
-0.03708165884017944,
-0.014849193394184113,
-0.007654176093637943,
-0.03408794477581978,
0.016088921576738358,
0.05759686976671219,
-0.03515319153666496,
0.04114062339067459,
0.04488735646009445,
0.000734080036636442,
-0.0028353051748126745,
0.01178201287984848,
0.009623967111110687,
0.041912008076906204,
-0.0415814146399498,
-0.024280313402414322,
-0.034106310456991196,
-0.0013464830117300153,
0.03166358545422554,
-0.0052481843158602715,
-0.049148350954055786,
0.022131450474262238,
0.02736585959792137,
-0.03783467784523964,
-0.048193298280239105,
0.02350892685353756,
0.0207356084138155,
0.0018859944539144635,
0.07243688404560089,
-0.006547603290528059,
0.019909122958779335,
-0.012893176637589931,
-0.02192942053079605,
0.023104866966605186,
-0.0016518235206604004,
0.01480327732861042,
0.0007880311459302902,
-0.007424596697092056,
0.013756395317614079,
-0.03186561539769173,
0.024702738970518112,
-0.02720056287944317,
0.05877231806516647,
-0.00233482220210135,
0.04584240913391113,
0.019413230940699577,
0.008797481656074524,
-0.06163746863603592,
0.005845090374350548,
-0.06655965000391006,
-0.016814392060041428,
-0.02538229525089264,
0.0038936659693717957,
0.017328649759292603,
-0.039010126143693924,
-0.012893176637589931,
-0.02628224529325962,
-0.022388579323887825,
0.020037686452269554,
-0.028743335977196693,
-0.05565003678202629,
0.03192071616649628,
0.01612565480172634,
-0.018201051279902458,
0.007268482819199562,
0.003700819332152605,
-0.021433528512716293,
0.003232477465644479,
0.03893665969371796,
0.018292883411049843,
0.03160848841071129,
0.04944221302866936,
0.007993953302502632,
0.007286848966032267,
-0.01000047754496336,
-0.02918412908911705,
0.03214111179113388,
-0.04672399163246155,
0.009467853233218193,
-0.0043298667296767235,
-0.00602875417098403,
-0.026576107367873192,
0.039854977279901505,
-0.008094968274235725,
-0.049515675753355026,
0.04657706245779991,
0.05028706416487694,
0.000925778760574758,
-0.005082887131720781,
-0.05686221644282341,
0.010349437594413757,
0.04676072299480438,
-0.037063293159008026,
0.06468628346920013,
-0.016575630754232407,
0.04793617129325867,
-0.05748667195439339,
-0.0314064584672451,
0.09403570741415024,
-0.028798434883356094,
0.023729322478175163,
-0.03812853991985321,
-0.024739472195506096,
-0.002543739276006818,
0.03759591653943062,
-0.0029592779465019703,
0.0030373348854482174,
-0.03632863983511925,
-0.03160848841071129,
-0.021231500431895256,
-0.034051209688186646,
0.031094228848814964,
-0.02446397766470909,
-0.0012695739278569818,
-0.0022762794978916645,
-0.03293086215853691,
0.017861275002360344,
-0.008728607557713985,
0.02277427352964878,
0.02005605399608612,
0.00690574711188674,
-0.0167317446321249,
-0.001501449034549296,
-0.02900046482682228,
0.015850158408284187,
0.019064269959926605,
0.07364905625581741,
-0.0023922170512378216,
-0.022700807079672813,
0.06200479343533516,
0.003992385230958462,
0.05080132186412811,
-0.03867953270673752,
-0.007998544722795486,
0.04286705702543259,
-0.014876742847263813,
-0.058037664741277695,
0.026135314255952835,
-0.011139190755784512,
0.01842144876718521,
0.004926773253828287,
-0.047164782881736755,
-0.02822907827794552,
-0.011258572340011597,
-0.027237296104431152,
0.004185231868177652,
-0.04896468669176102,
0.018531646579504013,
-0.019045904278755188,
0.04521794989705086,
0.007227158173918724,
-0.01976219192147255,
-0.037504084408283234,
-0.019964221864938736,
-0.026869969442486763,
0.014784910716116428,
0.04077329486608505,
-0.01447268296033144,
-0.01915610209107399,
0.04308745637536049,
0.06685350835323334,
-0.019541796296834946,
-0.02925759367644787,
0.014637980610132217,
-0.016290951520204544,
0.00590478116646409,
0.0009780081454664469,
-0.015997089445590973,
-0.05752340704202652,
-0.013453350402414799,
0.0438588410615921,
0.005225226283073425,
0.045768942683935165,
0.058404989540576935,
0.03730205446481705,
0.019964221864938736,
0.0049635060131549835,
-0.0000947732332861051,
-0.03245333954691887,
0.005257367622107267,
-0.004715560004115105,
-0.05131557956337929,
-0.06266598403453827,
-0.07052677869796753,
-0.03419814258813858,
-0.014766545034945011,
-0.036714330315589905,
-0.03050650656223297,
0.023710956797003746,
0.024078283458948135,
0.036402102559804916,
-0.006189459469169378,
0.061233408749103546,
0.052601225674152374,
-0.04609953612089157,
-0.07144510000944138,
0.014509416185319424,
-0.018586745485663414,
-0.01039535365998745,
-0.1041739284992218,
0.029937149956822395,
0.0480831004679203,
-0.02839437499642372,
0.05576023459434509,
0.06479647755622864,
-0.010386170819401741,
0.052417561411857605,
-0.032839033752679825,
0.012029958888888359,
0.07772638648748398,
-0.014334935694932938,
0.06380469352006912,
-0.03904685750603676,
-0.08007728308439255,
-0.024445610120892525,
-0.00586345698684454,
0.03570418432354927,
0.021341698244214058,
-0.0020444041583687067,
-0.04231606796383858,
0.04161814600229263,
-0.01612565480172634,
-0.041544683277606964,
-0.00691952183842659,
0.019798925146460533,
0.024666007608175278,
-0.05469498783349991,
-0.026300612837076187,
-0.016942957416176796,
0.03298596292734146,
0.007378680631518364,
0.02942289039492607,
-0.03691636025905609,
0.04977280646562576,
-0.03228804096579552,
-0.006336390506476164,
0.017604146152734756,
-0.08830540627241135,
-0.01722763478755951,
-0.011598349548876286,
-0.019321398809552193,
0.0479729026556015,
0.09668046236038208,
-0.0479729026556015,
-0.05789073184132576,
0.022204916924238205,
0.05274815484881401,
0.0314064584672451,
-0.01855001226067543,
-0.0478627048432827,
0.015694044530391693,
-0.03989170864224434,
-0.09241946786642075,
0.009137258864939213,
0.03239823877811432,
0.010404536500573158,
-0.02235184609889984,
-0.009297964163124561,
-0.050433993339538574,
0.009899462573230267,
-0.03583274781703949,
-0.0027457692194730043,
-0.03015754558146,
0.02990041673183441,
-0.0005369287100620568,
-0.06755143404006958,
-0.03867953270673752,
-0.09006857872009277,
-0.05462152138352394,
-0.01102899294346571,
-0.023398729041218758,
0.014518599025905132,
-0.04047943279147148,
-0.08411788195371628,
0.0038798912428319454,
-0.015987906605005264,
-0.0015783581184223294,
0.03377571702003479,
0.03893665969371796,
-0.018017388880252838,
0.01180956233292818,
-0.0344369038939476,
0.01915610209107399,
0.022278381511569023,
-0.008655142039060593,
0.03305942937731743,
-0.021102935075759888,
0.00018065025506075472,
0.017144987359642982,
0.02314160019159317,
0.0171633530408144,
0.02773318625986576,
-0.02435377985239029,
-0.04114062339067459,
0.04404250532388687,
-0.05274815484881401,
-0.002807755721732974,
0.006419038865715265,
-0.002230363432317972,
-0.005036971066147089,
-0.019854024052619934,
-0.030139178037643433,
-0.004802800249308348,
0.002952390583232045,
0.07284094393253326,
0.02411501668393612,
0.006106811109930277,
0.02216818369925022,
0.020386647433042526,
-0.005271142348647118,
-0.043234385550022125,
-0.0023738506715744734,
-0.020992737263441086,
0.022021252661943436,
-0.05337261036038399,
0.0057854000478982925,
0.07691826671361923,
0.07779985666275024,
-0.030175911262631416,
-0.07530203461647034,
0.03656740114092827,
0.0023899211082607508,
0.022260015830397606,
0.0006743893609382212,
-0.0831628292798996,
0.07159202545881271,
-0.002092615934088826,
-0.040626365691423416,
0.001077301218174398,
-0.019284667447209358,
-0.04022230580449104,
-0.00792048778384924,
-0.05454805865883827,
-0.02187432162463665,
0.005390523467212915,
-0.016300134360790253,
0.019798925146460533,
0.018641844391822815,
-0.07177568972110748,
0.03460220247507095,
-0.03889992833137512,
-0.024923136457800865,
-0.03039630688726902,
-0.028614772483706474,
-0.03915705531835556,
-0.049332015216350555,
0.01583179272711277,
0.003606691723689437,
0.0353001244366169,
-0.020276449620723724,
-0.06747796386480331,
0.016942957416176796,
-0.07001252472400665,
-0.044924091547727585,
0.061674199998378754,
0.02725566178560257,
0.0013855114812031388,
-0.05451132357120514,
-0.03206764534115791,
-0.033628784120082855,
-0.02923922799527645,
0.04543834924697876,
0.003223294159397483,
-0.019321398809552193,
0.06696370989084244,
0.03608987480401993,
-0.0021109823137521744,
-0.017420481890439987,
0.034051209688186646,
0.02907393127679825,
0.01102899294346571,
0.051572706550359726,
-0.02055194415152073,
0.0037398478016257286,
0.026631206274032593,
0.011497334577143192,
0.018274517729878426,
-0.08624837547540665,
0.01709907129406929,
-0.03155338764190674,
-0.001238580676726997,
0.047825973480939865,
-0.00471096858382225,
-0.04573220759630203,
-0.0018033458618447185,
0.03214111179113388,
0.0023876253981143236,
0.05451132357120514,
0.026576107367873192,
0.0027388818562030792,
-0.022094717249274254,
0.023949719965457916,
-0.017438847571611404,
-0.04573220759630203,
0.035024628043174744,
-0.052601225674152374,
-0.06292311102151871,
-0.026796502992510796,
0.06505361199378967,
-0.026925068348646164,
-0.02754952386021614,
0.03520829230546951,
-0.005307875107973814,
0.05678874999284744,
0.00009097082511289045,
-0.001735619967803359,
0.011534066870808601,
-0.010220873169600964,
0.025400660932064056,
0.02158045955002308,
-0.05234409496188164,
0.005992021411657333,
0.006414447445422411,
0.03759591653943062,
0.034051209688186646,
-0.0024656823370605707,
-0.03160848841071129,
0.007970995269715786,
0.0060608950443565845,
-0.07809371501207352,
0.023251798003911972,
0.09499076008796692,
0.03092893213033676,
0.001581801800057292,
0.010891244746744633,
0.015537931583821774,
0.041912008076906204,
0.011442235670983791,
0.01685112528502941,
-0.005317057948559523,
0.013921692967414856,
0.05010339990258217,
-0.013214588165283203,
-0.05069112405180931,
-0.03564908355474472,
-0.05105844885110855,
-0.02411501668393612,
-0.01970709301531315,
0.03651230037212372,
-0.009780080989003181,
-0.0794895589351654,
0.0004614545323420316,
0.032049279659986496,
-0.013434984721243382,
0.03651230037212372,
0.05359300598502159,
-0.04018557071685791,
-0.0030074897222220898,
0.02266407571732998,
0.009541318751871586,
0.038642797619104385,
-0.005206860136240721,
-0.016272585839033127,
0.024500709027051926,
0.0019089523702859879,
-0.049515675753355026,
-0.006593519356101751,
-0.011524884030222893,
-0.0502503328025341,
-0.05524597689509392,
0.014399217441678047,
0.045107752084732056,
-0.01987238973379135,
0.048560626804828644,
0.039965175092220306,
0.009752531535923481,
0.010569834150373936,
0.03981824591755867,
0.005688976496458054,
0.011919760145246983,
0.03272883594036102,
-0.027769919484853745,
0.028063781559467316,
0.03590621426701546,
-0.052417561411857605,
0.050433993339538574,
-0.010202506557106972,
-0.03867953270673752,
-0.013306420296430588,
-0.0689840093255043,
0.032361507415771484,
0.012727879919111729,
-0.0540338009595871,
-0.026374077424407005,
0.006960846483707428,
0.01002802699804306,
-0.009495402686297894,
-0.03100239671766758,
-0.022645708173513412,
-0.010266789235174656,
0.0114789679646492,
-0.010386170819401741,
-0.0662657842040062,
0.007925079204142094,
0.0017172535881400108,
0.019505063071846962,
0.02411501668393612,
0.06134360656142235,
-0.030194278806447983,
0.05300528183579445,
-0.0016380487941205502,
-0.01576751098036766,
0.016667461022734642,
0.06755143404006958,
0.05763360485434532,
-0.006593519356101751,
0.04554854705929756,
-0.04044270142912865,
-0.015115505084395409,
-0.014729811809957027,
0.007153693120926619,
0.012259538285434246,
0.057082612067461014,
0.000828781514428556,
0.004137020092457533,
0.00020346470410004258,
-0.024133382365107536,
0.052784886211156845
] |
10,226 | pygments.lexer | get_tokens |
This method is the basic interface of a lexer. It is called by
the `highlight()` function. It must process the text and return an
iterable of ``(tokentype, value)`` pairs from `text`.
Normally, you don't need to override this method. The default
implementation processes the options recognized by all lexers
(`stripnl`, `stripall` and so on), and then yields all tokens
from `get_tokens_unprocessed()`, with the ``index`` dropped.
If `unfiltered` is set to `True`, the filtering mechanism is
bypassed even if filters are defined.
| def get_tokens(self, text, unfiltered=False):
"""
This method is the basic interface of a lexer. It is called by
the `highlight()` function. It must process the text and return an
iterable of ``(tokentype, value)`` pairs from `text`.
Normally, you don't need to override this method. The default
implementation processes the options recognized by all lexers
(`stripnl`, `stripall` and so on), and then yields all tokens
from `get_tokens_unprocessed()`, with the ``index`` dropped.
If `unfiltered` is set to `True`, the filtering mechanism is
bypassed even if filters are defined.
"""
text = self._preprocess_lexer_input(text)
def streamer():
for _, t, v in self.get_tokens_unprocessed(text):
yield t, v
stream = streamer()
if not unfiltered:
stream = apply_filters(stream, self.filters, self)
return stream
| (self, text, unfiltered=False) | [
-0.0011413807515054941,
-0.0329388789832592,
0.050370875746011734,
-0.011630161665380001,
0.018262092024087906,
0.00974920205771923,
-0.033927928656339645,
-0.04630870744585991,
0.035128917545080185,
-0.027446122840046883,
0.021352872252464294,
-0.031031426042318344,
-0.024196388199925423,
-0.00212491094134748,
-0.033256787806749344,
0.01267219614237547,
-0.056764375418424606,
0.02790532447397709,
0.017440827563405037,
0.03126102685928345,
-0.05803601071238518,
-0.01793535239994526,
0.028028955683112144,
0.038043081760406494,
0.019728004932403564,
-0.052843499928712845,
-0.04849874600768089,
-0.042493805289268494,
-0.003307134145870805,
-0.06605437397956848,
0.004746554419398308,
0.027516769245266914,
0.012477918528020382,
-0.035641103982925415,
-0.030095363035798073,
-0.06838570535182953,
-0.022871768102049828,
0.01227481011301279,
0.026845628395676613,
0.010199572890996933,
-0.02122924104332924,
-0.030007055029273033,
0.036064982414245605,
0.020328499376773834,
-0.05701163783669472,
-0.02755209244787693,
-0.004627338610589504,
-0.02234192006289959,
-0.022041674703359604,
-0.04182266443967819,
0.0033292111475020647,
0.0069012693129479885,
-0.013104905374348164,
-0.01796184480190277,
0.03297420218586922,
-0.0772165060043335,
0.011197452433407307,
-0.025626977905631065,
0.020081236958503723,
0.02182973548769951,
0.0060888356529176235,
0.01797950640320778,
0.07997171580791473,
0.0252560842782259,
0.044118672609329224,
-0.02052277699112892,
0.02977745421230793,
0.03380429744720459,
-0.00887936819344759,
0.020681731402873993,
-0.04044505953788757,
-0.010711759328842163,
0.025309069082140923,
-0.009051568806171417,
0.003525696462020278,
-0.015400913543999195,
-0.050194259732961655,
0.06704342365264893,
0.00016819912707433105,
0.007859410718083382,
0.007307486142963171,
0.06993992626667023,
-0.04065699875354767,
0.049417149275541306,
0.006967500317841768,
-0.0340515598654747,
-0.019833974540233612,
-0.052243005484342575,
-0.03002471663057804,
0.06047331169247627,
-0.02515011467039585,
0.0336100198328495,
0.028965020552277565,
0.004697985015809536,
-0.04510771855711937,
0.016699040308594704,
-0.0012639081105589867,
-0.003750881878659129,
-0.005775342229753733,
-0.01858000084757805,
0.022730475291609764,
0.07806426286697388,
-0.04878133162856102,
-0.04726243391633034,
0.016080884262919426,
-0.021582473069429398,
-0.056940991431474686,
-0.030748842284083366,
0.0467325858771801,
0.03064287267625332,
0.016504762694239616,
-0.052843499928712845,
0.03456374630331993,
0.03670080006122589,
0.044895779341459274,
-0.053020115941762924,
-0.025821255519986153,
-0.013678907416760921,
-0.020823024213314056,
0.00045533807133324444,
-0.01684916391968727,
-0.02712821401655674,
-0.0027949477080255747,
-0.01283115055412054,
-0.03466971591114998,
0.0712115615606308,
0.031119734048843384,
-0.028435172513127327,
0.07043445110321045,
0.021935705095529556,
-0.015815960243344307,
0.04765098914504051,
0.017343688756227493,
-0.026916274800896645,
0.005179263651371002,
0.005179263651371002,
0.012716350145637989,
0.028558803722262383,
0.0036537430714815855,
0.00043574473238550127,
0.04500174894928932,
-0.020840685814619064,
-0.016884487122297287,
0.034793347120285034,
-0.09155771881341934,
-0.012681026943027973,
0.028223233297467232,
0.061391714960336685,
0.04825148358941078,
0.04302365332841873,
0.007868241518735886,
0.018862586468458176,
0.05291414633393288,
0.03200281411409378,
0.006419990677386522,
0.04175201803445816,
-0.04344753175973892,
-0.003501411760225892,
0.01445601787418127,
0.01365241501480341,
-0.013572937808930874,
-0.029123974964022636,
-0.012345456518232822,
0.02516777627170086,
-0.011594838462769985,
-0.0006247790297493339,
0.019127510488033295,
-0.01613386906683445,
-0.03532319515943527,
-0.026757320389151573,
0.013572937808930874,
-0.02456728182733059,
-0.04397737979888916,
0.06361707299947739,
-0.02283644489943981,
0.004530199803411961,
-0.041540078818798065,
0.12073468416929245,
-0.002982602221891284,
0.006958669517189264,
0.0009101242176257074,
0.008446658961474895,
-0.09381840378046036,
-0.06312254816293716,
0.036153290420770645,
-0.02020486816763878,
0.036418214440345764,
-0.017149411141872406,
0.005161602050065994,
-0.004203460179269314,
0.0665488988161087,
-0.07912395894527435,
0.04733308032155037,
-0.012107024900615215,
-0.03698338568210602,
0.0026801475323736668,
-0.05323205515742302,
0.011789116077125072,
0.02808194048702717,
-0.0338219590485096,
-0.02036382257938385,
-0.0157982986420393,
-0.026421749964356422,
0.0028722172137349844,
-0.014614972285926342,
0.0003841397410724312,
-0.047968897968530655,
0.03832566738128662,
-0.06725536286830902,
-0.017193565145134926,
0.0024880776181817055,
-0.03698338568210602,
0.05372657999396324,
0.10582829266786575,
-0.011365237645804882,
-0.00015246926341205835,
0.08505825698375702,
0.02576827071607113,
-0.011709638871252537,
-0.027145875617861748,
0.062769316136837,
0.015038850717246532,
-0.021423518657684326,
-0.04263509809970856,
0.05383254960179329,
-0.030007055029273033,
0.014111616648733616,
-0.011064990423619747,
0.014747434295713902,
-0.05114798620343208,
0.04980570450425148,
-0.016619563102722168,
-0.01626633107662201,
0.016681378707289696,
-0.05316140875220299,
-0.012221825309097767,
0.0754503458738327,
-0.05047684535384178,
-0.0021922457963228226,
-0.014871065504848957,
-0.014985865913331509,
-0.005258740857243538,
0.04415399581193924,
-0.04422463849186897,
-0.013970323838293552,
0.05948426201939583,
0.013714230619370937,
0.017343688756227493,
0.009934648871421814,
0.00654803728684783,
-0.049417149275541306,
0.0018511562375351787,
0.008848460391163826,
0.017502643167972565,
0.011586007662117481,
-0.0028302709106355906,
-0.002640408929437399,
0.012557395733892918,
-0.0019482949282974005,
-0.0007953238091431558,
-0.0037177663762122393,
0.007678379770368338,
-0.03378663584589958,
0.012389610521495342,
0.06100315973162651,
-0.01600140705704689,
0.019869297742843628,
0.03235604614019394,
-0.020081236958503723,
0.00876898318529129,
0.02933591417968273,
0.00040456096758134663,
0.006296359468251467,
-0.022447889670729637,
-0.06213349848985672,
0.015065343119204044,
-0.03896148502826691,
0.04789825156331062,
-0.026510057970881462,
-0.005876896437257528,
-0.03892616182565689,
0.01900387927889824,
-0.07862943410873413,
-0.027834678068757057,
0.03620627522468567,
-0.016142699867486954,
0.01631048507988453,
-0.011276929639279842,
-0.057965364307165146,
-0.05842456594109535,
0.056940991431474686,
-0.03295654058456421,
0.014685618691146374,
-0.047968897968530655,
0.10307308286428452,
-0.0005342633230611682,
-0.03129635006189346,
-0.001462601008825004,
-0.020381484180688858,
-0.05510418489575386,
-0.03740726411342621,
-0.02234192006289959,
-0.0029141635168343782,
0.013281521387398243,
0.014226417057216167,
0.027004582807421684,
-0.005430941469967365,
0.0681031197309494,
-0.022553859278559685,
-0.07145882397890091,
0.005188094452023506,
-0.007541502360254526,
0.028876712545752525,
-0.060791220515966415,
-0.0994701161980629,
-0.06683148443698883,
0.006274282466620207,
0.035482149571180344,
0.008799890987575054,
0.056940991431474686,
-0.028558803722262383,
-0.009157538414001465,
0.014570818282663822,
-0.01882726326584816,
0.02575060911476612,
0.05930764600634575,
0.017811721190810204,
-0.014800419099628925,
-0.03885551542043686,
0.011956901289522648,
-0.023807832971215248,
0.009360646829009056,
-0.029565514996647835,
0.045319657772779465,
-0.036241598427295685,
-0.03149062767624855,
0.004711231216788292,
0.04503707215189934,
-0.02728716842830181,
-0.06651357561349869,
-0.02942422218620777,
-0.03569408878684044,
-0.012689857743680477,
-0.008936768397688866,
-0.041116200387477875,
0.017034610733389854,
-0.06379368901252747,
-0.04023312032222748,
0.0916990116238594,
0.023913802579045296,
0.060190726071596146,
0.001473639509640634,
0.02645707316696644,
0.0036206275690346956,
0.05581064894795418,
-0.06446482986211777,
0.02225361205637455,
-0.006574529688805342,
-0.016478270292282104,
-0.0200282521545887,
0.005453018471598625,
0.04842809960246086,
-0.007916810922324657,
0.02207699790596962,
0.008446658961474895,
-0.04305897653102875,
0.002574177924543619,
0.005907804239541292,
-0.044895779341459274,
0.009351816028356552,
-0.022889429703354836,
-0.017811721190810204,
-0.022695152088999748,
-0.00010962608939735219,
0.003234280040487647,
-0.020734716206789017,
0.03399857506155968,
-0.0016027899691835046,
-0.02901800535619259,
0.07537969946861267,
0.005740019027143717,
0.06492403149604797,
0.038219697773456573,
0.007369301747530699,
-0.006539206486195326,
-0.006596606690436602,
-0.0799010694026947,
0.0071706087328493595,
0.03836099058389664,
0.006578945089131594,
-0.030607549473643303,
-0.06446482986211777,
-0.04263509809970856,
0.011391730047762394,
-0.05015893653035164,
0.015568697825074196,
0.0012506619095802307,
-0.028894374147057533,
-0.04913456365466118,
-0.01142705325037241,
0.020399145781993866,
0.025485685095191002,
-0.022695152088999748,
-0.02541503868997097,
-0.019480742514133453,
0.016372300684452057,
0.04259977489709854,
0.0218120738863945,
-0.010173080489039421,
0.007625394966453314,
0.07622745633125305,
-0.03705403208732605,
0.00821264274418354,
-0.03945600986480713,
0.008490812964737415,
-0.039314717054367065,
0.01751147396862507,
0.04758034273982048,
0.02260684408247471,
0.04553159698843956,
0.019869297742843628,
-0.014005647040903568,
0.016080884262919426,
0.006512714084237814,
0.013316844590008259,
0.025097129866480827,
-0.02583891712129116,
-0.026298118755221367,
-0.016884487122297287,
-0.04058635234832764,
0.010031787678599358,
-0.06626631319522858,
-0.0033115495461970568,
-0.010199572890996933,
-0.01061462052166462,
0.00798745732754469,
-0.008468735963106155,
0.02808194048702717,
0.012937120161950588,
0.030872473493218422,
0.055669356137514114,
0.04461319372057915,
0.0505121685564518,
0.04433060809969902,
0.08096076548099518,
-0.03482867032289505,
-0.0189155712723732,
0.06626631319522858,
0.0058194962330162525,
-0.004053336568176746,
-0.021706104278564453,
0.02557399310171604,
-0.0180236604064703,
-0.01043800450861454,
0.0270399060100317,
0.050017643719911575,
0.006212466862052679,
0.04475448653101921,
0.051218632608652115,
0.10596958547830582,
0.03882019221782684,
0.03903213143348694,
-0.000587248126976192,
0.00974920205771923,
0.005249910056591034,
0.010323204100131989,
-0.029636161401867867,
0.02737547643482685,
-0.020505115389823914,
-0.04058635234832764,
0.004459553398191929,
0.04461319372057915,
-0.08399856090545654,
-0.0013742931187152863,
-0.00883521419018507,
0.023754848167300224,
-0.06842102855443954,
-0.05022958293557167,
-0.0019482949282974005,
-0.059519585222005844,
-0.006543621886521578,
-0.001493508811108768,
-0.02848815731704235,
-0.004404360894113779,
-0.03232072293758392,
0.01553337462246418,
0.09395969659090042,
-0.032726939767599106,
0.034263499081134796,
-0.011612500064074993,
0.01787353679537773,
-0.006296359468251467,
-0.004417607095092535,
-0.018368061631917953,
-0.036241598427295685,
0.038537606596946716,
-0.007210347335785627,
-0.0028611787129193544,
0.030748842284083366,
0.020399145781993866,
0.009245846420526505,
-0.036153290420770645,
0.021246902644634247,
-0.02515011467039585,
0.043341562151908875,
0.039491333067417145,
0.051642511039972305,
-0.021794412285089493,
-0.0036404968705028296,
-0.020752377808094025,
-0.035994336009025574,
-0.023754848167300224,
0.002671316731721163,
-0.008141996338963509,
0.005426526069641113,
-0.0480748675763607,
0.009290000423789024,
0.017352519556879997,
-0.04478980973362923,
-0.0028368940111249685,
-0.013502291403710842,
0.03242669254541397,
-0.018173784017562866,
-0.060967836529016495,
0.02156481146812439,
0.05881312116980553,
-0.05743551626801491,
0.002766247605904937,
0.008729244582355022,
-0.06400562822818756,
0.02516777627170086,
-0.028947358950972557,
-0.037619203329086304,
-0.021511826664209366,
-0.024090418592095375,
-0.07057574391365051,
0.023348631337285042,
-0.031366996467113495,
0.056870345026254654,
0.057117607444524765,
0.007903564721345901,
0.02764040045440197,
-0.00983751006424427,
0.038466960191726685,
-0.0013720854185521603,
-0.04263509809970856,
-0.059766847640275955,
-0.035217225551605225,
-0.04803954437375069,
0.017167072743177414,
-0.024320019409060478,
-0.07361353933811188,
-0.053443994373083115,
0.0069277617149055,
0.02908865176141262,
0.03329211100935936,
0.02371952496469021,
0.018297415226697922,
-0.010075941681861877,
0.030271979048848152,
0.02935357578098774,
0.013316844590008259,
-0.0718827024102211,
-0.061744946986436844,
0.012972443364560604,
-0.0008102257852442563,
0.0053735412657260895,
0.04048038274049759,
-0.056446466594934464,
0.002589631825685501,
0.03945600986480713,
-0.021087948232889175,
0.03737194091081619,
0.0569763146340847,
-0.004101905971765518,
0.035482149571180344,
0.044719163328409195,
0.02953019179403782,
-0.0012429349590092897,
-0.018262092024087906,
0.05870715156197548,
0.04860471561551094,
-0.04224654287099838,
-0.05913102999329567,
-0.0017087595770135522,
-0.03959730267524719,
0.007144116330891848,
-0.005890142638236284,
0.002671316731721163,
0.0189155712723732,
0.028170248493552208,
-0.013776046223938465,
-0.0007064638775773346,
0.03364534303545952,
-0.016495931893587112,
0.0012528696097433567,
-0.009316492825746536,
-0.01682267151772976,
-0.03002471663057804,
0.005731188226491213,
0.0018964140908792615,
-0.01873895525932312,
-0.0071838549338281155,
-0.018421046435832977,
0.02352524735033512,
-0.010764744132757187,
0.025450361892580986,
-0.03053690306842327,
-0.007819672115147114,
-0.01467678789049387,
-0.003035587025806308,
-0.03302718698978424,
-0.002082964638248086,
-0.010075941681861877,
0.0010817728471010923,
0.044118672609329224,
0.019145172089338303,
0.03062521107494831,
0.06559517234563828,
0.05210171267390251,
0.007488517556339502,
0.00919286161661148,
-0.03189684450626373,
0.02968914620578289,
0.011109144426882267,
-0.00297377142123878,
0.01664605550467968,
-0.015400913543999195,
-0.012848812155425549,
-0.009007414802908897,
-0.00013618747470900416,
-0.0038612668868154287,
0.017679259181022644,
0.010049449279904366,
-0.05022958293557167,
0.0645354762673378,
-0.01142705325037241,
-0.02619214914739132,
-0.03456374630331993,
-0.01588660664856434,
-0.08308015763759613,
0.011568346060812473,
0.025980209931731224,
-0.005139525048434734,
-0.024761559441685677,
-0.009669724851846695,
-0.05552806332707405,
0.008786644786596298,
0.07665133476257324,
0.012610380537807941,
0.017016949132084846,
0.021458841860294342,
0.06287528574466705,
0.016027899459004402,
-0.09678555279970169,
0.017882367596030235,
0.0002255993167636916,
0.019056864082813263,
0.021706104278564453,
-0.029035666957497597,
0.011833270080387592,
0.04044505953788757,
0.032232414931058884,
0.07333095371723175,
0.028629450127482414,
0.000037427409552037716,
-0.020840685814619064,
0.06753794848918915,
0.001755121280439198,
-0.004371245391666889,
0.040268443524837494,
0.0698692798614502,
0.016213346272706985,
-0.01412044744938612,
0.00421670638024807,
0.014570818282663822,
0.056870345026254654,
-0.04245848208665848,
0.002945071319118142,
-0.053620610386133194,
-0.09720943123102188,
0.014897557906806469,
0.016010237857699394,
-0.038113728165626526,
-0.025626977905631065,
0.03814905136823654,
-0.043624147772789,
-0.01202754769474268,
0.11656654626131058,
-0.034192852675914764,
-0.0195867121219635,
0.02961849980056286,
-0.006252205464988947,
-0.0005273642600513995,
-0.0385022833943367,
0.04687387868762016,
-0.011435884051024914,
-0.08074882626533508,
0.03733661770820618,
-0.012751673348248005,
0.029159298166632652,
-0.01573648303747177,
0.024602605029940605,
-0.023419277742505074,
-0.007537086959928274,
-0.019198156893253326,
-0.0009443435701541603,
-0.029653823003172874,
-0.010296711698174477,
0.01005828008055687,
0.00941363163292408,
-0.025362053886055946,
-0.011462376452982426,
0.08385726809501648,
0.0916990116238594,
-0.07530905306339264,
-0.0033137572463601828,
0.034952301532030106,
0.040268443524837494,
0.060014110058546066,
0.05047684535384178,
-0.002576385624706745,
-0.026156825944781303,
0.09777460247278214,
-0.01722888834774494,
0.0787707269191742,
-0.04221121966838837,
-0.012884135358035564,
-0.02191804349422455,
-0.08972091227769852,
0.016681378707289696,
0.04125749319791794,
-0.04146943241357803,
-0.0292652677744627,
-0.03825502097606659,
-0.023401616141200066,
0.004068790469318628,
-0.03285057097673416,
0.03013068623840809,
0.013767215423285961,
0.01347579900175333,
-0.008640936575829983,
-0.06792650371789932,
0.01967502012848854,
-0.036912739276885986,
-0.0026823552325367928,
0.07495582103729248,
0.018058983609080315,
-0.0005237767472863197,
0.0645354762673378,
0.007042562123388052,
0.005660541821271181,
-0.01458847988396883,
-0.00038827917887829244,
0.018968556076288223,
0.07160011678934097,
0.032055798918008804,
-0.056269850581884384,
-0.09381840378046036,
0.012354287318885326,
-0.01180677767843008,
-0.01347579900175333,
0.012212994508445263,
-0.03429882228374481,
0.0351642407476902,
-0.0175821203738451,
0.029300590977072716,
0.01278699655085802
] |
10,227 | pygments.lexer | get_tokens_unprocessed |
Split ``text`` into (tokentype, text) pairs.
``stack`` is the initial stack (default: ``['root']``)
| def get_tokens_unprocessed(self, text, stack=('root',)):
"""
Split ``text`` into (tokentype, text) pairs.
``stack`` is the initial stack (default: ``['root']``)
"""
pos = 0
tokendefs = self._tokens
statestack = list(stack)
statetokens = tokendefs[statestack[-1]]
while 1:
for rexmatch, action, new_state in statetokens:
m = rexmatch(text, pos)
if m:
if action is not None:
if type(action) is _TokenType:
yield pos, action, m.group()
else:
yield from action(self, m)
pos = m.end()
if new_state is not None:
# state transition
if isinstance(new_state, tuple):
for state in new_state:
if state == '#pop':
if len(statestack) > 1:
statestack.pop()
elif state == '#push':
statestack.append(statestack[-1])
else:
statestack.append(state)
elif isinstance(new_state, int):
# pop, but keep at least one state on the stack
# (random code leading to unexpected pops should
# not allow exceptions)
if abs(new_state) >= len(statestack):
del statestack[1:]
else:
del statestack[new_state:]
elif new_state == '#push':
statestack.append(statestack[-1])
else:
assert False, f"wrong state def: {new_state!r}"
statetokens = tokendefs[statestack[-1]]
break
else:
# We are here only if all state tokens have been considered
# and there was not a match on any of them.
try:
if text[pos] == '\n':
# at EOL, reset state to "root"
statestack = ['root']
statetokens = tokendefs['root']
yield pos, Whitespace, '\n'
pos += 1
continue
yield pos, Error, text[pos]
pos += 1
except IndexError:
break
| (self, text, stack=('root',)) | [
-0.01567792147397995,
0.012289129197597504,
-0.0006699051009491086,
-0.014478516764938831,
-0.02406422793865204,
-0.012136823497712612,
-0.03902821987867355,
-0.0170486681163311,
0.06568163633346558,
-0.07508648186922073,
0.033469077199697495,
0.030537201091647148,
-0.028918957337737083,
-0.003169852774590254,
-0.04298815503716469,
0.050603415817022324,
0.02210329845547676,
0.0129364263266325,
-0.014354769140481949,
-0.03261236101388931,
-0.020941970869898796,
0.0361153818666935,
0.010651848278939724,
0.0388568751513958,
0.008905096910893917,
-0.042645469307899475,
-0.03982781991362572,
-0.04850921779870987,
-0.001762219239026308,
-0.05403028428554535,
0.007329689804464579,
0.0043573579750955105,
0.0226744432002306,
-0.04348314553499222,
-0.03091796487569809,
-0.09016470611095428,
-0.01703914813697338,
0.014440440572798252,
0.012165381573140621,
-0.042188551276922226,
-0.0009489330695942044,
-0.028385888785123825,
-0.00542111461982131,
0.008614765480160713,
-0.02206522226333618,
-0.00081923563266173,
0.012355762533843517,
0.00702507933601737,
-0.00482855224981904,
-0.030670467764139175,
0.040284737944602966,
-0.011717984452843666,
-0.019009597599506378,
0.0161348357796669,
0.02956625446677208,
-0.033431001007556915,
0.0018145741196349263,
-0.050603415817022324,
0.03000413253903389,
-0.03975166752934456,
-0.005026073195040226,
0.0698319524526596,
0.027300715446472168,
0.02400711365044117,
0.04466351121664047,
-0.028861843049526215,
0.028785690665245056,
-0.01661079004406929,
-0.03978974372148514,
0.00252731516957283,
-0.06750930100679398,
-0.001824093284085393,
0.010033107362687588,
0.014183425344526768,
-0.009119275957345963,
-0.055629488080739975,
-0.01495447102934122,
0.10684213042259216,
0.027072256430983543,
-0.0037029210943728685,
-0.04980381578207016,
0.06670969724655151,
-0.002551112789660692,
0.03978974372148514,
-0.0034316275268793106,
0.003983734175562859,
0.04047511890530586,
0.015820706263184547,
-0.0667477697134018,
0.020389864221215248,
-0.008648081682622433,
0.005045111291110516,
0.01156567968428135,
0.015078218653798103,
0.002948534209281206,
0.02305520512163639,
-0.02118946611881256,
-0.0009406038443557918,
-0.04013242945075035,
-0.03933282941579819,
0.008400586433708668,
0.06457742303609848,
-0.09130699187517166,
-0.02495902217924595,
-0.017343759536743164,
0.022769633680582047,
-0.01891440711915493,
-0.022883862257003784,
0.04413044452667236,
-0.006087450310587883,
0.0007710452773608267,
-0.0640062764286995,
0.02305520512163639,
0.00786275789141655,
0.03042297251522541,
-0.037105362862348557,
-0.03906629607081413,
0.0036005910951644182,
-0.014202463440597057,
-0.007101231720298529,
0.025701509788632393,
-0.07219268381595612,
-0.01892392709851265,
0.03830476850271225,
-0.003512539668008685,
0.04812845587730408,
0.06415858119726181,
-0.021893879398703575,
0.04885190725326538,
-0.005849473178386688,
-0.031241612508893013,
0.031641412526369095,
0.010965977795422077,
0.006506289355456829,
-0.046376947313547134,
0.027967050671577454,
0.008814665488898754,
0.004764298442751169,
-0.04618656635284424,
-0.06305436789989471,
0.042721621692180634,
-0.028290698304772377,
-0.015401867218315601,
0.005406836047768593,
-0.024616334587335587,
0.03407829627394676,
0.026101311668753624,
0.04108433797955513,
0.009614268317818642,
0.03322158008813858,
0.005511546041816473,
-0.02543497458100319,
-0.01287931203842163,
0.03982781991362572,
0.013336227275431156,
0.042188551276922226,
0.0013802662724629045,
0.019533148035407066,
-0.023283664137125015,
-0.009766574017703533,
0.021037161350250244,
-0.03464944288134575,
-0.01080415304750204,
-0.001061377115547657,
-0.00880514644086361,
0.00967138260602951,
0.036667488515377045,
-0.045386962592601776,
-0.061150554567575455,
-0.020485054701566696,
-0.04070357605814934,
0.016458485275506973,
-0.02174157276749611,
0.012926907278597355,
-0.07874181121587753,
-0.024844791740179062,
-0.038057271391153336,
0.10014069825410843,
-0.04413044452667236,
0.016953477635979652,
-0.008638562634587288,
0.005625775083899498,
-0.09199236333370209,
-0.053725674748420715,
-0.00589230889454484,
0.031051231548190117,
0.018809696659445763,
0.002399997552856803,
0.007543868850916624,
0.025225555524230003,
-0.0014266717480495572,
-0.07413457334041595,
0.055591411888599396,
-0.00851957406848669,
0.03651518002152443,
0.05045111104846001,
-0.0711265504360199,
0.01752462238073349,
0.058294832706451416,
-0.05719061940908432,
-0.04104626178741455,
-0.03681979328393936,
-0.014116792008280754,
-0.006106488406658173,
-0.05543910712003708,
0.022027146071195602,
-0.020999085158109665,
0.029775675386190414,
-0.05993211269378662,
0.01310777012258768,
-0.027776667848229408,
-0.04904228821396828,
0.0729542076587677,
0.08163560926914215,
0.013869295828044415,
-0.003638667520135641,
0.055096421390771866,
0.05262146145105362,
0.01653463765978813,
-0.020104292780160904,
0.06994618475437164,
0.019685452803969383,
-0.008438662625849247,
-0.06754737347364426,
0.023283664137125015,
0.0010839849710464478,
-0.031165460124611855,
-0.004371636547148228,
0.01935228519141674,
0.005958942696452141,
0.012384319677948952,
-0.02728167735040188,
-0.0024059468414634466,
-0.0170962642878294,
0.020637359470129013,
-0.023435968905687332,
0.07059347629547119,
-0.10798441618680954,
0.029699523001909256,
0.014183425344526768,
-0.07322074472904205,
-0.01699155382812023,
-0.009661863557994366,
-0.055210649967193604,
-0.007643819320946932,
0.05353529378771782,
0.04618656635284424,
-0.0003066927893087268,
-0.01746750809252262,
0.00414793798699975,
-0.0073392088524997234,
0.016591751947999,
-0.01934276521205902,
-0.011413373984396458,
0.008714715950191021,
-0.04812845587730408,
0.006453934591263533,
0.01987583376467228,
0.04896613582968712,
0.013231517747044563,
0.03718151897192001,
-0.028880881145596504,
-0.03371657431125641,
0.009461963549256325,
0.03402118384838104,
-0.009271581657230854,
0.03596307337284088,
0.005302126053720713,
-0.01408823486417532,
0.025701509788632393,
0.05947519838809967,
-0.025701509788632393,
-0.016496561467647552,
0.052811842411756516,
-0.009638066403567791,
0.01842893473803997,
-0.021513115614652634,
0.03282177820801735,
-0.021931955590844154,
-0.032517168670892715,
0.009947435930371284,
0.021893879398703575,
-0.03468751907348633,
-0.027072256430983543,
0.009095478802919388,
0.020961008965969086,
-0.009052642621099949,
-0.07245922088623047,
0.035277701914310455,
-0.024559220299124718,
0.08810858428478241,
0.02082774229347706,
0.014440440572798252,
-0.007172625046223402,
0.07672376185655594,
-0.013583723455667496,
-0.05863751843571663,
0.024673448875546455,
-0.008905096910893917,
-0.011194434948265553,
-0.010985015891492367,
-0.02819550782442093,
-0.033469077199697495,
-0.00993791688233614,
0.049689583480358124,
0.02219848893582821,
0.01606820337474346,
0.051936086267232895,
0.014906875789165497,
-0.05543910712003708,
0.008186406455934048,
0.01844797283411026,
-0.007072674576193094,
-0.04348314553499222,
-0.03369753435254097,
-0.05243108049035072,
0.03613441810011864,
0.02438787743449211,
0.04344506934285164,
0.026977065950632095,
-0.034858863800764084,
-0.04462543502449989,
-0.006130286026746035,
-0.01268893014639616,
0.007653338368982077,
0.04211239889264107,
-0.013012578710913658,
-0.0471765473484993,
-0.02535882219672203,
0.004188394173979759,
-0.0040384684689342976,
-0.016953477635979652,
-0.01615387387573719,
0.0007752098608762026,
-0.025511128827929497,
-0.03040393441915512,
-0.012679411098361015,
0.028861843049526215,
0.02629169262945652,
-0.09717074781656265,
0.007353487424552441,
0.0017455609049648046,
-0.008690917864441872,
-0.003022307064384222,
0.04005627706646919,
-0.00921922642737627,
-0.01110876351594925,
-0.01431669294834137,
0.08605246245861053,
0.06274975836277008,
0.009723737835884094,
-0.021075237542390823,
0.03828572854399681,
0.0036434270441532135,
0.0497276596724987,
-0.02669149450957775,
0.0038671253714710474,
0.0021560711320489645,
0.01852412521839142,
-0.029775675386190414,
0.012393838725984097,
0.02533978410065174,
0.0010155666386708617,
0.04047511890530586,
0.0526595376431942,
-0.08498632162809372,
-0.04256931319832802,
0.03733382374048233,
-0.02360731177031994,
-0.011441931128501892,
-0.00425264798104763,
-0.04291200265288353,
-0.025644395500421524,
0.008652841672301292,
-0.021417925134301186,
0.005478229373693466,
0.030213551595807076,
-0.0033411963377147913,
-0.001960929948836565,
0.014116792008280754,
0.02126561850309372,
0.025987081229686737,
-0.0003409019554965198,
0.026139387860894203,
0.00007042630022624508,
0.01431669294834137,
-0.0108803054317832,
0.019571224227547646,
0.06286399066448212,
0.002822406589984894,
-0.03613441810011864,
-0.045996181666851044,
-0.04142702743411064,
-0.020542168989777565,
-0.01546850148588419,
-0.0117465415969491,
0.01761029288172722,
-0.03289793059229851,
-0.04321661219000816,
0.014421402476727962,
0.009381051175296307,
0.0704030990600586,
-0.029223568737506866,
-0.04812845587730408,
0.026063233613967896,
0.006111247930675745,
0.0018229034030809999,
0.02718648500740528,
-0.024311725050210953,
0.024216532707214355,
0.06781391054391861,
-0.025282669812440872,
-0.0012696069898083806,
-0.08871780335903168,
-0.00624451506882906,
-0.10524292290210724,
0.03177468106150627,
0.06031287461519241,
0.030270665884017944,
-0.007905594073235989,
0.018362300470471382,
0.03194602578878403,
-0.0010827950900420547,
-0.0013683674624189734,
-0.0020287535153329372,
0.057000238448381424,
-0.040817804634571075,
-0.03457329049706459,
-0.014630822464823723,
0.026044195517897606,
-0.02629169262945652,
-0.05361144617199898,
-0.042226627469062805,
0.010689924471080303,
0.016372812911868095,
-0.03546808287501335,
-0.01797201856970787,
0.0043882946483790874,
0.008781349286437035,
0.09336311370134354,
0.01105164922773838,
0.07192614674568176,
0.07051732391119003,
0.06926080584526062,
0.11369585990905762,
-0.02623457834124565,
0.0009453633683733642,
0.05383990332484245,
-0.015611287206411362,
0.03447809815406799,
-0.05345914140343666,
0.026405921205878258,
-0.015944454818964005,
-0.019514109939336777,
0.011822693981230259,
0.0254159364849329,
0.021931955590844154,
0.10006454586982727,
0.002586809452623129,
0.05951327458024025,
-0.0045263213105499744,
0.04154125601053238,
-0.02910934016108513,
0.055172573775053024,
0.007981746457517147,
0.013136327266693115,
-0.03447809815406799,
0.023797694593667984,
-0.002812887541949749,
-0.002439263742417097,
-0.018647873774170876,
0.008862261660397053,
-0.039370905607938766,
0.008738513104617596,
-0.04976573958992958,
-0.03689594566822052,
-0.015097256749868393,
-0.03701017424464226,
-0.011365778744220734,
-0.05479181185364723,
0.01890488900244236,
-0.0015920656733214855,
-0.03263139724731445,
-0.00599701888859272,
-0.03451617434620857,
-0.0016717880498617887,
0.09930301457643509,
-0.05920866131782532,
0.026006119325757027,
-0.01195596158504486,
-0.07424880564212799,
-0.05296414718031883,
0.011499045416712761,
-0.0010304400930181146,
-0.06979387998580933,
0.006073171738535166,
-0.04234085604548454,
0.008029341697692871,
0.024159418419003487,
-0.04744308441877365,
0.0033126389607787132,
0.010328198783099651,
0.000418839423218742,
-0.048585373908281326,
0.04923266917467117,
0.019085749983787537,
0.04930882155895233,
-0.03554423525929451,
-0.00472146226093173,
-0.048661526292562485,
-0.027091294527053833,
-0.012546144425868988,
0.04298815503716469,
-0.010737519711256027,
-0.015963492915034294,
-0.01403112057596445,
0.02676764689385891,
0.007177384570240974,
-0.006615758873522282,
0.024616334587335587,
-0.004640550352632999,
-0.0341925285756588,
-0.004076545126736164,
-0.01662031002342701,
0.019285650923848152,
0.008167368359863758,
-0.013155365362763405,
0.016725018620491028,
0.027091294527053833,
-0.07485802471637726,
0.03139391914010048,
0.018086247146129608,
0.020408902317285538,
0.010080703534185886,
0.008943173103034496,
-0.06438703835010529,
0.07512456178665161,
-0.03194602578878403,
0.020599283277988434,
0.05022265389561653,
-0.013364785350859165,
-0.012679411098361015,
-0.015382829122245312,
0.019685452803969383,
-0.008962211199104786,
0.0009870093781501055,
-0.016020607203245163,
-0.03596307337284088,
-0.08567170053720474,
0.019219018518924713,
-0.07912257313728333,
-0.07889411598443985,
-0.020599283277988434,
-0.02069447562098503,
0.05913250893354416,
-0.035353854298591614,
0.03925667703151703,
0.07786605507135391,
0.020637359470129013,
-0.007215460762381554,
-0.008871780708432198,
0.03678171709179878,
-0.04987996816635132,
-0.08331096917390823,
0.026900913566350937,
0.019057193771004677,
-0.02905222401022911,
0.046300794929265976,
0.007957949303090572,
0.0424170084297657,
0.049156516790390015,
-0.03183179721236229,
0.050108425319194794,
-0.002570150885730982,
0.03051816299557686,
0.014792646281421185,
-0.008462459780275822,
0.04660540446639061,
0.02080870419740677,
0.0030937001574784517,
0.11559967696666718,
0.034306757152080536,
0.011222992092370987,
-0.026615340262651443,
-0.013793143443763256,
-0.005944664124399424,
-0.03868553042411804,
0.011127801612019539,
0.006658594589680433,
0.023226549848914146,
0.025301707908511162,
0.0076866550371050835,
0.06952734291553497,
0.031203536316752434,
-0.03175564110279083,
-0.017334239557385445,
0.060236722230911255,
0.021989069879055023,
-0.07196422666311264,
-0.03777169808745384,
0.025111326947808266,
0.018762102350592613,
0.02954721637070179,
0.0018800178077071905,
0.027129370719194412,
-0.021398887038230896,
-0.008476738817989826,
-0.0046810065396130085,
0.005373519379645586,
0.032460056245326996,
0.02865242399275303,
-0.03274562582373619,
0.014002563431859016,
0.009005047380924225,
-0.018152881413698196,
0.02358827367424965,
0.0222175270318985,
0.021303696557879448,
0.021398887038230896,
0.025568243116140366,
-0.0027153168339282274,
-0.021094275638461113,
-0.08338712155818939,
0.014573708176612854,
-0.0025058970786631107,
0.04477773979306221,
-0.0002820026711560786,
-0.031546223908662796,
-0.03424964100122452,
-0.008719475008547306,
0.0028533434960991144,
-0.021417925134301186,
-0.006411098875105381,
-0.03978974372148514,
-0.04283585026860237,
0.06568163633346558,
0.01662982814013958,
0.0007151206955313683,
-0.022465022280812263,
0.024597296491265297,
-0.03902821987867355,
-0.05909443274140358,
-0.011584717780351639,
-0.015116294845938683,
-0.04694809019565582,
-0.029661444947123528,
-0.014221501536667347,
0.007367765996605158,
0.05680985376238823,
0.05033688247203827,
0.0352015495300293,
0.03729574754834175,
0.02867146208882332,
-0.011813174933195114,
-0.046376947313547134,
0.012907869182527065,
0.004281205125153065,
0.013022097758948803,
0.01665838621556759,
-0.04184586554765701,
-0.03185083344578743,
0.037086326628923416,
0.012365281581878662,
0.11209665983915329,
0.005568660330027342,
0.038971103727817535,
0.03322158008813858,
0.06815659254789352,
0.003074662061408162,
-0.008938414044678211,
-0.00018725810514297336,
-0.004633410833775997,
0.02353115938603878,
-0.026900913566350937,
-0.01939036138355732,
0.04946112632751465,
0.054715659469366074,
0.009309657849371433,
0.03402118384838104,
-0.02166542038321495,
-0.05342106521129608,
0.002948534209281206,
-0.010194932110607624,
-0.08072178065776825,
-0.014497554861009121,
0.01154664158821106,
0.013545647263526917,
0.006125526502728462,
0.09046931564807892,
-0.026405921205878258,
0.006377782206982374,
0.03377368673682213,
0.0003983139176853001,
-0.0023535918444395065,
-0.0731445923447609,
0.052773766219615936,
-0.03181275725364685,
-0.0870424434542656,
0.009585711173713207,
-0.012603258714079857,
0.024273646995425224,
-0.011727503500878811,
0.019590262323617935,
-0.06358744204044342,
-0.011689427308738232,
-0.005211695097386837,
-0.02358827367424965,
-0.012650853954255581,
-0.031089307740330696,
0.029147416353225708,
-0.005744763184338808,
-0.051441095769405365,
-0.033507153391838074,
0.08803243190050125,
0.03959936276078224,
-0.07066962867975235,
0.030822772532701492,
0.049613431096076965,
-0.005592457950115204,
0.05452527478337288,
-0.025206517428159714,
0.031108345836400986,
-0.03925667703151703,
0.039408981800079346,
-0.00901456642895937,
0.05121263861656189,
-0.028481081128120422,
0.021570229902863503,
0.01747702620923519,
-0.014611784368753433,
-0.029242606833577156,
0.04584387689828873,
-0.029452025890350342,
-0.012907869182527065,
-0.03306927531957626,
-0.04721462354063988,
0.003524438478052616,
-0.012232014909386635,
0.030175475403666496,
0.023264626041054726,
0.0017550799529999495,
-0.024330763146281242,
-0.038038235157728195,
0.027414944022893906,
-0.05132686719298363,
-0.0029556734953075647,
0.009347734041512012,
0.027529172599315643,
-0.012212976813316345,
0.037162479013204575,
0.007424880750477314,
-0.025739585980772972,
0.011470488272607327,
-0.048699602484703064,
-0.03232678771018982,
0.06225476786494255,
0.012270091101527214,
-0.04416852071881294,
-0.08452940732240677,
0.02448306791484356,
0.0041526975110173225,
-0.05273569002747536,
0.027567248791456223,
-0.002408326603472233,
0.05311645194888115,
-0.04154125601053238,
-0.0037957322783768177,
0.007696174085140228
] |
10,229 | itertools | chain | chain(*iterables) --> chain object
Return a chain object whose .__next__() method returns elements from the
first iterable until it is exhausted, then elements from the next
iterable, until all of the iterables are exhausted. | from itertools import chain
| null | [
-0.05076891928911209,
0.0015590472612529993,
-0.07272030413150787,
0.02474181540310383,
-0.0686953216791153,
0.005344097036868334,
-0.012447010725736618,
-0.051783621311187744,
0.09044376760721207,
0.02651754394173622,
0.018687427043914795,
-0.02969694323837757,
-0.017080815508961678,
0.00880253966897726,
-0.007690594997256994,
-0.018467575311660767,
-0.006747767794877291,
0.06412916630506516,
-0.03280869498848915,
0.030305765569210052,
0.016412803903222084,
0.0219682976603508,
-0.02389623038470745,
0.04545864835381508,
-0.030170470476150513,
0.08110851049423218,
0.018010959029197693,
-0.030779292806982994,
-0.03710426762700081,
0.011914292350411415,
0.033603545278310776,
-0.043767478317022324,
-0.00030044690356589854,
-0.052663031965494156,
-0.00181800767313689,
0.028834447264671326,
0.0012757763033732772,
0.05408361554145813,
-0.01174517534673214,
0.0650423914194107,
0.018349193036556244,
-0.04772481322288513,
-0.006291151978075504,
-0.033197663724422455,
-0.006658981554210186,
-0.017021624371409416,
0.027667539194226265,
0.03967484459280968,
0.03390795737504959,
-0.027177101001143456,
0.04532335326075554,
-0.03130355477333069,
0.04792775586247444,
-0.06463651359081268,
-0.0007525706314481795,
0.05831153690814972,
-0.013419433496892452,
0.015837805345654488,
0.037746913731098175,
0.06626003980636597,
-0.010442974045872688,
-0.011846644803881645,
0.023321233689785004,
0.00768213951960206,
-0.02873297594487667,
-0.03937043622136116,
-0.062133584171533585,
-0.021291829645633698,
-0.04515423625707626,
0.037543971091508865,
-0.029612384736537933,
0.03666456416249275,
-0.034499865025281906,
-0.003838955657556653,
-0.015702512115240097,
-0.002091765869408846,
-0.020074186846613884,
0.013757667504251003,
0.04373365268111229,
-0.09227023273706436,
0.0033823398407548666,
0.024149905890226364,
-0.04001307860016823,
0.04474835470318794,
0.050599802285432816,
-0.006210821680724621,
-0.0010294996900483966,
-0.0022217745427042246,
-0.03329913690686226,
0.0003855339018628001,
-0.07759087532758713,
0.01650581881403923,
-0.02396387793123722,
0.04698070138692856,
-0.009132317267358303,
0.08503202348947525,
-0.023473437875509262,
-0.0031371202785521746,
-0.0426851287484169,
-0.03384030982851982,
-0.010510620661079884,
-0.00007610264583490789,
-0.030796203762292862,
0.0030927269253879786,
0.011804365552961826,
0.03235207870602608,
-0.04681158438324928,
-0.05076891928911209,
0.04190719127655029,
0.045086588710546494,
-0.07813204824924469,
-0.021291829645633698,
0.019363895058631897,
-0.03845720365643501,
-0.016877876594662666,
-0.02957856096327305,
0.02902047522366047,
-0.00026332042762078345,
0.008768715895712376,
-0.01078120805323124,
0.0018613438587635756,
0.02080138958990574,
-0.04197483882308006,
0.04413953423500061,
-0.0006003653397783637,
0.0283270962536335,
0.03977631777524948,
0.031235909089446068,
0.04535717889666557,
-0.05506449192762375,
0.03778073564171791,
0.00017413764726370573,
-0.04731893539428711,
0.019127132371068,
0.016429714858531952,
-0.05922476947307587,
-0.026128575205802917,
-0.027194011956453323,
0.014205827377736568,
-0.027058718726038933,
-0.029510915279388428,
-0.02508004941046238,
0.029510915279388428,
0.047623343765735626,
-0.05787183344364166,
-0.010789664462208748,
0.00714942067861557,
-0.017706548795104027,
-0.015254352241754532,
0.024420494213700294,
-0.007563757244497538,
0.03241972625255585,
-0.0024035752285271883,
0.021190358325839043,
-0.014476414769887924,
-0.0076060364954173565,
-0.055842429399490356,
-0.07319383323192596,
0.022543294355273247,
-0.014840016141533852,
0.002475450048223138,
-0.05320420488715172,
-0.022712411358952522,
0.030897675082087517,
-0.023541085422039032,
0.010535988956689835,
-0.018044782802462578,
0.016345156356692314,
0.010307680815458298,
-0.013960607349872589,
0.027312394231557846,
-0.014349577017128468,
-0.01753743179142475,
-0.024826373904943466,
-0.0375777967274189,
-0.0029088121373206377,
-0.04126454517245293,
0.02873297594487667,
-0.04014837369322777,
0.013597005978226662,
-0.04799540340900421,
-0.00870106928050518,
-0.0017926400760188699,
-0.04082484170794487,
0.04305718466639519,
-0.00998635869473219,
0.04041896015405655,
-0.0038791210390627384,
0.03838955610990524,
-0.027261659502983093,
-0.02416681870818138,
-0.01505986787378788,
-0.012962817214429379,
0.035345450043678284,
0.012176423333585262,
-0.0028390514198690653,
-0.027261659502983093,
0.02805650793015957,
-0.020496979355812073,
-0.004098973236978054,
-0.08909083157777786,
-0.014214282855391502,
-0.028360920026898384,
-0.003519747406244278,
0.02873297594487667,
0.021528592333197594,
-0.038930732756853104,
0.04988951236009598,
-0.03896455466747284,
0.022543294355273247,
0.059427712112665176,
-0.05760124698281288,
-0.0040862890891730785,
-0.01174517534673214,
0.03504104167222977,
-0.006143174599856138,
-0.022137414664030075,
-0.030931496992707253,
0.03245355188846588,
-0.0059656016528606415,
0.0170554481446743,
-0.05807477608323097,
0.05435420200228691,
0.002727011451497674,
0.008836362510919571,
0.020141834393143654,
-0.006811186671257019,
-0.005170751828700304,
-0.005204575601965189,
-0.007474971003830433,
0.04038513824343681,
-0.011195545084774494,
-0.00963966827839613,
0.0008133470546454191,
0.0035345451906323433,
-0.0049382159486413,
-0.007851256057620049,
-0.015085235238075256,
0.0109841488301754,
0.00007504566747229546,
-0.021258005872368813,
0.0075087943114340305,
0.029274150729179382,
-0.010189298540353775,
-0.003519747406244278,
0.06111888214945793,
0.03798367455601692,
-0.005551265086978674,
0.0010897476458922029,
0.01274296548217535,
-0.014620163477957249,
0.012895170599222183,
0.036224860697984695,
-0.01700471341609955,
0.00006649072020081803,
-0.022746235132217407,
0.026027105748653412,
-0.032149139791727066,
0.039471905678510666,
-0.036224860697984695,
0.05773654207587242,
-0.027921214699745178,
0.000423849473008886,
-0.01885654404759407,
-0.08388202637434006,
-0.017089271917939186,
0.019127132371068,
-0.012692229822278023,
-0.06768061965703964,
0.06981149315834045,
0.12183187901973724,
-0.008168350905179977,
0.024403581395745277,
0.031540319323539734,
-0.020277127623558044,
0.0496189258992672,
-0.008202173747122288,
0.03289325535297394,
-0.05195273831486702,
0.0042723179794847965,
0.01954992488026619,
0.0738026574254036,
-0.06724091619253159,
-0.034499865025281906,
-0.042110130190849304,
-0.008240225724875927,
0.026196222752332687,
0.016700303182005882,
-0.017156919464468956,
-0.023456526920199394,
0.07116442918777466,
0.018129341304302216,
0.012954361736774445,
-0.03287634253501892,
0.06534680724143982,
-0.0013391951797530055,
0.010485253296792507,
-0.04288806766271591,
0.06423063576221466,
-0.012649950571358204,
0.0013983860844746232,
-0.0573306605219841,
0.007339677307754755,
0.004016528371721506,
-0.012108776718378067,
-0.032927077263593674,
0.05844683200120926,
-0.013436345383524895,
0.014840016141533852,
-0.019769776612520218,
-0.005952917970716953,
0.02313520386815071,
-0.028428565710783005,
-0.03431383892893791,
0.009276066906750202,
-0.03294399008154869,
-0.02859768271446228,
0.07387030124664307,
-0.009191508404910564,
0.08422026038169861,
-0.04789393022656441,
-0.004862113390117884,
0.011237824335694313,
0.04495129734277725,
0.00025301487767137587,
0.02232344262301922,
0.00815566722303629,
0.03356972336769104,
0.014975309371948242,
0.023811671882867813,
-0.04704834520816803,
0.001795810996554792,
0.04180572181940079,
0.0794849842786789,
0.0011531665222719312,
0.03784838318824768,
0.062471818178892136,
-0.017292212694883347,
0.01644662767648697,
-0.03981013968586922,
0.014814648777246475,
-0.017148463055491447,
-0.031878553330898285,
-0.0054328832775354385,
-0.019110219553112984,
-0.023744026198983192,
0.007948498241603374,
0.023930054157972336,
0.044173359870910645,
0.03274105116724968,
0.031066792085766792,
0.013360242359340191,
0.024420494213700294,
0.014687811024487019,
0.04833363741636276,
0.11303779482841492,
-0.06967619806528091,
-0.014747001230716705,
-0.001753531745634973,
0.03455059975385666,
0.08888789266347885,
-0.01753743179142475,
0.0053736926056444645,
0.04254983365535736,
0.041399840265512466,
-0.015144426375627518,
-0.03974249213933945,
0.03490574657917023,
-0.006067072041332722,
-0.008954744786024094,
0.013385609723627567,
0.018010959029197693,
0.04353071376681328,
-0.008937832899391651,
0.008324784226715565,
0.009090038016438484,
-0.0043103694915771484,
0.05465861037373543,
-0.021088888868689537,
0.03771308809518814,
-0.05766889452934265,
0.012142599560320377,
0.019431542605161667,
0.021359475329518318,
-0.01678486168384552,
-0.016548097133636475,
0.04119689762592316,
-0.019803600385785103,
0.013926784507930279,
0.07238207012414932,
0.034499865025281906,
-0.03598809614777565,
0.014907662756741047,
-0.04305718466639519,
-0.013368697836995125,
-0.032081492245197296,
0.0014258676674216986,
-0.025857988744974136,
-0.052121855318546295,
-0.053846850991249084,
0.025891810655593872,
-0.019127132371068,
0.011051795445382595,
0.06612474471330643,
-0.018213899806141853,
-0.018755074590444565,
0.004435093142092228,
-0.019854335114359856,
0.003139234147965908,
-0.021460946649312973,
-0.08144674450159073,
-0.03805132210254669,
0.009994814172387123,
-0.043970417231321335,
-0.008337467908859253,
-0.03764544054865837,
0.010426062159240246,
0.026652837172150612,
0.07048796117305756,
0.042583659291267395,
0.03652926906943321,
-0.06815414875745773,
-0.0458645261824131,
0.05996888503432274,
-0.0017038537189364433,
-0.06960855424404144,
-0.03916749358177185,
0.0004658644611481577,
-0.00918305292725563,
-0.01478082500398159,
-0.010493709705770016,
-0.039066024124622345,
0.006134718656539917,
-0.09450257569551468,
0.055977724492549896,
0.008675701916217804,
-0.009681947529315948,
0.014045165851712227,
0.07989086955785751,
0.00600788090378046,
0.04515423625707626,
0.0021731534507125616,
-0.006849238183349371,
-0.07664381712675095,
0.060746822506189346,
-0.015212072990834713,
-0.03798367455601692,
0.07427617907524109,
-0.029612384736537933,
-0.009453639388084412,
0.01760507933795452,
-0.05171597748994827,
0.0060586160980165005,
-0.050329215824604034,
0.06314828246831894,
0.01968521811068058,
0.007157876621931791,
0.005352552980184555,
-0.03018738329410553,
0.06237034499645233,
0.10437900573015213,
-0.010231577791273594,
0.07474970817565918,
0.04194101318717003,
-0.030356500297784805,
0.03211531788110733,
-0.026162398979067802,
0.02825944870710373,
-0.01467935461550951,
0.02313520386815071,
0.025029314681887627,
-0.028428565710783005,
-0.06132182106375694,
-0.05601154640316963,
0.041061606258153915,
0.030085911974310875,
0.031337376683950424,
-0.004984723404049873,
0.036021918058395386,
-0.06480563431978226,
-0.04045278578996658,
-0.060205649584531784,
0.03348516300320625,
-0.0350748635828495,
-0.07393794506788254,
-0.01040069479495287,
0.012337084859609604,
-0.0598335899412632,
0.01088267844170332,
0.008206401951611042,
0.0053779203444719315,
-0.01899183727800846,
-0.02998444251716137,
-0.0370027981698513,
0.07035266607999802,
-0.012244069948792458,
-0.006578650791198015,
-0.006371482741087675,
0.02333814464509487,
0.006126263178884983,
0.023591820150613785,
0.0075975810177624226,
0.055639490485191345,
0.015922363847494125,
0.05611301586031914,
0.07623793929815292,
0.013081199489533901,
-0.06260710954666138,
-0.060205649584531784,
-0.024149905890226364,
0.007369272876530886,
-0.0522233285009861,
-0.019330071285367012,
-0.0014163547893986106,
-0.019668305292725563,
-0.05699242651462555,
-0.05966447293758392,
0.033468253910541534,
0.03252119570970535,
0.024894021451473236,
0.0292910635471344,
0.050870392471551895,
-0.0012905740877613425,
-0.0109841488301754,
0.013334874995052814,
-0.028479300439357758,
-0.04745422676205635,
-0.03192928805947304,
-0.021308740600943565,
-0.0064898645505309105,
-0.028749888762831688,
-0.0012979728635400534,
-0.017791107296943665,
0.010468341410160065,
-0.002226002514362335,
0.012658406980335712,
-0.010722016915678978,
-0.046168938279151917,
0.0662938579916954,
0.009690403938293457,
0.08002615720033646,
0.005952917970716953,
0.027616804465651512,
-0.01198193896561861,
0.015347367152571678,
0.04129837080836296,
-0.0686953216791153,
0.0015812438214197755,
0.0026826183311641216,
0.025299901142716408,
-0.06903355568647385,
0.009851064532995224,
-0.010772752575576305,
0.0496189258992672,
-0.006405306048691273,
-0.09984666854143143,
-0.015398101881146431,
-0.01029922440648079,
-0.010426062159240246,
-0.0019448454258963466,
0.04637187719345093,
0.010612091049551964,
-0.10532606393098831,
-0.03407707437872887,
-0.005263766273856163,
-0.0248094629496336,
0.0029510913882404566,
0.03784838318824768,
0.03451677784323692,
-0.0036465851590037346,
-0.017072360962629318,
0.030288852751255035,
-0.10316136479377747,
-0.01350399199873209,
0.014510237611830235,
0.04637187719345093,
-0.0181631650775671,
-0.05624831095337868,
-0.009064670652151108,
-0.047758638858795166,
0.0019363895989954472,
0.0046634008176624775,
0.024302111938595772,
-0.047352757304906845,
0.046946875751018524,
0.004993179347366095,
-0.007901991717517376,
0.00727203069254756,
-0.007377728819847107,
0.016497362405061722,
-0.026060927659273148,
-0.018687427043914795,
-0.01983742229640484,
-0.010713561438024044,
0.00445200502872467,
-0.02969694323837757,
-0.03636015206575394,
0.0034161631483584642,
-0.10004961490631104,
-0.019093308597803116,
0.011170177720487118,
0.014569428749382496,
0.005695014726370573,
0.07664381712675095,
0.014180460013449192,
0.0053779203444719315,
-0.002684732200577855,
-0.0048494297079741955,
-0.011187088675796986,
0.02568887174129486,
-0.019093308597803116,
0.014214282855391502,
0.0283270962536335,
-0.04599982127547264,
-0.0413321927189827,
-0.009529742412269115,
-0.00028934859437868,
0.019093308597803116,
-0.020683007314801216,
0.019025661051273346,
-0.05009245127439499,
0.01582089439034462,
-0.03646162152290344,
0.015110603533685207,
-0.058277714997529984,
0.007090230006724596,
0.011931203305721283,
-0.006815414875745773,
0.07867322117090225,
0.0019744408782571554,
0.002538868924602866,
0.004718364216387272,
0.0744791254401207,
-0.042245425283908844,
-0.036089565604925156,
0.026432985439896584,
0.037679266184568405,
0.002553666476160288,
-0.06531298160552979,
0.025029314681887627,
-0.0019459023606032133,
0.03784838318824768,
-0.032013844698667526,
-0.048874810338020325,
0.0005702413618564606,
0.010916502214968204,
-0.043902769684791565,
-2.6424530119584233e-7,
0.023253586143255234,
-0.024149905890226364,
-0.01740213856101036,
0.02190065011382103,
-0.012303261086344719,
0.030897675082087517,
-0.020683007314801216,
-0.006946480367332697,
0.08428791165351868,
-0.010434518568217754,
0.05320420488715172,
0.017021624371409416,
0.06132182106375694,
0.0534747913479805,
0.08726436644792557,
-0.011204000562429428,
-0.011592969298362732,
-0.0018000389682129025,
0.008151439018547535,
-0.03997925668954849,
0.00343518890440464,
-0.013554726727306843,
-0.009800329804420471,
-0.03696897253394127,
-0.011542234569787979,
0.012134144082665443,
0.009927167557179928,
0.03206458315253258,
-0.011060250923037529,
0.013334874995052814,
0.04342924430966377,
-0.049280691891908646,
0.011390029452741146,
-0.00959738902747631,
0.012277893722057343,
-0.03321457654237747,
-0.05320420488715172,
0.01536427903920412,
-0.0219682976603508,
0.020953595638275146,
0.02714327722787857,
-0.025959458202123642,
0.01829845830798149,
-0.05614684149622917,
-0.013673109002411366,
0.01122091244906187,
-0.036157213151454926,
0.09551727771759033,
-0.022560207173228264,
-0.07982321828603745,
0.04599982127547264,
0.016539642587304115,
0.053440969437360764,
-0.014772369526326656,
0.003616989590227604,
-0.030999144539237022,
-0.03424619138240814,
-0.011694439686834812,
-0.016429714858531952,
0.024369757622480392,
0.011592969298362732,
0.033468253910541534,
0.018061693757772446,
0.03466898202896118,
-0.050870392471551895,
0.003371770028024912,
0.020057275891304016,
-0.05614684149622917,
-0.00010285748430760577,
0.06078064814209938,
0.011330838315188885,
0.04488364979624748,
0.034567512571811676,
0.027735186740756035,
0.03313001990318298,
-0.019160954281687737,
-0.027599893510341644,
0.052460089325904846,
-0.006472952663898468,
0.03771308809518814,
-0.060070354491472244,
0.00010886906238738447,
-0.06017182394862175,
-0.007969638332724571,
0.0024585381615906954,
0.030424145981669426,
-0.022746235132217407,
-0.05333949998021126,
-0.009749594144523144,
0.026923425495624542,
-0.015863174572587013,
-0.03032267652451992,
-0.032994724810123444,
-0.05719536542892456,
0.007115597371011972,
0.03039032407104969,
-0.0044181812554597855,
-0.05692477896809578,
0.10119960457086563,
-0.02584107592701912,
-0.03970867022871971,
-0.0527983233332634,
-0.00015682958473917097,
0.038727790117263794,
0.04613511636853218,
-0.0032407043036073446,
0.024606522172689438,
-0.02528299018740654,
-0.012996640987694263,
-0.021849915385246277,
-0.05547037348151207,
-0.031168261542916298,
-0.025519754737615585,
0.008443165570497513,
0.01671721413731575,
0.017943313345313072,
0.055707138031721115,
0.02203594334423542,
0.0643659234046936,
0.025993281975388527
] |
10,230 | wsdiff | cli | null | def cli():
parser = argparse.ArgumentParser(description="Given two source files or directories this application creates an html page that highlights the differences between the two.")
parser.add_argument('-b', '--open', action='store_true', help='Open output file in a browser')
parser.add_argument('-s', '--syntax-css', help='Path to custom Pygments CSS file for code syntax highlighting')
parser.add_argument('-l', '--lexer', help='Manually select pygments lexer (default: guess from filename, use -L to list available lexers.)')
parser.add_argument('-L', '--list-lexers', action='store_true', help='List available lexers for -l/--lexer')
parser.add_argument('-t', '--pagetitle', help='Override page title of output HTML file')
parser.add_argument('-o', '--output', default=sys.stdout, type=argparse.FileType('w'), help='Name of output file (default: stdout)')
parser.add_argument('--header', action='store_true', help='Only output HTML header with stylesheets and stuff, and no diff')
parser.add_argument('--content', action='store_true', help='Only output HTML content, without header')
parser.add_argument('--nofilename', action='store_true', help='Do not output file name headers')
parser.add_argument('old', nargs='?', help='source file or directory to compare ("before" file)')
parser.add_argument('new', nargs='?', help='source file or directory to compare ("after" file)')
args = parser.parse_args()
if args.list_lexers:
for longname, aliases, filename_patterns, _mimetypes in get_all_lexers():
print(f'{longname:<20} alias {"/".join(aliases)} for {", ".join(filename_patterns)}')
sys.exit(0)
if args.pagetitle or (args.old and args.new):
pagetitle = args.pagetitle or f'diff: {args.old} / {args.new}'
else:
pagetitle = 'diff'
if args.syntax_css:
syntax_css = Path(args.syntax_css).read_text()
else:
syntax_css = PYGMENTS_CSS
if args.header:
print(string.Template(HTML_TEMPLATE).substitute(
title=pagetitle,
pygments_css=syntax_css,
main_css=MAIN_CSS,
diff_style_toggle=DIFF_STYLE_TOGGLE,
diff_style_script=DIFF_STYLE_SCRIPT,
body='$body'), file=args.output)
sys.exit(0)
if not (args.old and args.new):
print('Error: The command line arguments "old" and "new" are required.', file=sys.stderr)
parser.print_usage()
sys.exit(2)
if args.open and args.output == sys.stdout:
print('Error: --open requires --output to be given.', file=sys.stderr)
parser.print_usage()
sys.exit(2)
old, new = Path(args.old), Path(args.new)
if not old.exists():
print(f'Error: Path "{old}" does not exist.', file=sys.stderr)
sys.exit(1)
if not new.exists():
print(f'Error: Path "{new}" does not exist.', file=sys.stderr)
sys.exit(1)
if old.is_file() != new.is_file():
print(f'Error: You must give either two files, or two paths to compare, not a mix of both.', file=sys.stderr)
sys.exit(1)
if old.is_file():
found_files = {str(new): (old, new)}
else:
found_files = defaultdict(lambda: [None, None])
for fn in old.glob('**/*'):
found_files[str(fn.relative_to(old))][0] = fn
for fn in new.glob('**/*'):
found_files[str(fn.relative_to(new))][1] = fn
diff_blocks = []
for suffix, (old, new) in sorted(found_files.items()):
old_text = '' if old is None else old.read_text()
new_text = '' if new is None else new.read_text()
if args.lexer:
lexer = get_lexer_by_name(lexer)
else:
try:
lexer = guess_lexer_for_filename(new, new_text)
except:
lexer = get_lexer_by_name('text')
diff_blocks.append(html_diff_block(old_text, new_text, suffix, lexer, hide_filename=args.nofilename))
body = '\n'.join(diff_blocks)
if args.content:
print(body, file=args.output)
else:
print(string.Template(HTML_TEMPLATE).substitute(
title=pagetitle,
pygments_css=syntax_css,
main_css=MAIN_CSS,
diff_style_toggle=DIFF_STYLE_TOGGLE,
diff_style_script=DIFF_STYLE_SCRIPT,
body=body), file=args.output)
if args.open:
webbrowser.open('file://' + str(Path(args.output.name).absolute()))
| () | [
0.018832629546523094,
-0.06564734876155853,
-0.0028592050075531006,
-0.032061219215393066,
-0.005375305190682411,
-0.021710896864533424,
-0.012113498523831367,
0.04616662859916687,
-0.05767969414591789,
-0.007529239635914564,
0.01687883958220482,
-0.024322303012013435,
-0.010426566936075687,
0.07304315268993378,
-0.03406266123056412,
-0.03814179450273514,
0.00867768656462431,
0.020815011113882065,
-0.010779202915728092,
-0.029011398553848267,
-0.022263675928115845,
-0.030174143612384796,
0.0017059922683984041,
0.023331113159656525,
-0.0006927615031599998,
-0.0015296746278181672,
-0.009649816900491714,
-0.03537789732217789,
0.019023243337869644,
-0.016926493495702744,
-0.014362739399075508,
-0.061110738664865494,
0.020815011113882065,
-0.022797394543886185,
-0.04041009768843651,
-0.04818713292479515,
0.003867074614390731,
0.03556850925087929,
0.011856169439852238,
-0.027295876294374466,
-0.0069955214858055115,
-0.04925457015633583,
0.00885877013206482,
-0.022454289719462395,
-0.008925484493374825,
0.011941946111619473,
-0.06755348294973373,
-0.023407356813549995,
-0.06244503706693649,
0.0037026703357696533,
0.05424864962697029,
-0.023597970604896545,
0.009930972009897232,
0.03614034876227379,
-0.0012961728498339653,
0.03629283979535103,
-0.016316529363393784,
0.04433673620223999,
0.020090680569410324,
-0.025427863001823425,
0.0070765321142971516,
0.00883017759770155,
0.010683896020054817,
0.013219057582318783,
-0.017898622900247574,
-0.003809890476986766,
0.03934266045689583,
-0.020795950666069984,
-0.021996816620230675,
0.031908728182315826,
-0.05047449842095375,
0.008153499104082584,
0.024150751531124115,
-0.019232917577028275,
0.026419052854180336,
0.03713154047727585,
-0.0355113260447979,
0.01802252233028412,
0.01891840621829033,
0.006695304997265339,
0.010579057969152927,
-0.002051479648798704,
0.023235805332660675,
0.013762306421995163,
0.03604504466056824,
-0.0002939620171673596,
0.05905211344361305,
-0.014905988238751888,
0.03499666973948479,
-0.020471908152103424,
-0.03604504466056824,
-0.029545117169618607,
0.016507143154740334,
-0.05154193565249443,
0.009749888442456722,
-0.024589162319898605,
-0.017974868416786194,
-0.028592050075531006,
0.019785698503255844,
0.002952129114419222,
0.012103967368602753,
0.08234510570764542,
0.011189022101461887,
0.006547579076141119,
0.03385298699140549,
0.0016821655444800854,
-0.026342807337641716,
0.020109741017222404,
-0.01838468760251999,
-0.05886149778962135,
-0.06553297489881516,
-0.0864623561501503,
0.007019347976893187,
-0.03934266045689583,
0.03604504466056824,
0.003202309599146247,
-0.04548041895031929,
0.007681730668991804,
0.002176569774746895,
-0.006776315625756979,
-0.020281294360756874,
-0.014705844223499298,
-0.022759271785616875,
-0.014905988238751888,
-0.005627868231385946,
-0.025332555174827576,
0.03314771503210068,
-0.009892849251627922,
0.023788584396243095,
0.04208749532699585,
0.020147863775491714,
0.005756532773375511,
-0.03850395977497101,
-0.0004929150454699993,
0.05211377516388893,
-0.006075810641050339,
-0.0776941254734993,
0.04772965982556343,
0.04910207912325859,
0.0738818570971489,
0.03295710310339928,
-0.05188503861427307,
0.016183100640773773,
0.009459203109145164,
-0.1303035020828247,
0.01604013890028,
-0.012818768620491028,
-0.04204937443137169,
-0.007352922111749649,
0.11993411928415298,
0.012561440467834473,
-0.00883017759770155,
0.004064836539328098,
-0.028420496731996536,
0.06275001913309097,
-0.00032523454865440726,
-0.008420358411967754,
-0.04776778444647789,
-0.0016333208186551929,
0.028916092589497566,
0.05989081412553787,
-0.03865645080804825,
0.06000518053770065,
0.03333833068609238,
0.010579057969152927,
0.005327651742845774,
0.00045181394671089947,
-0.006943102460354567,
-0.020471908152103424,
-0.0027472192887216806,
0.013304833322763443,
0.03949515148997307,
-0.03808461129665375,
-0.0011246205540373921,
0.021081870421767235,
0.020795950666069984,
0.0036073634400963783,
0.021444037556648254,
0.021653711795806885,
-0.020090680569410324,
-0.04166814684867859,
-0.019957249984145164,
-0.013447794131934643,
0.03202309459447861,
0.0031498908065259457,
0.012408949434757233,
-0.020395662635564804,
0.009263823740184307,
0.03585442900657654,
-0.00901126116514206,
-0.021310606971383095,
-0.024684470146894455,
-0.009497325867414474,
0.01907089725136757,
0.0069955214858055115,
0.012923606671392918,
-0.05501110106706619,
-0.0027710460126399994,
0.0895121768116951,
-0.016793062910437584,
-0.027772409841418266,
0.04994077980518341,
0.014248371124267578,
-0.05935709550976753,
0.03991449996829033,
0.012399418279528618,
-0.021977754309773445,
-0.005584980361163616,
-0.0005474186036735773,
0.03148937597870827,
0.007233788259327412,
-0.04647161066532135,
0.03219464793801308,
-0.03187060356140137,
0.014315086416900158,
-0.019671330228447914,
0.03751276805996895,
0.016068732365965843,
-0.10468502342700958,
0.011989599093794823,
0.060958247631788254,
0.007281441707164049,
-0.026743097230792046,
0.04521356150507927,
-0.007829456590116024,
-0.0067477235570549965,
0.0736912414431572,
0.027143385261297226,
-0.0031332119833678007,
-0.04174439236521721,
0.029869161546230316,
-0.05485861375927925,
0.0377986878156662,
0.01607826165854931,
-0.030536308884620667,
-0.04631911963224411,
-0.014362739399075508,
0.013438262976706028,
-0.04925457015633583,
0.0027067139744758606,
-0.06275001913309097,
0.028344251215457916,
0.06732474267482758,
0.05424864962697029,
0.020910318940877914,
-0.04822525754570961,
0.01939493976533413,
-0.05699348449707031,
-0.028916092589497566,
0.03661688417196274,
-0.0005563536542467773,
-0.0071289511397480965,
-0.025065695866942406,
0.007100359071046114,
0.0018966059433296323,
0.05211377516388893,
-0.03461544215679169,
-0.07380560785531998,
0.024493856355547905,
-0.007281441707164049,
0.03387204930186272,
-0.016831185668706894,
-0.024131689220666885,
0.012380356900393963,
0.01645948924124241,
-0.03343363478779793,
0.009044618345797062,
-0.019957249984145164,
-0.030021652579307556,
0.008082019165158272,
-0.006194944027811289,
0.029773853719234467,
-0.06191131845116615,
0.030688799917697906,
-0.04418424516916275,
-0.021844325587153435,
0.03343363478779793,
-0.0020109741017222404,
0.003314295085147023,
-0.028553927317261696,
-0.0034238980151712894,
-0.016697756946086884,
-0.028363313525915146,
0.001689313561655581,
0.007105124182999134,
-0.029392626136541367,
-0.04284995049238205,
-0.06545673310756683,
-0.04048634320497513,
-0.028134576976299286,
0.05234251171350479,
0.025580354034900665,
0.006333138793706894,
-0.023254867643117905,
-0.01926151104271412,
0.05924272537231445,
-0.012513786554336548,
-0.05497298017144203,
-0.022835517302155495,
-0.019042305648326874,
-0.06076763570308685,
-0.04708157479763031,
0.03240432217717171,
-0.005203752778470516,
-0.07125138491392136,
-0.022339921444654465,
-0.019423531368374825,
-0.04833962395787239,
0.04765341430902481,
-0.021405914798378944,
-0.014610537327826023,
0.005584980361163616,
0.01764129474759102,
0.024169811978936195,
-0.021424975246191025,
0.010760141536593437,
0.0009947650833055377,
0.023864829912781715,
-0.0017941511468961835,
0.016888370737433434,
-0.04281182959675789,
0.03753183037042618,
-0.028973275795578957,
0.0637793317437172,
0.04250684753060341,
-0.05337182432413101,
0.012809238396584988,
0.028115514665842056,
0.04300244152545929,
0.007886640727519989,
-0.005418193526566029,
0.03878987953066826,
0.031089087948203087,
-0.01733631268143654,
-0.03434858098626137,
-0.01929963380098343,
-0.021310606971383095,
-0.05150381103157997,
0.027448367327451706,
-0.03305240720510483,
0.0715944916009903,
0.029716670513153076,
-0.024684470146894455,
-0.04136316478252411,
0.03652157634496689,
-0.010531404986977577,
0.01857530139386654,
0.009106568060815334,
-0.01771754026412964,
-0.03667406737804413,
0.005442020017653704,
0.05592604726552963,
-0.05001702532172203,
0.017898622900247574,
0.014400862157344818,
-0.028744541108608246,
-0.009921440854668617,
-0.05989081412553787,
-0.007176604587584734,
-0.04105818271636963,
-0.04753904789686203,
0.06309312582015991,
-0.03524446487426758,
0.006533283274620771,
-0.027200570330023766,
-0.05790843069553375,
0.04456547275185585,
-0.029602302238345146,
-0.06907839328050613,
0.011150899343192577,
0.04319305717945099,
0.024875082075595856,
0.01899465173482895,
-0.07437744736671448,
-0.009092271327972412,
-0.0643511712551117,
-0.03394829481840134,
-0.0004098193603567779,
-0.028611110523343086,
0.0021896744146943092,
0.014839273877441883,
0.07571174949407578,
-0.027600858360528946,
0.01939493976533413,
-0.020529091358184814,
-0.04185875877737999,
-0.008834943175315857,
-0.002663825871422887,
0.05588792636990547,
-0.020719705149531364,
-0.009044618345797062,
-0.04262121394276619,
0.012647216208279133,
0.03690280392765999,
-0.013543101027607918,
-0.007843752391636372,
-0.010702957399189472,
0.031603746116161346,
-0.04041009768843651,
-0.0030974720139056444,
0.04254496842622757,
0.0349394828081131,
-0.03472980856895447,
0.023902952671051025,
-0.0068239690735936165,
-0.013714653439819813,
0.06945961713790894,
0.07685542851686478,
-0.026075949892401695,
0.05325745791196823,
-0.023102376610040665,
-0.020205048844218254,
-0.05367680639028549,
0.04113442823290825,
-0.019251979887485504,
-0.006485629826784134,
0.0031880135647952557,
-0.005222814157605171,
-0.01640230603516102,
0.010455159470438957,
-0.009873787872493267,
0.0002117598633049056,
0.0759786069393158,
0.01897558942437172,
0.061339475214481354,
-0.016888370737433434,
0.004748662933707237,
0.023674216121435165,
-0.03560663387179375,
-0.0016642955597490072,
0.05577355623245239,
-0.03636908531188965,
-0.007581658195704222,
0.0038194211665540934,
0.005017904564738274,
-0.0013700356939807534,
-0.006966929417103529,
-0.0011603606399148703,
0.09690798819065094,
0.029221074655652046,
0.019023243337869644,
-0.04875897616147995,
0.04296432062983513,
0.04441298171877861,
-0.04498482495546341,
-0.04323117807507515,
-0.010798264294862747,
-0.020166926085948944,
-0.022568657994270325,
0.011341513134539127,
0.03261399641633034,
0.061339475214481354,
-0.028096454218029976,
-0.0385611429810524,
-0.005318121053278446,
-0.05668850243091583,
-0.0068430304527282715,
0.04513731598854065,
-0.05409615859389305,
0.07037456333637238,
0.008053427562117577,
0.032366201281547546,
0.06496113538742065,
0.07334813475608826,
-0.004102959297597408,
-0.04837774857878685,
0.027715226635336876,
0.007124185562133789,
-0.07552113384008408,
-0.015668442472815514,
0.008487073704600334,
-0.04586164653301239,
-0.03261399641633034,
0.03432952240109444,
-0.006032922305166721,
0.006762019824236631,
-0.04029572755098343,
-0.07132763415575027,
-0.04898771271109581,
-0.022663963958621025,
-0.06808719784021378,
-0.024627285078167915,
-0.012456602416932583,
0.04326930269598961,
-0.025370677933096886,
-0.04689095914363861,
0.06038640812039375,
-0.03633096441626549,
-0.013829020783305168,
-0.06869716197252274,
-0.006571406032890081,
-0.03991449996829033,
-0.01937587931752205,
-0.03699811175465584,
-0.04521356150507927,
-0.008854004554450512,
-0.010798264294862747,
0.007271911017596722,
-0.0067477235570549965,
-0.08463246375322342,
0.05596417188644409,
-0.05992893502116203,
0.031451255083084106,
0.03434858098626137,
0.03638814762234688,
0.04056258872151375,
0.05596417188644409,
-0.01745068095624447,
-0.01929963380098343,
0.0049559553153812885,
-0.04833962395787239,
-0.024150751531124115,
0.06324560940265656,
0.023331113159656525,
0.020567214116454124,
-0.022130245342850685,
-0.01920432597398758,
0.04471796378493309,
0.06526611745357513,
0.020586276426911354,
-0.0033119122963398695,
-0.04143941029906273,
-0.001007869723252952,
-0.08127766847610474,
0.0023397826589643955,
-0.017383966594934464,
0.008620502427220345,
0.010540935210883617,
0.04414612427353859,
-0.024875082075595856,
-0.019499776884913445,
0.005279998295009136,
0.05123695358633995,
-0.04647161066532135,
-0.015801873058080673,
0.011875230818986893,
0.023102376610040665,
0.014162595383822918,
0.05798467621207237,
-0.005113211460411549,
0.04368865117430687,
0.05055074393749237,
-0.011331981979310513,
0.03238525986671448,
-0.023559847846627235,
0.00041815871372818947,
0.008301224559545517,
0.020815011113882065,
0.04067695513367653,
0.023883892223238945,
-0.020681582391262054,
-0.008272632956504822,
0.015515952371060848,
0.07738914340734482,
-0.05428677052259445,
0.05306684225797653,
0.020586276426911354,
0.04940706118941307,
0.08592864125967026,
0.0012556675355881453,
0.030364755541086197,
-0.006628590170294046,
-0.023464541882276535,
-0.008105846121907234,
0.029087644070386887,
0.0700695812702179,
0.05527796223759651,
0.010559996590018272,
-0.016354652121663094,
-0.011074653826653957,
0.04044821858406067,
0.07513990253210068,
0.030974719673395157,
-0.05344806984066963,
-0.007953355088829994,
-0.011617902666330338,
0.006971694529056549,
0.06290251016616821,
-0.0006147290696389973,
-0.001766750356182456,
0.010188300162553787,
0.008811116218566895,
0.01647855155169964,
-0.0010894761653617024,
-0.0020312268752604723,
-0.006681008730083704,
0.004029096104204655,
-0.004889240488409996,
0.06484676897525787,
-0.008158264681696892,
-0.0757879912853241,
-0.06061514467000961,
-0.005437254905700684,
-0.06069139018654823,
-0.030021652579307556,
0.06381745636463165,
0.04582352563738823,
-0.03614034876227379,
-0.0005328247789293528,
-0.001920432667247951,
-0.027314938604831696,
-0.01746974140405655,
0.002873501041904092,
-0.010569527745246887,
0.026990894228219986,
0.014515230432152748,
0.05565918982028961,
-0.09301947057247162,
-0.04609038308262825,
0.016449959948658943,
0.05405803397297859,
-0.010007217526435852,
0.012732992880046368,
-0.03366237133741379,
-0.021405914798378944,
0.022473350167274475,
0.021405914798378944,
0.0007469672709703445,
-0.0008678878075443208,
0.04281182959675789,
-0.009583101607859135,
0.016602449119091034,
-0.03377674147486687,
-0.005689817946404219,
-0.025446923449635506,
0.031375009566545486,
-0.014963172376155853,
0.03795117884874344,
-0.005570684093981981,
0.020853133872151375,
0.04079132527112961,
-0.05169442668557167,
0.03840865194797516,
-0.009883318096399307,
0.04395550861954689,
0.0004279872518964112,
0.04475608840584755,
-0.014639128930866718,
-0.012513786554336548,
0.06313124299049377,
0.029411688446998596,
-0.09972906857728958,
0.020700642839074135,
-0.016526203602552414,
-0.021825265139341354,
-0.019518839195370674,
-0.0024362809490412474,
0.023083314299583435,
0.06782034039497375,
0.012132559902966022,
0.04605226218700409,
0.019766636192798615,
-0.00809631496667862,
-0.009463968686759472,
-0.07361499965190887,
0.04185875877737999,
-0.00005848712316947058,
-0.04689095914363861,
0.05901398882269859,
0.026114070788025856,
0.05596417188644409,
0.029068583622574806,
0.04677659273147583,
0.004405558109283447,
0.003990973345935345,
0.0010162091348320246,
0.07780849933624268,
0.0015987721271812916,
0.04978828877210617,
0.0043793488293886185,
0.005737471394240856,
-0.023636093363165855,
0.006075810641050339,
-0.022111184895038605,
-0.04513731598854065,
-0.04487045481801033,
0.05203752964735031,
0.017593640834093094,
0.013504978269338608,
-0.03869457170367241,
-0.05996705964207649,
0.07982899993658066,
-0.026819342747330666,
-0.027467427775263786,
-0.0025137176271528006,
0.04532792791724205,
0.0071909003891050816,
0.0043031033128499985,
0.04410799965262413,
-0.004250684753060341,
-0.06713413447141647,
0.03442482650279999,
0.002773428801447153,
-0.05089384689927101,
-0.027924900874495506,
0.04094381630420685,
-0.022492412477731705,
-0.05958583205938339,
-0.05207565426826477,
-0.03865645080804825,
0.05535420775413513,
0.013314364477992058,
0.027353061363101006,
0.020719705149531364,
-0.01716476120054722,
0.013600285165011883,
-0.03263305872678757,
-0.025904396548867226,
-0.0374174602329731,
-0.05047449842095375,
-0.026666851714253426,
-0.03219464793801308,
0.06442742049694061,
0.05905211344361305,
0.03743652254343033,
-0.0898934006690979,
-0.020109741017222404,
0.006547579076141119,
0.07334813475608826,
-0.01586858741939068,
-0.025370677933096886,
0.016164038330316544,
0.04380302131175995,
0.008348878473043442,
0.03467262536287308,
0.006266423966735601,
-0.029983529821038246,
-0.0853186771273613,
-0.023998260498046875,
-0.021691834554076195,
-0.015725627541542053,
0.013609815388917923,
0.018184542655944824,
-0.005437254905700684,
0.01619262993335724,
-0.028096454218029976,
0.01859436184167862,
-0.024703530594706535,
0.0698789656162262,
0.014620067551732063,
0.026781219989061356,
-0.019423531368374825,
-0.0775035172700882,
0.009416314773261547,
0.014782089740037918,
-0.0024755948688834906,
0.04155377671122551,
0.027295876294374466,
-0.03499666973948479,
0.04708157479763031,
0.026476237922906876,
-0.08371751755475998,
-0.03953327238559723,
0.017002739012241364,
0.023331113159656525,
0.05192316323518753,
0.03734121471643448,
-0.002604259178042412,
0.0033238257747143507,
0.018337033689022064,
0.08829224854707718,
0.03202309459447861,
0.028782663866877556,
0.009321007877588272,
0.0914183109998703,
0.01764129474759102,
-0.05825153365731239,
0.030460063368082047
] |
10,231 | collections | defaultdict | defaultdict(default_factory=None, /, [...]) --> dict with default factory
The default factory is called without arguments to produce
a new value when a key is not present, in __getitem__ only.
A defaultdict compares equal to a dict with the same items.
All remaining arguments are treated the same as if they were
passed to the dict constructor, including keyword arguments.
| from collections import defaultdict
| null | [
0.03538532927632332,
-0.0009363215649500489,
-0.028318433091044426,
0.005113756284117699,
-0.006761851720511913,
0.02179383859038353,
-0.017777400091290474,
-0.02282760478556156,
0.07802397757768631,
-0.023641061037778854,
-0.04535016417503357,
-0.014642205089330673,
-0.04335041716694832,
-0.02770834043622017,
0.0540609210729599,
0.002100368496030569,
0.0012869125930592418,
0.08724313974380493,
-0.05399313196539879,
0.019590727984905243,
0.009532686322927475,
-0.0512138269841671,
0.01673515886068344,
0.027132142335176468,
-0.03363978862762451,
0.03380925953388214,
0.03894419968128204,
-0.057382531464099884,
0.000807100732345134,
0.006079735234379768,
-0.03806295618414879,
-0.02936914563179016,
-0.03955429047346115,
-0.014981145039200783,
0.02487819269299507,
0.005503537133336067,
0.007850696332752705,
0.05338304117321968,
-0.022963181138038635,
0.01735372468829155,
0.028521796688437462,
-0.056026771664619446,
-0.07300766557455063,
-0.033436425030231476,
0.03123331628739834,
0.06914374977350235,
0.04033385217189789,
0.026166163384914398,
0.05507773905992508,
-0.04718044027686119,
-0.04728212207555771,
-0.0455196350812912,
0.014854042790830135,
0.006100919097661972,
-0.0552133172750473,
0.007693936582654715,
0.008914120495319366,
-0.001136507955379784,
-0.041452355682849884,
0.07693936675786972,
-0.0016819894080981612,
0.006910138297826052,
0.05270516127347946,
-0.020166926085948944,
-0.0330127514898777,
0.021234586834907532,
-0.04091005027294159,
-0.0009093123371712863,
-0.026928778737783432,
0.010600347071886063,
-0.018590856343507767,
-0.02521713264286518,
-0.015074353665113449,
-0.006050078198313713,
0.08676862716674805,
0.0603313110768795,
-0.007761724758893251,
-0.023471590131521225,
0.05900944396853447,
-0.05595898628234863,
-0.020760072395205498,
0.004154132679104805,
-0.02299707569181919,
0.01666737161576748,
0.040435533970594406,
0.028894629329442978,
0.032284028828144073,
0.06988941878080368,
-0.0023386855609714985,
-0.0016989364521577954,
-0.029284410178661346,
0.013786382041871548,
0.03480913117527962,
0.07992203533649445,
-0.025979746133089066,
0.020133033394813538,
-0.010193618945777416,
-0.03799516707658768,
-0.014532050117850304,
-0.03431766852736473,
0.010058042593300343,
-0.02879294753074646,
-0.04389272257685661,
-0.04514680057764053,
-0.05948396027088165,
-0.03465661033987999,
0.03438545763492584,
-0.0011937040835618973,
0.02726771868765354,
0.054094813764095306,
-0.08866669237613678,
-0.04036774858832359,
0.0032008641865104437,
0.0002674447896424681,
0.002963606035336852,
-0.038334108889102936,
-0.006791509222239256,
-0.004005846567451954,
-0.011735795065760612,
0.032860226929187775,
-0.0608736127614975,
0.016133541241288185,
-0.034232933074235916,
0.016006438061594963,
-0.011549378745257854,
-0.0409778393805027,
0.029504721984267235,
0.013735541142523289,
0.07775282114744186,
0.017370672896504402,
0.04514680057764053,
-0.004401982296258211,
-0.03535143658518791,
0.007931194268167019,
0.048570092767477036,
-0.07734609395265579,
0.008270134218037128,
0.009549632668495178,
0.039283137768507004,
0.03248739242553711,
0.015964072197675705,
-0.048231154680252075,
0.04080836847424507,
0.0113799087703228,
0.008371816948056221,
-0.0626022070646286,
0.00537643488496542,
0.00821929331868887,
-0.0649069994688034,
0.017175782471895218,
-0.034046515822410583,
-0.01677752658724785,
0.0014966316521167755,
-0.02765749953687191,
-0.025844169780611992,
-0.008664152584969997,
-0.024335887283086777,
-0.08663304895162582,
0.009295428171753883,
-0.021929414942860603,
0.021031223237514496,
-0.03863915428519249,
-0.0025526415556669235,
0.0011629876680672169,
-0.0014447314897552133,
0.018862007185816765,
0.0012911492958664894,
-0.00006831758219050243,
-0.006647459696978331,
-0.03204677253961563,
-0.04250307008624077,
-0.03772401437163353,
-0.06436469405889511,
0.024454517289996147,
0.0012943268520757556,
-0.014142269268631935,
-0.02372579649090767,
0.06263609975576401,
0.0013462271308526397,
0.04450281336903572,
0.03677498549222946,
-0.00036753801396116614,
-0.03562258929014206,
0.010371562093496323,
0.0005065563600510359,
0.00978689081966877,
0.05731474608182907,
0.04423166438937187,
0.03921535238623619,
0.0024340124800801277,
0.024962926283478737,
-0.04477396607398987,
-0.022064989432692528,
0.0016608057776466012,
0.04172350838780403,
-0.002081303158774972,
-0.05195949226617813,
0.03738507628440857,
-0.048909034579992294,
0.02065838873386383,
-0.0489429272711277,
-0.049485232681035995,
0.014074481092393398,
0.009685209020972252,
0.029436934739351273,
0.036842770874500275,
-0.033097486943006516,
-0.012710248120129108,
-0.03806295618414879,
0.039520397782325745,
0.030250389128923416,
-0.04158793017268181,
-0.03238571062684059,
-0.005800109822303057,
0.023810530081391335,
-0.08358258754014969,
0.0056475866585969925,
0.0033999911975115538,
-0.023200439289212227,
-0.022098883986473083,
0.004990890622138977,
-0.04457060247659683,
0.05867050588130951,
0.006778798997402191,
0.028996312990784645,
-0.022725922986865044,
0.0073888907209038734,
-0.016303012147545815,
0.005935685709118843,
-0.03521585837006569,
0.09680125117301941,
-0.06450027227401733,
-0.011905265040695667,
-0.005003600846976042,
0.042536962777376175,
-0.04619751498103142,
0.012735668569803238,
-0.018082445487380028,
0.035080283880233765,
-0.014167689718306065,
0.04426555708050728,
0.0293013583868742,
0.01561665814369917,
0.036842770874500275,
-0.02343769744038582,
0.0029657245613634586,
0.02167520858347416,
0.029555562883615494,
-0.01041392982006073,
-0.007147395983338356,
-0.01981103979051113,
0.002726348116993904,
0.02908104658126831,
-0.036334361881017685,
0.03589373826980591,
-0.06250052899122238,
-0.08087106794118881,
0.02138710953295231,
-0.0008155742543749511,
-0.05026479437947273,
0.04355378448963165,
0.041791293770074844,
0.040096595883369446,
0.015328559093177319,
-0.055450573563575745,
0.036266572773456573,
0.022454770281910896,
0.0119561068713665,
-0.06321229785680771,
0.05094267427921295,
0.1308986097574234,
-0.03279243782162666,
0.08995465934276581,
-0.05246790498495102,
-0.008164215832948685,
0.03397873044013977,
0.008469262160360813,
0.033368635922670364,
0.005482353735715151,
0.06009405106306076,
-0.026844043284654617,
-0.015328559093177319,
-0.059958476573228836,
-0.005579798948019743,
-0.010032622143626213,
0.07504130154848099,
-0.05684022977948189,
-0.005622166208922863,
-0.02936914563179016,
0.0012106511276215315,
0.017557088285684586,
-0.0014616785338148475,
-0.04741769656538963,
0.012167943641543388,
-0.00879549141973257,
0.027386346831917763,
0.012210311368107796,
-0.027979493141174316,
0.09815701097249985,
0.04921407997608185,
-0.04775663837790489,
0.01804855279624462,
0.023810530081391335,
0.010329194366931915,
-0.04233359917998314,
-0.034046515822410583,
0.03328390419483185,
-0.012235731817781925,
0.011939159594476223,
-0.03350421413779259,
-0.0421302355825901,
0.028250643983483315,
-0.00902427639812231,
0.053857557475566864,
-0.008956488221883774,
0.0020452907774597406,
-0.05148497596383095,
0.022115832194685936,
0.023319067433476448,
0.08290471136569977,
-0.04545184597373009,
-0.009930940344929695,
-0.041859082877635956,
-0.008524339646100998,
0.019031478092074394,
-0.049654699862003326,
0.057619791477918625,
-0.007698173634707928,
0.061720963567495346,
0.07138074934482574,
-0.03397873044013977,
-0.05395923927426338,
0.011210438795387745,
0.04694318026304245,
-0.06538151204586029,
0.030911322683095932,
0.04240138828754425,
-0.02886073663830757,
-0.027182983234524727,
-0.04975638538599014,
-0.040842264890670776,
0.006389018148183823,
-0.045045118778944016,
-0.0060712615959346294,
0.004745159298181534,
-0.03850357607007027,
0.0014013048494234681,
-0.020861754193902016,
0.045553527772426605,
-0.019505994394421577,
0.0063932547345757484,
0.012210311368107796,
0.005948395933955908,
0.05219675227999687,
0.057619791477918625,
0.032470446079969406,
-0.018523067235946655,
-0.06328009068965912,
0.02053976058959961,
-0.006367834284901619,
0.029691139236092567,
-0.006164470221847296,
-0.006401728373020887,
0.013049188069999218,
0.0438249334692955,
0.02350548468530178,
-0.05189170688390732,
0.010922339744865894,
0.06016184017062187,
-0.0603313110768795,
-0.008121848106384277,
0.024996820837259293,
0.001673516002483666,
-0.027233824133872986,
0.01701478473842144,
-0.018234968185424805,
-0.024945979937911034,
0.08263355493545532,
-0.07131296396255493,
-0.0011884081177413464,
-0.05114603787660599,
0.029555562883615494,
-0.0033999911975115538,
0.032351817935705185,
-0.04626530036330223,
-0.011684954166412354,
0.05331525206565857,
0.005986526608467102,
0.020234715193510056,
0.04172350838780403,
-0.01843833364546299,
0.02106511779129505,
-0.017963817343115807,
-0.008503155782818794,
-0.009346269071102142,
-0.013040713965892792,
0.0026119558606296778,
-0.05616234987974167,
-0.06300893425941467,
-0.009354742243885994,
0.060060158371925354,
-0.03043680638074875,
-0.004940049722790718,
0.04809557646512985,
-0.04518069326877594,
-0.021302375942468643,
0.01345591526478529,
-0.02184467948973179,
0.002993263304233551,
-0.021810784935951233,
0.015921704471111298,
-0.02287844568490982,
-0.006927085109055042,
-0.07653263956308365,
0.005452696233987808,
-0.01502351276576519,
-0.00765580590814352,
0.00441045593470335,
0.05541668087244034,
-0.012769562192261219,
0.010549506172537804,
-0.05195949226617813,
-0.04470617696642876,
0.037927377969026566,
0.003347032004967332,
-0.023234333842992783,
-0.04707875847816467,
0.01582002267241478,
-0.0597551129758358,
-0.05785704776644707,
-0.007469389121979475,
-0.002442485885694623,
0.04701096937060356,
-0.09605558216571808,
0.03341947868466377,
-0.0014966316521167755,
0.02669152058660984,
-0.005745031870901585,
0.03785959258675575,
-0.008664152584969997,
0.03748675808310509,
0.02201414853334427,
-0.01735372468829155,
-0.022793710231781006,
0.08459941297769547,
0.02469177544116974,
-0.07802397757768631,
0.01906537264585495,
-0.0006609329138882458,
-0.04050332307815552,
0.042367491871118546,
-0.0666017010807991,
0.050739310681819916,
-0.000807100732345134,
0.035758163779973984,
0.008939540944993496,
-0.05978900566697121,
0.016599584370851517,
0.046468667685985565,
0.023234333842992783,
0.056026771664619446,
-0.008320976048707962,
0.06626275926828384,
0.06341566145420074,
-0.05626403167843819,
0.008685336448252201,
-0.006744904909282923,
0.013464389368891716,
-0.008003219030797482,
-0.009481844492256641,
0.06016184017062187,
-0.006876244209706783,
-0.037927377969026566,
-0.09863152354955673,
-0.039011988788843155,
0.014235477894544601,
0.04507901147007942,
-0.030657118186354637,
0.046739816665649414,
-0.009676734916865826,
0.03197898343205452,
-0.03272465243935585,
0.015896283090114594,
-0.039588186889886856,
-0.029623350128531456,
-0.010329194366931915,
0.02345464378595352,
-0.06694063544273376,
-0.038435790687799454,
0.02719992958009243,
-0.059958476573228836,
-0.001131212105974555,
0.00941405724734068,
0.0042939456179738045,
0.09707240015268326,
0.033826205879449844,
0.017438460141420364,
0.011108756996691227,
-0.008880226872861385,
0.013888063840568066,
0.028657373040914536,
-0.02686098963022232,
-0.01083760429173708,
0.0008277549059130251,
0.012134050019085407,
-0.0013896537711843848,
-0.034690503031015396,
-0.014548997394740582,
-0.02679320238530636,
-0.01504893321543932,
-0.009117484092712402,
-0.005528958048671484,
-0.0026161926798522472,
0.022488664835691452,
0.02225140668451786,
-0.010998601093888283,
-0.043282631784677505,
-0.02867431938648224,
-0.02879294753074646,
0.007876116782426834,
-0.00779561884701252,
0.058128200471401215,
0.015379399992525578,
-0.033097486943006516,
-0.01175274234265089,
0.04962080717086792,
-0.005541668273508549,
-0.01203236822038889,
-0.017946869134902954,
0.053247466683387756,
-0.023200439289212227,
-0.01234588772058487,
-0.038605257868766785,
0.03592763468623161,
-0.0105240847915411,
0.04694318026304245,
0.02601364068686962,
-0.019048424437642097,
-0.029979238286614418,
-0.000010591873433440924,
0.05043426528573036,
0.0005973816732876003,
0.04392661526799202,
-0.022675082087516785,
0.06802524626255035,
0.09381857514381409,
-0.05883997306227684,
-0.02031944878399372,
-0.0119561068713665,
-0.03289411962032318,
-0.06250052899122238,
0.022115832194685936,
-0.005817056633532047,
-0.029148835688829422,
0.0008658856386318803,
-0.04165571928024292,
0.002332330448552966,
-0.054772693663835526,
0.07361775636672974,
-0.0016872853739187121,
0.04206244647502899,
0.011244332417845726,
-0.024742616340517998,
0.000060208178183529526,
-0.0029678428545594215,
-0.01343049481511116,
-0.02481040358543396,
0.04904460906982422,
-0.01070202887058258,
-0.006338176783174276,
-0.03718171268701553,
-0.05080709606409073,
-0.046739816665649414,
-0.02753886952996254,
-0.0202008206397295,
0.0791085809469223,
-0.033097486943006516,
-0.013049188069999218,
-0.016938524320721626,
-0.03894419968128204,
-0.0688387006521225,
0.026776256039738655,
0.0597551129758358,
-0.014269371517002583,
0.04785832017660141,
-0.01402364019304514,
-0.015142141841351986,
-0.016599584370851517,
-0.06304282695055008,
0.01969240978360176,
-0.052840735763311386,
-0.022319195792078972,
0.024962926283478737,
0.021522685885429382,
-0.025979746133089066,
-0.009278480894863605,
-0.01940431259572506,
0.04450281336903572,
-0.03785959258675575,
-0.024217259138822556,
-0.0029508958104997873,
-0.02379358373582363,
-0.04013048857450485,
0.0517900250852108,
0.04385882988572121,
0.0027432951610535383,
0.0034593057353049517,
-0.030182601884007454,
-0.005033258348703384,
0.0055459048599004745,
-0.04443502798676491,
0.008384526707231998,
0.031724777072668076,
0.0032135744113475084,
-0.00941405724734068,
-0.0273185595870018,
0.046807605773210526,
-0.02116679958999157,
-0.03511417657136917,
0.006528830621391535,
0.017277464270591736,
0.008803964592516422,
0.008541286922991276,
0.0011640468146651983,
-0.002055882476270199,
-0.028182856738567352,
-0.020471973344683647,
-0.011532431468367577,
0.04067279398441315,
0.016362326219677925,
-0.014091428369283676,
0.011235859245061874,
0.07131296396255493,
-0.010956233367323875,
-0.006401728373020887,
0.06666948646306992,
0.01559123769402504,
0.000028250511604710482,
-0.017658771947026253,
0.08276913315057755,
-0.031046899035573006,
-0.017997710034251213,
0.011312120594084263,
-0.019031478092074394,
0.016531795263290405,
0.01598949171602726,
0.011896791867911816,
0.009041222743690014,
0.03579205647110939,
-0.007274498697370291,
-0.020692283287644386,
-0.024996820837259293,
-0.009202219545841217,
-0.012235731817781925,
-0.010905392467975616,
0.017116466537117958,
-0.012498410418629646,
-0.015955597162246704,
-0.04477396607398987,
-0.012989873066544533,
-0.015633605420589447,
-0.013625385239720345,
0.008066770620644093,
-0.048163365572690964,
0.0216243676841259,
0.003395754611119628,
-0.015794601291418076,
0.00550777418538928,
-0.010396982543170452,
0.00235351431183517,
0.009168324992060661,
-0.023183492943644524,
0.06385628879070282,
-0.01981103979051113,
-0.008803964592516422,
-0.024268100038170815,
0.016175908967852592,
0.07192305475473404,
0.010651187971234322,
-0.038266319781541824,
0.07429563254117966,
0.03147057443857193,
0.006164470221847296,
0.024200312793254852,
-0.020760072395205498,
0.032012876123189926,
-0.02140405774116516,
-0.042875904589891434,
-0.0033216115552932024,
-0.0015633604489266872,
0.0449434369802475,
-0.04701096937060356,
0.014498156495392323,
-0.0016661016270518303,
-0.06890649348497391,
0.06988941878080368,
-0.02292928658425808,
-0.006355124060064554,
0.0153624527156353,
-0.006859296932816505,
0.03745286539196968,
0.03596152737736702,
0.0071304491721093655,
0.009769943542778492,
0.008545523509383202,
-0.011515484191477299,
-0.024386728182435036,
0.04853620007634163,
0.0012636104365810752,
0.017285937443375587,
0.009329321794211864,
0.05331525206565857,
-0.009668261744081974,
0.013294919393956661,
0.018014658242464066,
-0.001166165224276483,
0.014743887819349766,
0.0364360436797142,
-0.010134303942322731,
0.014328686520457268,
0.043960511684417725,
0.028877682983875275,
0.0671439990401268,
0.04175740107893944,
-0.032182347029447556,
0.009956360794603825,
0.037418968975543976,
-0.05114603787660599,
-0.07260093837976456,
0.020387237891554832,
-0.01667584478855133,
0.0381307452917099,
-0.048400625586509705,
0.06975384056568146,
-0.013464389368891716,
-0.010668134316802025,
-0.006308519747108221,
0.008787018246948719,
-0.02679320238530636,
0.04768884927034378,
-0.01838749274611473,
-0.055620044469833374,
-0.00037574669113382697,
0.08575180917978287,
0.013599964790046215,
-0.10690166056156158,
0.09815701097249985,
0.01371859386563301,
-0.06280557066202164,
0.004931576084345579,
-0.005783162545412779,
0.030369019135832787,
0.012439096346497536,
0.026962673291563988,
-0.04294368997216225,
-0.03904588147997856,
-0.004120238590985537,
-0.03084353543817997,
0.027979493141174316,
-0.015286191366612911,
-0.013786382041871548,
-0.05311188846826553,
-0.045045118778944016,
0.029284410178661346,
-0.04057111218571663,
0.03589373826980591,
0.05951785296201706,
0.03192814439535141
] |
10,233 | pygments.lexers | get_all_lexers | Return a generator of tuples in the form ``(name, aliases,
filenames, mimetypes)`` of all know lexers.
If *plugins* is true (the default), plugin lexers supplied by entrypoints
are also returned. Otherwise, only builtin ones are considered.
| def get_all_lexers(plugins=True):
"""Return a generator of tuples in the form ``(name, aliases,
filenames, mimetypes)`` of all know lexers.
If *plugins* is true (the default), plugin lexers supplied by entrypoints
are also returned. Otherwise, only builtin ones are considered.
"""
for item in LEXERS.values():
yield item[1:]
if plugins:
for lexer in find_plugin_lexers():
yield lexer.name, lexer.aliases, lexer.filenames, lexer.mimetypes
| (plugins=True) | [
0.00017706898506730795,
0.01224664319306612,
0.008353637531399727,
-0.05851062387228012,
0.035464029759168625,
0.047780998051166534,
0.02228306420147419,
0.0035338448360562325,
0.016214998438954353,
0.043762411922216415,
0.00489765265956521,
-0.03156600147485733,
-0.04814267158508301,
0.030842654407024384,
-0.0037146813701838255,
-0.035222914069890976,
-0.03490142896771431,
0.08993597328662872,
0.014989329501986504,
-0.03397715091705322,
-0.037875182926654816,
-0.020484747365117073,
0.007127968594431877,
-0.04348111152648926,
-0.005701370071619749,
0.042918507009744644,
0.03851815685629845,
-0.028431503102183342,
-0.03072209656238556,
0.003785006469115615,
-0.024955425411462784,
0.007725733332335949,
0.04673616588115692,
-0.03351501375436783,
-0.03429863974452019,
-0.05003140866756439,
-0.04299888014793396,
0.0559387281537056,
0.005010675638914108,
0.009147308766841888,
0.08089415729045868,
0.004734397865831852,
0.013251290656626225,
-0.02547784149646759,
-0.0373125784099102,
-0.00667587760835886,
-0.02674369513988495,
0.0005569510394707322,
0.010187117382884026,
-0.046012818813323975,
0.010468418709933758,
-0.0035765422508120537,
0.040366705507040024,
-0.01854577846825123,
0.03068191185593605,
-0.030300145968794823,
0.002172548556700349,
0.0019653402268886566,
0.02901419810950756,
0.011422833427786827,
0.025437654927372932,
-0.030501075088977814,
-0.023830220103263855,
-0.000270312768407166,
0.043561480939388275,
-0.036247655749320984,
-0.014024868607521057,
-0.02802964299917221,
-0.045128729194402695,
0.005209093447774649,
-0.026422208175063133,
-0.030079122632741928,
-0.03331408649682999,
-0.03273139148950577,
0.019118426367640495,
0.014386541210114956,
-0.07161121815443039,
-0.005106117110699415,
0.012116039171814919,
0.00790154654532671,
-0.04432501271367073,
0.008891123346984386,
-0.06289088726043701,
0.06144419312477112,
-0.008243126794695854,
-0.0007089038263075054,
0.029335685074329376,
-0.03415798768401146,
0.01894763670861721,
0.07639333605766296,
-0.018334802240133286,
-0.024915238842368126,
0.0662664994597435,
-0.004578677471727133,
-0.08109508454799652,
0.0031144048552960157,
-0.014386541210114956,
0.03265101835131645,
0.06393571943044662,
0.0106793949380517,
-0.004297376144677401,
0.04681653901934624,
0.000560090527869761,
0.027547413483262062,
0.010990834794938564,
-0.012206457555294037,
-0.030460888519883156,
-0.035805609077215195,
0.08535478264093399,
-0.019570518285036087,
-0.06618613004684448,
-0.0716915875673294,
0.01406505424529314,
0.006399599835276604,
0.006314204540103674,
-0.05272385850548744,
0.0069822948426008224,
0.026763789355754852,
0.013050360605120659,
-0.017390435561537743,
-0.04303906485438347,
0.05187995731830597,
0.010960695333778858,
-0.06550296396017075,
-0.023830220103263855,
-0.017993222922086716,
0.05786764994263649,
-0.026763789355754852,
-0.005555696319788694,
0.04014568403363228,
0.04492780193686485,
0.0681954175233841,
-0.008850937709212303,
-0.04279794916510582,
-0.03727239370346069,
-0.016717322170734406,
0.01959061063826084,
-0.021921390667557716,
-0.018274523317813873,
-0.016677135601639748,
-0.02125832438468933,
-0.020193399861454964,
-0.003199799917638302,
-0.03936205804347992,
-0.04605300724506378,
0.007127968594431877,
0.0016463648062199354,
0.04392315447330475,
0.006545273587107658,
-0.003769936738535762,
0.030119309201836586,
-0.018716568127274513,
-0.011864878237247467,
0.003541379701346159,
-0.0353233776986599,
0.045088544487953186,
-0.051116425544023514,
0.04050735756754875,
-0.009308052249252796,
-0.018887357786297798,
0.001108878874219954,
0.018917497247457504,
-0.060359176248311996,
0.012367201037704945,
0.008850937709212303,
-0.03966345265507698,
-0.045088544487953186,
0.001601155730895698,
0.010438279248774052,
0.02547784149646759,
0.018033409491181374,
-0.03612709790468216,
-0.044003527611494064,
0.0029210103675723076,
0.02806982956826687,
-0.023790035396814346,
-0.0006668342393822968,
0.08374734967947006,
-0.02533719129860401,
0.016225045546889305,
-0.02612081542611122,
-0.013211104087531567,
-0.07349995523691177,
-0.053527578711509705,
0.051960330456495285,
-0.019218891859054565,
0.021559718996286392,
-0.004543514922261238,
-0.04902676120400429,
-0.029817914590239525,
-0.01630541682243347,
-0.004812257830053568,
-0.0011722971685230732,
-0.00132487784139812,
-0.06662817299365997,
0.03130479156970978,
-0.06891876459121704,
-0.008936332538723946,
-0.03520281985402107,
-0.01369333453476429,
-0.046454865485429764,
0.0136230094358325,
-0.010146931745111942,
-0.037372857332229614,
0.0027401738334447145,
-0.025437654927372932,
-0.026442302390933037,
-0.021619997918605804,
-0.012879570946097374,
-0.02085646614432335,
0.05802839621901512,
-0.026884347200393677,
-0.03184730187058449,
0.017440667375922203,
-0.03112395480275154,
-0.004937838762998581,
0.07964839041233063,
0.035122450441122055,
0.02885345369577408,
0.04649505019187927,
0.0004866257659159601,
-0.013301522471010685,
0.0363079309463501,
0.012738920748233795,
0.037031278014183044,
0.002107246546074748,
0.0412307009100914,
-0.009237726218998432,
-0.06827579438686371,
-0.06980285793542862,
0.024774588644504547,
-0.0466156080365181,
-0.024131614714860916,
0.02959689311683178,
-0.021619997918605804,
-0.035504214465618134,
0.04147181659936905,
0.05035289376974106,
0.005771695636212826,
0.06915988028049469,
0.007007410749793053,
0.048182856291532516,
-0.01919879950582981,
0.020936837419867516,
-0.010990834794938564,
0.02296622470021248,
-0.0060228570364415646,
-0.04605300724506378,
-0.008549544028937817,
0.008142661303281784,
0.01742057502269745,
0.0019866889342665672,
0.043561480939388275,
-0.002051990944892168,
0.015551931224763393,
-0.024975517764687538,
-0.0019753866363316774,
-0.011131485924124718,
0.009443678893148899,
-0.05935452878475189,
-0.011543391272425652,
0.05183977261185646,
-0.043119437992572784,
0.03795555233955383,
0.03566495701670647,
-0.035705145448446274,
0.06811504811048508,
-0.0282305721193552,
0.018515639007091522,
-0.019741307944059372,
0.18196161091327667,
0.043521296232938766,
-0.06811504811048508,
0.03176692873239517,
-0.003842773614451289,
0.021539626643061638,
-0.0010699487756937742,
0.07088787108659744,
-0.01160366926342249,
-0.02561849169433117,
0.014215751551091671,
0.07960820943117142,
-0.027989458292722702,
-0.009428609162569046,
0.012316969223320484,
0.016847925260663033,
-0.07382144033908844,
0.02507598139345646,
-0.08567627519369125,
-0.0035614727530628443,
0.09781240671873093,
-0.04000503197312355,
-0.013723473995923996,
-0.08153712749481201,
0.08583701401948929,
-0.01408514752984047,
-0.021579811349511147,
-0.02939596399664879,
0.020113026723265648,
-0.036046724766492844,
0.006660807877779007,
-0.04392315447330475,
0.0076403385028243065,
0.03439910337328911,
-0.020213492214679718,
0.0095692602917552,
-0.03725229948759079,
-0.03112395480275154,
0.004498305730521679,
-0.036046724766492844,
0.005967601668089628,
0.0040838890708982944,
0.029978659003973007,
-0.08326511830091476,
-0.03166646510362625,
-0.04950898885726929,
0.03819666802883148,
-0.021961577236652374,
0.017882712185382843,
0.004269748460501432,
-0.027125461027026176,
0.07647370547056198,
0.055978916585445404,
-0.013271383009850979,
-0.04187367483973503,
0.03687053546309471,
-0.02650258131325245,
-0.001277785049751401,
-0.005063419695943594,
-0.06940099596977234,
-0.0647796243429184,
-0.06490018218755722,
-0.035564493387937546,
0.03916113078594208,
-0.00915233138948679,
0.009343214333057404,
0.018525686115026474,
0.008137638680636883,
0.024754494428634644,
-0.0003758006787393242,
0.026080628857016563,
-0.009267865680158138,
0.0021097580902278423,
0.0035464030224829912,
-0.08414921164512634,
0.020555071532726288,
-0.03494161367416382,
0.00413663312792778,
0.01195529568940401,
0.0628506988286972,
0.0024588729720562696,
-0.06948136538267136,
-0.04299888014793396,
-0.024533472955226898,
0.02248399332165718,
-0.022765295580029488,
-0.027808621525764465,
0.01268868800252676,
0.016466159373521805,
0.014537238515913486,
0.018053501844406128,
0.01879693940281868,
-0.02674369513988495,
0.033354271203279495,
-0.027266113087534904,
-0.10729627311229706,
0.07880449295043945,
-0.014677888713777065,
0.05429111048579216,
-0.031003398820757866,
-0.007851313799619675,
0.02571895532310009,
0.007740803062915802,
-0.013361801393330097,
0.012849431484937668,
-0.028552059084177017,
0.07470553368330002,
0.05682281777262688,
0.016697227954864502,
0.0579078383743763,
-0.006223786622285843,
0.04247646406292915,
0.057948023080825806,
-0.00029935332713648677,
0.02439282275736332,
-0.030661817640066147,
-0.0534873902797699,
0.04255683347582817,
-0.040426984429359436,
0.04323999583721161,
0.02806982956826687,
-0.03841768950223923,
-0.0510360524058342,
0.016918251290917397,
0.005781741812825203,
0.015913603827357292,
-0.024875052273273468,
-0.05344720557332039,
-0.03391687199473381,
-0.026241373270750046,
0.034881334751844406,
-0.03174683824181557,
-0.027406763285398483,
0.03136507049202919,
-0.030541259795427322,
0.012799199670553207,
0.04629412293434143,
0.011794552206993103,
-0.05015196278691292,
-0.026201186701655388,
0.01290971040725708,
-0.019942237064242363,
0.02959689311683178,
-0.04436520114541054,
-0.005194023717194796,
0.018967730924487114,
0.06140400841832161,
0.03170664981007576,
0.02704508975148201,
0.044686686247587204,
0.016847925260663033,
-0.05955545976758003,
-0.0074042463675141335,
0.020394328981637955,
0.06490018218755722,
0.01224664319306612,
-0.06401608884334564,
-0.05167902633547783,
-0.07575036585330963,
-0.041592374444007874,
0.023388175293803215,
-0.06076103448867798,
0.05304534733295441,
-0.04673616588115692,
-0.02296622470021248,
-0.030119309201836586,
-0.01721964403986931,
0.026201186701655388,
-0.030018843710422516,
-0.04147181659936905,
0.05147809907793999,
-0.0018297128845006227,
0.05015196278691292,
0.03455984592437744,
0.07775965332984924,
0.03751350939273834,
0.0037372857332229614,
0.06807485967874527,
-0.006942108739167452,
-0.009167401120066643,
-0.010950649157166481,
-0.030300145968794823,
0.022403622046113014,
-0.005540626589208841,
0.058832112699747086,
0.05585835874080658,
0.008936332538723946,
0.009810375049710274,
-0.05183977261185646,
0.0628105103969574,
0.07193270325660706,
0.005043326411396265,
0.06952155381441116,
0.013391940854489803,
-0.017490899190306664,
0.024232078343629837,
-0.014396587386727333,
0.050835125148296356,
0.01131232175976038,
-0.04894638806581497,
0.010960695333778858,
-0.011382647790014744,
0.011342461220920086,
-0.02405124343931675,
-0.038216762244701385,
-0.0009468795615248382,
0.0045209103263914585,
-0.05123698338866234,
0.02483486756682396,
-0.09122192114591599,
-0.04060782119631767,
-0.02085646614432335,
0.027607692405581474,
0.0069822948426008224,
0.01624513790011406,
-0.02718573994934559,
0.01182469166815281,
-0.07197289168834686,
-0.026964718475937843,
0.01688811182975769,
0.04167274758219719,
0.05979657173156738,
0.018334802240133286,
-0.028833361342549324,
0.012367201037704945,
0.04283813759684563,
0.06236846745014191,
0.013833985663950443,
0.057505980134010315,
0.011915110051631927,
0.02567877061665058,
-0.01462765596807003,
0.02915484830737114,
-0.02326761744916439,
0.027205834165215492,
-0.02867261692881584,
0.04737913981080055,
-0.04456612840294838,
-0.02965717203915119,
0.019218891859054565,
-0.03847796842455864,
-0.03470049798488617,
-0.009986188262701035,
0.006138391327112913,
0.020936837419867516,
-0.05256311595439911,
0.028110016137361526,
0.015501699410378933,
0.015330908820033073,
0.05011177808046341,
-0.04424464330077171,
-0.00434258533641696,
0.02095693163573742,
-0.03078237548470497,
0.0033027760218828917,
-0.0023835243191570044,
-0.04227553308010101,
0.01614467240869999,
0.005369836930185556,
-0.00856461375951767,
0.07080750167369843,
-0.00020972000493202358,
-0.07124954462051392,
0.011714180931448936,
-0.013753613457083702,
-0.010408139787614346,
0.009423586539924145,
0.006173554342240095,
0.06731133162975311,
0.007519780658185482,
0.06847672164440155,
0.011151578277349472,
0.015330908820033073,
0.005389929749071598,
0.0417129322886467,
-0.052884604781866074,
-0.08069322258234024,
-0.013000128790736198,
-0.03869899362325668,
0.012045714072883129,
-0.012949896045029163,
-0.059716202318668365,
-0.05955545976758003,
0.01810373365879059,
0.015531837940216064,
-0.04942861944437027,
0.01442672684788704,
-0.010046467185020447,
-0.06839635223150253,
0.014708028174936771,
0.03245009109377861,
0.03154590725898743,
-0.058148954063653946,
-0.030762283131480217,
0.015682535246014595,
-0.025538120418787003,
0.03687053546309471,
0.002327013062313199,
-0.006881830282509327,
0.008258196525275707,
0.018344849348068237,
-0.04044707864522934,
0.015049608424305916,
-0.03612709790468216,
0.0064448085613548756,
0.07591110467910767,
-0.008177824318408966,
0.016616856679320335,
0.003212357871234417,
-0.050915494561195374,
0.06011806055903435,
-0.013562730513513088,
-0.013612963259220123,
-0.03112395480275154,
0.029094569385051727,
-0.0712093636393547,
0.05895267054438591,
0.05075475201010704,
-0.017008669674396515,
0.02238352969288826,
-0.008418940007686615,
0.01954037882387638,
-0.005425092298537493,
-0.012075853534042835,
-0.04139144346117973,
-0.057546164840459824,
-0.046454865485429764,
-0.02768806368112564,
-0.03496170789003372,
-0.03323371335864067,
-0.0011258322047069669,
0.01253799069672823,
-0.02105739526450634,
-0.007409269455820322,
0.021479347720742226,
-0.034238360822200775,
0.022303156554698944,
-0.028431503102183342,
-0.018515639007091522,
0.025739049538969994,
-0.029677264392375946,
-0.02561849169433117,
0.008655031211674213,
-0.02567877061665058,
-0.00185859645716846,
0.033454734832048416,
-0.008840891532599926,
-0.021238232031464577,
0.04428482800722122,
0.032671112567186356,
0.0011025997810065746,
-0.012085899710655212,
-0.016466159373521805,
0.03196785971522331,
0.017199551686644554,
-0.024071335792541504,
0.019721215590834618,
-0.009996235370635986,
0.0166871827095747,
0.01815396547317505,
0.0005823811516165733,
-0.0009575539152137935,
0.05626021698117256,
-0.0028381270822137594,
0.003307799343019724,
0.012728873640298843,
-0.00030610329122282565,
-0.049991220235824585,
0.004001005552709103,
-0.04794174060225487,
-0.039542894810438156,
0.063774973154068,
0.05437147989869118,
-0.03122442029416561,
0.014898911118507385,
0.03242999687790871,
-0.02316715382039547,
0.07245512306690216,
0.04191386327147484,
0.008579683490097523,
0.03347482904791832,
0.008634938858449459,
-0.046454865485429764,
0.04092930629849434,
-0.012327015399932861,
0.01224664319306612,
-0.002375989453867078,
0.006394576281309128,
0.012367201037704945,
-0.011593623086810112,
0.026542766019701958,
0.014939096756279469,
0.03638830408453941,
0.06019843369722366,
-0.030320238322019577,
0.01342208031564951,
-0.03220897540450096,
0.04983047768473625,
-0.008855961263179779,
-0.004036168102174997,
-0.013030268251895905,
0.04524928703904152,
0.03269120305776596,
-0.04834359884262085,
0.0012451340444386005,
0.005264348816126585,
-0.02326761744916439,
0.008212987333536148,
-0.01738038845360279,
-0.042195163667201996,
-0.0618460513651371,
0.03357529267668724,
0.020394328981637955,
0.058832112699747086,
-0.037714436650276184,
-0.0026748718228191137,
0.06498055160045624,
0.011583576910197735,
0.05634059011936188,
-0.049107130616903305,
-0.009755119681358337,
0.015431373380124569,
0.07442422956228256,
-0.005575789138674736,
0.0005939973634667695,
0.021519532427191734,
-0.015079746954143047,
-0.04183349013328552,
-0.027225926518440247,
-0.028552059084177017,
0.05075475201010704,
-0.006274018902331591,
-0.03204822912812233,
0.030742188915610313,
-0.0026824066881090403,
-0.0005993345403112471,
0.04424464330077171,
0.006178577430546284,
-0.02646239474415779,
0.059073228389024734,
-0.017199551686644554,
0.0030943118035793304,
0.02690443955361843,
-0.0019201310351490974,
0.06469924747943878,
-0.1055280938744545,
0.08816779404878616,
0.0064297388307750225,
0.06413664668798447,
0.037031278014183044,
0.045329660177230835,
-0.01160366926342249,
0.011302275583148003,
-0.00427226023748517,
-0.004217004403471947,
0.03160618618130684,
-0.048223044723272324,
-0.012517898343503475,
-0.008333544246852398,
0.0007478339248336852,
-0.002462640404701233,
-0.027085276320576668,
-0.030601538717746735,
0.017450714483857155,
-0.006655784789472818,
-0.02429235726594925,
0.013964589685201645,
0.006329274270683527,
0.0007760896114632487,
-0.04195404797792435,
0.022684922441840172,
0.007700616959482431,
-0.019570518285036087,
0.005550673231482506,
0.010267489589750767,
-0.02537737600505352,
0.05071456730365753,
-0.021037302911281586,
-0.02449328638613224,
0.048423971980810165,
0.011915110051631927,
-0.02401105687022209,
0.06164512410759926,
-0.012316969223320484,
-0.024171799421310425,
0.04633430764079094,
0.0012413666117936373,
-0.02851187437772751,
-0.03331408649682999,
0.016064301133155823,
0.011563483625650406,
0.0018121314933523536,
-0.03990456834435463,
-0.04102977365255356,
0.04151200130581856,
-0.05003140866756439,
0.010408139787614346,
0.014929050579667091
] |
10,234 | pygments.lexers | get_lexer_by_name |
Return an instance of a `Lexer` subclass that has `alias` in its
aliases list. The lexer is given the `options` at its
instantiation.
Will raise :exc:`pygments.util.ClassNotFound` if no lexer with that alias is
found.
| def get_lexer_by_name(_alias, **options):
"""
Return an instance of a `Lexer` subclass that has `alias` in its
aliases list. The lexer is given the `options` at its
instantiation.
Will raise :exc:`pygments.util.ClassNotFound` if no lexer with that alias is
found.
"""
if not _alias:
raise ClassNotFound(f'no lexer for alias {_alias!r} found')
# lookup builtin lexers
for module_name, name, aliases, _, _ in LEXERS.values():
if _alias.lower() in aliases:
if name not in _lexer_cache:
_load_lexers(module_name)
return _lexer_cache[name](**options)
# continue with lexers from setuptools entrypoints
for cls in find_plugin_lexers():
if _alias.lower() in cls.aliases:
return cls(**options)
raise ClassNotFound(f'no lexer for alias {_alias!r} found')
| (_alias, **options) | [
0.000021164329154998995,
-0.02118776924908161,
0.03710189089179039,
-0.008283169008791447,
0.007025320082902908,
0.0514320507645607,
-0.039095811545848846,
-0.008124773390591145,
0.008991291746497154,
-0.038033630698919296,
-0.012625077739357948,
0.009848492220044136,
-0.035834722220897675,
0.03110148385167122,
0.010100062005221844,
-0.024187972769141197,
0.0042394171468913555,
0.04062386602163315,
-0.04364270344376564,
0.02748633176088333,
0.007500507403165102,
0.03913308307528496,
0.07647722214460373,
0.01722787320613861,
-0.004984809551388025,
0.030337456613779068,
0.025361964479088783,
0.006578085012733936,
-0.026759574189782143,
-0.06317197531461716,
-0.01799190044403076,
0.004942880943417549,
0.0006679411744698882,
0.03149281442165375,
-0.042561884969472885,
-0.0490095280110836,
-0.0159793421626091,
0.03037472628057003,
0.05117116495966911,
-0.016715416684746742,
0.011786512099206448,
0.036505576223134995,
0.022417666390538216,
-0.01832732744514942,
-0.022510839626193047,
-0.0036733851302415133,
-0.033859435468912125,
-0.05240106210112572,
0.001353352447040379,
-0.021020056679844856,
0.058140579611063004,
-0.06175573170185089,
-0.016417259350419044,
-0.04081021621823311,
0.011013167910277843,
-0.0532582625746727,
-0.02267855405807495,
-0.0018250459106639028,
0.008148066699504852,
0.05288556590676308,
-0.0037269601598381996,
-0.05079846829175949,
0.022138144820928574,
0.04226372763514519,
-0.0343812070786953,
-0.025194251909852028,
0.01576504111289978,
-0.030654247850179672,
-0.04528256878256798,
-0.006498887203633785,
-0.011320642195641994,
0.005716225132346153,
0.008189994841814041,
-0.09011790156364441,
0.0179546307772398,
-0.014414018951356411,
-0.08147135376930237,
0.009624875150620937,
-0.042561884969472885,
0.011479037813842297,
-0.017060160636901855,
0.03902127221226692,
-0.025790564715862274,
0.022771727293729782,
0.010873406194150448,
-0.01771237887442112,
-0.011553577147424221,
-0.06838972121477127,
-0.0007587858126498759,
-0.01182378176599741,
-0.02051691710948944,
-0.03536885231733322,
0.0724521055817604,
0.007602998986840248,
-0.02005104534327984,
-0.03868584707379341,
0.010249140672385693,
0.009415233507752419,
-0.011600163765251637,
0.014740128070116043,
0.030151108279824257,
0.03704598546028137,
-0.016389308497309685,
-0.009410575032234192,
-0.009051854722201824,
0.0203864723443985,
0.0006597884348593652,
-0.01999514177441597,
0.03756776079535484,
0.02970387414097786,
-0.02349848486483097,
-0.04248734563589096,
0.002674093935638666,
0.02989022061228752,
0.002639153739437461,
-0.007528459653258324,
0.010798867791891098,
0.01926838420331478,
-0.004339579492807388,
-0.020162854343652725,
-0.019249750301241875,
0.047034237533807755,
0.00945250317454338,
-0.0002654003328643739,
-0.0020172172226011753,
-0.03505206108093262,
0.04218919202685356,
-0.02321896329522133,
0.03691554069519043,
0.024187972769141197,
0.08780718594789505,
0.017032207921147346,
-0.01600729487836361,
-0.024970633909106255,
0.00007002608617767692,
0.07591818273067474,
-0.0047448864206671715,
0.04334454610943794,
-0.04912133514881134,
0.01716265268623829,
0.015317806974053383,
0.014786714687943459,
-0.03480980917811394,
0.0026228483766317368,
-0.10204417258501053,
-0.018644118681550026,
-0.014591049402952194,
0.007980354130268097,
0.011833098717033863,
-0.004919587634503841,
0.008334415033459663,
-0.0322568416595459,
0.05773061513900757,
0.06928419321775436,
-0.010034840553998947,
-0.008693134412169456,
-0.05888597294688225,
0.008641889318823814,
-0.032517727464437485,
-0.009028561413288116,
0.01926838420331478,
-0.020218759775161743,
-0.038275882601737976,
-0.05146932229399681,
-0.009690096601843834,
-0.05795423313975334,
-0.04300912097096443,
0.02157909981906414,
-0.019249750301241875,
0.012298968620598316,
-0.031548719853162766,
-0.02258537895977497,
-0.0028930529952049255,
0.030169744044542313,
-0.01494511030614376,
-0.01148835476487875,
-0.013519548811018467,
0.08288759738206863,
0.030579708516597748,
-0.04997853562235832,
0.035107966512441635,
0.04401540011167526,
-0.06052583456039429,
-0.04319547116756439,
-0.016258863732218742,
0.03369171917438507,
0.02571602538228035,
0.046400655061006546,
0.013854974880814552,
-0.006121532060205936,
0.03570428118109703,
0.01538302842527628,
0.03572291508316994,
-0.025641486048698425,
-0.04956857115030289,
-0.004425765480846167,
-0.05329553037881851,
0.04263642430305481,
-0.01564391516149044,
0.02523152157664299,
-0.03071015328168869,
0.12544947862625122,
0.019249750301241875,
0.0029349811375141144,
-0.0011774864979088306,
0.015317806974053383,
0.019957872107625008,
0.007318818010389805,
-0.02964796870946884,
-0.02047964744269848,
0.021280942484736443,
-0.037362776696681976,
-0.048562292009592056,
0.057357918471097946,
-0.031604621559381485,
0.0004248152254149318,
0.061792999505996704,
0.01816893182694912,
0.008530080318450928,
-0.004975492134690285,
0.0029978735838085413,
0.013165486976504326,
-0.007794005796313286,
0.005227061919867992,
0.01591411978006363,
-0.059817712754011154,
-0.0009416398243047297,
-0.01240146066993475,
-0.02610735595226288,
-0.013854974880814552,
0.05571805685758591,
-0.09600649774074554,
0.04867410287261009,
-0.026796843856573105,
-0.04531983658671379,
-0.0069600981660187244,
0.010295727290213108,
0.046885158866643906,
0.020032411441206932,
-0.005851327441632748,
0.01036094967275858,
0.03946850821375847,
0.031548719853162766,
0.042599156498909,
0.00021793982887174934,
0.053854577243328094,
0.003864391939714551,
-0.059966791421175,
-0.007565729320049286,
-0.00770083162933588,
-0.009103100746870041,
0.013556817546486855,
0.06842698901891708,
-0.0062240236438810825,
0.021206403151154518,
-0.06153211370110512,
-0.06794248521327972,
-0.034921616315841675,
0.000026332576453569345,
-0.0037968407850712538,
-0.07998056709766388,
0.0435308963060379,
0.004320944659411907,
-0.021951796486973763,
0.0070439549162983894,
-0.03883492574095726,
-0.0016631559701636434,
0.007258255034685135,
0.054040923714637756,
-0.0028604420367628336,
0.07841524481773376,
0.062463853508234024,
0.025641486048698425,
0.06328378617763519,
0.013547500595450401,
0.0003182474756613374,
0.011460402980446815,
0.044388096779584885,
-0.001041801879182458,
-0.011432450264692307,
-0.05437634885311127,
0.02172817848622799,
-0.02974114380776882,
0.020554186776280403,
0.03080332651734352,
0.009596922434866428,
-0.0003543524071574211,
0.001522230333648622,
-0.0249519981443882,
0.054525427520275116,
0.04185376316308975,
-0.0359092615544796,
-0.021411387249827385,
-0.06712255626916885,
0.04151833802461624,
0.02508244290947914,
-0.01266234740614891,
-0.020647360011935234,
-0.0052456967532634735,
-0.008921410888433456,
-0.020647360011935234,
-0.03430666774511337,
0.012820743024349213,
0.05206563323736191,
-0.051022086292505264,
0.009466479532420635,
-0.07088678330183029,
-0.03335629403591156,
-0.009941666387021542,
0.04666154086589813,
-0.032275475561618805,
0.04013936221599579,
0.008958680555224419,
-0.027095001190900803,
-0.029498890042304993,
-0.013612722046673298,
0.02690865285694599,
0.0073421117849648,
0.02085234224796295,
0.037605028599500656,
-0.04744420573115349,
0.06328378617763519,
-0.009895079769194126,
-0.0806514173746109,
-0.016901765018701553,
0.07871340215206146,
-0.05176747962832451,
0.02096415124833584,
0.018187565729022026,
-0.04651246592402458,
-0.04118290916085243,
-0.051022086292505264,
-0.04163014516234398,
-0.028865307569503784,
-0.06537088006734848,
-0.014078592881560326,
0.04408993944525719,
0.03421349450945854,
-0.023517118766903877,
-0.0010470428969711065,
0.08050233870744705,
-0.06824064254760742,
-0.002494734013453126,
-0.011711972765624523,
-0.02879076823592186,
0.041891034692525864,
-0.01324002631008625,
-0.018495040014386177,
0.00472625158727169,
-0.02336804009974003,
0.022771727293729782,
-0.03479117527604103,
0.019976507872343063,
-0.0002125532046193257,
0.038238611072301865,
-0.02504517324268818,
0.03995301574468613,
0.023386675864458084,
-0.004523598123341799,
-0.0359092615544796,
-0.03872311860322952,
-0.01713469997048378,
-0.03451165184378624,
-0.02336804009974003,
-0.043903592973947525,
-0.004845048300921917,
0.02413206733763218,
-0.043232738971710205,
-0.01771237887442112,
-0.028567150235176086,
-0.04610249772667885,
0.029759777709841728,
-0.01019323617219925,
-0.024784285575151443,
-0.04151833802461624,
-0.04666154086589813,
0.044909872114658356,
0.025399234145879745,
0.011022484861314297,
0.022622648626565933,
0.021467290818691254,
0.02888394147157669,
0.038574039936065674,
0.02989022061228752,
0.005678955931216478,
-0.046400655061006546,
-0.09548471868038177,
0.020311933010816574,
0.05907231941819191,
0.02757950685918331,
0.019119305536150932,
-0.027411792427301407,
0.01747012697160244,
-0.02782175876200199,
-0.07237756997346878,
0.04651246592402458,
-0.06708528846502304,
0.0023794311564415693,
-0.054525427520275116,
0.00635446747764945,
0.022138144820928574,
-0.0032098444644361734,
0.0757691040635109,
0.01570913754403591,
-0.023200327530503273,
0.028343532234430313,
0.04036298021674156,
0.015867533162236214,
-0.03426939994096756,
-0.0008356543839909136,
-0.012559856288135052,
-0.04800324887037277,
0.01789872720837593,
-0.0229767095297575,
-0.024299781769514084,
0.02961069904267788,
0.04148106649518013,
0.03080332651734352,
-0.01917521096765995,
0.020777802914381027,
-0.0007710148929618299,
-0.05948228761553764,
-0.020218759775161743,
0.019715620204806328,
0.014264940284192562,
-0.011702654883265495,
-0.011609481647610664,
0.000003985372586612357,
-0.07450193911790848,
-0.028008107095956802,
-0.04751874506473541,
-0.049233146011829376,
0.08080049604177475,
-0.05225198343396187,
-0.0004405383369885385,
-0.011152928695082664,
-0.027355888858437538,
0.061308495700359344,
-0.04252461716532707,
-0.037362776696681976,
0.09772089868783951,
0.014190400950610638,
0.015150093473494053,
0.06805429607629776,
0.023684833198785782,
-0.02610735595226288,
-0.015373711474239826,
0.06074945256114006,
-0.03676646202802658,
-0.0508357398211956,
0.017675109207630157,
-0.005320235621184111,
0.024448858574032784,
0.03488434851169586,
0.060004059225320816,
-0.009475796483457088,
-0.04628884792327881,
0.019100671634078026,
0.010826819576323032,
0.05232652276754379,
0.013780435547232628,
-0.02081507258117199,
0.04882317781448364,
0.010249140672385693,
-0.030784692615270615,
0.08996882289648056,
0.031548719853162766,
0.0623893141746521,
0.04081021621823311,
-0.03849950060248375,
0.027709949761629105,
-0.004104314837604761,
-0.031641893088817596,
-0.02918209880590439,
-0.016696782782673836,
0.018681388348340988,
-0.025063807144761086,
-0.03740004450082779,
0.02772858366370201,
0.030840596184134483,
-0.051133893430233,
-0.01799190044403076,
0.019119305536150932,
0.04763055220246315,
0.03221957013010979,
-0.013612722046673298,
0.04233826696872711,
-0.03598380088806152,
-0.05228925123810768,
0.006997367832809687,
-0.0200883150100708,
0.054711777716875076,
0.004544562194496393,
0.012569173239171505,
-0.0025180275551974773,
0.02644278295338154,
0.03173506632447243,
0.007188374642282724,
-0.015457567758858204,
-0.03037472628057003,
0.054525427520275116,
-0.08661455661058426,
0.006689893547445536,
-0.05527082085609436,
0.07412923872470856,
0.011935589835047722,
-0.04297185316681862,
0.01485193707048893,
0.03745594993233681,
0.011097024194896221,
-0.054040923714637756,
0.04766782000660896,
-0.010854771360754967,
0.02532469481229782,
0.02118776924908161,
0.027859028428792953,
-0.006014382001012564,
0.005935184191912413,
-0.01494511030614376,
0.011218150146305561,
0.008972656913101673,
0.022473569959402084,
-0.016631560400128365,
-0.05474904552102089,
0.015410981141030788,
0.008455540984869003,
0.031082848086953163,
0.02370346710085869,
0.003494025208055973,
-0.010491393506526947,
0.0008012964390218258,
-0.023274866864085197,
-0.08132227510213852,
0.007104517892003059,
0.011982177384197712,
-0.02552967704832554,
-0.0508357398211956,
0.04282277449965477,
0.050723928958177567,
0.012531903572380543,
0.034194860607385635,
0.04677335172891617,
0.04449990391731262,
0.020610090345144272,
0.00990439672023058,
-0.03264817222952843,
-0.06596719473600388,
0.006587402429431677,
-0.04710877686738968,
-0.00048304899246431887,
0.03954304754734039,
-0.005571805406361818,
-0.03076605685055256,
-0.022417666390538216,
-0.005702249240130186,
-0.015327123925089836,
-0.0076542445458471775,
0.028008107095956802,
0.025678755715489388,
0.04681061953306198,
0.0480777882039547,
0.03235001489520073,
-0.006582743488252163,
-0.05989225208759308,
0.006377760786563158,
-0.030989674851298332,
0.038387689739465714,
0.0024108774960041046,
0.007244279142469168,
-0.002834819257259369,
0.018485723063349724,
-0.011050437577068806,
0.019957872107625008,
0.049195874482393265,
0.004344237968325615,
0.07923517376184464,
0.08482561260461807,
0.04845048487186432,
-0.0033076773397624493,
-0.020610090345144272,
0.03644967079162598,
0.04051205888390541,
-0.09488841146230698,
-0.065147265791893,
0.007537777069956064,
-0.061643924564123154,
0.02267855405807495,
-0.024933364242315292,
-0.0508357398211956,
-0.0034544263035058975,
-0.007360746618360281,
0.02023739367723465,
-0.016175007447600365,
0.00022958657064009458,
0.013677944429218769,
0.020274663344025612,
-0.045878879725933075,
-0.001715566380880773,
0.014181083999574184,
0.028045376762747765,
-0.05180474743247032,
-0.012410777620971203,
-0.028921211138367653,
-0.044909872114658356,
0.038909465074539185,
0.03313267603516579,
0.01307231280952692,
-0.0767008438706398,
0.0058326926082372665,
-0.007705490570515394,
-0.02072189934551716,
-0.019827429205179214,
-0.01956654153764248,
0.04498441144824028,
-0.014358114451169968,
0.011861051432788372,
-0.02230585739016533,
-0.04166741669178009,
0.0325736328959465,
0.043270010501146317,
0.021895891055464745,
0.025976913049817085,
0.05225198343396187,
0.01091067586094141,
-0.032461825758218765,
0.017330365255475044,
0.08870165795087814,
0.0012706605484709144,
0.01701357401907444,
0.04751874506473541,
-0.0018331985920667648,
0.0019263726426288486,
-0.006429006345570087,
-0.08251489698886871,
-0.034958887845277786,
0.04002755507826805,
-0.002529674209654331,
-0.013640674762427807,
-0.009233543649315834,
0.04994126781821251,
-0.10972171276807785,
0.04136925935745239,
0.00728154880926013,
0.03521977365016937,
-0.013873609714210033,
-0.0639173686504364,
0.028473976999521255,
0.03497752174735069,
0.029498890042304993,
0.07293660938739777,
0.009466479532420635,
0.04133198782801628,
0.013920196332037449,
0.003542941529303789,
0.020554186776280403,
-0.005902573466300964,
-0.030672883614897728,
0.0004236505483277142,
0.043717242777347565,
-0.030411995947360992,
0.022287221625447273,
-0.0030025322921574116,
0.009093782864511013,
0.06686166673898697,
-0.03931942954659462,
0.012140573002398014,
-0.03119465708732605,
0.008804943412542343,
0.01393883116543293,
-0.00747255515307188,
-0.027747219428420067,
0.04177922382950783,
-0.025026537477970123,
-0.06719709187746048,
-0.031213292852044106,
-0.008786308579146862,
0.028380801901221275,
-0.04874863848090172,
0.01148835476487875,
-0.016538385301828384,
-0.10025522857904434,
0.026740940287709236,
0.028324898332357407,
0.04543164744973183,
-0.05970590189099312,
0.01352886576205492,
0.04893498867750168,
-0.04304639250040054,
0.06074945256114006,
-0.03820134326815605,
-0.00016698529361747205,
0.0846019983291626,
0.02288353629410267,
0.01798258349299431,
-0.035070694983005524,
-0.015410981141030788,
-0.02864168956875801,
-0.018057122826576233,
-0.012308286502957344,
-0.06153211370110512,
0.06533361226320267,
-0.04278550297021866,
-0.01694835163652897,
-0.0018378573004156351,
-0.016156373545527458,
0.02282763086259365,
0.005185133311897516,
0.007719466462731361,
0.005026737693697214,
0.025250155478715897,
-0.0255669467151165,
-0.06022767722606659,
0.0846019983291626,
0.05713430047035217,
0.0471833162009716,
-0.09354670345783234,
0.021690908819437027,
0.03615151345729828,
0.01759125292301178,
0.0325736328959465,
0.043903592973947525,
-0.028828037902712822,
0.00740267476066947,
0.04964311048388481,
0.006382419262081385,
-0.0007698502158746123,
-0.07573183625936508,
-0.02666640095412731,
-0.05504720285534859,
-0.016603607684373856,
-0.041108373552560806,
0.0025809200014919043,
-0.057469725608825684,
-0.0032657489646226168,
-0.04297185316681862,
-0.01990196853876114,
0.037847280502319336,
0.01242009550333023,
0.029573429375886917,
0.003880697302520275,
-0.005338870454579592,
0.01324002631008625,
-0.06779340654611588,
0.018085075542330742,
0.02258537895977497,
-0.008641889318823814,
0.04558072239160538,
0.022454936057329178,
0.019529271870851517,
0.019119305536150932,
0.05322099104523659,
-0.04852502420544624,
0.008208629675209522,
0.08281305432319641,
-0.030728787183761597,
-0.020013777539134026,
-0.04211465269327164,
0.00612619100138545,
0.004821754992008209,
0.006773750297725201,
0.025175616145133972,
-0.02879076823592186,
0.004108973778784275,
-0.04021390154957771,
-0.00939194019883871,
-0.06235204637050629,
-0.020311933010816574,
-0.020200124010443687
] |
10,235 | itertools | groupby | make an iterator that returns consecutive keys and groups from the iterable
iterable
Elements to divide into groups according to the key function.
key
A function for computing the group category for each element.
If the key function is not specified or is None, the element itself
is used for grouping. | from itertools import groupby
| (iterable, key=None) | [
0.03466086462140083,
0.0035054737236350775,
-0.08756428956985474,
0.015307166613638401,
0.0036505849566310644,
-0.03043190762400627,
-0.0076535833068192005,
-0.03275368735194206,
0.06573954969644547,
0.08351776003837585,
-0.03432917967438698,
-0.02068042941391468,
0.023632407188415527,
-0.015058403834700584,
0.004398944787681103,
-0.030398737639188766,
-0.010796278715133667,
0.04769600182771683,
-0.029635867103934288,
0.0029706349596381187,
0.016269046813249588,
-0.017678698524832726,
-0.015215953812003136,
0.025174733251333237,
-0.004523325711488724,
0.0902840867638588,
0.02608686126768589,
-0.012736624106764793,
-0.056485600769519806,
0.0036111976951360703,
0.0055473968386650085,
-0.029718788340687752,
0.032057154923677444,
-0.026219533756375313,
-0.04122818633913994,
-0.024793297052383423,
-0.002995511284098029,
0.0594044104218483,
-0.04626976698637009,
0.06643608957529068,
0.07078113406896591,
0.00035707736969925463,
-0.00473891943693161,
-0.04474402591586113,
0.035987596958875656,
0.01752944104373455,
0.06215737760066986,
0.05860837176442146,
0.013449741527438164,
-0.027712106704711914,
-0.03555640950798988,
-0.07051578909158707,
0.022139834240078926,
-0.016899244859814644,
0.00561373308300972,
0.036153435707092285,
-0.0007379944436252117,
-0.012728331610560417,
0.03240542113780975,
0.026302454993128777,
-0.022952457889914513,
0.02174181491136551,
0.044478677213191986,
0.009676848538219929,
-0.05144402012228966,
-0.0469331331551075,
-0.0974484384059906,
-0.008582294918596745,
-0.08384943753480911,
-0.012056673876941204,
-0.024445030838251114,
0.04557323083281517,
0.01900543086230755,
-0.0032152512576431036,
-0.0439811535179615,
0.059437576681375504,
-0.013350237160921097,
-0.01184937171638012,
0.10129596292972565,
-0.05864153802394867,
0.0132175637409091,
0.030564580112695694,
-0.007168496958911419,
-0.001549581065773964,
0.03927125781774521,
-0.01971854828298092,
0.053268276154994965,
0.04978560283780098,
-0.014477958902716637,
-0.05104599893093109,
-0.029934382066130638,
0.031277697533369064,
0.023798247799277306,
-0.004013363271951675,
-0.04026630520820618,
0.027761859819293022,
-0.051012832671403885,
0.028972502797842026,
0.010025115683674812,
-0.024378694593906403,
-0.0044238208793103695,
-0.021227706223726273,
-0.03651828691363335,
-0.01334194466471672,
-0.025838099420070648,
0.014743305742740631,
-0.004743065685033798,
0.00004502336378209293,
-0.01527399756014347,
0.03485987335443497,
-0.08033359795808792,
0.06013411283493042,
-0.008656923659145832,
-0.011293803341686726,
0.015166200697422028,
-0.04112868010997772,
0.035689081996679306,
0.016459764912724495,
-0.0038309376686811447,
-0.014718429185450077,
-0.058674708008766174,
0.04772917181253433,
-0.034428685903549194,
0.07927221804857254,
-0.004937929101288319,
-0.03602076321840286,
0.031062103807926178,
0.010000240057706833,
0.03830937668681145,
0.011567441746592522,
0.026816563680768013,
0.036982644349336624,
-0.040796998888254166,
0.022056913003325462,
0.006256368942558765,
-0.05721530318260193,
0.04036581143736839,
-0.0445781834423542,
0.0335828959941864,
-0.020962359383702278,
-0.009320289827883244,
-0.050482138991355896,
0.013872637413442135,
0.03512521833181381,
0.03731432557106018,
-0.041029177606105804,
0.02781161107122898,
0.002080273814499378,
-0.04086333513259888,
-0.027463344857096672,
0.01383946929126978,
0.014121400192379951,
0.048624712973833084,
-0.029868045821785927,
0.03462769463658333,
0.006426356267184019,
-0.04262125492095947,
-0.0013837396400049329,
0.009610512293875217,
-0.006575613748282194,
0.004888176918029785,
0.01383946929126978,
-0.007259709760546684,
0.064777672290802,
-0.04136085882782936,
0.008433038368821144,
0.005045726429671049,
-0.002701142802834511,
-0.028508145362138748,
-0.0713118240237236,
0.011161129921674728,
-0.012197638861835003,
-0.07894053310155869,
-0.045075707137584686,
-0.030630916357040405,
0.00473891943693161,
-0.010796278715133667,
0.05260490998625755,
0.020813101902604103,
0.024760128930211067,
-0.0009872749214991927,
-0.0629534125328064,
-0.01670023426413536,
-0.0007307389169000089,
-0.00859058741480112,
0.0006794317159801722,
0.06998509168624878,
-0.004073480609804392,
-0.005700800102204084,
-0.04308560863137245,
-0.022852951660752296,
-0.03482670709490776,
-0.06912271678447723,
0.014751597307622433,
0.045009370893239975,
-0.014245781116187572,
-0.11502763628959656,
0.016849491745233536,
-0.03811036795377731,
0.06026678532361984,
-0.036153435707092285,
-0.020464835688471794,
-0.020481418818235397,
0.0013868492096662521,
0.045374222099781036,
0.007595538627356291,
-0.0731029137969017,
0.020647261291742325,
-0.05330144241452217,
0.015133032575249672,
0.05074748396873474,
-0.05555688589811325,
0.019453203305602074,
0.048326198011636734,
0.03721482306718826,
-0.038707394152879715,
0.008565710857510567,
0.02857448346912861,
0.02121112123131752,
-0.009759769774973392,
-0.02774527482688427,
-0.03429601341485977,
0.029934382066130638,
0.015564220026135445,
0.029619283974170685,
0.0009364859433844686,
0.045540064573287964,
-0.0005260283360257745,
-0.010995288379490376,
-0.03651828691363335,
0.045540064573287964,
-0.06126183271408081,
-0.0036132705863565207,
-0.008814473636448383,
-0.03155962750315666,
-0.0321069061756134,
0.00041227150359191,
-0.0023756788577884436,
0.002294831210747361,
0.033068787306547165,
-0.006857544183731079,
-0.008287927135825157,
0.07569003850221634,
-0.00792722124606371,
-0.024312356486916542,
0.007964535616338253,
-0.0010800424497574568,
0.019104935228824615,
0.010083160363137722,
-0.00009315625356975943,
-0.028790077194571495,
-0.010323630645871162,
-0.0035946136340498924,
-0.04942075163125992,
0.01654268428683281,
-0.09253953397274017,
-0.0861712172627449,
0.020813101902604103,
0.031211361289024353,
-0.015605680644512177,
0.06617073714733124,
0.021642310544848442,
-0.009171032346785069,
-0.022206170484423637,
-0.007093868218362331,
0.03006705641746521,
0.04262125492095947,
0.0038661789149045944,
-0.008623755536973476,
0.030216313898563385,
0.08537518233060837,
-0.031178193166851997,
0.04225640371441841,
-0.014536003582179546,
-0.05847569555044174,
0.039835117757320404,
-0.015315458178520203,
0.027463344857096672,
-0.022653942927718163,
-0.03738066554069519,
0.030614333227276802,
0.06826034188270569,
-0.04670095443725586,
-0.033483389765024185,
-0.010000240057706833,
0.048624712973833084,
-0.01577981375157833,
0.02631903812289238,
-0.017131421715021133,
-0.005352532956749201,
-0.0013598998775705695,
-0.0403989776968956,
-0.0522732250392437,
-0.02187448740005493,
0.013026846572756767,
0.019320528954267502,
0.0368499718606472,
-0.05495985969901085,
-0.0016718892147764564,
0.017861124128103256,
-0.029486611485481262,
0.00629782909527421,
0.014328701421618462,
0.04029947519302368,
-0.05655193701386452,
0.00965197291225195,
0.03237225115299225,
-0.031460124999284744,
-0.002251297701150179,
-0.010406550951302052,
0.05097966268658638,
0.05598807334899902,
0.021542804315686226,
-0.04504253715276718,
0.015970531851053238,
-0.02834230475127697,
-0.020166320726275444,
0.0730365738272667,
0.002701142802834511,
0.06852568686008453,
0.013267315924167633,
-0.018574243411421776,
-0.024494782090187073,
0.06096331775188446,
0.03139378875494003,
0.046203430742025375,
0.036684129387140274,
0.01566372625529766,
0.006720724981278181,
0.05044896900653839,
-0.061825692653656006,
-0.0028897873125970364,
0.0022284945007413626,
0.06670143455266953,
-0.03059774823486805,
0.01752944104373455,
0.05698312446475029,
-0.06826034188270569,
0.0115840258076787,
-0.10673555731773376,
-0.016899244859814644,
-0.008126230910420418,
-0.04010046273469925,
-0.004780380055308342,
-0.024693792685866356,
0.0013101474614813924,
-0.009502715431153774,
-0.03403066471219063,
0.03048165887594223,
0.02714824676513672,
0.06709945201873779,
0.06587222218513489,
0.01716458983719349,
0.04686679318547249,
0.03131086751818657,
0.09220784902572632,
-0.030017303302884102,
-0.026103444397449493,
-0.011476228944957256,
0.042389076203107834,
0.031874727457761765,
-0.02625270187854767,
0.06544103473424911,
-0.010240709409117699,
-0.003629854880273342,
-0.008321095257997513,
-0.034428685903549194,
0.027164829894900322,
0.025755178183317184,
-0.011501104570925236,
-0.013590707443654537,
0.04116185009479523,
0.057314805686473846,
0.0157383531332016,
-0.009411502629518509,
-0.0024275043979287148,
-0.005825181026011705,
0.010439720004796982,
-0.027048740535974503,
0.046667784452438354,
-0.030398737639188766,
0.006534153129905462,
0.0754246935248375,
0.04225640371441841,
-0.026368791237473488,
0.01179132703691721,
0.04540738835930824,
-0.004224811214953661,
-0.026003940030932426,
0.002057470614090562,
0.013491202145814896,
0.010829446837306023,
0.06384895741939545,
-0.02311829850077629,
0.004222738090902567,
-0.04202422499656677,
-0.01829231157898903,
-0.05615391582250595,
-0.0421900674700737,
-0.016600729897618294,
0.0362529419362545,
-0.015763230621814728,
0.005932977888733149,
-0.00006248206045711413,
-0.033483389765024185,
-0.02484305016696453,
-0.007089721970260143,
-0.062057871371507645,
-0.004921345040202141,
-0.06265490502119064,
-0.020547756925225258,
-0.008980315178632736,
-0.00001658414475969039,
-0.06782915443181992,
0.020995527505874634,
-0.016327090561389923,
0.003217324148863554,
0.011982045136392117,
0.058973222970962524,
0.009627096354961395,
0.04759649559855461,
-0.02976854145526886,
-0.05535787716507912,
0.031028935685753822,
0.0033313401509076357,
-0.06451232731342316,
-0.02631903812289238,
-0.001814927440136671,
-0.05811084434390068,
-0.011061624623835087,
-0.009403210133314133,
-0.02638537622988224,
-0.01948637142777443,
-0.039370760321617126,
0.05336777865886688,
-0.03582175448536873,
0.005779574625194073,
0.04010046273469925,
0.035092052072286606,
0.0308962631970644,
0.03519155830144882,
0.010008531622588634,
0.03345021978020668,
-0.05907272547483444,
0.09121280163526535,
0.009179324842989445,
-0.012844420969486237,
0.037646010518074036,
-0.01872350089251995,
0.012487861327826977,
0.06736479699611664,
-0.03082992695271969,
0.0022119104396551847,
-0.04424649849534035,
0.049818772822618484,
0.011957168579101562,
0.03495937958359718,
0.0010556845227256417,
-0.03328438103199005,
0.04912224039435387,
0.09665239602327347,
-0.0030867240857332945,
0.036451950669288635,
0.06706628203392029,
-0.06570638716220856,
-0.04759649559855461,
-0.04242224246263504,
-0.0008908795425668359,
0.04056482017040253,
0.025473248213529587,
-0.00897202268242836,
-0.015016944147646427,
-0.07237321138381958,
-0.031211361289024353,
-0.03466086462140083,
0.01271174754947424,
-0.001150525058619678,
-0.0019051036797463894,
0.009071527980268002,
0.0231680516153574,
-0.03082992695271969,
-0.0067704771645367146,
0.03142695501446724,
-0.05602124333381653,
-0.03406383469700813,
-0.027115078642964363,
0.02210666611790657,
-0.06029995158314705,
-0.034727200865745544,
-0.020647261291742325,
-0.019453203305602074,
0.014046771451830864,
-0.011608901433646679,
-0.0063724578358232975,
0.06782915443181992,
0.05913906171917915,
0.01925419270992279,
0.03303561732172966,
0.03943709656596184,
-0.02786136418581009,
0.009569051675498486,
0.02412993088364601,
-0.003835083683952689,
-0.032422006130218506,
0.06932172924280167,
0.017894292250275612,
0.061228666454553604,
-0.060333121567964554,
-0.036087099462747574,
-0.035921260714530945,
-0.016899244859814644,
-0.058906883001327515,
-0.06278757750988007,
0.047496993094682693,
0.00032701861346140504,
-0.04998461529612541,
-0.0677628219127655,
-0.010928952135145664,
-0.021410131826996803,
0.05141085013747215,
0.046734120696783066,
0.004751357715576887,
0.005427161697298288,
0.03024948202073574,
-0.0035842484794557095,
0.0167914479970932,
0.010472888126969337,
0.009378334507346153,
-0.036750465631484985,
0.0031634257175028324,
-0.018789837136864662,
0.016592437401413918,
-0.0029789272230118513,
0.04142719507217407,
0.014436498284339905,
0.032289329916238785,
-0.0004931191797368228,
0.010680189356207848,
0.02003364823758602,
0.038840070366859436,
0.03927125781774521,
-0.013060014694929123,
0.009676848538219929,
-0.048757389187812805,
0.023864585906267166,
0.05721530318260193,
0.009054942987859249,
-0.03552323952317238,
0.01865716278553009,
-0.003229762427508831,
-0.00908811204135418,
0.017662115395069122,
-0.023483149707317352,
-0.013806301169097424,
0.03406383469700813,
-0.011666946113109589,
-0.004552348051220179,
-0.03588809072971344,
0.009909027256071568,
-0.02995096705853939,
0.022189587354660034,
0.028441809117794037,
-0.024411862716078758,
-0.01596223935484886,
-0.0023653137031942606,
-0.0115840258076787,
0.006629512179642916,
0.04016679897904396,
-0.010406550951302052,
0.015008651651442051,
-0.028839828446507454,
-0.00448601134121418,
-0.0588073804974556,
-0.07091380655765533,
0.01045630406588316,
0.05277075245976448,
-0.027463344857096672,
-0.06102965399622917,
-0.02371532842516899,
-0.06428014487028122,
-0.05651876702904701,
0.0002909999166149646,
0.04086333513259888,
-0.04646877571940422,
-0.01378142461180687,
-0.005145231261849403,
-0.027065325528383255,
-0.0024254312738776207,
0.007923075929284096,
0.059271734207868576,
-0.010738234035670757,
-0.00808477122336626,
0.0147018451243639,
0.01902201399207115,
-0.037878189235925674,
-0.021194538101553917,
-0.011210882104933262,
-0.014469667337834835,
-0.09466230124235153,
-0.05383213609457016,
0.02595418691635132,
0.022471517324447632,
-0.04228956997394562,
0.07907320559024811,
0.04165937379002571,
-0.013093182817101479,
-0.020697014406323433,
-0.03220640867948532,
-0.006542445160448551,
0.03432917967438698,
-0.08597221225500107,
0.05625342205166817,
0.0439811535179615,
-0.009303705766797066,
-0.009403210133314133,
0.017562609165906906,
0.045307885855436325,
-0.012015213258564472,
-0.010257294401526451,
-0.05313560366630554,
0.019884390756487846,
0.016501225531101227,
0.002377751749008894,
0.011368432082235813,
-0.004098357167094946,
0.015414963476359844,
0.01616954244673252,
0.018673747777938843,
0.07947122305631638,
-0.01817622408270836,
-0.050714317709207535,
0.03522472456097603,
0.03927125781774521,
-0.03688313812017441,
-0.009643680416047573,
0.005402285605669022,
-0.009171032346785069,
0.0003042154130525887,
-0.0653747022151947,
-0.0013878856552764773,
-0.03250492364168167,
-0.004801109898835421,
0.019519539549946785,
-0.056883618235588074,
-0.030863095074892044,
-0.030763588845729828,
-0.005576418712735176,
0.024411862716078758,
0.008806181140244007,
-0.03917175158858299,
-0.0019476006273180246,
0.0033790196757763624,
-0.018275728449225426,
-0.029370522126555443,
0.00792722124606371,
0.008134523406624794,
0.029436858370900154,
0.02472696080803871,
-0.011832787655293941,
-0.011608901433646679,
0.06819400936365128,
0.05608757957816124,
0.01334194466471672,
-0.0063724578358232975,
-0.0028317428659647703,
0.01464380044490099,
0.01208984199911356,
-0.025506416335701942,
-0.025639088824391365,
0.0024834757205098867,
0.0147018451243639,
0.002524936106055975,
0.01729726418852806,
0.025838099420070648,
-0.000050950900913449004,
-0.00808477122336626,
-0.03303561732172966,
0.040796998888254166,
-0.011318678967654705,
-0.04504253715276718,
0.03000071831047535,
0.034196507185697556,
0.0034266989678144455,
-0.03268735110759735,
-0.029154928401112556,
-0.003973975777626038,
-0.026534631848335266,
-0.047795508056879044,
0.008872517384588718,
-0.04000096023082733,
0.025340573862195015,
0.00891397800296545,
0.014353577978909016,
-0.022239338606595993,
-0.07277122884988785,
0.11257317662239075,
0.00729287788271904,
0.022786615416407585,
0.06719895452260971,
0.007690897211432457,
-0.01265370287001133,
0.010671897791326046,
0.03661779314279556,
0.008582294918596745,
-0.007467011455446482,
-0.001854314818046987,
-0.0511123351752758,
0.03575541824102402,
0.03036556951701641,
0.017927460372447968,
0.014594048261642456,
0.01835864968597889,
-0.10978703945875168,
0.0344618558883667,
0.038408879190683365,
-0.03041532263159752,
0.017148006707429886,
0.03784501925110817,
0.02061409316956997,
0.002176669193431735,
0.006762185133993626,
0.06049896404147148,
0.046966299414634705,
0.0184249859303236,
-0.08172667026519775,
0.007827716879546642,
0.034130170941352844,
0.043284621089696884,
-0.05976926162838936,
-0.04961976408958435,
-0.028441809117794037,
0.031824976205825806,
-0.033483389765024185,
0.042687591165304184,
0.010207541286945343,
0.010257294401526451,
-0.036750465631484985,
-0.021310627460479736,
-0.009104696102440357,
0.014270656742155552,
-0.012222515419125557,
-0.08922269940376282,
-0.03535739704966545,
-0.024942554533481598,
0.005928832106292248,
-0.03462769463658333,
0.09890784323215485,
0.034793537110090256,
-0.06398162990808487,
-0.06965341418981552,
0.003061847761273384,
-0.0010458376491442323,
0.024909386411309242,
-0.0007089722203090787,
-0.027612602338194847,
0.011393307708203793,
0.02204032987356186,
-0.02537374198436737,
0.019121520221233368,
-0.005908101797103882,
-0.02442844584584236,
-0.01888934150338173,
0.0056717777624726295,
-0.0005959927220828831,
-0.03291952982544899,
0.026103444397449493,
0.021973991766572,
0.011816203594207764
] |
10,236 | pygments.lexers | guess_lexer_for_filename |
As :func:`guess_lexer()`, but only lexers which have a pattern in `filenames`
or `alias_filenames` that matches `filename` are taken into consideration.
:exc:`pygments.util.ClassNotFound` is raised if no lexer thinks it can
handle the content.
| def guess_lexer_for_filename(_fn, _text, **options):
"""
As :func:`guess_lexer()`, but only lexers which have a pattern in `filenames`
or `alias_filenames` that matches `filename` are taken into consideration.
:exc:`pygments.util.ClassNotFound` is raised if no lexer thinks it can
handle the content.
"""
fn = basename(_fn)
primary = {}
matching_lexers = set()
for lexer in _iter_lexerclasses():
for filename in lexer.filenames:
if _fn_matches(fn, filename):
matching_lexers.add(lexer)
primary[lexer] = True
for filename in lexer.alias_filenames:
if _fn_matches(fn, filename):
matching_lexers.add(lexer)
primary[lexer] = False
if not matching_lexers:
raise ClassNotFound(f'no lexer for filename {fn!r} found')
if len(matching_lexers) == 1:
return matching_lexers.pop()(**options)
result = []
for lexer in matching_lexers:
rv = lexer.analyse_text(_text)
if rv == 1.0:
return lexer(**options)
result.append((rv, lexer))
def type_sort(t):
# sort by:
# - analyse score
# - is primary filename pattern?
# - priority
# - last resort: class name
return (t[0], primary[t[1]], t[1].priority, t[1].__name__)
result.sort(key=type_sort)
return result[-1][1](**options)
| (_fn, _text, **options) | [
-0.006478974130004644,
-0.008383993059396744,
0.049540042877197266,
0.002945856424048543,
0.026106877252459526,
0.041518907994031906,
0.043581485748291016,
-0.0009650425054132938,
0.022707443684339523,
-0.04499473422765732,
0.021981721743941307,
0.012537794187664986,
-0.06497117131948471,
0.04507112503051758,
-0.006240250077098608,
-0.013712316751480103,
0.035674940794706345,
0.0780341625213623,
-0.04942545294761658,
-0.0008253888809122145,
-0.009081067517399788,
0.009658779948949814,
0.043657876551151276,
0.05290127918124199,
0.010351080447435379,
-0.017140395939350128,
-0.015765344724059105,
-0.022210897877812386,
-0.0488143190741539,
-0.02946811355650425,
-0.0002014235215028748,
0.015201956033706665,
-0.00139892369043082,
0.04316133260726929,
-0.06153354421257973,
-0.07054776698350906,
-0.038826100528240204,
0.05465828999876976,
0.03798579052090645,
-0.06069323420524597,
0.0023418841883540154,
0.038405947387218475,
-0.007758535910397768,
-0.0013977300841361284,
-0.05912720412015915,
0.02954450435936451,
-0.07035679370164871,
-0.02631695382297039,
-0.039914682507514954,
-0.020663965493440628,
0.0076869186013937,
-0.0466371551156044,
-0.04453638195991516,
-0.020339300855994225,
0.008565424010157585,
-0.0066604046151041985,
-0.028284041211009026,
-0.0030150862876325846,
0.032676566392183304,
-0.004289873410016298,
0.04014385864138603,
-0.010131454095244408,
0.029678190127015114,
0.028207648545503616,
-0.021122315898537636,
-0.041709888726472855,
0.019728166982531548,
-0.010026415809988976,
-0.04866153746843338,
0.028704196214675903,
0.005385617725551128,
-0.024884607642889023,
0.020568475127220154,
-0.06107519567012787,
0.053436022251844406,
0.005743703804910183,
-0.07982936501502991,
0.02572491765022278,
-0.023815123364329338,
0.041786279529333115,
0.002766813151538372,
0.028990663588047028,
0.019861850887537003,
0.009104940108954906,
-0.0040750219486653805,
-0.00958238821476698,
0.05118246376514435,
-0.06084601953625679,
-0.03426169604063034,
0.01413247175514698,
-0.01481044851243496,
-0.04235921800136566,
0.0513734444975853,
0.00683228624984622,
-0.06542952358722687,
-0.005208961665630341,
0.03185535594820976,
-0.03794759511947632,
-0.00034376283292658627,
-0.013559533283114433,
0.015727149322628975,
0.06565869599580765,
0.03246648982167244,
-0.035254787653684616,
0.02268834598362446,
0.031072339043021202,
-0.009033323265612125,
0.012117639183998108,
0.010083709843456745,
0.016691595315933228,
-0.013569082133471966,
-0.094038225710392,
0.05733199790120125,
0.028895175084471703,
0.07822513580322266,
-0.04079318791627884,
-0.05259571224451065,
0.01481044851243496,
-0.009816338308155537,
0.00015755796630401164,
-0.010484766215085983,
0.004936816170811653,
-0.03290574252605438,
-0.012213128618896008,
-0.06283220648765564,
-0.06099880114197731,
0.047668445855379105,
-0.03460545837879181,
0.061113391071558,
0.04629339277744293,
0.020854944363236427,
0.04705731198191643,
-0.006722473073750734,
-0.0466371551156044,
0.006970745977014303,
0.022210897877812386,
-0.04839416593313217,
0.011057703755795956,
-0.02463633567094803,
0.010093258693814278,
0.08189194649457932,
0.017904313281178474,
0.005099148489534855,
-0.030766772106289864,
-0.064054474234581,
0.011783425696194172,
0.018582290038466454,
0.006221151910722256,
0.033344995230436325,
0.05290127918124199,
0.02755831927061081,
-0.036534350365400314,
0.029601797461509705,
0.05462009087204933,
0.005251931957900524,
-0.02106502093374729,
-0.026565227657556534,
0.003881655167788267,
0.001690167235210538,
-0.022554660215973854,
0.059776533395051956,
-0.023032108321785927,
-0.027921179309487343,
-0.038444142788648605,
0.015841737389564514,
-0.03748924657702446,
-0.024884607642889023,
0.005519303027540445,
-0.02931533008813858,
0.005724605638533831,
-0.026775304228067398,
-0.030060147866606712,
-0.056109730154275894,
0.04491834342479706,
0.045796845108270645,
-0.030995948240160942,
-0.004621699918061495,
0.10794152319431305,
0.0351020023226738,
0.03460545837879181,
0.02834133431315422,
-0.015908580273389816,
-0.041824474930763245,
-0.004168124403804541,
0.028742391616106033,
0.020071929320693016,
0.055842358618974686,
0.023910613730549812,
0.041404321789741516,
-0.013406749814748764,
0.017713334411382675,
-0.03397522494196892,
-0.0059012616984546185,
-0.01938440278172493,
-0.03118692710995674,
-0.010522961616516113,
-0.024750923737883568,
0.05649169161915779,
0.02242097444832325,
-0.015135113149881363,
-0.004335231147706509,
0.024426257237792015,
0.02549574337899685,
-0.016061363741755486,
-0.03895978629589081,
0.038310457020998,
-0.01720723882317543,
-0.003354074666276574,
-0.03340228646993637,
0.002420663135126233,
0.012575989589095116,
-0.08555874973535538,
-0.01806664653122425,
0.020683063194155693,
0.004005791619420052,
-0.03063308633863926,
0.059852927923202515,
0.0372791662812233,
-0.02860870584845543,
-0.010895371437072754,
0.037317365407943726,
0.0452239103615284,
-0.05141163989901543,
0.008298052474856377,
0.04652256891131401,
-0.0408695787191391,
0.015001427382230759,
0.006440778262913227,
0.0035044709220528603,
-0.013359005562961102,
0.04514751583337784,
-0.07929462194442749,
0.03666803240776062,
-0.020644867792725563,
0.002594931749626994,
0.006803639233112335,
0.06504756212234497,
0.0175510011613369,
-0.017064005136489868,
-0.00896170549094677,
0.010236493311822414,
0.07211379706859589,
0.05248112231492996,
0.007443420123308897,
-0.019919145852327347,
0.0054572345688939095,
0.002532863523811102,
-0.018391311168670654,
-0.04270298033952713,
0.028322236612439156,
0.024731824174523354,
0.007596203591674566,
0.02507558837532997,
-0.02335677295923233,
-0.012910204008221626,
-0.04438360035419464,
-0.05465828999876976,
-0.02706177346408367,
0.01968996971845627,
0.05442911386489868,
-0.03659164160490036,
0.04824138060212135,
0.016672497615218163,
-0.010943116620182991,
-0.004693317227065563,
-0.054008956998586655,
-0.026145072653889656,
0.03832955285906792,
-0.03527388349175453,
0.010484766215085983,
0.012232227250933647,
0.026832597330212593,
0.011363270692527294,
0.047706641256809235,
-0.06122797727584839,
0.0015517071587964892,
-0.020797651261091232,
0.04056401178240776,
0.032485585659742355,
-0.009381860494613647,
-0.028952468186616898,
0.005108697339892387,
-0.0231275986880064,
0.00939140934497118,
0.08150998502969742,
0.03296303376555443,
-0.017331374809145927,
-0.017484158277511597,
-0.013846002519130707,
0.024464454501867294,
0.05041854828596115,
-0.025037391111254692,
0.021466078236699104,
-0.047592051327228546,
0.058286894112825394,
-0.00677499221637845,
0.026889892295002937,
-0.055918753147125244,
0.022936619818210602,
-0.0253047626465559,
-0.06894354522228241,
-0.002150904852896929,
0.085329569876194,
0.0022046177182346582,
-0.043772466480731964,
-0.003387496108189225,
-0.09587162733078003,
-0.0603494718670845,
-0.029773680493235588,
-0.015440680086612701,
0.01597542129456997,
0.03025112859904766,
0.0005505576264113188,
-0.02564852684736252,
-0.028665998950600624,
0.017818372696638107,
0.03915076702833176,
-0.0032800701446831226,
0.015870383009314537,
-0.0032490361481904984,
-0.045873239636421204,
0.03313491493463516,
-0.011697485111653805,
-0.03231370449066162,
0.02920074202120304,
-0.00015218666521832347,
-0.04075499251484871,
-0.028398629277944565,
0.009439154528081417,
-0.02763471193611622,
-0.008049779571592808,
-0.0040678600780665874,
-0.017188141122460365,
-0.01843905635178089,
-0.07211379706859589,
-0.0028981114737689495,
0.006240250077098608,
0.014619468711316586,
0.04652256891131401,
-0.029047958552837372,
0.03460545837879181,
-0.07960019260644913,
-0.030060147866606712,
-0.027902081608772278,
-0.0014263769844546914,
0.03619058430194855,
-0.02549574337899685,
0.00441401032730937,
0.033535972237586975,
-0.047668445855379105,
0.015306994318962097,
-0.05691184476017952,
-0.0037813910748809576,
-0.012518695555627346,
-0.013731414452195168,
-0.0028193325269967318,
-0.016443321481347084,
0.0026450639124959707,
-0.0014490557368844748,
-0.016997162252664566,
0.018801916390657425,
-0.01843905635178089,
-0.0752076655626297,
-0.016634300351142883,
-0.0169112216681242,
0.012108090333640575,
0.05011298134922981,
-0.015736697241663933,
-0.02203901670873165,
-0.03223731368780136,
-0.03189355134963989,
0.02725275233387947,
-0.027386438101530075,
-0.020740356296300888,
-0.035560354590415955,
-0.05313045531511307,
0.018887856975197792,
0.02032020315527916,
0.006550591439008713,
0.03718367964029312,
0.051679011434316635,
0.052060969173908234,
0.05710282549262047,
0.016175949946045876,
-0.03246648982167244,
-0.0233185775578022,
-0.06363432109355927,
-0.0022249093744903803,
0.013034339994192123,
0.033956129103899,
0.0374128520488739,
-0.009400958195328712,
-0.030995948240160942,
-0.020453887060284615,
-0.024540845304727554,
0.038673318922519684,
-0.05229014530777931,
0.030041050165891647,
-0.036534350365400314,
0.017636941745877266,
0.005051403772085905,
-0.03168347477912903,
0.018353115767240524,
0.04270298033952713,
-0.00031989041599445045,
0.07398539781570435,
0.08479482680559158,
0.07012761384248734,
-0.05526942387223244,
0.045644063502550125,
-0.002914822194725275,
-0.061953701078891754,
0.009692201390862465,
-0.02148517593741417,
-0.014056080020964146,
0.03531208261847496,
0.006679502781480551,
0.028990663588047028,
-0.029525406658649445,
0.02234458364546299,
0.010656647384166718,
-0.018496349453926086,
0.008140494115650654,
0.045796845108270645,
0.01208899263292551,
0.0005857694777660072,
0.010656647384166718,
-0.026488834992051125,
-0.053665194660425186,
-0.016739338636398315,
-0.052137359976768494,
-0.03298213332891464,
0.08426008373498917,
-0.04839416593313217,
-0.004106055945158005,
-0.05248112231492996,
-0.03418530151247978,
0.01463856641203165,
-0.021828938275575638,
-0.019174326211214066,
0.052060969173908234,
0.037622932344675064,
-0.01609000936150551,
0.09037142246961594,
0.031034143641591072,
-0.033917929977178574,
-0.01016010157763958,
0.07081513851881027,
-0.09296874701976776,
-0.028665998950600624,
-0.027882983908057213,
0.019298462197184563,
0.011554250493645668,
0.041518907994031906,
0.027539221569895744,
0.019202973693609238,
-0.03231370449066162,
0.03309671953320503,
0.01004551351070404,
0.05439091846346855,
-0.02242097444832325,
0.0009149104007519782,
0.09014225006103516,
0.0010104001266881824,
0.00029377994360402226,
0.049731019884347916,
0.020224712789058685,
0.037317365407943726,
-0.013588180765509605,
-0.05866885557770729,
0.03324950486421585,
-0.015984971076250076,
-0.04709550738334656,
-0.026679813861846924,
-0.06390168517827988,
0.01926981657743454,
0.023815123364329338,
-0.029124349355697632,
0.03449086844921112,
0.02129419706761837,
0.0032633596565574408,
-0.032523781061172485,
-0.02207721211016178,
0.007276312913745642,
0.047362878918647766,
-0.027539221569895744,
0.04316133260726929,
-0.026106877252459526,
-0.05706462636590004,
-0.03483463078737259,
-0.053779784590005875,
0.033459581434726715,
0.005266255233436823,
0.0374128520488739,
-0.04285576567053795,
0.049540042877197266,
0.02219180017709732,
0.02771110273897648,
-0.03477733954787254,
-0.026603423058986664,
0.06833241134881973,
-0.07780498266220093,
-0.0452239103615284,
0.01605181396007538,
0.03804308548569679,
0.05267210304737091,
-0.03477733954787254,
-0.0007615301292389631,
0.01720723882317543,
0.031702570617198944,
-0.0440780334174633,
0.01323486864566803,
0.010981312021613121,
0.021466078236699104,
0.013406749814748764,
0.04067860171198845,
0.013492690399289131,
-0.03227550908923149,
-0.006139985751360655,
0.02402520179748535,
-0.06676638126373291,
-0.06565869599580765,
0.008135720156133175,
-0.051793597638607025,
0.030461205169558525,
0.018906954675912857,
0.02366233989596367,
0.005562273319810629,
0.0330585241317749,
-0.006669953465461731,
-0.007653497159481049,
-0.008813696913421154,
-0.043505094945430756,
-0.03502561151981354,
-0.01128687895834446,
-0.005213736090809107,
-0.006607885472476482,
0.016519714146852493,
0.05156442150473595,
-0.02635514922440052,
0.010456118732690811,
0.039723701775074005,
0.03745105117559433,
0.010522961616516113,
0.05152622610330582,
-0.07883626967668533,
-0.09770502895116806,
-0.022363681346178055,
-0.01855364255607128,
0.003740807995200157,
0.02324218675494194,
-0.013320809230208397,
-0.016939867287874222,
-0.01559346355497837,
0.02515197917819023,
-0.0035044709220528603,
0.039532724767923355,
0.015526620671153069,
0.045567672699689865,
0.012786067090928555,
0.01859183982014656,
0.06539132446050644,
-0.03710728511214256,
-0.11359451711177826,
0.030613988637924194,
-0.02557213418185711,
0.039991073310375214,
0.013168025761842728,
-0.015641208738088608,
-0.03185535594820976,
0.027959376573562622,
0.02249736711382866,
0.017445962876081467,
0.0008785050013102591,
-0.016701143234968185,
0.08257947117090225,
0.05748478323221207,
0.0063452888280153275,
0.007429096382111311,
-0.005800997372716665,
0.08089885115623474,
0.014619468711316586,
0.02561032958328724,
-0.02717636153101921,
-0.006689051631838083,
-0.006669953465461731,
0.012757420539855957,
-0.00654104258865118,
-0.02834133431315422,
-0.016691595315933228,
-0.013339906930923462,
0.021752547472715378,
0.010828528553247452,
-0.008990352973341942,
-0.0063978079706430435,
0.027997571974992752,
-0.008703883737325668,
-0.00021007728355471045,
0.0013583406107500196,
-0.0007716758991591632,
-0.028990663588047028,
-0.015622110106050968,
-0.04277937486767769,
-0.02211540751159191,
0.06313776969909668,
0.009997768327593803,
0.032714761793613434,
-0.02328038215637207,
-0.007920868694782257,
0.0356176495552063,
-0.0015982583863660693,
0.014886840246617794,
0.013502239249646664,
-0.06626982986927032,
0.006259347777813673,
0.04419261962175369,
0.018801916390657425,
-0.01208899263292551,
0.024273473769426346,
-0.018983347341418266,
-0.011516054160892963,
0.035751331597566605,
0.0175510011613369,
0.029850071296095848,
0.015201956033706665,
0.06076962873339653,
0.0010396437719464302,
-0.019900048151612282,
-0.011353721842169762,
0.01747461035847664,
0.0008062909473665059,
-0.010943116620182991,
0.027386438101530075,
-0.05125885456800461,
-0.010895371437072754,
0.010809430852532387,
0.0035951861646026373,
-0.010962214320898056,
-0.012623734772205353,
-0.022841129451990128,
-0.06080782413482666,
-0.07898905873298645,
0.007295411080121994,
0.006135211326181889,
-0.03456726297736168,
-0.00896170549094677,
0.000470585044240579,
0.023337675258517265,
0.08846163004636765,
0.0374128520488739,
0.027768395841121674,
-0.010551609098911285,
0.016777535900473595,
0.015813089907169342,
-0.018057096749544144,
0.04308494180440903,
-0.04801220819354057,
0.01926981657743454,
0.059967514127492905,
0.03531208261847496,
0.011372819542884827,
-0.029334427788853645,
0.02328038215637207,
0.07811055332422256,
-0.06565869599580765,
0.008498581126332283,
-0.011936209164559841,
-0.07150266319513321,
-0.007409998681396246,
0.04491834342479706,
-0.027615612372756004,
0.07696467638015747,
0.016032716259360313,
-0.04686633124947548,
-0.008207336999475956,
-0.020759453997015953,
0.003869718872010708,
-0.007916093803942204,
0.0005353390006348491,
-0.05511663854122162,
-0.05068591982126236,
0.036610741168260574,
0.010074160061776638,
0.013960589654743671,
-0.030995948240160942,
0.04006746783852577,
0.006369160953909159,
-0.02215360477566719,
0.07692647725343704,
-0.02024381048977375,
-0.049578238278627396,
0.09701750427484512,
0.013359005562961102,
-0.009463026188313961,
-0.06577328592538834,
0.03261927142739296,
-0.007085333578288555,
-0.05549859628081322,
-0.011592445895075798,
-0.06466560810804367,
0.028360432013869286,
0.0008540357812307775,
0.005228059366345406,
-0.004955913871526718,
-0.03156888484954834,
0.0016519713681191206,
-0.0285705104470253,
0.007228568196296692,
-0.022707443684339523,
0.00007165455463109538,
-0.06382529437541962,
-0.05263390764594078,
0.05144983530044556,
0.08754493296146393,
0.0096731036901474,
-0.07398539781570435,
0.04537669196724892,
0.04713370278477669,
0.06436003744602203,
0.0018656294560059905,
0.024502649903297424,
-0.003468662267550826,
0.0029625671450048685,
0.07108251005411148,
0.007481615990400314,
0.03592321649193764,
0.010284237563610077,
-0.039570920169353485,
-0.04060220718383789,
-0.02826494351029396,
-0.00015576752775814384,
0.02425437606871128,
-0.05244292691349983,
0.025801310315728188,
-0.019785460084676743,
-0.024311671033501625,
0.05102968215942383,
-0.022478269413113594,
0.045529477298259735,
-0.006373935844749212,
-0.05866885557770729,
0.007672595325857401,
-0.11496956646442413,
0.026928087696433067,
-0.028207648545503616,
-0.014056080020964146,
0.06562050431966782,
0.00720947002992034,
0.006388259120285511,
0.08479482680559158,
0.00720947002992034,
-0.06126617267727852,
0.005777125246822834,
0.033956129103899,
-0.05519302934408188,
0.03319220989942551,
0.0005988992634229362,
-0.032409194856882095,
-0.01057070679962635,
-0.0043638781644403934,
-0.014533528126776218,
-0.013034339994192123,
0.012518695555627346,
-0.043505094945430756,
0.03311581909656525,
-0.0636725127696991,
-0.011936209164559841,
0.007648722734302282
] |
10,238 | wsdiff | html_diff_block | null | def html_diff_block(old, new, filename, lexer, hide_filename=True):
code = html_diff_content(old, new, lexer)
filename = f'<div class="wsd-file-title"><div class="wsd-filename">‭{filename}</div></div>'
if hide_filename:
filename = ''
return textwrap.dedent(f'''<div class="wsd-file-container">
{filename}
<div class="wsd-diff">
{code}
</div>
</div>''')
| (old, new, filename, lexer, hide_filename=True) | [
0.03990178555250168,
-0.07177390903234482,
0.0384930744767189,
0.04757926985621452,
-0.020091764628887177,
-0.02567378804087639,
-0.020109374076128006,
0.04529011249542236,
-0.03305191919207573,
0.05282672494649887,
-0.002542286179959774,
-0.09614463895559311,
-0.02960057556629181,
0.05423543602228165,
-0.019105665385723114,
-0.012150146998465061,
-0.03694349154829979,
-0.036027826368808746,
-0.048671022057533264,
-0.028667302802205086,
-0.014562566764652729,
-0.03148472681641579,
-0.016164977103471756,
0.022363314405083656,
0.018013913184404373,
0.04162745922803879,
-0.02000371925532818,
-0.01279287226498127,
-0.021253952756524086,
-0.01738879643380642,
0.00878684502094984,
-0.065117746591568,
0.03585173562169075,
-0.017996303737163544,
-0.03537629544734955,
-0.010398060083389282,
-0.008795649744570255,
0.010292407125234604,
-0.020848946645855904,
-0.004816036205738783,
0.010318820364773273,
-0.004802829585969448,
0.03585173562169075,
-0.019598715007305145,
-0.050361476838588715,
0.0049172877334058285,
0.022997234016656876,
-0.047473616898059845,
-0.02732902579009533,
0.020197417587041855,
0.07628179341554642,
0.021218733862042427,
-0.05099539831280708,
0.040148310363292694,
-0.007448568008840084,
-0.004970114212483168,
0.029371658340096474,
0.04384618252515793,
-0.004168909043073654,
0.03419649973511696,
-0.03477759286761284,
-0.00007022928184596822,
0.008672387339174747,
-0.0018445331370458007,
-0.017450427636504173,
0.00684106070548296,
0.037753500044345856,
-0.0017542875139042735,
-0.02268027327954769,
0.024652471765875816,
-0.021905481815338135,
0.03372105956077576,
0.0365913100540638,
0.034443024545907974,
-0.009552832692861557,
-0.011762750335037708,
-0.0049833208322525024,
-0.018084349110722542,
0.03479520231485367,
-0.038986124098300934,
0.0017784996889531612,
-0.03317518159747124,
0.05863766372203827,
0.03565803915262222,
0.03146711736917496,
-0.0054543595761060715,
0.06670254468917847,
-0.03565803915262222,
-0.009544027969241142,
-0.004212931264191866,
-0.009852183982729912,
-0.02326136827468872,
-0.017811410129070282,
-0.05184062570333481,
-0.004741198383271694,
-0.02606118470430374,
-0.02164134755730629,
0.006832256447523832,
0.004802829585969448,
0.04821319133043289,
0.04035961627960205,
0.09741248190402985,
0.027417071163654327,
0.017890650779008865,
0.027505114674568176,
-0.02621966414153576,
-0.017758583649992943,
-0.021306779235601425,
0.007078781258314848,
-0.04775536060333252,
-0.011410572566092014,
-0.08698800951242447,
-0.018401309847831726,
0.004860058892518282,
0.0657164454460144,
-0.009244676679372787,
-0.004551902879029512,
0.038422636687755585,
0.04726231098175049,
-0.030991679057478905,
0.03877481445670128,
-0.0591307133436203,
-0.07973313331604004,
-0.00046856203698553145,
-0.03747175633907318,
0.048671022057533264,
0.06867474317550659,
-0.025145521387457848,
0.03569325804710388,
0.038986124098300934,
0.06448382139205933,
0.04641708359122276,
-0.003662653034552932,
-0.010670998133718967,
0.034513458609580994,
0.008368633687496185,
-0.03814089670777321,
0.03065710887312889,
0.05416500195860863,
0.025744223967194557,
-0.015284532681107521,
-0.021729392930865288,
0.025480089709162712,
0.0649416521191597,
-0.08776280283927917,
0.002716174116358161,
-0.07571830600500107,
-0.024740517139434814,
-0.007113998755812645,
0.06539948284626007,
0.015839213505387306,
0.004525489639490843,
0.028790565207600594,
-0.008738420903682709,
0.06853386759757996,
-0.00384534546174109,
-0.0004820438625756651,
-0.00835982896387577,
0.00044104811968281865,
-0.03291105106472969,
0.060574643313884735,
-0.06141987070441246,
0.05979985371232033,
0.028191862627863884,
0.04148658737540245,
-0.03352736309170723,
-0.017961086705327034,
-0.020901774987578392,
-0.04190920293331146,
0.023507893085479736,
0.019528279080986977,
0.027012065052986145,
-0.025198347866535187,
0.05043191462755203,
-0.04497315362095833,
0.028103817254304886,
0.021887872368097305,
-0.03312235698103905,
0.030815590173006058,
-0.06413164734840393,
-0.018454136326909065,
0.013946255668997765,
0.013620490208268166,
0.0625116229057312,
0.013840601779520512,
-0.06395555287599564,
-0.021447651088237762,
0.007800746243447065,
0.05803896114230156,
-0.03430215269327164,
-0.016279436647892,
-0.017705757170915604,
-0.050326261669397354,
-0.0238424614071846,
-0.01053893193602562,
0.00581534206867218,
-0.01871826872229576,
0.020655250176787376,
0.011481008492410183,
-0.03634478524327278,
-0.04944581538438797,
0.029213178902864456,
-0.005295879207551479,
-0.05293237790465355,
0.04507880657911301,
0.037823934108018875,
0.007404545787721872,
0.002381604863330722,
-0.030974069610238075,
0.0075630261562764645,
0.018471745774149895,
0.016939770430326462,
-0.01085589174181223,
0.014166366308927536,
0.015504644252359867,
-0.036732181906700134,
-0.03023449517786503,
0.05789808928966522,
-0.06744211912155151,
-0.0031718045938760042,
0.027557941153645515,
-0.033844321966171265,
-0.03292865678668022,
0.031643208116292953,
-0.011551443487405777,
-0.008835270069539547,
0.06515295803546906,
-0.015548666007816792,
-0.033210400491952896,
-0.010574149899184704,
-0.013373966328799725,
-0.016561178490519524,
0.002306767040863633,
-0.021236343309283257,
-0.0029032686725258827,
-0.011525030247867107,
-0.06159596145153046,
0.0038013230077922344,
-0.017635321244597435,
-0.02780446596443653,
-0.013734948821365833,
0.019017621874809265,
0.06254684180021286,
0.07867660373449326,
0.02222244255244732,
-0.09600377082824707,
-0.003246642416343093,
0.001789505360648036,
-0.046874914318323135,
0.07254870235919952,
-0.02275070920586586,
-0.052615419030189514,
-0.010811869986355305,
0.03588695451617241,
0.01584801822900772,
0.042296599596738815,
-0.028720129281282425,
-0.06395555287599564,
0.004714785143733025,
-0.028174253180623055,
0.04391661658883095,
-0.04712143912911415,
-0.04595924913883209,
-0.0004660857957787812,
0.031097332015633583,
-0.0032268324866890907,
-0.009165436960756779,
-0.00567447068169713,
-0.028174253180623055,
0.027170546352863312,
-0.0014890533639118075,
0.018894359469413757,
-0.011357746087014675,
-0.02665988728404045,
-0.01759129948914051,
-0.06004637852311134,
0.021870264783501625,
0.02282114513218403,
0.009579245932400227,
-0.07614091783761978,
-0.03012884221971035,
-0.023050060495734215,
-0.03909177705645561,
0.06892126798629761,
0.012722436338663101,
0.0011610874207690358,
-0.03972569853067398,
-0.039514388889074326,
0.008443471975624561,
-0.026466188952326775,
0.002632531803101301,
0.01810195855796337,
0.024088986217975616,
-0.042437467724084854,
-0.018911967054009438,
0.04648751765489578,
0.005969420075416565,
-0.012352649122476578,
-0.013576468452811241,
0.04095832258462906,
-0.0724782645702362,
-0.043494004756212234,
0.05736982449889183,
0.019211318343877792,
-0.07290088385343552,
-0.03241800144314766,
-0.02155330404639244,
-0.03122059442102909,
0.03852828964591026,
-0.031590379774570465,
-0.008210153318941593,
0.04726231098175049,
0.002614922821521759,
0.002065744949504733,
0.0649416521191597,
0.021236343309283257,
0.018595006316900253,
0.011701119132339954,
0.0409231036901474,
0.015398990362882614,
0.015302141197025776,
-0.020074155181646347,
-0.010838283225893974,
0.09212981164455414,
0.011128829792141914,
-0.06828735023736954,
0.038352202624082565,
-0.009852183982729912,
0.05391847714781761,
0.0418739840388298,
-0.018084349110722542,
0.008584342896938324,
0.02098981849849224,
-0.05733460560441017,
-0.05698242783546448,
0.008078087121248245,
-0.016525959596037865,
-0.04032440111041069,
0.0008028561715036631,
-0.03574608266353607,
0.06923823058605194,
-0.002735984046012163,
-0.015768777579069138,
-0.04669882357120514,
-0.021729392930865288,
0.0010301211150363088,
-0.024106595665216446,
-0.01393745094537735,
-0.023736808449029922,
0.008170533925294876,
-0.014835505746304989,
-0.029406877234578133,
0.0030265310779213905,
0.008047271519899368,
0.04888232797384262,
-0.004003825597465038,
-0.004868863150477409,
0.004371411632746458,
-0.05131235718727112,
-0.023085279390215874,
-0.03704914450645447,
0.029406877234578133,
-0.004653153941035271,
0.012722436338663101,
0.011216874234378338,
-0.05564415082335472,
0.024141812697052956,
-0.009579245932400227,
-0.05923636630177498,
0.014280824922025204,
-0.01597128063440323,
0.012026884593069553,
0.03537629544734955,
-0.07571830600500107,
0.006334804929792881,
-0.05694720894098282,
-0.050255823880434036,
0.0021537896245718002,
-0.03076276369392872,
0.013708535581827164,
-0.019176101312041283,
0.075084388256073,
-0.030991679057478905,
0.050326261669397354,
-0.0039598033763468266,
-0.008791247382760048,
-0.025761833414435387,
0.012167755514383316,
0.025462482124567032,
-0.0024872582871466875,
0.028191862627863884,
-0.02621966414153576,
0.011850795708596706,
0.06726603209972382,
-0.05324934050440788,
-0.013224289752542973,
-0.002454241504892707,
-0.012141342274844646,
-0.030040796846151352,
-0.04838927835226059,
0.06948475539684296,
0.010926327668130398,
-0.0803670585155487,
0.012291017919778824,
0.010310015641152859,
0.0027227774262428284,
0.015152465552091599,
0.04599446803331375,
-0.02960057556629181,
-0.0002960497804451734,
-0.057158514857292175,
-0.005221041385084391,
-0.04331791400909424,
0.012687218375504017,
0.02676554024219513,
0.023648763075470924,
-0.010961545631289482,
-0.0031894135754555464,
-0.039021339267492294,
-0.005797733087092638,
-0.02051437832415104,
-0.029882317408919334,
0.05050234869122505,
-0.015222901478409767,
0.003396318294107914,
-0.020602421835064888,
0.02000371925532818,
0.026959238573908806,
-0.015795189887285233,
0.005661264061927795,
0.07036519795656204,
-0.004036842379719019,
-0.01507322583347559,
-0.023190932348370552,
0.04775536060333252,
-0.06987214833498001,
0.00026110708131454885,
-0.04071179777383804,
0.05560893192887306,
0.04895276576280594,
0.03634478524327278,
0.00806928239762783,
0.022609839215874672,
0.0045695118606090546,
-0.05363673344254494,
-0.034460633993148804,
-0.048037100583314896,
0.0016904552467167377,
-0.007994444109499454,
0.011586661450564861,
0.059447675943374634,
0.05215758830308914,
0.009086196310818195,
-0.016834115609526634,
0.030903633683919907,
-0.01986284926533699,
-0.02961818315088749,
-0.04201485589146614,
-0.03690827265381813,
0.06237075477838516,
-0.04046527296304703,
0.04310660809278488,
0.010899914428591728,
0.0707525908946991,
0.009623268619179726,
-0.0660686269402504,
-0.00384534546174109,
-0.032206691801548004,
-0.050326261669397354,
-0.008262979798018932,
0.018894359469413757,
-0.06863952428102493,
-0.014060713350772858,
0.03926786407828331,
0.01163068413734436,
0.025920312851667404,
-0.0328582227230072,
-0.037225231528282166,
-0.01931697316467762,
-0.030850807204842567,
-0.07628179341554642,
-0.04757926985621452,
-0.07205565273761749,
0.006158715579658747,
-0.0008457778603769839,
0.011419377289712429,
0.03176647052168846,
0.010415669530630112,
0.014148757793009281,
-0.026466188952326775,
-0.052509766072034836,
-0.014043104834854603,
-0.031555164605379105,
-0.04553663730621338,
-0.04247268661856651,
0.0038915686309337616,
0.032118648290634155,
0.04321226105093956,
-0.021253952756524086,
-0.0807192325592041,
0.0026831573341041803,
-0.0209369920194149,
0.03581652045249939,
-0.006365620531141758,
0.04025396332144737,
0.020725684240460396,
0.028896218165755272,
-0.019193710759282112,
0.01333874836564064,
0.0046663605608046055,
-0.030005579814314842,
-0.035552386194467545,
0.05803896114230156,
0.06680820137262344,
-0.04025396332144737,
-0.04905841872096062,
-0.032083429396152496,
0.09480636566877365,
0.07402785122394562,
0.02555052563548088,
-0.004439645912498236,
-0.027575550600886345,
-0.01053893193602562,
-0.06377946585416794,
0.006079475395381451,
0.001119266264140606,
-0.023437457159161568,
-0.001515466719865799,
0.01339157484471798,
-0.04219094291329384,
-0.04620577394962311,
-0.0038585520815104246,
0.05360151827335358,
-0.059940725564956665,
-0.047966666519641876,
-0.0010923026129603386,
0.0029340842738747597,
0.03704914450645447,
-0.02896665409207344,
-0.02273309975862503,
0.026307709515094757,
-0.0026787552051246166,
0.00484685180708766,
0.00455630524083972,
-0.019017621874809265,
0.06518817692995071,
-0.028033381327986717,
0.031009288504719734,
0.04676926136016846,
0.020778512582182884,
0.006440458353608847,
-0.007915204390883446,
-0.0010603864211589098,
-0.0294773131608963,
-0.032646916806697845,
0.027469897642731667,
0.010794260539114475,
0.05765156447887421,
0.06592775136232376,
-0.017415210604667664,
0.038316983729600906,
0.017476841807365417,
0.04497315362095833,
0.010415669530630112,
0.05162931978702545,
0.01924653723835945,
0.07268957048654556,
-0.0008072584168985486,
-0.036133479326963425,
-0.020021328702569008,
0.030445802956819534,
0.12488237768411636,
0.1179092526435852,
-0.02616683766245842,
-0.0077038975432515144,
0.008835270069539547,
0.005014136433601379,
0.032206691801548004,
0.027100110426545143,
-0.0005043301498517394,
-0.00829379539936781,
-0.02493421360850334,
0.013048200868070126,
0.03990178555250168,
-0.03289344161748886,
-0.03405562788248062,
-0.024124205112457275,
-0.012951351702213287,
0.06367380917072296,
0.07297131419181824,
-0.037154797464609146,
-0.05493979528546333,
0.013259507715702057,
-0.004868863150477409,
0.028033381327986717,
-0.002412420464679599,
-0.009957837872207165,
0.021201126277446747,
-0.03130863979458809,
0.02498704008758068,
-0.007043563295155764,
-0.03592217341065407,
-0.0009019062854349613,
0.02106025442481041,
0.010186753235757351,
0.026395753026008606,
0.036556094884872437,
-0.06437817215919495,
-0.09487679600715637,
0.007457372732460499,
0.02505747601389885,
-0.0057449061423540115,
0.023666372522711754,
0.010265993885695934,
0.011789164505898952,
0.03863394632935524,
0.009834575466811657,
-0.029266005381941795,
-0.02285636216402054,
0.02338463068008423,
-0.03472476825118065,
0.03690827265381813,
-0.06539948284626007,
0.011551443487405777,
-0.019545888528227806,
-0.025709006935358047,
0.03711957857012749,
0.06384990364313126,
0.013462010771036148,
0.009913815185427666,
-0.013831797055900097,
-0.020267853513360023,
0.010362842120230198,
-0.017054228112101555,
0.0294773131608963,
0.02620205469429493,
0.0328582227230072,
0.0031013689003884792,
-0.011674705892801285,
0.02044394239783287,
0.07740876078605652,
-0.03218908607959747,
-0.010107513517141342,
-0.021975917741656303,
-0.021835045889019966,
-0.004829243291169405,
0.028508823364973068,
-0.004622338339686394,
0.010186753235757351,
0.0009816966485232115,
-0.004221735987812281,
0.03456628695130348,
0.006000235676765442,
-0.02963579259812832,
0.004565109498798847,
0.022275269031524658,
-0.007629059720784426,
-0.012572760693728924,
0.0634625032544136,
0.030375367030501366,
0.05976463481783867,
-0.026272490620613098,
0.018383700400590897,
-0.003937792032957077,
-0.008249773643910885,
0.01709824986755848,
0.08424101769924164,
-0.017890650779008865,
-0.0047456007450819016,
-0.04131050035357475,
-0.018876750022172928,
0.01420158427208662,
-0.010644584894180298,
-0.052650634199380875,
-0.057722002267837524,
-0.0388452522456646,
0.02495182305574417,
0.02271549217402935,
0.025709006935358047,
0.00453429389744997,
-0.05729938670992851,
0.07684527337551117,
0.0025158727075904608,
-0.055925894528627396,
-0.0012568358797580004,
0.05353108048439026,
-0.07790181040763855,
0.014280824922025204,
0.008170533925294876,
-0.03505933657288551,
-0.049164071679115295,
0.00567447068169713,
-0.012343844398856163,
-0.004912885371595621,
-0.01673726737499237,
0.010970350354909897,
0.056559812277555466,
-0.05448196083307266,
-0.05567936971783638,
-0.0036890662740916014,
0.02049676887691021,
0.021447651088237762,
0.017811410129070282,
-0.011507421731948853,
0.005260661244392395,
-0.02736424282193184,
0.014932353980839252,
-0.03852828964591026,
-0.0615607425570488,
-0.04102875664830208,
0.008738420903682709,
-0.019158491864800453,
0.006753016263246536,
0.09677855670452118,
0.01017794944345951,
-0.015090834349393845,
-0.05117148905992508,
-0.038352202624082565,
0.09353852272033691,
0.028121426701545715,
-0.008896901272237301,
0.02225765958428383,
0.05412978306412697,
0.04571272432804108,
-0.006215944420546293,
0.01880631409585476,
0.01023077592253685,
-0.042437467724084854,
-0.046839695423841476,
0.02681836672127247,
-0.0006740910466760397,
0.014606589451432228,
-0.004457254894077778,
-0.0006135603762231767,
0.04314182698726654,
-0.013180267997086048,
-0.017688147723674774,
-0.0013723942684009671,
0.04592403396964073,
0.00390477548353374,
0.0736052393913269,
0.02727619931101799,
-0.04708622023463249,
0.04000743851065636,
-0.029107525944709778,
-0.0082585783675313,
0.029318831861019135,
0.036063045263290405,
-0.04148658737540245,
0.04359965771436691,
0.0013206681469455361,
-0.03683783486485481,
-0.052509766072034836,
0.06307511031627655,
0.05339020863175392,
0.03306952863931656,
0.058848973363637924,
-0.016041714698076248,
-0.0159536711871624,
0.013796580024063587,
0.09628551453351974,
0.023525500670075417,
0.04546619951725006,
0.058778535574674606,
-0.031026896089315414,
-0.012960156425833702,
-0.04282486438751221,
0.03178407996892929
] |
10,239 | wsdiff | html_diff_content | null | def html_diff_content(old, new, lexer):
diff = list(difflib._mdiff(old.splitlines(), new.splitlines()))
fmt_l = RecordFormatter('left', diff)
pygments.highlight(old, lexer, fmt_l)
fmt_r = RecordFormatter('right', diff)
pygments.highlight(new, lexer, fmt_r)
return '\n'.join(chain.from_iterable(zip(fmt_l.lines, fmt_r.lines)))
| (old, new, lexer) | [
0.02828882448375225,
-0.06530541181564331,
0.04601603373885155,
0.029460450634360313,
-0.001772296498529613,
-0.021259067580103874,
-0.03606570512056351,
0.015265097841620445,
0.01267563458532095,
0.036133624613285065,
0.013286917470395565,
-0.0738973394036293,
0.01028993260115385,
0.05311371013522148,
-0.013541619293391705,
-0.051313821226358414,
-0.05134778097271919,
-0.06092454865574837,
0.005013370420783758,
-0.05919257923960686,
-0.0002841511450242251,
-0.009466398507356644,
0.02981703169643879,
-0.002863266970962286,
0.017166867852211,
0.001705437432974577,
-0.024026822298765182,
-0.05389479547739029,
0.02032516337931156,
0.040073003619909286,
-0.010315402410924435,
-0.0630979984998703,
0.016954615712165833,
-0.03504689782857895,
-0.03504689782857895,
-0.04937808960676193,
0.017472509294748306,
0.006953345146030188,
0.026132352650165558,
0.015188687480986118,
-0.05508340150117874,
-0.02633611299097538,
0.015825441107153893,
-0.028713326901197433,
-0.010671984404325485,
-0.03919003903865814,
-0.003748354036360979,
-0.01891581527888775,
-0.023534400388598442,
0.009831470437347889,
0.08530795574188232,
-0.012106801383197308,
-0.03847687691450119,
0.03742410987615585,
-0.012217172421514988,
0.0015865768073126674,
0.0020163853187114,
0.03732223063707352,
-0.009067365899682045,
0.006987305358052254,
-0.007089185994118452,
0.017362138256430626,
-0.003913910128176212,
0.006694398820400238,
-0.014551933854818344,
-0.005178926512598991,
0.04669523611664772,
-0.011903040111064911,
0.0280511025339365,
0.013575579039752483,
-0.06207919493317604,
0.03902023658156395,
0.04224645346403122,
-0.005582203157246113,
-0.020732685923576355,
0.03300928696990013,
-0.005395422223955393,
0.02214203216135502,
0.03156597912311554,
-0.0031837662681937218,
0.014314212836325169,
-0.012446403503417969,
0.07688583433628082,
0.03817123547196388,
0.04914037138223648,
-0.056272007524967194,
0.012115291319787502,
-0.0031455610878765583,
0.01402555126696825,
-0.03592986240983009,
-0.007186821661889553,
-0.014373643323779106,
-0.022040152922272682,
-0.08394954353570938,
-0.01764230988919735,
0.0002369252615608275,
-0.029969852417707443,
0.03345077112317085,
0.004495477769523859,
0.04638959467411041,
0.05538904294371605,
0.13258051872253418,
-0.011665319092571735,
0.02163263037800789,
0.0015473103849217296,
-0.02485884726047516,
-0.03779767081141472,
0.0022286362946033478,
-0.006409982684999704,
-0.010858764871954918,
-0.014127431437373161,
-0.06455828994512558,
0.012743555009365082,
-0.00614254642277956,
0.05987178534269333,
-0.0008527187164872885,
-0.032635726034641266,
0.012819965369999409,
0.03158295899629593,
-0.03708450868725777,
0.01464532408863306,
-0.055524881929159164,
-0.012038880959153175,
0.010188051499426365,
-0.05358915403485298,
0.03647322580218315,
0.04248417541384697,
-0.02236277423799038,
0.025470130145549774,
-0.00440633250400424,
0.04971769452095032,
0.008672579191625118,
-0.020036501809954643,
0.010969135910272598,
0.038341034203767776,
0.011461557820439339,
-0.07688583433628082,
0.01450948417186737,
0.04363882169127464,
0.04031072556972504,
0.0008314935839734972,
-0.014254782348871231,
0.05039689689874649,
0.06112831085920334,
-0.13054290413856506,
0.014356663450598717,
-0.05246846750378609,
0.05270618945360184,
0.024790925905108452,
0.07410109788179398,
0.02333063818514347,
-0.006872689817100763,
0.07396525889635086,
-0.021157188341021538,
0.03626946359872818,
0.016564074903726578,
-0.0003892154200002551,
-0.03881647810339928,
0.021479809656739235,
0.013830279931426048,
0.0397334024310112,
-0.044080305844545364,
0.07457654178142548,
0.029867971315979958,
0.029460450634360313,
0.01007768139243126,
-0.021649610251188278,
-0.07600286602973938,
-0.04238229617476463,
0.0007688795449212193,
-0.007653773762285709,
0.024519244208931923,
-0.017761170864105225,
-0.0031519285403192043,
0.009755059145390987,
-0.002447254955768585,
-0.03236404433846474,
0.030394354835152626,
0.017829090356826782,
-0.05083837732672691,
-0.009508848190307617,
0.032194241881370544,
0.017574388533830643,
0.03749202936887741,
-0.02132698893547058,
-0.01984972134232521,
-0.038884397596120834,
-0.016648974269628525,
0.02433246374130249,
-0.03475823625922203,
0.011104976758360863,
-0.054268356412649155,
-0.048563048243522644,
-0.02957930974662304,
-0.015316037461161613,
-0.001832788111642003,
-0.05335143208503723,
0.002262596506625414,
0.05175530165433884,
0.01910259760916233,
-0.061501871794462204,
0.0013775095576420426,
-0.03559026122093201,
-0.012166231870651245,
0.030411334708333015,
0.020715706050395966,
-0.04350298270583153,
0.024909786880016327,
-0.08687011897563934,
-0.024468304589390755,
0.021208127960562706,
0.02309291809797287,
-0.031158458441495895,
0.005658613983541727,
0.03127731755375862,
-0.014220822602510452,
0.004987900145351887,
0.04051448777318001,
-0.10507277399301529,
-0.041567251086235046,
0.044623665511608124,
-0.014857575297355652,
-0.03025851398706436,
0.008553718216717243,
-0.00820987205952406,
-0.006231691688299179,
0.033909231424331665,
-0.012811475433409214,
-0.028000162914395332,
-0.024043802171945572,
-0.0026955886278301477,
-0.033382847905159,
0.015265097841620445,
-0.013337858021259308,
0.028883127495646477,
-0.02504562772810459,
-0.021157188341021538,
-0.011232326738536358,
-0.010705944150686264,
-0.0024451324716210365,
-0.05409855395555496,
0.03307720646262169,
0.0753236636519432,
0.04516702890396118,
0.04204269498586655,
-0.05813981592655182,
-0.0005231989198364317,
-0.04540475085377693,
-0.010816315189003944,
0.05532111972570419,
-0.02134396880865097,
-0.03851083666086197,
0.010714434087276459,
0.003334464505314827,
0.027983183041214943,
0.028883127495646477,
0.004758669063448906,
-0.013066176325082779,
0.005518528167158365,
-0.02482488565146923,
0.058717139065265656,
-0.02781338058412075,
-0.05691725015640259,
-0.012098311446607113,
0.00893152505159378,
-0.0007237761747092009,
-0.00466527882963419,
0.009899389930069447,
0.023041976615786552,
0.03969944268465042,
0.014950966462492943,
-0.014373643323779106,
-0.039359841495752335,
-0.017031027004122734,
-0.013269937597215176,
-0.0344865545630455,
0.004588868468999863,
0.03358661010861397,
0.016156552359461784,
-0.06951647251844406,
-0.043095458298921585,
-0.041804973036050797,
-0.03681282699108124,
0.0406842865049839,
0.04119369015097618,
-0.018932797014713287,
-0.032703645527362823,
-0.07810840010643005,
0.006821749731898308,
-0.041635170578956604,
0.020545903593301773,
-0.0019474036525934935,
-0.01118138711899519,
-0.027881301939487457,
0.0002950289926957339,
0.04472554847598076,
0.02260049432516098,
-0.014407603070139885,
-0.029205748811364174,
0.03501293808221817,
-0.055728644132614136,
-0.03336586803197861,
0.052060943096876144,
0.026709675788879395,
-0.04961581155657768,
-0.05661160871386528,
-0.004898754879832268,
-0.004234408959746361,
0.006342062260955572,
-0.04299357905983925,
-0.05953218415379524,
0.05389479547739029,
-0.00967864878475666,
-0.03222820535302162,
-0.012769024819135666,
0.017234787344932556,
-0.02457018569111824,
0.06921083480119705,
0.025911612436175346,
-0.003154051024466753,
-0.0037992943543940783,
0.004081588238477707,
-0.022447673603892326,
0.076614148914814,
0.03127731755375862,
-0.025673890486359596,
0.030954698100686073,
0.002634035889059305,
0.057256851345300674,
0.06075474992394447,
0.00783631019294262,
-0.012293582782149315,
0.019255418330430984,
-0.024247562512755394,
-0.03008871339261532,
-0.024536224082112312,
-0.002302924171090126,
-0.049072448164224625,
-0.03844291716814041,
-0.04255209490656853,
0.05620408430695534,
-0.0149000259116292,
-0.0022710864432156086,
-0.05830961465835571,
0.03606570512056351,
0.023704200983047485,
-0.02438340336084366,
0.01565564051270485,
-0.07206348329782486,
0.015451878309249878,
-0.04812156409025192,
0.00632932735607028,
-0.005565223284065723,
-0.004775649402290583,
0.0150188859552145,
0.0012490976369008422,
-0.021157188341021538,
-0.04547267034649849,
-0.04411426559090614,
-0.013431248255074024,
-0.05097422003746033,
0.021989211440086365,
0.010213522240519524,
0.005420892499387264,
-0.022481635212898254,
-0.005569468252360821,
-0.01016258168965578,
-0.016351822763681412,
-0.06425264477729797,
0.03511481732130051,
-0.013125606812536716,
0.022481635212898254,
0.012998255901038647,
-0.01984972134232521,
0.009381497278809547,
-0.04774800315499306,
-0.07491613924503326,
0.012667144648730755,
-0.03127731755375862,
0.012853925116360188,
-0.023228758946061134,
0.05284202843904495,
-0.02779640071094036,
0.02854352444410324,
-0.01180115994066,
-0.00427898159250617,
-0.002383579732850194,
-0.01292184554040432,
0.024977706372737885,
0.027507739141583443,
-0.00982297956943512,
-0.05735873058438301,
-0.017192337661981583,
0.04469158872961998,
-0.06010950729250908,
-0.011767200194299221,
-0.005811434704810381,
-0.003682556329295039,
0.003393894759938121,
-0.05321558937430382,
0.06306403875350952,
0.043367139995098114,
-0.02034214325249195,
-0.023806080222129822,
-0.016071651130914688,
0.039869241416454315,
0.01450948417186737,
0.043095458298921585,
-0.048800766468048096,
0.021445849910378456,
-0.059498220682144165,
0.01791399158537388,
-0.028390703722834587,
0.014348172582685947,
0.011758709326386452,
-0.023279698565602303,
0.04017488285899162,
0.013185037299990654,
-0.04812156409025192,
0.03027549386024475,
-0.020732685923576355,
-0.008519758470356464,
0.05763041228055954,
-0.00351063278503716,
0.0174045879393816,
-0.04095596820116043,
-0.035895902663469315,
0.027949221432209015,
-0.015952792018651962,
0.0100522106513381,
0.11023472249507904,
-0.0402088426053524,
0.017574388533830643,
-0.00879568513482809,
0.0014709000242874026,
-0.046287715435028076,
0.0201044213026762,
0.0075985887087881565,
0.0799422487616539,
0.016521623358130455,
0.028441645205020905,
-0.009508848190307617,
0.09114910662174225,
0.02555502951145172,
-0.030105693265795708,
-0.06347156316041946,
0.004304451867938042,
-0.016377292573451996,
-0.03199048340320587,
0.021717529743909836,
0.014322702772915363,
0.05257034674286842,
-0.03423185274004936,
-0.012200191617012024,
0.024875827133655548,
-0.012480363249778748,
0.03187162056565285,
-0.029222728684544563,
-0.03129429742693901,
0.113155297935009,
0.022023171186447144,
0.047781962901353836,
-0.023500438779592514,
0.09209998697042465,
-0.01293882541358471,
-0.07674998790025711,
-0.00446576252579689,
-0.014331192709505558,
-0.06646005809307098,
-0.004208938684314489,
0.04496327042579651,
-0.030954698100686073,
-0.024892807006835938,
0.03373943269252777,
-0.03129429742693901,
0.04727255925536156,
-0.026488935574889183,
-0.04846116527915001,
-0.017285726964473724,
0.007012775633484125,
-0.07729335129261017,
-0.04054844751954079,
-0.05019313469529152,
-0.00978901982307434,
-0.003680433612316847,
-0.00943243782967329,
0.026387054473161697,
-0.0064354524947702885,
0.018440373241901398,
-0.03793351352214813,
-0.04166913032531738,
-0.00608736090362072,
-0.033943191170692444,
-0.04316337779164314,
-0.0486309677362442,
-0.051551543176174164,
0.030411334708333015,
-0.009279617108404636,
-0.0033493221271783113,
-0.008417877368628979,
0.028696345165371895,
-0.0397334024310112,
0.02214203216135502,
0.03236404433846474,
0.06112831085920334,
0.008248076774179935,
0.07226724922657013,
0.02657383494079113,
0.023738160729408264,
-0.009551298804581165,
-0.034180913120508194,
-0.02283821627497673,
0.04278981685638428,
0.03129429742693901,
-0.07403317838907242,
-0.08075729012489319,
-0.022515594959259033,
0.04876680672168732,
0.041567251086235046,
0.037593912333250046,
-0.02903594821691513,
0.005543997976928949,
0.000054057698434917256,
-0.0734218955039978,
-0.020461004227399826,
0.006562803406268358,
-0.03905420005321503,
0.011903040111064911,
-0.003060660557821393,
-0.06296215951442719,
-0.022685395553708076,
-0.01594430021941662,
0.049547892063856125,
-0.0605509877204895,
-0.06863351166248322,
0.044827427715063095,
0.016283903270959854,
0.013821789994835854,
0.016309373080730438,
-0.0010835417779162526,
0.010621043853461742,
-0.022006191313266754,
-0.05487963929772377,
0.055524881929159164,
-0.032160282135009766,
0.0705692395567894,
-0.015715070068836212,
0.00982297956943512,
-0.007717449218034744,
0.044555746018886566,
-0.032873447984457016,
-0.0033196068834513426,
-0.00825656671077013,
0.008379672653973103,
-0.028679365292191505,
0.0516534224152565,
0.006002460606396198,
0.054506078362464905,
0.08714180439710617,
-0.0037886817008256912,
0.07382941246032715,
-0.0013913058210164309,
0.07885552197694778,
0.042857736349105835,
0.029001986607909203,
0.05060065910220146,
0.046049993485212326,
0.044080305844545364,
-0.061467912048101425,
0.0054124025627970695,
0.04031072556972504,
0.08313450217247009,
0.043808624148368835,
-0.029239708557724953,
0.021496789529919624,
-0.0069066500291228294,
-0.020410064607858658,
0.017761170864105225,
0.03329794853925705,
0.01007768139243126,
-0.005718044005334377,
0.01891581527888775,
0.03058113530278206,
0.008863604627549648,
0.016080141067504883,
0.01293882541358471,
-0.04051448777318001,
0.023296678438782692,
0.06666381657123566,
0.043808624148368835,
-0.0734218955039978,
-0.037865594029426575,
-0.02360231988132,
0.002803836716338992,
0.02983401156961918,
-0.004962430335581303,
0.018949776887893677,
0.010408792644739151,
-0.05362311378121376,
-0.011869080364704132,
0.0013934283051639795,
-0.016377292573451996,
0.0022052887361496687,
-0.049038488417863846,
0.03409601375460625,
-0.0017627452034503222,
0.06829390674829483,
-0.09148870408535004,
-0.07260684669017792,
-0.005569468252360821,
0.036405306309461594,
-0.0038459894713014364,
0.03772975131869316,
-0.0352846197783947,
0.02631913311779499,
0.02334761805832386,
-0.008248076774179935,
0.008753234520554543,
-0.004300206899642944,
0.02584369108080864,
0.04251813516020775,
-0.006711379159241915,
-0.04971769452095032,
0.003317484399303794,
0.004372372291982174,
0.028934067115187645,
0.00502610532566905,
0.06027930602431297,
0.0100522106513381,
-0.02411172352731228,
0.02232881262898445,
0.020664764568209648,
0.015316037461161613,
-0.012327542528510094,
-0.006898160092532635,
0.030920736491680145,
0.029426489025354385,
-0.005276561714708805,
0.0016300883144140244,
0.05314766988158226,
0.007454257924109697,
-0.0332130491733551,
-0.007704714313149452,
-0.03205840289592743,
-0.024179643020033836,
-0.011325717903673649,
0.009228676557540894,
-0.009729589335620403,
-0.00316466367803514,
0.023415539413690567,
0.01016258168965578,
0.04251813516020775,
-0.009389988146722317,
-0.02012140303850174,
-0.05199302360415459,
0.04377466440200806,
-0.019221458584070206,
-0.0015759642701596022,
0.025470130145549774,
0.01866111531853676,
0.05036293715238571,
0.027728481218218803,
0.01030691247433424,
0.0008935770601965487,
0.01990066096186638,
0.03518274053931236,
0.0675467848777771,
0.04404634237289429,
0.06163771450519562,
0.0025215428322553635,
0.014950966462492943,
0.020223282277584076,
-0.006134056020528078,
-0.0392579585313797,
-0.051313821226358414,
-0.05049877613782883,
0.0710446834564209,
-0.010238992050290108,
0.03545441851019859,
-0.01191153097897768,
-0.014636834152042866,
0.07776879519224167,
-0.0201044213026762,
-0.030377374961972237,
-0.01377934031188488,
0.057732295244932175,
-0.03360358998179436,
0.02827184461057186,
0.01578298956155777,
-0.012412442825734615,
-0.02382306195795536,
-0.00801035575568676,
0.011113466694951057,
-0.026132352650165558,
-0.002049284055829048,
0.042280413210392,
0.0014592261286452413,
-0.0734218955039978,
-0.0402088426053524,
-0.0010952155571430922,
0.009024916216731071,
0.02085154689848423,
0.006499127950519323,
-0.009517338126897812,
0.01700555719435215,
-0.011622869409620762,
-0.009483378380537033,
-0.008574943989515305,
-0.06224899739027023,
-0.068973109126091,
-0.0038162744604051113,
0.011894550174474716,
0.020953426137566566,
0.053555190563201904,
0.03497897833585739,
-0.03300928696990013,
-0.014925495721399784,
-0.035658180713653564,
0.04397842288017273,
0.014373643323779106,
-0.011240817606449127,
0.01514623686671257,
0.03423185274004936,
-0.004024280235171318,
-0.023279698565602303,
0.03742410987615585,
0.014874555170536041,
-0.04024280607700348,
-0.08422122895717621,
-0.005493057891726494,
-0.025538049638271332,
0.047612160444259644,
0.029901932924985886,
-0.008897565305233002,
-0.00477989437058568,
-0.004276859108358622,
-0.04567643254995346,
-0.051177978515625,
0.07382941246032715,
-0.0027719989884644747,
0.03827311471104622,
0.012234152294695377,
-0.0003953176492359489,
0.06948251277208328,
-0.03129429742693901,
-0.01053614355623722,
0.024909786880016327,
0.03698262944817543,
-0.08034976571798325,
0.031192418187856674,
0.03525066003203392,
-0.023517418652772903,
-0.05545696243643761,
0.00220316625200212,
0.03667698800563812,
0.043536942452192307,
0.0406842865049839,
-0.02163263037800789,
-0.01579996943473816,
0.043299220502376556,
0.08347410708665848,
0.02356836013495922,
0.011232326738536358,
0.05263826623558998,
-0.022634455934166908,
-0.006855709943920374,
-0.06116227060556412,
0.06870143115520477
] |
10,241 | wsdiff | iter_token_lines | null | def iter_token_lines(tokensource):
lineno = 1
for ttype, value in tokensource:
left, newline, right = value.partition('\n')
while newline:
yield lineno, ttype, left
lineno += 1
left, newline, right = right.partition('\n')
if left != '':
yield lineno, ttype, left
| (tokensource) | [
-0.031073786318302155,
0.0011609713546931744,
0.002880384447053075,
0.0036377853248268366,
0.01107840146869421,
-0.001461670733988285,
0.009794211946427822,
0.05115056410431862,
0.06442655622959137,
0.012932338751852512,
0.0016074987361207604,
-0.003965615760535002,
-0.010128824971616268,
0.02477944642305374,
0.003459174418821931,
0.025358235463500023,
0.01606142148375511,
0.013474954292178154,
-0.017752572894096375,
0.011829020455479622,
-0.05303163081407547,
0.06189435347914696,
0.018222840502858162,
-0.02524971216917038,
0.002821601228788495,
0.007872448302805424,
0.014325051568448544,
-0.018105274066329002,
-0.01176571473479271,
-0.04554353654384613,
-0.02575615420937538,
-0.015346977859735489,
-0.03664464130997658,
-0.01336643099784851,
-0.033208075910806656,
-0.058530136942863464,
-0.04554353654384613,
0.005661289673298597,
0.016802996397018433,
0.009920821525156498,
-0.012326417490839958,
0.0117747588083148,
-0.0004552883910946548,
0.0045692757703363895,
-0.05939831957221031,
-0.05216344818472862,
-0.03063969500362873,
-0.08023475855588913,
0.001217493787407875,
-0.020257649943232536,
-0.008586891926825047,
-0.01995016634464264,
-0.014225572347640991,
-0.04344542324542999,
0.03769369795918465,
-0.04416891187429428,
0.005408068653196096,
-0.021541839465498924,
-0.015464544296264648,
0.052814584225416183,
-0.01458731573075056,
0.029138457030057907,
0.009111420251429081,
0.03805544227361679,
0.04999298229813576,
-0.07444685697555542,
0.007189656607806683,
0.007515226025134325,
-0.0028668190352618694,
-0.0062446012161672115,
0.0013599303783848882,
-0.01617898792028427,
-0.019913991913199425,
-0.005123195704072714,
0.014062787406146526,
0.012968513183295727,
-0.06735668331384659,
0.09304048866033554,
0.07531504333019257,
-0.028451144695281982,
-0.04586910456418991,
0.058530136942863464,
0.011720497161149979,
0.012887120246887207,
0.02906610816717148,
-0.0014062788104638457,
0.005738160107284784,
0.04055147245526314,
-0.026461554691195488,
0.08645675331354141,
-0.050065331161022186,
0.03863422945141792,
-0.029590638354420662,
-0.019443726167082787,
-0.06688641756772995,
0.027908528223633766,
0.010481524281203747,
0.007632792927324772,
-0.05068029835820198,
0.01392713375389576,
0.05277841165661812,
0.05408068746328354,
0.006181295961141586,
0.024417702108621597,
0.015708722174167633,
-0.003988224547356367,
-0.053899817168712616,
-0.014388357289135456,
0.06572883576154709,
0.03517957776784897,
-0.06637997180223465,
-0.08508212864398956,
-0.013691999949514866,
0.031580228358507156,
0.027329739183187485,
-0.054876524955034256,
-0.02183123491704464,
0.05216344818472862,
-0.006099903956055641,
-0.026913734152913094,
0.04500092193484306,
-0.013529215939342976,
-0.014442618936300278,
0.05834926292300224,
-0.00564320245757699,
-0.03943006694316864,
0.06540326774120331,
-0.00714896060526371,
0.02459857426583767,
-0.05693846568465233,
0.02078217826783657,
0.04243253916501999,
0.0628710612654686,
-0.008604979142546654,
-0.042324017733335495,
0.011195968836545944,
-0.019208591431379318,
-0.0013113210443407297,
-0.013881916180253029,
-0.09774315357208252,
0.04652024433016777,
-0.004209792707115412,
-0.0042798807844519615,
-0.05426156148314476,
-0.05238049104809761,
0.0036310027353465557,
-0.019100069999694824,
0.07806430011987686,
0.035161491483449936,
0.0016278468538075686,
-0.033931560814380646,
-0.008030710741877556,
0.0465925931930542,
0.003811874659731984,
-0.016450297087430954,
0.001219754689373076,
-0.045905280858278275,
0.007944797165691853,
0.01755361445248127,
0.006647041067481041,
0.023079250007867813,
-0.036463767290115356,
0.037512823939323425,
-0.0031200398225337267,
0.002927863271906972,
0.06619910150766373,
-0.03664464130997658,
-0.08211582899093628,
-0.04293898120522499,
-0.042721934616565704,
0.068152517080307,
-0.017092391848564148,
0.006018511485308409,
0.01059004757553339,
-0.007759402971714735,
-0.019678859040141106,
-0.0465925931930542,
0.09354692697525024,
-0.024092132225632668,
0.026895646005868912,
0.007176091428846121,
0.010363957844674587,
-0.03136318176984787,
-0.03791074454784393,
-0.0003558088792487979,
0.01662212423980236,
0.011150750331580639,
-0.034329481422901154,
0.0028170794248580933,
-0.004996585194021463,
0.008844634518027306,
-0.052669886499643326,
-0.013013730756938457,
-0.0017194132087752223,
-0.0077955774031579494,
0.010608134791254997,
-0.026660513132810593,
0.018376581370830536,
-0.006339558865875006,
0.0012954947305843234,
-0.05125908553600311,
-0.007908622734248638,
-0.062436968088150024,
0.045326489955186844,
-0.0286862775683403,
0.03863422945141792,
-0.03333468362689018,
0.03517957776784897,
-0.08826547116041183,
0.004322837572544813,
0.02257280983030796,
-0.039538588374853134,
0.022934552282094955,
0.07972832024097443,
0.010237347334623337,
-0.037440475076436996,
-0.023929348215460777,
0.03805544227361679,
-0.018005793914198875,
-0.03478166088461876,
0.09636852890253067,
0.016305599361658096,
-0.005096064880490303,
-0.04026207700371742,
0.07310841232538223,
-0.005796943325549364,
0.022102542221546173,
-0.04380716755986214,
-0.02222915180027485,
0.00869541522115469,
0.011738584376871586,
-0.019371377304196358,
-0.010065519250929356,
0.054948873817920685,
-0.009893691167235374,
-0.012651987373828888,
0.034184783697128296,
-0.03736812621355057,
-0.04796721786260605,
-0.016495514661073685,
-0.10432689636945724,
-0.008338193409144878,
0.014677751809358597,
-0.039140671491622925,
0.014433574862778187,
0.026678601279854774,
-0.010562917217612267,
0.01250728964805603,
-0.029934294521808624,
0.02819792367517948,
-0.012344504706561565,
0.006543039809912443,
0.029102282598614693,
0.04803956672549248,
0.025647630915045738,
-0.09166586399078369,
0.012516332790255547,
-0.008790372870862484,
0.02680521085858345,
-0.006393820513039827,
0.02427300438284874,
0.014750100672245026,
-0.015048539265990257,
0.019244765862822533,
0.018521279096603394,
-0.0032828242983669043,
-0.010092650540173054,
0.01995016634464264,
0.03054925799369812,
0.013058949261903763,
0.024327266961336136,
0.017535528168082237,
-0.047460779547691345,
0.02257280983030796,
-0.022428112104535103,
-0.0036649161484092474,
-0.07249344140291214,
0.030929088592529297,
-0.009559078142046928,
-0.05939831957221031,
-0.018593627959489822,
0.03903215005993843,
-0.054044514894485474,
-0.005371894687414169,
-0.046809639781713486,
-0.0006330515607260168,
-0.005385459866374731,
-0.13493041694164276,
-0.019081981852650642,
-0.03798309341073036,
0.020474694669246674,
-0.02052895724773407,
0.0005672028637491167,
-0.009522903710603714,
0.09289579093456268,
-0.015202280133962631,
0.0009772733319550753,
0.04724373295903206,
-0.01964268460869789,
-0.022138716652989388,
0.002563858637586236,
0.0162513367831707,
-0.00004769082443090156,
-0.023169687017798424,
-0.0038593534845858812,
0.012516332790255547,
0.00564320245757699,
0.016106639057397842,
-0.03707873448729515,
-0.06609058380126953,
0.035559408366680145,
0.05342955142259598,
-0.006384776905179024,
-0.07437451183795929,
-0.004062834195792675,
-0.03226754069328308,
-0.044205084443092346,
0.06934627145528793,
0.02745634876191616,
0.03877892717719078,
-0.016965780407190323,
-0.017861096188426018,
0.03456461429595947,
-0.01882876083254814,
-0.004352229181677103,
0.05791517347097397,
0.04438595473766327,
-0.05386364087462425,
-0.05068029835820198,
0.006886696442961693,
0.022464286535978317,
-0.019027721136808395,
-0.07777490466833115,
0.04861835762858391,
-0.019244765862822533,
-0.012588681653141975,
-0.0072303530760109425,
0.04898010194301605,
0.009956995956599712,
-0.03536045178771019,
0.021143920719623566,
-0.04286663234233856,
0.021216269582509995,
-0.003748569404706359,
0.014089918695390224,
-0.020800264552235603,
0.02011295221745968,
-0.027836181223392487,
0.08349045366048813,
0.0710102915763855,
-0.020637480542063713,
0.04586910456418991,
0.024634748697280884,
-0.006429994944483042,
0.04800339415669441,
0.018403712660074234,
-0.011982761323451996,
-0.060085635632276535,
-0.0262445081025362,
0.04055147245526314,
0.020727915689349174,
0.027818093076348305,
0.04015355557203293,
0.008261322975158691,
-0.031073786318302155,
-0.04308367893099785,
-0.025195451453328133,
-0.009947952814400196,
0.0428304597735405,
0.04756930097937584,
-0.08283931761980057,
0.011829020455479622,
0.04594145342707634,
-0.020094864070415497,
0.007488095201551914,
-0.06515004485845566,
-0.003330303356051445,
0.003621959127485752,
-0.04793104529380798,
0.014967147260904312,
0.015374109148979187,
0.017309438437223434,
0.08913365751504898,
0.024797532707452774,
-0.06905687600374222,
0.01711047813296318,
-0.013863828964531422,
-0.00855523906648159,
-0.04203462228178978,
0.04644789546728134,
-0.05133143439888954,
-0.01319460291415453,
-0.023115424439311028,
0.009803255088627338,
-0.009197334758937359,
-0.04406038671731949,
-0.023314382880926132,
-0.03029603697359562,
-0.02101731114089489,
-0.07082942128181458,
0.02989812009036541,
0.016730647534132004,
-0.04854600876569748,
0.01392713375389576,
-0.0007184004643931985,
-0.04033442586660385,
-0.023838911205530167,
-0.025973200798034668,
-0.020167212933301926,
-0.02964489907026291,
0.005023716017603874,
-0.032376065850257874,
0.05809604376554489,
-0.051367610692977905,
0.011919455602765083,
-0.06706728786230087,
-0.0115215377882123,
0.060483552515506744,
0.04691816121339798,
0.009767080657184124,
-0.014216529205441475,
-0.03472739830613136,
-0.007234874647110701,
0.011060314252972603,
-0.01697482541203499,
0.007994536310434341,
-0.017191870138049126,
-0.02206636779010296,
-0.006271732039749622,
-0.027275478467345238,
-0.004811191465705633,
-0.016821084544062614,
0.004983020015060902,
0.01397235132753849,
-0.018593627959489822,
-0.02459857426583767,
-0.01275146659463644,
0.06413716077804565,
0.05679376795887947,
0.014207485131919384,
0.01054483000189066,
0.060411203652620316,
0.04637554660439491,
0.037766046822071075,
0.08030711114406586,
0.0011191447265446186,
-0.004293445963412523,
0.018394669517874718,
-0.038163963705301285,
0.012272155843675137,
-0.10360340774059296,
0.011928499676287174,
-0.02468900941312313,
-0.0022936812601983547,
-0.01021926011890173,
0.03877892717719078,
-0.03780221939086914,
0.03241223841905594,
0.028234098106622696,
0.030205601826310158,
0.08009006083011627,
0.04814809188246727,
0.03338894620537758,
-0.014524010941386223,
0.031236572191119194,
-0.031327009201049805,
-0.00949577335268259,
0.034003909677267075,
0.018756411969661713,
0.01128640491515398,
0.018494147807359695,
0.028216011822223663,
-0.03103761188685894,
0.004157791845500469,
0.014632534235715866,
0.04366246983408928,
0.018231883645057678,
0.007316267117857933,
-0.004019877407699823,
-0.020149126648902893,
-0.03232180327177048,
0.0030047339387238026,
0.009911778382956982,
-0.040117379277944565,
-0.006945479661226273,
0.02508692815899849,
0.007194178644567728,
-0.08522682636976242,
0.011214056052267551,
-0.02638920582830906,
-0.020637480542063713,
0.010734745301306248,
-0.008039754815399647,
-0.033931560814380646,
0.040117379277944565,
0.024580486118793488,
0.053646594285964966,
0.019859731197357178,
0.05064412206411362,
0.009631427004933357,
0.011150750331580639,
0.012407810427248478,
-0.011322579346597195,
-0.04749695211648941,
0.04503709450364113,
0.08529917150735855,
0.0278723556548357,
0.007375050336122513,
-0.05979624018073082,
-0.018222840502858162,
0.008944113738834858,
0.015003321692347527,
0.003429782809689641,
-0.0013429736718535423,
-0.03863422945141792,
-0.005647724028676748,
0.00033150421222671866,
0.036536116153001785,
-0.015120888128876686,
0.018105274066329002,
-0.008912460878491402,
-0.0330633781850338,
0.046230848878622055,
-0.031146135181188583,
-0.02720312960445881,
0.07401277124881744,
-0.054695650935173035,
0.017707355320453644,
0.022699419409036636,
-0.011123619973659515,
0.03226754069328308,
-0.011114575900137424,
0.014352182857692242,
-0.03212284296751022,
-0.017209958285093307,
-0.033208075910806656,
0.05939831957221031,
0.013637739233672619,
0.06985271722078323,
0.07220404595136642,
0.0008625327027402818,
-0.018539367243647575,
-0.034094348549842834,
0.06431803852319717,
-0.006895740050822496,
-0.00013607782602775842,
-0.010743789374828339,
-0.053718943148851395,
-0.08450333774089813,
-0.002364899730309844,
0.027022257447242737,
-0.008161842823028564,
-0.02673286199569702,
0.01824997179210186,
-0.051295261830091476,
0.004141965880990028,
-0.030097078531980515,
-0.011105532757937908,
0.029952380806207657,
0.015120888128876686,
0.06164113059639931,
0.03226754069328308,
-0.04254106432199478,
-0.027148867025971413,
-0.005073456093668938,
0.022211065515875816,
-0.02501457929611206,
0.010653353296220303,
-0.019913991913199425,
0.11843489855527878,
-0.0003871788503602147,
-0.03780221939086914,
0.007194178644567728,
0.007067568134516478,
0.018973458558321,
-0.0025887286756187677,
-0.03038647398352623,
-0.0023988131433725357,
-0.0206013061106205,
-0.03452843800187111,
0.003816396463662386,
0.06117086485028267,
0.07075707614421844,
-0.0476054772734642,
-0.004582840949296951,
-0.003569958498701453,
-0.030892914161086082,
0.008604979142546654,
0.025611456483602524,
0.058457788079977036,
-0.015844374895095825,
0.00576076889410615,
-0.04359012097120285,
0.009378205984830856,
0.03659037873148918,
-0.02362186647951603,
0.014632534235715866,
-0.0012423635926097631,
-0.05570853501558304,
0.005982337053865194,
0.004955889191478491,
0.0009976214496418834,
-0.04228784143924713,
0.06413716077804565,
0.01995016634464264,
-0.08638440072536469,
0.015120888128876686,
-0.0009693601750768721,
0.010743789374828339,
0.04380716755986214,
0.05187405273318291,
-0.0056974636390805244,
0.03438374027609825,
-0.022590896114706993,
-0.031489793211221695,
0.060411203652620316,
0.012832858599722385,
0.032466500997543335,
0.04514561966061592,
-0.013791480101644993,
0.05342955142259598,
-0.02403787150979042,
-0.008894373662769794,
-0.01964268460869789,
-0.008410542272031307,
0.05491269752383232,
0.011657191440463066,
-0.04724373295903206,
0.01664925552904606,
-0.07473625242710114,
-0.03358790650963783,
0.01632368564605713,
0.007411224767565727,
-0.06395629048347473,
-0.033208075910806656,
0.056576721370220184,
-0.009269683621823788,
-0.09072532504796982,
-0.04514561966061592,
-0.03729577735066414,
-0.0851544737815857,
0.013294082134962082,
-0.019425638020038605,
-0.012986600399017334,
-0.03290059417486191,
0.005891900975257158,
-0.034419916570186615,
0.028451144695281982,
0.04840131103992462,
0.06189435347914696,
0.0178791843354702,
0.058457788079977036,
0.018955372273921967,
0.03599350154399872,
0.011593886651098728,
0.04691816121339798,
-0.05863865837454796,
0.0011688844533637166,
0.011819976381957531,
-0.034835923463106155,
0.048437487334012985,
0.00013565389963332564,
0.03805544227361679,
0.037187255918979645,
-0.06786312162876129,
-0.005200066138058901,
0.0024282047525048256,
0.04970359057188034,
0.02713078074157238,
-0.0019217636436223984,
0.025521021336317062,
0.01588054932653904,
-0.005082499701529741,
-0.012299287132918835,
0.038959801197052,
-0.044603001326322556,
0.02362186647951603,
-0.021143920719623566,
-0.008654719218611717,
-0.05444243177771568,
-0.0655117928981781,
0.02850540541112423,
0.033678341656923294,
-0.05921744927763939,
-0.02852349355816841,
0.005168413743376732,
0.009260639548301697,
0.018883023411035538,
0.07390424609184265,
-0.023187773302197456,
0.011024140752851963,
0.022464286535978317,
0.024417702108621597,
0.01453305408358574,
-0.07155290991067886,
0.04803956672549248,
-0.014008525758981705,
-0.016495514661073685,
-0.0026678601279854774,
0.009622382931411266,
-0.02647964097559452,
-0.037766046822071075,
0.0017295872094109654,
0.0013339300639927387,
-0.021849321201443672,
-0.029373591765761375,
0.013167471624910831,
-0.005204588174819946,
-0.02125244401395321,
0.046556416898965836,
0.001083535491488874,
-0.038742754608392715,
-0.02638920582830906,
-0.02931932918727398,
0.02394743449985981,
-0.044603001326322556,
-0.047533128410577774,
0.027908528223633766,
0.04829278960824013,
0.021559925749897957,
0.017209958285093307,
0.05881953239440918,
0.007908622734248638,
0.0959344357252121,
-0.0029097760561853647,
0.027727657929062843,
-0.026769036427140236,
0.043373074382543564,
-0.03698829561471939,
-0.009111420251429081,
0.010318740271031857,
0.046556416898965836,
-0.041094087064266205,
-0.024417702108621597,
-0.0039904857985675335,
0.06692259013652802,
-0.04894392564892769,
-0.00005366100958781317,
0.018557453528046608,
0.013049905188381672,
-0.01783396676182747,
0.011838063597679138,
-0.05230814591050148,
0.017309438437223434,
0.015075670555233955,
0.03736812621355057,
0.04351777210831642,
0.04145583137869835,
-0.015075670555233955,
0.025701891630887985,
0.01299564354121685,
-0.03715108335018158,
-0.00498754158616066,
-0.02680521085858345,
-0.04474769905209541,
0.008225148543715477,
0.06659702211618423,
-0.04775017127394676,
-0.03329851105809212,
0.046809639781713486,
0.013312169350683689,
-0.023151598870754242,
0.016821084544062614,
0.03765752166509628,
-0.005403547082096338,
-0.03210475668311119,
-0.010192129760980606,
0.03820013999938965
] |
10,242 | functools | lru_cache | Least-recently-used cache decorator.
If *maxsize* is set to None, the LRU features are disabled and the cache
can grow without bound.
If *typed* is True, arguments of different types will be cached separately.
For example, f(3.0) and f(3) will be treated as distinct calls with
distinct results.
Arguments to the cached function must be hashable.
View the cache statistics named tuple (hits, misses, maxsize, currsize)
with f.cache_info(). Clear the cache and statistics with f.cache_clear().
Access the underlying function with f.__wrapped__.
See: https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)
| def lru_cache(maxsize=128, typed=False):
"""Least-recently-used cache decorator.
If *maxsize* is set to None, the LRU features are disabled and the cache
can grow without bound.
If *typed* is True, arguments of different types will be cached separately.
For example, f(3.0) and f(3) will be treated as distinct calls with
distinct results.
Arguments to the cached function must be hashable.
View the cache statistics named tuple (hits, misses, maxsize, currsize)
with f.cache_info(). Clear the cache and statistics with f.cache_clear().
Access the underlying function with f.__wrapped__.
See: https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)
"""
# Users should only access the lru_cache through its public API:
# cache_info, cache_clear, and f.__wrapped__
# The internals of the lru_cache are encapsulated for thread safety and
# to allow the implementation to change (including a possible C version).
if isinstance(maxsize, int):
# Negative maxsize is treated as 0
if maxsize < 0:
maxsize = 0
elif callable(maxsize) and isinstance(typed, bool):
# The user_function was passed in directly via the maxsize argument
user_function, maxsize = maxsize, 128
wrapper = _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo)
wrapper.cache_parameters = lambda : {'maxsize': maxsize, 'typed': typed}
return update_wrapper(wrapper, user_function)
elif maxsize is not None:
raise TypeError(
'Expected first argument to be an integer, a callable, or None')
def decorating_function(user_function):
wrapper = _lru_cache_wrapper(user_function, maxsize, typed, _CacheInfo)
wrapper.cache_parameters = lambda : {'maxsize': maxsize, 'typed': typed}
return update_wrapper(wrapper, user_function)
return decorating_function
| (maxsize=128, typed=False) | [
0.006402970291674137,
0.0018101749010384083,
0.011375008150935173,
0.0008032014011405408,
0.06372177600860596,
0.04499286413192749,
-0.03457785025238991,
0.011230102740228176,
-0.005311657674610615,
-0.05423052981495857,
0.00590486079454422,
0.014608190394937992,
-0.012244435027241707,
0.006090519484132528,
0.007652771659195423,
0.030611086636781693,
-0.0035931800957769156,
0.020956821739673615,
-0.042094774544239044,
-0.010514636524021626,
0.03486765921115875,
-0.0007720696157775819,
0.0595557726919651,
-0.009898792952299118,
-0.012425566092133522,
0.05039056017994881,
0.0684674009680748,
0.009518418461084366,
0.037385374307632446,
-0.014961395412683487,
0.022822467610239983,
0.006783344782888889,
-0.028727328404784203,
-0.009599926881492138,
-0.0087893670424819,
-0.029723547399044037,
-0.00020433806639630347,
0.06633006036281586,
-0.07585753500461578,
-0.04379740357398987,
0.024380192160606384,
0.02715149149298668,
-0.004467135760933161,
-0.02490547113120556,
-0.010822558775544167,
0.0019335701363161206,
0.008481444790959358,
0.029832225292921066,
0.030393730849027634,
-0.07948014885187149,
-0.004754680674523115,
-0.03209635987877846,
0.053542234003543854,
0.008495029993355274,
-0.00119659467600286,
-0.015024791471660137,
0.00896596908569336,
0.002128285588696599,
0.006647496484220028,
0.0008603708120062947,
0.003534312592819333,
-0.025340184569358826,
0.008336540311574936,
-0.008069372735917568,
-0.008241446688771248,
-0.010976520366966724,
-0.05654900148510933,
-0.003258088370785117,
-0.023673782125115395,
0.0046867565251886845,
-0.04397853463888168,
0.014807434752583504,
0.019580228254199028,
-0.023420199751853943,
-0.02597414143383503,
0.013458010740578175,
-0.02032286487519741,
-0.05868634581565857,
0.04488418623805046,
-0.02869110181927681,
0.03756650537252426,
-0.037004999816417694,
0.006774288136512041,
-0.010206714272499084,
-0.003258088370785117,
-0.046007197350263596,
0.007571263238787651,
-0.0016562137752771378,
0.04285552352666855,
0.03044806979596615,
-0.06690967828035355,
0.011311612091958523,
-0.005026376806199551,
-0.03579142689704895,
-0.04267439246177673,
-0.03695066273212433,
0.02894468605518341,
-0.014182533137500286,
0.024724340066313744,
0.008110126480460167,
0.06850362569093704,
0.03035750426352024,
0.02552131563425064,
-0.00487241568043828,
0.018692687153816223,
-0.024651886895298958,
-0.012335000559687614,
-0.012670092284679413,
-0.03977629914879799,
0.034432943910360336,
-0.022822467610239983,
-0.049774713814258575,
-0.03528425842523575,
0.010251997038722038,
0.011021803133189678,
0.07237982749938965,
-0.05868634581565857,
-0.06444630026817322,
0.003817329416051507,
0.008748612366616726,
0.017787033692002296,
0.005030904896557331,
-0.010487467050552368,
-0.052129413932561874,
-0.00014914981147740036,
0.004831661470234394,
-0.010188601911067963,
0.00902483705431223,
0.01820363476872444,
0.02159077860414982,
0.005189394578337669,
0.02410849556326866,
0.001942626666277647,
0.09527474641799927,
0.029795998707413673,
-0.006371272262185812,
0.03479520604014397,
0.0677066519856453,
-0.016827041283249855,
0.05466524511575699,
-0.01961645483970642,
0.014390833675861359,
0.044811733067035675,
0.012244435027241707,
0.027821674942970276,
-0.05292638763785362,
0.007928996346890926,
0.004913169890642166,
0.028057144954800606,
-0.010822558775544167,
0.0347408689558506,
-0.03731292486190796,
0.029089590534567833,
0.04948490485548973,
-0.021663231775164604,
0.059809356927871704,
-0.03544727712869644,
0.00007790035306243226,
0.008250502869486809,
0.009690492413938046,
-0.020232299342751503,
0.017859486863017082,
0.00010683880827855319,
-0.07353906333446503,
-0.010170488618314266,
0.021445874124765396,
-0.013204427435994148,
-0.0439060814678669,
-0.01746099814772606,
0.08665292710065842,
0.010895011015236378,
-0.013675367459654808,
0.08042202889919281,
0.011148594319820404,
0.04473928362131119,
-0.0016097991028800607,
-0.05778069049119949,
-0.005293544381856918,
0.04300042614340782,
0.006629383657127619,
-0.028075257316231728,
-0.02870921604335308,
-0.05470146983861923,
-0.033020127564668655,
-0.013829329051077366,
0.060533877462148666,
-0.005234676878899336,
-0.011311612091958523,
0.013385558500885963,
0.04379740357398987,
-0.04086308553814888,
-0.007430886849761009,
0.03298389911651611,
-0.06995267421007156,
-0.07042361795902252,
0.023546990007162094,
-0.03184277564287186,
0.01641044020652771,
0.017153076827526093,
0.015033847652375698,
-0.0519845113158226,
0.08716008812189102,
0.057345978915691376,
-0.013249710202217102,
0.011012746021151543,
0.004727511201053858,
-0.01245273556560278,
-0.006747118197381496,
-0.07060474157333374,
0.04568115994334221,
-0.020594559609889984,
-0.008648990653455257,
-0.01785043068230152,
0.07513301074504852,
-0.0335635170340538,
-0.012679148465394974,
-0.04760114848613739,
0.06879343837499619,
0.00997124519199133,
-0.008920686319470406,
0.03818235173821449,
-0.050716593861579895,
-0.06549686193466187,
-0.01245273556560278,
0.07897298038005829,
-0.01607534848153591,
0.07049606740474701,
-0.0009984829230234027,
-0.0027509224601089954,
-0.029306946322321892,
0.03445105999708176,
-0.009196911007165909,
0.06643874198198318,
0.045898519456386566,
-0.00855389703065157,
-0.04825321584939957,
0.024742452427744865,
0.007005229592323303,
-0.00711390795186162,
0.009699548594653606,
0.004455815069377422,
0.034668415784835815,
0.0836099311709404,
0.02986845187842846,
-0.012851222418248653,
0.041297797113657,
-0.058541439473629,
0.09592681378126144,
-0.02832884155213833,
0.0009645209647715092,
-0.08534878492355347,
0.06006293743848801,
-0.03327370807528496,
-0.028908459469676018,
0.018819479271769524,
-0.005501844920217991,
-0.03680575639009476,
-0.03941404074430466,
-0.031480513513088226,
-0.032078247517347336,
0.0167817585170269,
-0.028437519446015358,
-0.03410691022872925,
-0.011021803133189678,
0.0005705616786144674,
-0.04336268827319145,
0.018140239641070366,
0.011230102740228176,
-0.016836097463965416,
0.06926437467336655,
0.04307287931442261,
-0.0074399434961378574,
0.06303348392248154,
-0.03434237837791443,
-0.005243733525276184,
-0.03432426601648331,
0.034070685505867004,
0.04640568420290947,
-0.0010199922835454345,
-0.0005801842780783772,
-0.009962188079953194,
-0.011791608296334743,
-0.049774713814258575,
-0.02407226897776127,
-0.0632508397102356,
0.006407498382031918,
-0.05977312847971916,
-0.003919215407222509,
-0.03450539708137512,
0.026499420404434204,
0.06962663680315018,
-0.014146307483315468,
-0.015867048874497414,
0.005393166560679674,
0.03379898890852928,
-0.029705433174967766,
-0.03446917235851288,
-0.056186743080616,
0.07274208962917328,
0.025919802486896515,
-0.03320125490427017,
-0.03586387634277344,
-0.02008739486336708,
-0.03191522881388664,
0.04158760607242584,
-0.01405574195086956,
-0.03615368530154228,
-0.06180179491639137,
-0.027115264907479286,
0.047420017421245575,
0.024144722148776054,
-0.0038943099789321423,
-0.0608961395919323,
-0.04796340689063072,
0.027549978345632553,
-0.010242940858006477,
-0.0292707197368145,
-0.001733194338157773,
0.021536439657211304,
0.06368555128574371,
0.004184118937700987,
0.052600353956222534,
-0.012434622272849083,
-0.03923290967941284,
-0.003631670493632555,
-0.06198292225599289,
0.04734756425023079,
0.005202979315072298,
0.00820974912494421,
0.007965222001075745,
-0.0057508996687829494,
-0.01959834061563015,
0.01832137070596218,
0.02633640356361866,
-0.051404889672994614,
0.06531573086977005,
0.028999025002121925,
0.01817646622657776,
-0.0034550679847598076,
-0.05430298298597336,
0.03519369289278984,
-0.003937328699976206,
-0.04803586006164551,
0.01819457858800888,
-0.03807367384433746,
0.006914664525538683,
0.10078112035989761,
0.000050907630793517455,
0.0736839696764946,
0.011230102740228176,
0.056041836738586426,
-0.07263340801000595,
-0.039740074425935745,
-0.02041342854499817,
0.0608961395919323,
-0.028256388381123543,
0.015640635043382645,
-0.05763578787446022,
-0.006185613106936216,
-0.06575044244527817,
-0.0271696038544178,
0.022876806557178497,
-0.027839787304401398,
0.03628047928214073,
0.014852716587483883,
0.014363664202392101,
0.026861682534217834,
-0.008599179796874523,
0.046115875244140625,
-0.03586387634277344,
-0.0051667531952261925,
-0.025557540357112885,
0.01239839568734169,
0.027694882825016975,
-0.002639979822561145,
-0.0736839696764946,
0.008603707887232304,
0.03599067032337189,
-0.06556931138038635,
0.050970178097486496,
0.03508501499891281,
0.014345550909638405,
0.02658998593688011,
-0.03695066273212433,
0.018366651609539986,
0.06441007554531097,
-0.011873116716742516,
0.0030973348766565323,
0.0020343242213129997,
-0.026608098298311234,
-0.023456424474716187,
-0.022985484451055527,
0.028039032593369484,
0.012135756202042103,
-0.05187582969665527,
0.0309552364051342,
0.05093395337462425,
0.044920410960912704,
-0.0467679463326931,
-0.043869853019714355,
0.07372019439935684,
0.014436116442084312,
-0.002312812488526106,
0.01127538550645113,
-0.0013018768513575196,
0.02950618974864483,
0.055679574608802795,
-0.0167817585170269,
-0.021300969645380974,
0.05100640282034874,
-0.012325943447649479,
-0.010614259168505669,
-0.059918034821748734,
-0.0063667441718280315,
0.041623834520578384,
0.015115357004106045,
-0.016582515090703964,
-0.0330563522875309,
-0.021101726219058037,
0.025177165865898132,
0.052382998168468475,
-0.06658364087343216,
-0.02773110941052437,
0.05444788560271263,
0.0008467860170640051,
-0.004763737320899963,
-0.007340321317315102,
0.006602213717997074,
-0.04629700630903244,
0.0027033756487071514,
0.03234994038939476,
-0.02832884155213833,
0.02492358349263668,
-0.004999207332730293,
-0.029669208452105522,
-0.031208818778395653,
-0.007870128378272057,
0.00383544247597456,
-0.031571079045534134,
-0.01805873028934002,
0.0397038497030735,
0.0026286591310054064,
0.04901396483182907,
0.06890211999416351,
0.029940903186798096,
0.03905177861452103,
-0.009445966221392155,
0.04828944429755211,
0.016328932717442513,
-0.018484387546777725,
0.04060950130224228,
0.019652679562568665,
0.04039214551448822,
0.051549796015024185,
-0.03184277564287186,
-0.06506214290857315,
-0.1102723702788353,
-0.01819457858800888,
-0.0038739326409995556,
0.022134171798825264,
0.01912740059196949,
0.03262163698673248,
0.010179544799029827,
-0.04879660904407501,
-0.06919192522764206,
-0.0021690400317311287,
-0.001614327309653163,
-0.017796091735363007,
-0.009753887541592121,
-0.019453436136245728,
0.04477550834417343,
-0.040464598685503006,
-0.04738378897309303,
-0.04053704813122749,
0.044703055173158646,
0.045536257326602936,
-0.05596938356757164,
-0.030176373198628426,
0.035972557961940765,
-0.016247423365712166,
0.05658522993326187,
-0.00566939078271389,
0.0335635170340538,
0.007064097095280886,
0.009455022402107716,
-0.011646703816950321,
-0.03528425842523575,
0.04013856127858162,
-0.009935018606483936,
0.06249009072780609,
-0.09150722622871399,
0.03128127008676529,
0.022170396521687508,
0.01463535986840725,
0.02954241633415222,
0.02173568308353424,
0.029125815257430077,
0.025829236954450607,
0.016510063782334328,
0.012570470571517944,
-0.004449022933840752,
-0.03521180897951126,
0.031082026660442352,
0.056730132550001144,
0.026879794895648956,
0.023800574243068695,
-0.0047003417275846004,
-0.01357574574649334,
-0.0307016521692276,
0.003966762218624353,
0.0177055262029171,
0.016030065715312958,
0.061946697533130646,
0.036316704005002975,
-0.017660243436694145,
-0.026535646989941597,
-0.012244435027241707,
0.009346343576908112,
-0.029669208452105522,
-0.071329265832901,
0.024724340066313744,
0.07085832953453064,
0.04223967716097832,
-0.0614033043384552,
0.008005976676940918,
0.011655759997665882,
0.04934000223875046,
-0.005180337931960821,
0.06198292225599289,
0.02633640356361866,
0.02751375176012516,
0.021409647539258003,
-0.007996920496225357,
0.00926483515650034,
0.017044398933649063,
-0.02918015420436859,
-0.0587950237095356,
-0.01605723612010479,
-0.008870875462889671,
-0.0359182171523571,
0.0007273529772646725,
0.008250502869486809,
0.05629542097449303,
-0.04767359793186188,
-0.04082685708999634,
0.013702536933124065,
0.008576538413763046,
-0.016600627452135086,
-0.020721351727843285,
-0.07708922773599625,
-0.06455498188734055,
-0.046695493161678314,
0.03068353980779648,
-0.06256254017353058,
-0.04437702149152756,
-0.04227590560913086,
0.02162700518965721,
-0.008757669478654861,
-0.025014149025082588,
0.016917606815695763,
0.03763895854353905,
0.09049289673566818,
0.015377996489405632,
0.012642922811210155,
-0.03521180897951126,
-0.007168247364461422,
0.03792876750230789,
0.02879977971315384,
-0.0008705594227649271,
-0.008549368940293789,
0.009224080480635166,
0.03198768198490143,
0.001156406244263053,
-0.021880587562918663,
-0.040319692343473434,
0.02655375935137272,
-0.005098829045891762,
-0.046586815267801285,
0.01499762199819088,
-0.06502591818571091,
-0.032875221222639084,
-0.04307287931442261,
-0.02313038893043995,
-0.033962003886699677,
0.02869110181927681,
0.0064708939753472805,
-0.019978715106844902,
0.09071025252342224,
-0.08658047020435333,
0.046115875244140625,
-0.015559126622974873,
0.014137250371277332,
-0.010605202056467533,
-0.027803562581539154,
0.015658749267458916,
0.022224735468626022,
-0.0632508397102356,
0.02313038893043995,
-0.017777977511286736,
0.0354110524058342,
-0.10701201856136322,
0.017515338957309723,
-0.0645187571644783,
0.00021636627207044512,
-0.024054156616330147,
-0.02372812107205391,
-0.004673171788454056,
-0.015604409389197826,
0.006113160867244005,
-0.05220186710357666,
-0.04252948611974716,
0.04644190892577171,
0.01062331534922123,
0.036787644028663635,
0.04028346762061119,
0.0021905493922531605,
-0.007159190718084574,
-0.02691602148115635,
0.042457036674022675,
-0.04419589042663574,
-0.06799646466970444,
0.05738220363855362,
0.018357595428824425,
-0.022387754172086716,
-0.006448252592235804,
-0.045644935220479965,
0.0052618468180298805,
-0.01983381062746048,
0.01363914180546999,
-0.0026580928824841976,
-0.03414313495159149,
0.024724340066313744,
0.055317316204309464,
0.03126315772533417,
0.007566734682768583,
-0.012108586728572845,
0.0035977084189653397,
0.03858083859086037,
-0.012706317938864231,
-0.013231596909463406,
-0.05231054499745369,
0.017542507499456406,
0.04615209996700287,
-0.04071817919611931,
0.003443747293204069,
-0.0007828242378309369,
0.06444630026817322,
0.01629270613193512,
0.07592998445034027,
-0.025068487972021103,
-0.02019607275724411,
0.016808928921818733,
0.04582606628537178,
0.0207756906747818,
0.0068557970225811005,
0.01820363476872444,
0.012851222418248653,
-0.05104263126850128,
0.028546197339892387,
-0.06480856239795685,
0.028546197339892387,
-0.052853938192129135,
-0.012860279530286789,
0.0019165892153978348,
-0.01157425157725811,
-0.045644935220479965,
-0.005610523279756308,
0.010904068127274513,
0.022641336545348167,
0.007756921928375959,
-0.024633774533867836,
-0.008408992551267147,
0.03763895854353905,
-0.04550003260374069,
-0.004736567847430706,
-0.01631081849336624,
-0.04687662422657013,
0.029451850801706314,
-0.034650303423404694,
0.02550320141017437,
-0.04607965052127838,
0.028980910778045654,
-0.03553784266114235,
0.0467679463326931,
-0.08817442506551743,
0.04300042614340782,
-0.012262548319995403,
-0.0076935263350605965,
-0.05365091189742088,
-0.011175763793289661,
0.020395316183567047,
-0.025122826918959618,
0.029017137363553047,
-0.045536257326602936,
-0.062055375427007675,
-0.06651119142770767,
-0.05151357129216194,
0.06513459980487823,
0.056259192526340485,
-0.057345978915691376,
-0.0000938907905947417,
0.06368555128574371,
0.028183937072753906,
-0.0011716891312971711,
-0.03173409774899483,
-0.015387052670121193,
-0.05535354092717171,
-0.02798469178378582,
-0.028147710487246513,
0.01085878536105156,
0.029723547399044037,
0.02313038893043995,
0.05799805000424385,
0.004732039291411638,
-0.007525980472564697,
-0.07672696560621262,
0.021790022030472755,
0.008676160126924515,
0.03814612329006195,
0.06151198595762253,
0.042457036674022675,
0.01948966272175312,
0.0039011023472994566,
0.006747118197381496,
-0.023057937622070312,
-0.01127538550645113,
-0.006597685627639294,
-0.01175538171082735,
-0.02963298186659813,
-0.05158602073788643,
0.07477074861526489,
0.02787601388990879,
0.002549414522945881,
-0.003228654619306326,
0.0491226464509964,
-0.0206488985568285,
-0.01510629989206791,
0.011864060536026955,
-0.03492199629545212,
-0.01541422214359045,
-0.009907849133014679,
0.02965109422802925,
-0.006964475382119417,
0.03664274141192436,
0.06571421772241592,
-0.029379399493336678,
-0.0009543323540128767,
0.03836348280310631,
0.017995335161685944,
0.022876806557178497,
0.006131274159997702,
-0.028763554990291595,
-0.018511557951569557,
-0.013865554705262184,
0.07027871161699295,
-0.021554552018642426,
-0.022768128663301468,
-0.025340184569358826,
0.012552357278764248,
-0.007032399065792561,
-0.011429347097873688,
-0.07364773750305176,
-0.030158260837197304,
-0.02798469178378582,
-0.02492358349263668,
-0.028401292860507965,
-0.008028618060052395,
0.03126315772533417
] |
10,251 | collections | Counter | Dict subclass for counting hashable items. Sometimes called a bag
or multiset. Elements are stored as dictionary keys and their counts
are stored as dictionary values.
>>> c = Counter('abcdeabcdabcaba') # count elements from a string
>>> c.most_common(3) # three most common elements
[('a', 5), ('b', 4), ('c', 3)]
>>> sorted(c) # list all unique elements
['a', 'b', 'c', 'd', 'e']
>>> ''.join(sorted(c.elements())) # list elements with repetitions
'aaaaabbbbcccdde'
>>> sum(c.values()) # total of all counts
15
>>> c['a'] # count of letter 'a'
5
>>> for elem in 'shazam': # update counts from an iterable
... c[elem] += 1 # by adding 1 to each element's count
>>> c['a'] # now there are seven 'a'
7
>>> del c['b'] # remove all 'b'
>>> c['b'] # now there are zero 'b'
0
>>> d = Counter('simsalabim') # make another counter
>>> c.update(d) # add in the second counter
>>> c['a'] # now there are nine 'a'
9
>>> c.clear() # empty the counter
>>> c
Counter()
Note: If a count is set to zero or reduced to zero, it will remain
in the counter until the entry is deleted or the counter is cleared:
>>> c = Counter('aaabbc')
>>> c['b'] -= 2 # reduce the count of 'b' by two
>>> c.most_common() # 'b' is still in, but its count is zero
[('a', 3), ('c', 1), ('b', 0)]
| class Counter(dict):
'''Dict subclass for counting hashable items. Sometimes called a bag
or multiset. Elements are stored as dictionary keys and their counts
are stored as dictionary values.
>>> c = Counter('abcdeabcdabcaba') # count elements from a string
>>> c.most_common(3) # three most common elements
[('a', 5), ('b', 4), ('c', 3)]
>>> sorted(c) # list all unique elements
['a', 'b', 'c', 'd', 'e']
>>> ''.join(sorted(c.elements())) # list elements with repetitions
'aaaaabbbbcccdde'
>>> sum(c.values()) # total of all counts
15
>>> c['a'] # count of letter 'a'
5
>>> for elem in 'shazam': # update counts from an iterable
... c[elem] += 1 # by adding 1 to each element's count
>>> c['a'] # now there are seven 'a'
7
>>> del c['b'] # remove all 'b'
>>> c['b'] # now there are zero 'b'
0
>>> d = Counter('simsalabim') # make another counter
>>> c.update(d) # add in the second counter
>>> c['a'] # now there are nine 'a'
9
>>> c.clear() # empty the counter
>>> c
Counter()
Note: If a count is set to zero or reduced to zero, it will remain
in the counter until the entry is deleted or the counter is cleared:
>>> c = Counter('aaabbc')
>>> c['b'] -= 2 # reduce the count of 'b' by two
>>> c.most_common() # 'b' is still in, but its count is zero
[('a', 3), ('c', 1), ('b', 0)]
'''
# References:
# http://en.wikipedia.org/wiki/Multiset
# http://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html
# http://www.demo2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm
# http://code.activestate.com/recipes/259174/
# Knuth, TAOCP Vol. II section 4.6.3
def __init__(self, iterable=None, /, **kwds):
'''Create a new, empty Counter object. And if given, count elements
from an input iterable. Or, initialize the count from another mapping
of elements to their counts.
>>> c = Counter() # a new, empty counter
>>> c = Counter('gallahad') # a new counter from an iterable
>>> c = Counter({'a': 4, 'b': 2}) # a new counter from a mapping
>>> c = Counter(a=4, b=2) # a new counter from keyword args
'''
super().__init__()
self.update(iterable, **kwds)
def __missing__(self, key):
'The count of elements not in the Counter is zero.'
# Needed so that self[missing_item] does not raise KeyError
return 0
def total(self):
'Sum of the counts'
return sum(self.values())
def most_common(self, n=None):
'''List the n most common elements and their counts from the most
common to the least. If n is None, then list all element counts.
>>> Counter('abracadabra').most_common(3)
[('a', 5), ('b', 2), ('r', 2)]
'''
# Emulate Bag.sortedByCount from Smalltalk
if n is None:
return sorted(self.items(), key=_itemgetter(1), reverse=True)
# Lazy import to speedup Python startup time
import heapq
return heapq.nlargest(n, self.items(), key=_itemgetter(1))
def elements(self):
'''Iterator over elements repeating each as many times as its count.
>>> c = Counter('ABCABC')
>>> sorted(c.elements())
['A', 'A', 'B', 'B', 'C', 'C']
# Knuth's example for prime factors of 1836: 2**2 * 3**3 * 17**1
>>> prime_factors = Counter({2: 2, 3: 3, 17: 1})
>>> product = 1
>>> for factor in prime_factors.elements(): # loop over factors
... product *= factor # and multiply them
>>> product
1836
Note, if an element's count has been set to zero or is a negative
number, elements() will ignore it.
'''
# Emulate Bag.do from Smalltalk and Multiset.begin from C++.
return _chain.from_iterable(_starmap(_repeat, self.items()))
# Override dict methods where necessary
@classmethod
def fromkeys(cls, iterable, v=None):
# There is no equivalent method for counters because the semantics
# would be ambiguous in cases such as Counter.fromkeys('aaabbc', v=2).
# Initializing counters to zero values isn't necessary because zero
# is already the default value for counter lookups. Initializing
# to one is easily accomplished with Counter(set(iterable)). For
# more exotic cases, create a dictionary first using a dictionary
# comprehension or dict.fromkeys().
raise NotImplementedError(
'Counter.fromkeys() is undefined. Use Counter(iterable) instead.')
def update(self, iterable=None, /, **kwds):
'''Like dict.update() but add counts instead of replacing them.
Source can be an iterable, a dictionary, or another Counter instance.
>>> c = Counter('which')
>>> c.update('witch') # add elements from another iterable
>>> d = Counter('watch')
>>> c.update(d) # add elements from another counter
>>> c['h'] # four 'h' in which, witch, and watch
4
'''
# The regular dict.update() operation makes no sense here because the
# replace behavior results in the some of original untouched counts
# being mixed-in with all of the other counts for a mismash that
# doesn't have a straight-forward interpretation in most counting
# contexts. Instead, we implement straight-addition. Both the inputs
# and outputs are allowed to contain zero and negative counts.
if iterable is not None:
if isinstance(iterable, _collections_abc.Mapping):
if self:
self_get = self.get
for elem, count in iterable.items():
self[elem] = count + self_get(elem, 0)
else:
# fast path when counter is empty
super().update(iterable)
else:
_count_elements(self, iterable)
if kwds:
self.update(kwds)
def subtract(self, iterable=None, /, **kwds):
'''Like dict.update() but subtracts counts instead of replacing them.
Counts can be reduced below zero. Both the inputs and outputs are
allowed to contain zero and negative counts.
Source can be an iterable, a dictionary, or another Counter instance.
>>> c = Counter('which')
>>> c.subtract('witch') # subtract elements from another iterable
>>> c.subtract(Counter('watch')) # subtract elements from another counter
>>> c['h'] # 2 in which, minus 1 in witch, minus 1 in watch
0
>>> c['w'] # 1 in which, minus 1 in witch, minus 1 in watch
-1
'''
if iterable is not None:
self_get = self.get
if isinstance(iterable, _collections_abc.Mapping):
for elem, count in iterable.items():
self[elem] = self_get(elem, 0) - count
else:
for elem in iterable:
self[elem] = self_get(elem, 0) - 1
if kwds:
self.subtract(kwds)
def copy(self):
'Return a shallow copy.'
return self.__class__(self)
def __reduce__(self):
return self.__class__, (dict(self),)
def __delitem__(self, elem):
'Like dict.__delitem__() but does not raise KeyError for missing values.'
if elem in self:
super().__delitem__(elem)
def __eq__(self, other):
'True if all counts agree. Missing counts are treated as zero.'
if not isinst | (iterable=None, /, **kwds) | [
0.0061402153223752975,
-0.04464470222592354,
-0.02964458428323269,
0.025439530611038208,
0.03874507546424866,
0.016663311049342155,
-0.04083713889122009,
-0.001654040184803307,
0.07426836341619492,
-0.04669492691755295,
-0.0993313267827034,
0.03328477963805199,
0.029519060626626015,
0.018378805369138718,
-0.022887209430336952,
0.042740922421216965,
0.03037680685520172,
0.003043956821784377,
-0.02403784543275833,
-0.01750013791024685,
0.021862097084522247,
-0.01397500466555357,
0.042468953877687454,
0.10351545363664627,
-0.022092223167419434,
0.0008538246620446444,
0.023347463458776474,
-0.03882875666022301,
0.03035588748753071,
-0.01634950004518032,
-0.04510495811700821,
-0.004168442916125059,
-0.052301663905382156,
-0.01929931528866291,
0.015031498856842518,
-0.050418805330991745,
-0.013692576438188553,
0.061506759375333786,
-0.03253163769841194,
0.033912401646375656,
0.041485682129859924,
-0.0158055629581213,
-0.0064749461598694324,
-0.02928893268108368,
0.06778296083211899,
0.06924740225076675,
0.04297104850411415,
0.023975083604454994,
0.03437265381217003,
-0.09623506665229797,
-0.03037680685520172,
-0.03560697287321091,
0.002434642519801855,
0.0262763574719429,
-0.02571149915456772,
0.06142307445406914,
0.015481293201446533,
0.04133923724293709,
-0.049791187047958374,
0.044435493648052216,
-0.027301469817757607,
0.02196669951081276,
-0.012050303630530834,
-0.03937269374728203,
-0.02019890397787094,
-0.017709344625473022,
-0.0015625122468918562,
0.0074372966773808,
0.015460371971130371,
-0.026548326015472412,
0.009084799326956272,
-0.0060774534940719604,
0.037991929799318314,
0.011286699213087559,
0.03267807886004448,
-0.00043050808017142117,
-0.0007812561234459281,
0.006835827603936195,
0.06682060658931732,
-0.036673929542303085,
0.04548152908682823,
-0.0328872874379158,
0.014414339326322079,
-0.01990601420402527,
0.05313849076628685,
0.05351506546139717,
0.051130108535289764,
0.023242861032485962,
-0.019675886258482933,
0.07414284348487854,
-0.03054417297244072,
0.01527208648622036,
0.06740638613700867,
-0.0047646816819906235,
-0.016757452860474586,
-0.030251283198595047,
-0.055230557918548584,
-0.06556537002325058,
0.02767804078757763,
0.015784643590450287,
0.013765797950327396,
0.020680079236626625,
-0.009900704957544804,
-0.043807875365018845,
-0.02349390834569931,
-0.021150793880224228,
-0.011726033873856068,
-0.03159020468592644,
0.025878863409161568,
-0.0024019540287554264,
-0.003702957881614566,
0.0030544172041118145,
-0.010878746397793293,
-0.0025680118706077337,
-0.004926817025989294,
0.0040899901650846004,
-0.038263898342847824,
-0.048535946756601334,
0.007541900034993887,
0.0361090712249279,
-0.03922624886035919,
0.016820216551423073,
0.012437336146831512,
0.007651733700186014,
0.03930993005633354,
-0.05920548364520073,
-0.030857982113957405,
0.044519178569316864,
0.02671569027006626,
0.047824643552303314,
0.040690694004297256,
-0.05598370358347893,
0.032657161355018616,
0.035774338990449905,
0.06251095235347748,
-0.004061224404722452,
0.07108842581510544,
0.019267933443188667,
-0.05815945193171501,
0.06138123571872711,
0.08744838833808899,
0.0020188442431390285,
0.021862097084522247,
0.05958205834031105,
0.016569167375564575,
-0.03725970536470413,
0.013451988808810711,
0.010591086931526661,
-0.04945645481348038,
0.00428873673081398,
-0.03780364245176315,
-0.016046151518821716,
0.04807569086551666,
0.03930993005633354,
0.00028128488338552415,
0.007489598356187344,
-0.004393340088427067,
-0.05079537630081177,
-0.03786640614271164,
-0.03508395701646805,
0.02669477090239525,
0.018650773912668228,
-0.00033603821066208184,
0.01831604354083538,
-0.0165273267775774,
0.024707306176424026,
-0.01634950004518032,
-0.028242899104952812,
-0.04359866678714752,
-0.00937768816947937,
-0.004254740662872791,
-0.06384987384080887,
-0.0011950930347666144,
0.009539823979139328,
0.0075471303425729275,
0.02759435959160328,
-0.018336964771151543,
0.004605161491781473,
0.0364437997341156,
-0.017541978508234024,
0.03468646481633186,
-0.026569245383143425,
-0.06778296083211899,
-0.024707306176424026,
-0.021380919963121414,
-0.04351498559117317,
0.04895436018705368,
-0.003321155672892928,
0.038347579538822174,
0.046485722064971924,
0.018912281841039658,
-0.07368258386850357,
0.028368422761559486,
0.03757351636886597,
0.03196677938103676,
-0.017217708751559258,
-0.051590364426374435,
-0.035335004329681396,
0.05531424283981323,
0.04117187112569809,
-0.08903835713863373,
0.00042200906318612397,
0.03654840216040611,
-0.0102772768586874,
0.03663208708167076,
0.005721802357584238,
0.0018501713639125228,
-0.01705034263432026,
-0.043640509247779846,
-0.037029579281806946,
-0.0008322502253577113,
-0.053096652030944824,
0.004199823830276728,
0.009482291527092457,
0.0047646816819906235,
-0.02715502493083477,
0.07686252892017365,
-0.030962586402893066,
-0.01187247782945633,
-0.04623467102646828,
0.055690813809633255,
0.03847310692071915,
-0.025585975497961044,
-0.005842096172273159,
-0.003546052845194936,
-0.021924858912825584,
0.011809716001152992,
0.056234750896692276,
0.01778256706893444,
-0.008007384836673737,
0.05715525895357132,
0.03445633873343468,
0.04690413549542427,
0.014090068638324738,
0.009388148784637451,
-0.09908027201890945,
-0.03351490572094917,
0.009837943129241467,
-0.0004363920306786895,
-0.03307557478547096,
0.005096797365695238,
-0.0010120372753590345,
0.045607052743434906,
0.031485602259635925,
-0.07991694658994675,
-0.01184109691530466,
0.015952007845044136,
0.06451933830976486,
-0.013880861923098564,
0.016495944932103157,
-0.01643318310379982,
-0.042301587760448456,
-0.022657081484794617,
-0.023619432002305984,
0.036234594881534576,
-0.02002107724547386,
-0.033786874264478683,
0.012311812490224838,
-0.00973857007920742,
0.0024019540287554264,
0.016736533492803574,
0.03225966915488243,
-0.033891480416059494,
0.04081622138619423,
-0.013525210320949554,
0.015648657456040382,
0.07556544989347458,
0.03573249652981758,
-0.07477045804262161,
0.0696658194065094,
0.05937284976243973,
-0.06309673190116882,
0.036945898085832596,
-0.03089982457458973,
-0.09464509040117264,
0.030920743942260742,
0.035146720707416534,
0.010125602595508099,
-0.037029579281806946,
0.0006603085203096271,
0.01183063630014658,
0.008028306066989899,
-0.047824643552303314,
-0.03696681559085846,
0.007688344921916723,
0.051841411739587784,
-0.05150667950510979,
-0.005815945100039244,
-0.018190519884228706,
-0.022929050028324127,
0.053724270313978195,
-0.027175946161150932,
0.019539901986718178,
0.02017798274755478,
0.02242695353925228,
0.0008348653209395707,
-0.05937284976243973,
-0.06364066898822784,
0.029853790998458862,
0.02232235111296177,
0.0014801371144130826,
-0.03608814999461174,
0.0011303697247058153,
-0.012751146219670773,
-0.006480176467448473,
-0.022531557828187943,
0.08192533254623413,
0.019090108573436737,
-0.0018776297802105546,
0.025334926322102547,
-0.004526709206402302,
0.052301663905382156,
-0.003464985406026244,
0.05029328167438507,
0.0005455717328004539,
-0.031841255724430084,
-0.051925092935562134,
-0.06062809005379677,
0.0034100685734301805,
0.059623897075653076,
0.02598346769809723,
-0.018096376210451126,
-0.0102772768586874,
0.002939353697001934,
-0.048703309148550034,
-0.0297491867095232,
0.03242703154683113,
-0.01009945198893547,
0.07866170257329941,
-0.03742707148194313,
-0.04690413549542427,
-0.058284975588321686,
-0.0035094418562948704,
0.006621391046792269,
-0.03748983517289162,
0.00795508362352848,
0.009304466657340527,
0.021307699382305145,
-0.02428889274597168,
-0.02769896201789379,
0.01957128383219242,
0.02679937332868576,
-0.0857747346162796,
0.0003755913348868489,
-0.041401997208595276,
-0.04087898135185242,
0.017468756064772606,
-0.0382220558822155,
0.04887067526578903,
-0.03154836595058441,
0.0068724388256669044,
-0.02251063659787178,
0.026046229526400566,
0.046862293034791946,
0.06200885400176048,
-0.028096454218029976,
0.029247092083096504,
-0.06171596422791481,
0.011046111583709717,
-0.04606730863451958,
-0.017541978508234024,
-0.0021182175260037184,
-0.0012362806592136621,
0.0075837415643036366,
-0.03428897261619568,
-0.018891362473368645,
-0.023828638717532158,
-0.03792916610836983,
-0.0803353562951088,
-0.06188333034515381,
0.0593310110270977,
-0.07313864678144455,
-0.008964505046606064,
0.008331655524671078,
0.03387055918574333,
-0.020847443491220474,
-0.009984388016164303,
0.06891267746686935,
-0.029539979994297028,
-0.006642311345785856,
0.01849386841058731,
0.01715494692325592,
-0.0725528672337532,
0.022217746824026108,
0.0009662732481956482,
0.018629852682352066,
-0.0035878941416740417,
-0.03100442700088024,
0.039058882743120193,
0.05209245905280113,
-0.040063075721263885,
0.006286660209298134,
-0.03437265381217003,
-0.03638103976845741,
-0.06707165390253067,
0.009137100540101528,
0.03217598423361778,
-0.05686236917972565,
0.0022084377706050873,
-0.04456101730465889,
0.07715541869401932,
-0.026673849672079086,
0.05870338901877403,
0.019267933443188667,
0.020753301680088043,
0.0034152986481785774,
0.012960352934896946,
-0.05259455367922783,
-0.018452027812600136,
0.02633911930024624,
-0.02169473096728325,
-0.01192477997392416,
-0.03150652348995209,
-0.012897591106593609,
-0.021631969138979912,
-0.08263663202524185,
-0.043263938277959824,
-0.06121386960148811,
0.027217786759138107,
0.019780490547418594,
0.028870519250631332,
-0.009137100540101528,
0.010287737473845482,
0.03619275242090225,
0.016945740208029747,
-0.016140293329954147,
-0.061757806688547134,
-0.03548144921660423,
0.002228050958365202,
-0.004307042341679335,
-0.025962546467781067,
-0.053891636431217194,
-0.010266817174851894,
-0.05878707021474838,
-0.016328580677509308,
-0.020962508395314217,
-0.03217598423361778,
-0.019770029932260513,
-0.007113026455044746,
0.0035146719310432673,
-0.018200980499386787,
0.016223976388573647,
0.039791107177734375,
0.027991851791739464,
0.039247170090675354,
0.012207209132611752,
-0.02732238918542862,
-0.009618276730179787,
0.003051802283152938,
-0.018985504284501076,
0.058368660509586334,
-0.0030073458328843117,
0.0075471303425729275,
0.011077492497861385,
-0.015428991056978703,
0.006647541653364897,
-0.07598385959863663,
0.008713457733392715,
-0.002279045060276985,
0.004728070460259914,
-0.004717610310763121,
0.013922703452408314,
-0.0010819906601682305,
0.004003692418336868,
-0.08719733357429504,
0.033975161612033844,
-0.006877669133245945,
0.010120372287929058,
-0.0058107152581214905,
0.05359874665737152,
-0.0020894515328109264,
-0.01651686616241932,
-0.024539941921830177,
-0.028431184589862823,
-0.042740922421216965,
-0.016276277601718903,
-0.03617183119058609,
-0.04242711141705513,
-0.04769911989569664,
-0.015345308929681778,
0.09489614516496658,
0.03269900009036064,
0.048368580639362335,
-0.06066993251442909,
0.03769904002547264,
-0.0026660773437470198,
0.03882875666022301,
-0.00919986329972744,
0.04556521028280258,
0.03778272494673729,
-0.03520948067307472,
-0.03159020468592644,
0.01192477997392416,
-0.01785578951239586,
-0.013347385451197624,
0.017897630110383034,
0.016014769673347473,
0.01456078328192234,
-0.002868746407330036,
-0.024790989235043526,
-0.012604701332747936,
-0.017845328897237778,
0.0175838191062212,
-0.005444603506475687,
0.030774300917983055,
-0.004184133373200893,
-0.011370382271707058,
0.01653778739273548,
0.07163236290216446,
-0.02832658216357231,
-0.01379717979580164,
-0.03625551611185074,
0.04556521028280258,
0.012311812490224838,
0.018870441243052483,
-0.0501677580177784,
-0.0662766695022583,
-0.022719843313097954,
-0.050962742418050766,
-0.003674191888421774,
0.017991773784160614,
0.023724036291241646,
-0.005000039003789425,
0.014163291081786156,
-0.010308658704161644,
0.03795008733868599,
-0.021506445482373238,
-0.07133947312831879,
0.0317784920334816,
0.03884967789053917,
-0.027364231646060944,
-0.0015363614074885845,
-0.04581625759601593,
0.0498330257833004,
0.00892789475619793,
0.03430989384651184,
0.011391302570700645,
-0.06648587435483932,
0.012573320418596268,
0.05343138054013252,
0.04690413549542427,
0.054435573518276215,
0.06242726743221283,
-0.02993747405707836,
0.026652928441762924,
0.054268207401037216,
-0.0230545736849308,
-0.07757382839918137,
0.01823236048221588,
-0.030774300917983055,
-0.06435196846723557,
-0.0419459342956543,
-0.004372419323772192,
0.0002217917499365285,
0.03234335035085678,
0.003344691591337323,
0.011056572198867798,
-0.01893320307135582,
0.0657745748758316,
0.034435417503118515,
-0.008980195969343185,
-0.01964450627565384,
-0.01955036260187626,
-0.026841213926672935,
0.0464438796043396,
0.014853673055768013,
0.019696807488799095,
0.017573360353708267,
-0.03267807886004448,
0.004463947378098965,
0.00822182185947895,
0.044435493648052216,
-0.03418437018990517,
-0.027134103700518608,
-0.05138115584850311,
0.027259627357125282,
-0.043347619473934174,
-0.02447718009352684,
0.0693310871720314,
-0.039874788373708725,
-0.05125563219189644,
0.05100458487868309,
0.0017233398975804448,
-0.04769911989569664,
0.04690413549542427,
0.022531557828187943,
-0.05995862931013107,
0.03393331915140152,
-0.0158892460167408,
0.0250838790088892,
-0.04619283229112625,
-0.06531432271003723,
0.0033159255981445312,
-0.02107757143676281,
0.0026804604567587376,
0.020481333136558533,
-0.008033535443246365,
-0.01183063630014658,
-0.006997962947934866,
-0.005102027673274279,
-0.0249165128916502,
0.001960004912689328,
-0.05468662083148956,
0.044519178569316864,
0.0077040353789925575,
0.028284741565585136,
0.002989040222018957,
0.05146483704447746,
0.0233056228607893,
-0.037552595138549805,
-0.04682045057415962,
-0.010073300451040268,
-0.00035957395448349416,
0.011046111583709717,
0.043640509247779846,
-0.052301663905382156,
0.0020044613629579544,
-0.00830027461051941,
-0.010115141980350018,
0.027991851791739464,
-0.028284741565585136,
0.003998462110757828,
-0.033891480416059494,
0.03267807886004448,
-0.03606722876429558,
-0.016746994107961655,
-0.019853712990880013,
0.040230441838502884,
-0.007976003922522068,
0.0020528403110802174,
-0.004835288971662521,
0.0012460871366783977,
0.06493774801492691,
-0.002617698395624757,
0.033891480416059494,
0.033012811094522476,
-0.00700842309743166,
0.053975317627191544,
0.014947815798223019,
0.07280392199754715,
0.046485722064971924,
0.021841175854206085,
0.02937261573970318,
0.03769904002547264,
-0.058996278792619705,
-0.017981313169002533,
0.015690499916672707,
-0.024142449721693993,
0.04182041063904762,
0.01732231117784977,
0.014320195652544498,
-0.0014827522682026029,
0.03131823614239693,
-0.051674045622348785,
-0.06753191351890564,
-0.009524133056402206,
0.04330578073859215,
-0.026987658813595772,
-0.02527216449379921,
0.004526709206402302,
-0.016998041421175003,
0.027824485674500465,
0.030146680772304535,
-0.0007531439769081771,
0.008446718566119671,
-0.0001369649835396558,
0.03150652348995209,
0.04485390707850456,
0.03537684679031372,
0.051213789731264114,
0.08226005733013153,
-0.0002838999789673835,
-0.0017024192493408918,
-0.007191479206085205,
-0.056485798209905624,
-0.00006476417183876038,
-0.005826405715197325,
0.03213414177298546,
0.01615075394511223,
-0.017447834834456444,
0.02403784543275833,
0.040586091578006744,
-0.057741038501262665,
-0.013117257505655289,
0.011820176616311073,
0.02912156656384468,
-0.008786680176854134,
-0.021203095093369484,
-0.04723886400461197,
-0.06397539377212524,
0.028368422761559486,
-0.047740958631038666,
0.009790872223675251,
-0.04253171384334564,
-0.0789964348077774,
0.03546052798628807,
-0.044268131256103516,
-0.03625551611185074,
0.05456109717488289,
-0.0625527948141098,
0.031841255724430084,
0.028452105820178986,
0.04669492691755295,
0.00857747346162796,
-0.032636240124702454,
0.03575341776013374,
-0.04753175377845764,
-0.026652928441762924,
0.06380803138017654,
0.005481214728206396,
0.02964458428323269,
0.0994986891746521,
-0.042552635073661804,
-0.01562773808836937,
0.06297120451927185,
-0.014414339326322079,
0.0630548894405365,
0.03937269374728203,
-0.006213437765836716,
0.026903977617621422,
0.0366111658513546,
0.04481206834316254,
0.054435573518276215,
0.025251243263483047,
-0.025753339752554893,
0.0026556169614195824,
0.0659419372677803,
0.004110910929739475,
-0.011516827158629894,
-0.009184172376990318,
-0.0032165523152798414,
-0.031150871887803078,
-0.04887067526578903,
-0.02822197787463665,
0.008645465597510338,
-0.017824407666921616,
0.016318120062351227,
-0.03159020468592644,
0.04912172257900238,
0.032113224267959595,
-0.0065115573816001415,
-0.016569167375564575,
-0.021192634478211403,
0.0625527948141098,
-0.026464642956852913,
-0.04736438766121864,
0.023912321776151657,
0.036841291934251785,
-0.01642272248864174,
0.0046443878673017025,
0.0053060040809214115,
-0.019309774041175842,
-0.04518863931298256,
-0.011161175556480885,
0.03209230303764343,
-0.008519941009581089,
-0.019152870401740074,
-0.05882891267538071,
0.03138099983334541,
-0.010795063339173794,
-0.004307042341679335,
-0.07297128438949585,
0.0057165720500051975,
0.004725455306470394,
0.01371349673718214,
0.06163228303194046,
0.036485642194747925,
0.045858100056648254
] |
10,252 | collections | __add__ | Add counts from two counters.
>>> Counter('abbb') + Counter('bcc')
Counter({'b': 4, 'c': 2, 'a': 1})
| def __add__(self, other):
'''Add counts from two counters.
>>> Counter('abbb') + Counter('bcc')
Counter({'b': 4, 'c': 2, 'a': 1})
'''
if not isinstance(other, Counter):
return NotImplemented
result = Counter()
for elem, count in self.items():
newcount = count + other[elem]
if newcount > 0:
result[elem] = newcount
for elem, count in other.items():
if elem not in self and count > 0:
result[elem] = count
return result
| (self, other) | [
-0.06291688233613968,
-0.03296336904168129,
0.005892791785299778,
0.10175491124391556,
0.01974538527429104,
-0.007928071543574333,
-0.031676020473241806,
-0.00275148032233119,
0.07513762265443802,
-0.029754064977169037,
-0.06005207821726799,
0.0028376057744026184,
0.039055608212947845,
0.011196304112672806,
-0.014088304713368416,
0.02144976146519184,
0.013834461569786072,
-0.01050730049610138,
-0.00275148032233119,
-0.04765002056956291,
0.009655112400650978,
-0.00275148032233119,
0.033743031322956085,
0.07129371166229248,
-0.02195744775235653,
0.042536888271570206,
-0.0016137183411046863,
-0.03631772845983505,
-0.015420982614159584,
0.01785062626004219,
-0.016626738011837006,
-0.03212931379675865,
-0.032890841364860535,
-0.02163107879459858,
0.034867193549871445,
-0.01843990385532379,
-0.02977219596505165,
0.05976197123527527,
-0.04485774412751198,
0.060596030205488205,
0.0324556827545166,
-0.020543178543448448,
-0.018657485023140907,
-0.02670794539153576,
0.05305325612425804,
0.01876627467572689,
-0.01165866106748581,
0.019165171310305595,
0.06324325501918793,
-0.05414115637540817,
-0.031204598024487495,
-0.04812144115567207,
-0.012991338968276978,
0.03600949048995972,
0.00099384190980345,
0.04812144115567207,
0.014940492808818817,
0.03682541474699974,
-0.08217271417379379,
0.07470246404409409,
-0.03154909983277321,
-0.010616091080009937,
-0.02121404930949211,
-0.026309048756957054,
-0.019346488639712334,
-0.03220183774828911,
-0.05943560227751732,
-0.01187624130398035,
0.01885693334043026,
0.006001581437885761,
0.009106629528105259,
-0.008676002733409405,
0.011033118702471256,
0.0014131367206573486,
0.027959030121564865,
0.024350827559828758,
0.01649981550872326,
0.027360685169696808,
0.07100360840559006,
-0.024912908673286438,
0.045546744018793106,
-0.06607179343700409,
-0.01448720134794712,
0.00014384927635546774,
0.022682715207338333,
0.05573674291372299,
-0.0010397377191111445,
-0.029119456186890602,
-0.0058973245322704315,
0.007597167976200581,
0.0031027814839035273,
-0.0003759487590286881,
0.04677969962358475,
-0.03066064789891243,
0.028140345588326454,
-0.0012329532764852047,
-0.06676079332828522,
-0.035247959196567535,
-0.013317708857357502,
0.029518352821469307,
-0.0020738092716783285,
0.03292710706591606,
0.008875451050698757,
-0.04039735347032547,
0.014840768650174141,
-0.06628937274217606,
-0.002207530429586768,
-0.0427907332777977,
0.020615704357624054,
0.05229172483086586,
0.036988601088523865,
-0.031621627509593964,
-0.013879790902137756,
-0.011368555016815662,
-0.01914704032242298,
0.004580512177199125,
0.006309819873422384,
-0.030733173713088036,
-0.00528991362079978,
0.05682464316487312,
-0.004127220716327429,
0.03452269360423088,
0.05497521162033081,
0.023970063775777817,
0.0028988001868128777,
-0.044894006103277206,
-0.005552822723984718,
0.018548695370554924,
0.006726848427206278,
-0.019727252423763275,
0.051602721214294434,
-0.06951680779457092,
0.006051443517208099,
0.039708349853754044,
0.08289797604084015,
-0.01918330229818821,
0.07375961542129517,
0.04028856381773949,
0.010543564334511757,
0.043044574558734894,
0.05842022970318794,
0.007193738594651222,
0.02520301565527916,
0.047468703240156174,
-0.009655112400650978,
0.021195918321609497,
-0.03361611068248749,
0.05334336310625076,
-0.043987423181533813,
0.011694924905896187,
-0.01862122118473053,
0.0054621645249426365,
0.021794263273477554,
0.013662210665643215,
-0.01283721998333931,
0.018195128068327904,
0.02699805051088333,
-0.016744593158364296,
-0.023480508476495743,
-0.021504156291484833,
0.048701655119657516,
0.03709739074110985,
0.015475377440452576,
0.0016397825675085187,
-0.0008482220000587404,
-0.008988773450255394,
0.019128907471895218,
0.0012998138554394245,
-0.029681537300348282,
0.0007564304396510124,
-0.003225170075893402,
-0.07383214682340622,
0.03122272901237011,
0.006740447133779526,
0.01652701385319233,
-0.02977219596505165,
-0.029500221833586693,
0.004723299294710159,
0.01013560127466917,
-0.02440522238612175,
0.05649827420711517,
-0.0010227393358945847,
-0.05939934030175209,
-0.026182126253843307,
-0.00772409001365304,
-0.050478558987379074,
0.022029975429177284,
0.023806877434253693,
0.0434434711933136,
0.010842736810445786,
0.05065987631678581,
-0.021032733842730522,
-0.005824797786772251,
0.019600331783294678,
0.03474027290940285,
-0.02027120254933834,
-0.07506509870290756,
-0.016073722392320633,
0.019527804106473923,
0.09950658679008484,
-0.09471982717514038,
0.019437145441770554,
0.0035764712374657393,
-0.005697876214981079,
0.05736859142780304,
0.0013338107382878661,
-0.01826765388250351,
0.010525432415306568,
-0.031476572155952454,
-0.05947186425328255,
0.024242037907242775,
-0.0601971335709095,
0.002266458235681057,
0.023063478991389275,
0.0028104083612561226,
0.012048492208123207,
0.006645255722105503,
-0.03405126929283142,
-0.018512431532144547,
-0.022320080548524857,
0.05196535587310791,
0.0036263333167880774,
-0.0014697981532663107,
-0.019962964579463005,
0.008825588971376419,
0.015466311015188694,
0.004453590605407953,
0.006586327683180571,
-0.0010448372922837734,
0.015484442934393883,
0.0668695867061615,
0.050442297011613846,
-0.0026041606906801462,
-0.001470931456424296,
0.0024115117266774178,
-0.021703604608774185,
-0.025366201996803284,
-0.0008561545982956886,
0.007465713657438755,
-0.030316146090626717,
-0.015049283392727375,
-0.007683293428272009,
0.020797021687030792,
0.018983853980898857,
-0.08500125259160995,
-0.051276352256536484,
0.006486603524535894,
0.02723376266658306,
0.0005195855628699064,
0.04837528616189957,
-0.0014743311330676079,
-0.03396061062812805,
-0.017080029472708702,
-0.016871515661478043,
-0.020289335399866104,
-0.04163030534982681,
-0.05261809751391411,
-0.01173118781298399,
-0.01994483359158039,
0.0007762619643472135,
0.02233821339905262,
0.08942537754774094,
-0.008195512928068638,
-0.017905021086335182,
-0.06944428384304047,
0.011196304112672806,
0.043334681540727615,
0.048556603491306305,
-0.017787164077162743,
0.03354358300566673,
0.005774935707449913,
-0.10226260125637054,
0.04928186908364296,
-0.011985031887888908,
-0.04670717194676399,
0.004199746996164322,
0.029989775270223618,
0.05356094241142273,
-0.0337611623108387,
-0.003624066710472107,
0.021377233788371086,
0.051602721214294434,
-0.039853401482105255,
-0.06251798570156097,
-0.0053216442465782166,
0.0522192008793354,
-0.0006068442016839981,
-0.010824604891240597,
-0.04315336421132088,
-0.07811121642589569,
0.027360685169696808,
0.016744593158364296,
0.06117624044418335,
0.034867193549871445,
-0.0008215911220759153,
0.03149470314383507,
-0.00950099341571331,
-0.05305325612425804,
0.007062284275889397,
0.05261809751391411,
-0.039055608212947845,
0.014994887635111809,
-0.030696911737322807,
-0.023625561967492104,
-0.02915572002530098,
-0.046163223683834076,
0.08006943762302399,
0.03749628737568855,
0.01100592128932476,
0.027288157492876053,
-0.028611769899725914,
0.06578168272972107,
0.004986208397895098,
0.059834498912096024,
-0.009836428798735142,
0.014541596174240112,
-0.03009856678545475,
-0.007982466369867325,
-0.0016658467939123511,
0.05250930413603783,
0.04123140871524811,
-0.0027741449885070324,
-0.04471268877387047,
-0.0017871023155748844,
-0.010498235002160072,
-0.011794649064540863,
0.014351214282214642,
-0.017306676134467125,
0.07194644957780838,
-0.009419400244951248,
-0.06443994492292404,
-0.04315336421132088,
0.022700846195220947,
0.013589683920145035,
-0.06443994492292404,
-0.003023455385118723,
0.04105009138584137,
0.01776903308928013,
-0.0331084243953228,
0.018893197178840637,
-0.005294446367770433,
0.008481087163090706,
-0.05976197123527527,
0.0008516216767020524,
0.006699650548398495,
-0.05493894964456558,
-0.0401797741651535,
-0.009972416795790195,
0.037169914692640305,
-0.03671662509441376,
-0.04478521645069122,
-0.025094226002693176,
0.010779275558888912,
0.010271589271724224,
0.06063229218125343,
0.03249194473028183,
0.006998823024332523,
-0.026490364223718643,
0.03822155296802521,
-0.03706112504005432,
-0.017506124451756477,
0.0019242230337113142,
0.004682502709329128,
0.0108608677983284,
-0.06973438709974289,
0.031621627509593964,
-0.019763516262173653,
-0.04957197606563568,
-0.09689562767744064,
-0.07006075978279114,
0.03089636005461216,
-0.04137646406888962,
0.011114711873233318,
0.004439991898834705,
0.01476824190467596,
-0.00866240356117487,
-0.025420596823096275,
0.042681943625211716,
-0.041412726044654846,
-0.016245972365140915,
0.017107227817177773,
0.027523869648575783,
-0.08006943762302399,
0.03934571519494057,
0.007828347384929657,
0.04641706496477127,
-0.004226944874972105,
-0.060124605894088745,
0.07031460106372833,
0.08666936308145523,
-0.018340179696679115,
-0.004863819573074579,
-0.006504735443741083,
0.0058973245322704315,
-0.09464729577302933,
-0.026309048756957054,
-0.004045628011226654,
-0.0608498714864254,
-0.005389637779444456,
-0.04942692071199417,
0.06585421413183212,
-0.03695233538746834,
0.027614528313279152,
0.0038076499477028847,
0.008005131036043167,
0.04293578490614891,
-0.02679860219359398,
-0.07506509870290756,
-0.03227436542510986,
0.03869297727942467,
-0.0823177620768547,
-0.05704222247004509,
0.004566913470625877,
-0.014822637662291527,
-0.04706980660557747,
-0.08043207228183746,
-0.010534497909247875,
-0.06095866113901138,
0.04250062629580498,
0.024949172511696815,
0.035302355885505676,
-0.004068292677402496,
-0.01761491410434246,
0.024622803553938866,
-0.00637328065931797,
-0.028938138857483864,
-0.027052445337176323,
0.011123777367174625,
0.0026222921442240477,
-0.033416662365198135,
-0.02068823203444481,
-0.01022625993937254,
0.032800182700157166,
-0.04659838229417801,
0.0011417283676564693,
-0.017134424299001694,
0.0030438534449785948,
-0.03479466587305069,
0.012927877716720104,
0.03894681856036186,
0.009106629528105259,
-0.014994887635111809,
-0.014967690221965313,
0.023498639464378357,
-0.003850712673738599,
-0.062046561390161514,
-0.030298015102744102,
-0.024822251871228218,
-0.03307215869426727,
-0.010607024654746056,
0.06132129579782486,
0.00041816156590357423,
-0.01581987924873829,
0.03173041716217995,
0.013725670985877514,
0.009124761447310448,
-0.03466774523258209,
-0.02251952886581421,
-0.0001623350690351799,
0.02393379993736744,
-0.02534806914627552,
0.029373299330472946,
-0.018195128068327904,
0.03196612745523453,
-0.0658179521560669,
0.024568408727645874,
0.024532144889235497,
0.002043212065473199,
0.016989370808005333,
0.0782562717795372,
0.010389444418251514,
-0.061575137078762054,
0.029228245839476585,
-0.06487510353326797,
-0.031240861862897873,
0.0032999631948769093,
-0.0262365210801363,
-0.008771193213760853,
-0.0049635437317192554,
0.026889260858297348,
0.0615026131272316,
0.029463957995176315,
0.03263700008392334,
-0.02901066653430462,
0.04496653378009796,
0.0014539329567924142,
0.015058348886668682,
0.004868352320045233,
0.06570915877819061,
0.05323457345366478,
0.029735932126641273,
-0.02670794539153576,
-0.027759581804275513,
0.006001581437885761,
-0.0120394267141819,
0.011776517145335674,
0.0274150799959898,
0.002903333166614175,
-0.007733155507594347,
0.03269139304757118,
-0.03165788948535919,
-0.04202920198440552,
-0.04072372242808342,
0.0028512044809758663,
0.053307097405195236,
0.029191982001066208,
-0.028557375073432922,
0.016363829374313354,
0.051421407610177994,
0.0005122195580042899,
-0.02007175423204899,
-0.02638157457113266,
0.029681537300348282,
0.036988601088523865,
0.049209341406822205,
-0.031240861862897873,
-0.04993461072444916,
-0.021340971812605858,
-0.03194799646735191,
-0.024477750062942505,
0.005978916771709919,
-0.003642198396846652,
-0.004367465153336525,
-0.016472619026899338,
-0.008861851878464222,
0.00720733730122447,
-0.07042339444160461,
-0.05359720438718796,
0.0021452028304338455,
0.026961788535118103,
-0.07103987038135529,
-0.00023684489133302122,
-0.04358852654695511,
0.02148602530360222,
-0.02328106015920639,
0.0541774183511734,
-0.01521246787160635,
-0.049680765718221664,
0.004131753463298082,
0.023806877434253693,
0.04115888103842735,
0.03207491710782051,
0.06610805541276932,
-0.01847616769373417,
0.011568003334105015,
0.09196381270885468,
-0.049209341406822205,
-0.047758810222148895,
0.004813957493752241,
-0.03909187391400337,
-0.08137492090463638,
-0.018249522894620895,
-0.03104141354560852,
0.019364619627594948,
0.035483669489622116,
0.013625946827232838,
-0.04025229811668396,
-0.004281339701265097,
0.06313446164131165,
0.06269930303096771,
0.042246781289577484,
-0.03080570138990879,
0.03051559440791607,
-0.018693748861551285,
-0.06197403743863106,
-0.018584957346320152,
0.014396542683243752,
-0.018512431532144547,
-0.028158478438854218,
0.005625349469482899,
0.0009167823591269553,
-0.025384332984685898,
-0.09312424063682556,
-0.028285399079322815,
-0.05794880539178848,
0.03000790812075138,
-0.042210519313812256,
0.010316918604075909,
0.027161236852407455,
0.010525432415306568,
-0.1184360459446907,
0.05091371759772301,
0.015112743712961674,
-0.07292556017637253,
0.0498620830476284,
0.01276469323784113,
-0.04235557094216347,
-0.011849043890833855,
0.027904635295271873,
0.02233821339905262,
-0.06541905552148819,
-0.06552784144878387,
-0.009283413179218769,
-0.024006325751543045,
-0.0050134058110415936,
-0.005910923238843679,
-0.018195128068327904,
0.017950350418686867,
-0.029790326952934265,
-0.005512026604264975,
0.03165788948535919,
-0.030461199581623077,
-0.01267403457313776,
0.00014271604595705867,
0.005824797786772251,
0.045873116701841354,
-0.02868429571390152,
0.030225487425923347,
-0.016236906871199608,
-0.01918330229818821,
0.0011496610241010785,
0.02873869054019451,
0.03410566598176956,
0.028285399079322815,
0.06266304105520248,
-0.04978955537080765,
-0.02732442133128643,
-0.04576432704925537,
-0.003052919404581189,
0.053488414734601974,
-0.02228381857275963,
0.019781647250056267,
-0.027342552319169044,
0.01690777949988842,
-0.04971702769398689,
-0.005575487390160561,
-0.0008266906370408833,
-0.007647030055522919,
0.041739095002412796,
0.02549312263727188,
-0.025783229619264603,
0.020851416513323784,
0.06719595193862915,
-0.03238315507769585,
0.014015777967870235,
-0.022084370255470276,
0.01290974672883749,
0.05526531860232353,
0.02496730536222458,
0.037931445986032486,
0.021757999435067177,
0.011785583570599556,
-0.06081360951066017,
0.006699650548398495,
-0.06969812512397766,
0.005629882216453552,
-0.023825010284781456,
-0.0471060685813427,
0.024622803553938866,
0.010897131636738777,
-0.009673244319856167,
-0.0034110196866095066,
0.044132474809885025,
-0.023299191147089005,
-0.03695233538746834,
0.007316127419471741,
0.051421407610177994,
-0.01500395406037569,
0.006862835492938757,
0.010634222067892551,
0.013254248537123203,
-0.005552822723984718,
0.05087745562195778,
-0.003583270590752363,
0.0057794684544205666,
0.022646451368927956,
0.033652372658252716,
-0.010888065211474895,
0.0524730421602726,
0.021939316764473915,
0.07136623561382294,
0.024985436350107193,
-0.029826590791344643,
0.023353585973381996,
-0.01970912143588066,
0.004220145288854837,
-0.011994097381830215,
0.02596454694867134,
0.004059226717799902,
-0.04953571408987045,
-0.006613525096327066,
0.032709527760744095,
-0.036644097417593,
-0.053125783801078796,
-0.0220481064170599,
0.013807264156639576,
0.003148110583424568,
0.002026213798671961,
-0.015031151473522186,
-0.06037844717502594,
0.017333872616291046,
-0.06030592322349548,
0.05033350735902786,
-0.014088304713368416,
-0.03869297727942467,
0.07064097374677658,
-0.049825817346572876,
-0.061248768121004105,
0.0028421387542039156,
-0.028992533683776855,
0.02242887206375599,
0.03470401093363762,
0.04402368515729904,
-0.00999054778367281,
-0.007551839109510183,
-0.0030823831912130117,
-0.011830911971628666,
-0.03203865513205528,
0.09870879352092743,
-0.00864427164196968,
-0.010081206448376179,
0.09595277905464172,
-0.024242037907242775,
-0.011033118702471256,
0.04137646406888962,
0.0016465819207951427,
0.04181162267923355,
0.030968885868787766,
-0.015221534296870232,
0.04830275848507881,
-0.011223501525819302,
0.05751364678144455,
0.07898154109716415,
0.020724494010210037,
-0.027106842026114464,
-0.00616023363545537,
0.07977933436632156,
-0.034685876220464706,
-0.0016998436767607927,
-0.005915455985814333,
0.014324016869068146,
-0.002027346985414624,
-0.006318885833024979,
-0.011441081762313843,
-0.013435564935207367,
0.04656212031841278,
-0.011912505142390728,
0.007837412878870964,
0.0698794424533844,
0.04260941594839096,
0.0261096004396677,
-0.01581987924873829,
0.025003567337989807,
0.03709739074110985,
-0.02313600666821003,
-0.04424126446247101,
0.030733173713088036,
0.0741947814822197,
-0.04297205060720444,
0.014514398761093616,
0.016400091350078583,
0.012438323348760605,
-0.0120394267141819,
-0.006350615993142128,
0.04137646406888962,
0.043044574558734894,
-0.0038643113803118467,
-0.04765002056956291,
0.0481577068567276,
-0.031385913491249084,
0.006504735443741083,
-0.04659838229417801,
-0.004850220866501331,
0.005765869747847319,
0.0012091555399820209,
0.05461258068680763,
0.00201828102581203,
0.07078602910041809
] |
10,253 | collections | __and__ | Intersection is the minimum of corresponding counts.
>>> Counter('abbb') & Counter('bcc')
Counter({'b': 1})
| def __and__(self, other):
''' Intersection is the minimum of corresponding counts.
>>> Counter('abbb') & Counter('bcc')
Counter({'b': 1})
'''
if not isinstance(other, Counter):
return NotImplemented
result = Counter()
for elem, count in self.items():
other_count = other[elem]
newcount = count if count < other_count else other_count
if newcount > 0:
result[elem] = newcount
return result
| (self, other) | [
-0.009069835767149925,
-0.03288152813911438,
-0.010139519348740578,
0.06317424029111862,
0.027560077607631683,
0.01957790181040764,
0.012144052423536777,
-0.04221204295754433,
0.05033804103732109,
-0.0439019612967968,
-0.03385233134031296,
-0.00146969105117023,
0.04037829861044884,
-0.015640748664736748,
-0.028117390349507332,
-0.032503992319107056,
-0.02405439130961895,
0.013986784033477306,
-0.0305623821914196,
-0.03144329786300659,
-0.002129254164174199,
0.0056899962946772575,
0.01957790181040764,
0.07338567078113556,
0.015254223719239235,
0.04965488240122795,
-0.02500721998512745,
-0.049978483468294144,
-0.02322741039097309,
0.040522120893001556,
-0.00948332715779543,
-0.012413720600306988,
-0.020692529156804085,
-0.033870309591293335,
0.03349277377128601,
-0.040450211614370346,
0.018714964389801025,
0.03901198133826256,
-0.011928318068385124,
0.04203226417303085,
0.006660801358520985,
-0.06288659572601318,
-0.02214873768389225,
-0.03629732131958008,
0.022867852821946144,
0.00647203391417861,
0.013177779503166676,
0.0047012134455144405,
0.07615426182746887,
-0.028153346851468086,
0.000488492485601455,
-0.06277872622013092,
-0.03424784541130066,
0.0026629723142832518,
-0.036441147327423096,
0.05986631289124489,
0.0223464947193861,
0.03520067408680916,
-0.08269821107387543,
0.04523232579231262,
-0.03983896225690842,
0.015712659806013107,
0.015550859272480011,
-0.006966425105929375,
-0.03466133773326874,
-0.03403211012482643,
-0.04897172376513481,
0.007231598719954491,
-0.02854885905981064,
0.006148431915789843,
-0.015335123986005783,
-0.0025978023186326027,
0.02418023720383644,
0.003975356929004192,
-0.007793407421559095,
0.0002443866978865117,
-0.0012921595480293036,
0.02351505681872368,
0.08428025990724564,
-0.03561416268348694,
0.05476059764623642,
-0.05094928666949272,
-0.025456666946411133,
-0.013510370627045631,
0.032647814601659775,
0.035506296902894974,
0.0008977699326351285,
-0.013914872892200947,
0.02630162611603737,
-0.018571142107248306,
-0.004186596721410751,
0.06752488762140274,
0.05796065926551819,
-0.0037731057964265347,
0.023551011458039284,
0.0400906540453434,
-0.03520067408680916,
-0.020908264443278313,
-0.008467577397823334,
0.022777963429689407,
-0.006319222040474415,
0.03036462515592575,
0.005645051598548889,
-0.03446358069777489,
0.018535185605287552,
-0.028980329632759094,
-0.0008208021754398942,
-0.04077381268143654,
-0.0066922628320753574,
0.012117085047066212,
0.04152888432145119,
-0.043326668441295624,
-0.04149292781949043,
0.013204746879637241,
0.00487649766728282,
0.0049079591408371925,
0.02410832606256008,
-0.040737856179475784,
0.007186654023826122,
0.007433849852532148,
-0.020962197333574295,
0.01671942137181759,
0.0469941571354866,
0.031766898930072784,
0.004750652704387903,
-0.03507482632994652,
0.03433773294091225,
0.02513306401669979,
-0.02615780383348465,
-0.02153749018907547,
0.0630304142832756,
-0.042427778244018555,
-0.019128454849123955,
0.04016256332397461,
0.06346188485622406,
-0.009213658981025219,
0.052351560443639755,
0.0315152071416378,
-0.01766325905919075,
0.05817639082670212,
0.035704053938388824,
0.01609918475151062,
0.032234322279691696,
0.06126858666539192,
-0.025169020518660545,
-0.010750766843557358,
-0.024989241734147072,
0.03185678645968437,
0.011353026144206524,
0.02853088267147541,
-0.008638367056846619,
-0.01936216838657856,
0.032503992319107056,
-0.021968958899378777,
-0.031964655965566635,
-0.012701366096735,
0.01216202974319458,
-0.056630294770002365,
-0.010912568308413029,
-0.033384907990694046,
0.05145266652107239,
0.021249843761324883,
0.007955208420753479,
0.003847264451906085,
-0.008588927797973156,
-0.010319298133254051,
0.010283342562615871,
-0.010831667110323906,
-0.003654002444818616,
-0.0015663220547139645,
0.003564113052561879,
-0.057780880481004715,
0.009330515749752522,
-0.02017117105424404,
-0.04124123603105545,
-0.004312442149966955,
-0.0177441593259573,
0.007645089644938707,
0.007883296348154545,
-0.014283418655395508,
0.04012661054730415,
0.01235978677868843,
-0.0717676654458046,
-0.03097587265074253,
0.002611285774037242,
-0.0462031289935112,
0.0396951399743557,
0.013402502983808517,
0.05605500191450119,
0.029321908950805664,
0.0012741816462948918,
-0.04462107643485069,
-0.0012067646021023393,
0.022310538217425346,
0.01813967153429985,
-0.023317299783229828,
-0.06543945521116257,
-0.03183881193399429,
0.004943914711475372,
0.09183096885681152,
-0.07651381939649582,
0.010445143096148968,
-0.020350949838757515,
0.005375383421778679,
0.07478794455528259,
0.03239612281322479,
0.00022036937298253179,
0.007420366629958153,
-0.020602641627192497,
-0.06748893111944199,
-0.018696986138820648,
-0.10592561960220337,
0.002988821128383279,
0.03915580362081528,
0.026661183685064316,
0.04584357142448425,
0.027344342321157455,
-0.02356898970901966,
-0.03836477920413017,
-0.05274707451462746,
0.0626349076628685,
-0.004191091284155846,
0.0014809271087870002,
-0.019254300743341446,
-0.014049706980586052,
0.030939916148781776,
-0.0070922705344855785,
0.01117324735969305,
-0.007348455023020506,
0.01029233168810606,
0.09628947824239731,
0.053897660225629807,
0.0381850004196167,
-0.0141306072473526,
-0.0242521483451128,
0.007267554756253958,
-0.01331261359155178,
0.011155269108712673,
-0.020009370520710945,
-0.01609918475151062,
0.01569468155503273,
0.028297169134020805,
0.0442974753677845,
-0.02581622265279293,
-0.06896311789751053,
-0.08658143132925034,
-0.008269821293652058,
-0.003836028277873993,
0.01766325905919075,
0.02344314381480217,
-0.058464039117097855,
-0.050517819821834564,
-0.01766325905919075,
-0.04203226417303085,
0.011388981714844704,
-0.03149723261594772,
-0.04965488240122795,
-0.03180285543203354,
0.00876870658248663,
0.01867900788784027,
0.0057753911241889,
0.08190718293190002,
0.013132834807038307,
-0.036656878888607025,
-0.045951440930366516,
0.028584815561771393,
0.02874661609530449,
0.06968223303556442,
-0.016000306233763695,
0.017204822972416878,
0.0057484242133796215,
-0.0893859788775444,
0.048000916838645935,
-0.014481175690889359,
-0.056234780699014664,
-0.009609172120690346,
0.02412630431354046,
-0.018427317962050438,
-0.0020191397052258253,
0.021052086725831032,
0.008418138138949871,
0.03329501673579216,
-0.06062138080596924,
-0.05353810265660286,
0.0058562918566167355,
0.03158712014555931,
-0.004355139564722776,
-0.038077130913734436,
-0.021933002397418022,
-0.08356114476919174,
0.036854635924100876,
0.0028629759326577187,
0.03973109647631645,
-0.009060847572982311,
-0.027703899890184402,
0.00937546044588089,
0.03908389434218407,
-0.09082420915365219,
0.02968146651983261,
0.0419963076710701,
-0.0037191722076386213,
-0.04383005201816559,
-0.0462031289935112,
-0.0200453270226717,
-0.013546326197683811,
-0.02725445292890072,
0.0565224289894104,
0.056234780699014664,
0.0029551126062870026,
0.017555391415953636,
-0.02383865788578987,
0.04767731577157974,
0.006305738352239132,
-0.0015314898919314146,
-0.02818930335342884,
0.01610817201435566,
-0.010678855702280998,
0.010130530223250389,
-0.01332160271704197,
0.06396526843309402,
0.048755988478660583,
0.028584815561771393,
-0.04713797941803932,
0.0345354899764061,
-0.03721419349312782,
-0.056774117052555084,
0.0009674341999925673,
-0.01840933971107006,
0.05688198655843735,
0.029861245304346085,
-0.058320216834545135,
-0.024216193705797195,
0.03811308741569519,
0.003656249726191163,
-0.03320512920618057,
0.004723685793578625,
0.06256299465894699,
0.013357558287680149,
-0.035560231655836105,
0.0010399074526503682,
0.023586967960000038,
-0.012180007994174957,
-0.048827897757291794,
0.006773163098841906,
0.00011601344886003062,
-0.04339858144521713,
-0.03383435308933258,
0.0017123923171311617,
0.017447523772716522,
-0.054185304790735245,
-0.038077130913734436,
0.013186768628656864,
0.044189609587192535,
0.0013011484406888485,
0.05666625127196312,
0.021699290722608566,
-0.009492316283285618,
-0.030957894399762154,
0.016881221905350685,
0.010013674385845661,
0.02329932153224945,
-0.009321526624262333,
-0.02603195793926716,
-0.012171018868684769,
-0.06439673900604248,
0.03491302579641342,
-0.023047631606459618,
-0.02942977473139763,
-0.11103133112192154,
-0.056486472487449646,
0.0060630370862782,
-0.031011829152703285,
-0.022112781181931496,
-0.0026292637921869755,
0.02881852723658085,
-0.017096955329179764,
-0.07302611321210861,
0.04267946630716324,
-0.0561269149184227,
-0.0054967342875897884,
0.016521664336323738,
0.04767731577157974,
-0.06054947152733803,
0.03126351907849312,
-0.05328641086816788,
0.03825690969824791,
-0.03534449636936188,
-0.04965488240122795,
0.08830730617046356,
0.09945358335971832,
-0.011379992589354515,
-0.0115507822483778,
-0.034697290509939194,
-0.020063305273652077,
-0.05885954946279526,
0.01008558552712202,
0.004236035980284214,
-0.047389667481184006,
0.03002304583787918,
-0.05519206449389458,
0.08291394263505936,
-0.028423015028238297,
0.04710202291607857,
0.0141306072473526,
0.02982528880238533,
0.05134480074048042,
-0.006557428743690252,
-0.06396526843309402,
-0.024953285232186317,
0.04354240372776985,
-0.06928671896457672,
-0.04397387430071831,
-0.0006269782898016274,
-0.009231637232005596,
-0.05706176534295082,
-0.10240195691585541,
-0.0006752937915734947,
-0.0234970785677433,
0.021088043227791786,
0.01597333885729313,
0.0584280826151371,
-0.009384448640048504,
0.018858786672353745,
-0.018732942640781403,
-0.02628364786505699,
-0.0259600467979908,
-0.02473755180835724,
0.009366471320390701,
0.016737397760152817,
-0.04728180170059204,
-0.03491302579641342,
-0.0076271118596196175,
0.03446358069777489,
-0.04285924509167671,
-0.0043618809431791306,
-0.000778104760684073,
-0.0018180122133344412,
-0.0006814736989326775,
0.02569037862122059,
0.0005039421957917511,
0.05947079882025719,
-0.0031079244799911976,
0.00846308283507824,
0.002109029097482562,
-0.007312499452382326,
-0.03164105489850044,
-0.014894666150212288,
0.03430178016424179,
-0.008422632701694965,
-0.02364090085029602,
0.056090958416461945,
-0.029052240774035454,
-0.022040870040655136,
0.01542501337826252,
0.013672171160578728,
0.004768630489706993,
-0.012746310792863369,
-0.00286971777677536,
-0.0045866044238209724,
0.025762289762496948,
-0.02507913112640381,
0.012782266363501549,
-0.05332236737012863,
0.03696250542998314,
-0.040450211614370346,
0.018786875531077385,
0.0025775772519409657,
0.04077381268143654,
0.009042869322001934,
0.0709766373038292,
0.022238627076148987,
-0.05450890585780144,
0.006561923306435347,
-0.030760137364268303,
-0.016971111297607422,
0.01589243859052658,
-0.02459372766315937,
0.02288583107292652,
0.036387212574481964,
0.046778421849012375,
0.057457275688648224,
0.02955562062561512,
0.023407189175486565,
-0.039371538907289505,
0.03424784541130066,
-0.04900767654180527,
-0.017645280808210373,
0.01602727174758911,
0.0109754903241992,
0.03307928517460823,
0.02874661609530449,
-0.0294117983430624,
-0.018256528303027153,
0.02268807403743267,
0.025636443868279457,
-0.001867451355792582,
0.018121695145964622,
0.021645357832312584,
0.011299092322587967,
0.04577166214585304,
-0.015793560072779655,
-0.020422862842679024,
-0.054257217794656754,
0.00798217486590147,
0.04900767654180527,
0.024827441200613976,
-0.021897047758102417,
-0.01943407952785492,
0.07165979593992233,
0.009492316283285618,
-0.011146279983222485,
-0.08111615478992462,
0.05986631289124489,
0.037393972277641296,
0.014184541068971157,
-0.02738029882311821,
-0.01896665431559086,
-0.021627379581332207,
-0.026679161936044693,
-0.023802701383829117,
0.011379992589354515,
0.025564532727003098,
-0.011236169375479221,
-0.04041425511240959,
-0.023011675104498863,
0.0014517131494358182,
-0.022058848291635513,
-0.07651381939649582,
-0.01386093907058239,
0.0018135177670046687,
-0.07421265542507172,
-0.04652673006057739,
-0.03009495697915554,
0.038220953196287155,
-0.051884137094020844,
0.0588235966861248,
-0.050985243171453476,
-0.0003120846231468022,
0.029933156445622444,
0.03901198133826256,
0.056090958416461945,
0.010606944561004639,
0.09794344753026962,
0.0018640805501490831,
0.0641450434923172,
0.08456790447235107,
-0.0840645283460617,
-0.021249843761324883,
-0.02099815383553505,
0.009312537498772144,
-0.05109310895204544,
-0.03947940468788147,
-0.019398123025894165,
-0.01328564714640379,
0.006229332648217678,
0.011964273639023304,
-0.01332160271704197,
-0.028387058526277542,
0.07370927184820175,
0.052423473447561264,
0.045412104576826096,
0.003184330416843295,
0.030688226222991943,
-0.019883526489138603,
-0.05436508357524872,
-0.04138505831360817,
0.05857190489768982,
-0.023317299783229828,
-0.049511056393384933,
0.0442974753677845,
0.016000306233763695,
0.035164717584848404,
-0.10283342748880386,
0.025996001437306404,
-0.024342037737369537,
0.05849999561905861,
-0.019326211884617805,
-0.004786608275026083,
0.015164334326982498,
0.006979908794164658,
-0.0855027586221695,
0.027470188215374947,
0.02473755180835724,
-0.07572279125452042,
0.0607292503118515,
0.022508295252919197,
-0.04131314903497696,
0.0012663162779062986,
-0.009869851171970367,
0.031029805541038513,
-0.057996612042188644,
-0.07392501085996628,
-0.013465425930917263,
-0.014292407780885696,
0.002997810021042824,
0.038077130913734436,
0.014939610846340656,
-0.0018348664743825793,
-0.019937459379434586,
-0.005083243362605572,
0.02818930335342884,
-0.01158673781901598,
-0.04918745532631874,
-0.020566685125231743,
0.02622971497476101,
0.029807310551404953,
-0.0036360244266688824,
0.04030638933181763,
0.0067911408841609955,
-0.03158712014555931,
0.00390793988481164,
-0.0034045593347400427,
0.012818221934139729,
0.010615932755172253,
0.06569114327430725,
-0.03253994882106781,
0.006768668536096811,
-0.02601397968828678,
0.004566379357129335,
0.04300306737422943,
-0.0014022740069776773,
0.02268807403743267,
0.001077548717148602,
0.021933002397418022,
-0.02784772217273712,
-0.025438688695430756,
0.01185640599578619,
-0.005523701198399067,
0.0580325685441494,
0.029106173664331436,
0.021106021478772163,
0.008710279129445553,
0.09794344753026962,
-0.029591577127575874,
0.008876574225723743,
-0.026715116575360298,
0.029321908950805664,
0.040450211614370346,
0.00032781524350866675,
0.048000916838645935,
-0.053034719079732895,
0.01678234338760376,
-0.04023447632789612,
0.012782266363501549,
-0.05519206449389458,
-0.01008558552712202,
-0.015137367881834507,
-0.037393972277641296,
0.028315147385001183,
-0.0031596110202372074,
-0.00036152376560494304,
0.006125959567725658,
0.05033804103732109,
-0.006584395654499531,
-0.08816348016262054,
-0.037537794560194016,
0.05317854508757591,
-0.026517359539866447,
0.010885600931942463,
-0.0019685770384967327,
0.024360015988349915,
0.02968146651983261,
0.02378472313284874,
-0.0022831896785646677,
0.05378979071974754,
0.018768897280097008,
0.03480516001582146,
-0.0043798587284982204,
0.032306235283613205,
0.04458511993288994,
0.04354240372776985,
0.03239612281322479,
-0.015371080487966537,
-0.006822602357715368,
-0.04329071566462517,
0.008642861619591713,
-0.017771126702427864,
0.003431526245549321,
-0.005550667643547058,
-0.06371357291936874,
0.018157649785280228,
0.00426525017246604,
-0.02601397968828678,
-0.045484013855457306,
-0.013564304448664188,
-0.012188997119665146,
-0.0005429878947325051,
-0.030454514548182487,
-0.0017584605375304818,
-0.030005067586898804,
0.024557773023843765,
-0.055263977497816086,
0.05314258858561516,
-0.044944677501916885,
-0.03908389434218407,
0.07672955840826035,
-0.04613121971487999,
-0.04062999039888382,
0.027757832780480385,
-0.035290561616420746,
0.03119160793721676,
0.012476642616093159,
0.03789735212922096,
-0.005586623679846525,
-0.04634695127606392,
0.011955284513533115,
-0.020692529156804085,
-0.01766325905919075,
0.09995696693658829,
-0.003809061599895358,
-0.016404807567596436,
0.0870128944516182,
-0.018535185605287552,
-0.010849645361304283,
0.03671081364154816,
-0.005806852597743273,
0.02764996699988842,
0.024413948878645897,
0.014759832061827183,
0.040665946900844574,
-0.0009151860140264034,
0.05824830383062363,
0.045555926859378815,
0.032306235283613205,
-0.037070371210575104,
0.033133216202259064,
0.0862937867641449,
-0.023820679634809494,
-0.03926367312669754,
-0.03599169850349426,
-0.0058607859537005424,
-0.0038405228406190872,
-0.04221204295754433,
0.012000229209661484,
-0.007024853490293026,
0.040665946900844574,
-0.006197871174663305,
-0.013950828462839127,
0.0839926153421402,
0.026481404900550842,
0.02444990538060665,
0.0009545126231387258,
0.021771201863884926,
0.03225230053067207,
0.002184311393648386,
-0.03579394146800041,
0.019200365990400314,
0.03793330863118172,
-0.04368622601032257,
-0.004027043003588915,
-0.015784570947289467,
0.03029271401464939,
0.015146357007324696,
-0.024144280701875687,
0.0278657004237175,
0.04030638933181763,
-0.031101718544960022,
-0.05896741896867752,
0.010535032488405704,
-0.020279038697481155,
-0.02689489535987377,
-0.025852179154753685,
-0.00504279276356101,
0.0072630601935088634,
-0.02283189631998539,
0.0485042966902256,
0.015146357007324696,
0.06806422024965286
] |
10,254 | collections | __delitem__ | Like dict.__delitem__() but does not raise KeyError for missing values. | def __delitem__(self, elem):
'Like dict.__delitem__() but does not raise KeyError for missing values.'
if elem in self:
super().__delitem__(elem)
| (self, elem) | [
0.04897451028227806,
0.015164696611464024,
-0.029121899977326393,
-0.009624432772397995,
-0.0533427968621254,
-0.043327704071998596,
-0.0288377832621336,
0.0295125599950552,
0.06353545933961868,
-0.0016325577162206173,
-0.04272395744919777,
0.01332682091742754,
0.06097841635346413,
-0.012882889248430729,
-0.05277456343173981,
-0.002005459973588586,
-0.025250818580389023,
0.08239366859197617,
0.00894965697079897,
-0.03555002436041832,
0.011053891852498055,
-0.01207493431866169,
0.0077332849614322186,
0.07212997227907181,
-0.04062860086560249,
0.0393855944275856,
0.047198787331581116,
-0.009935184381902218,
0.05430168658494949,
0.005682321731001139,
-0.04119683429598808,
-0.017171265557408333,
-0.011950633488595486,
0.04556511715054512,
0.011346886865794659,
-0.03425374627113342,
-0.02139749377965927,
0.03299298137426376,
-0.03279765322804451,
0.041623007506132126,
-0.017766134813427925,
0.012199235148727894,
0.038213614374399185,
-0.0546923466026783,
0.1064014732837677,
0.06346443295478821,
0.07053182274103165,
0.05316522344946861,
-0.030489208176732063,
0.024114353582262993,
0.019000263884663582,
0.04013139754533768,
0.050501637160778046,
0.02620971016585827,
-0.048903483897447586,
0.05742696672677994,
0.013415606692433357,
0.023510606959462166,
-0.00005247407898423262,
0.054621320217847824,
-0.0017790551064535975,
0.012607651762664318,
-0.02597886510193348,
-0.06747756898403168,
0.007719967048615217,
-0.03553226962685585,
0.02061617374420166,
-0.023759208619594574,
-0.007759920787066221,
-0.026848969981074333,
0.00752019789069891,
-0.040060367435216904,
-0.017117993906140327,
0.044712770730257034,
0.04212021082639694,
-0.025783535093069077,
0.02562372013926506,
-0.013220276683568954,
0.06630559265613556,
-0.030950896441936493,
0.004061972256749868,
-0.0265293400734663,
-0.005819940473884344,
0.029334986582398415,
-0.03665097430348396,
0.015297875739634037,
0.034804221242666245,
0.011755303479731083,
0.025765778496861458,
0.06250554323196411,
0.002796767745167017,
0.013317941688001156,
-0.016549762338399887,
-0.009615554474294186,
0.023617150261998177,
0.010867440141737461,
-0.0003770642215386033,
-0.006610138341784477,
0.025091001763939857,
-0.025446146726608276,
0.05284559354186058,
-0.054159630089998245,
-0.0021785933058708906,
-0.01441001333296299,
0.0048122163861989975,
0.0011919557582587004,
0.05870548635721207,
-0.048335250467061996,
0.00867885909974575,
0.01573292911052704,
-0.029192928224802017,
0.034466832876205444,
-0.042191240936517715,
0.008705494925379753,
0.020545145496726036,
0.021912453696131706,
-0.03064902313053608,
-0.049933403730392456,
-0.010752018541097641,
-0.003635798115283251,
-0.007466926239430904,
0.019355408847332,
-0.04109029099345207,
0.013824023306369781,
0.09397140145301819,
-0.06325134634971619,
-0.023972295224666595,
0.028411610051989555,
0.008496847003698349,
0.014951609075069427,
-0.022018996998667717,
-0.006010830868035555,
-0.04290153086185455,
-0.04009588435292244,
0.025943350046873093,
-0.007165052928030491,
0.046985700726509094,
-0.008572314865887165,
-0.04453519731760025,
0.01013051439076662,
0.010174907743930817,
0.01788155734539032,
0.023297520354390144,
0.06726448237895966,
0.05011097714304924,
-0.03945662081241608,
-0.06083635985851288,
-0.010059485211968422,
-0.025996621698141098,
-0.010565566830337048,
-0.05980643630027771,
0.06119150295853615,
0.006592381279915571,
-0.015297875739634037,
0.0064414446242153645,
0.014259076677262783,
-0.037751924246549606,
0.02086477540433407,
-0.07138416916131973,
0.006259432528167963,
0.048122163861989975,
0.014356741681694984,
0.06563081592321396,
0.003149693366140127,
-0.017597440630197525,
0.01855633221566677,
0.02139749377965927,
-0.006130692549049854,
-0.03006303496658802,
0.0220012404024601,
-0.030489208176732063,
-0.027292901650071144,
-0.004856609273701906,
0.010547810234129429,
0.0145875858142972,
0.06786823272705078,
-0.03352569788694382,
0.02505548857152462,
-0.014933852478861809,
-0.01746426150202751,
0.03198081627488136,
-0.02574802003800869,
-0.013539907522499561,
-0.016967058181762695,
0.025819050148129463,
0.02093580551445484,
-0.00848796870559454,
0.019675038754940033,
-0.005202875938266516,
0.07429635524749756,
-0.02471810020506382,
-0.029139656573534012,
-0.01029920857399702,
0.013353456743061543,
0.03853324428200722,
-0.0030475889798253775,
-0.02573026344180107,
-0.02663588337600231,
0.03643788769841194,
0.05589983984827995,
-0.059309232980012894,
-0.0510343536734581,
0.0006020819419063628,
0.03265559300780296,
-0.058030713349580765,
-0.006321582943201065,
0.029246199876070023,
-0.03121725656092167,
-0.022604987025260925,
0.04592026397585869,
-0.005731154233217239,
0.0008035158389247954,
0.03757435455918312,
-0.011373522691428661,
0.06229245290160179,
-0.04474828392267227,
-0.09581815451383591,
0.01565302163362503,
-0.006130692549049854,
0.002694663591682911,
0.012154841795563698,
-0.03496403619647026,
0.04712775722146034,
0.012518865056335926,
0.03182100132107735,
0.014338984154164791,
0.021255435422062874,
-0.009615554474294186,
0.015013759955763817,
0.030382664874196053,
0.026014380156993866,
0.014987124130129814,
0.029228443279862404,
-0.014729643240571022,
0.040841687470674515,
-0.0029055310878902674,
-0.040273457765579224,
-0.01981709711253643,
0.05568675324320793,
0.003944330383092165,
0.016354432329535484,
0.007822071202099323,
0.006201721727848053,
0.048228707164525986,
0.012714195065200329,
0.06289619952440262,
0.027932163327932358,
0.08225160837173462,
-0.0166829414665699,
-0.05071472376585007,
0.028624696657061577,
-0.004838852211833,
0.005349373444914818,
0.027186358347535133,
0.05547366663813591,
-0.03317055478692055,
-0.010281451046466827,
0.01002397108823061,
0.013309063389897346,
-0.031039683148264885,
-0.01912456378340721,
-0.02299564704298973,
0.0320163331925869,
0.06243451312184334,
0.02640504017472267,
0.046310923993587494,
0.08253572136163712,
0.04165852069854736,
0.006472519598901272,
0.03757435455918312,
0.03824912756681442,
-0.04215572401881218,
0.03203408792614937,
-0.0288377832621336,
0.009491253644227982,
0.11350437998771667,
-0.01607031561434269,
-0.024540526792407036,
0.002005459973588586,
0.029548073187470436,
0.04659504070878029,
-0.0533427968621254,
0.004481487441807985,
0.02049187384545803,
-0.032087359577417374,
0.02835833840072155,
-0.00013179212692193687,
0.033206067979335785,
0.03974073752760887,
0.05870548635721207,
0.0028211839962750673,
0.0005310529377311468,
-0.027736833319067955,
0.04339873418211937,
0.0020465238485485315,
0.0122525067999959,
-0.04975583031773567,
0.01092959102243185,
0.03064902313053608,
0.06619904935359955,
0.0075645907782018185,
0.003957648295909166,
-0.06325134634971619,
-0.025037730112671852,
0.025215303525328636,
-0.022480685263872147,
0.08054691553115845,
0.036064986139535904,
-0.014818429946899414,
0.031714458018541336,
0.032850924879312515,
0.015608628280460835,
-0.01567077822983265,
0.04474828392267227,
0.041765064001083374,
0.0018112401012331247,
0.008381424471735954,
-0.020030183717608452,
-0.005944241303950548,
0.05778210982680321,
-0.04275947064161301,
-0.03249577805399895,
-0.10356031358242035,
-0.003853324567899108,
-0.0005288332467898726,
-0.0760720819234848,
0.01748201809823513,
-0.0053760092705488205,
0.024061081930994987,
0.05206427350640297,
0.026174195110797882,
-0.01878717727959156,
0.01657639816403389,
-0.05490543320775032,
0.009109471924602985,
-0.017952585592865944,
0.012776345945894718,
0.0460268072783947,
0.03128828480839729,
0.002754594199359417,
-0.02017224207520485,
0.011941754259169102,
0.02390126697719097,
0.00383112789131701,
-0.03157240152359009,
-0.022800317034125328,
-0.025446146726608276,
0.02837609499692917,
0.02006569877266884,
-0.010343601927161217,
0.04474828392267227,
0.03956316411495209,
0.01891147717833519,
0.011018376797437668,
0.05877651646733284,
-0.02882002666592598,
-0.0008701055194251239,
0.027079815044999123,
-0.0047500659711658955,
-0.03853324428200722,
0.06705139577388763,
-0.034573376178741455,
-0.0291751716285944,
-0.02606765180826187,
0.0018822691636160016,
-0.05611293017864227,
-0.043363217264413834,
-0.05870548635721207,
-0.03192754462361336,
-0.056326016783714294,
-0.012243627570569515,
-0.046524010598659515,
-0.027488231658935547,
0.0015415517846122384,
0.04307910427451134,
-0.03768089786171913,
0.02743496000766754,
0.07191688567399979,
-0.02779010497033596,
-0.016896028071641922,
0.04354079067707062,
-0.0010315856197848916,
-0.00501642469316721,
0.006623456254601479,
-0.02482464350759983,
-0.0002899426908697933,
0.023084431886672974,
0.012936160899698734,
-0.0026813456788659096,
0.035603299736976624,
-0.00888750609010458,
-0.014001595787703991,
-0.02882002666592598,
0.01674509234726429,
-0.11329129338264465,
-0.009881912730634212,
-0.039030447602272034,
-0.0697149857878685,
-0.09375830739736557,
-0.025091001763939857,
0.04819319397211075,
-0.009659946896135807,
-0.04464174062013626,
-0.017535289749503136,
0.05703630670905113,
-0.008261563256382942,
-0.05281008034944534,
-0.013566543348133564,
0.04695018380880356,
-0.009295923635363579,
0.019444195553660393,
0.0014228001236915588,
0.02310219034552574,
-0.025890078395605087,
0.041978154331445694,
-0.05025303363800049,
-0.003484861459583044,
-0.01532451156526804,
0.034235987812280655,
0.02267601527273655,
-0.0326911062002182,
-0.03824912756681442,
-0.025375118479132652,
-0.00412412267178297,
-0.05817276984453201,
-0.0490100271999836,
-0.040024854242801666,
-0.02448725514113903,
0.008727691136300564,
-0.015182454138994217,
-0.029121899977326393,
-0.0787711888551712,
0.0003165785747114569,
-0.05259699001908302,
0.013371213339269161,
-0.008976292796432972,
-0.03956316411495209,
0.008474650792777538,
0.012909525074064732,
0.024061081930994987,
-0.03157240152359009,
-0.017748376354575157,
0.012199235148727894,
0.002252951730042696,
0.012314656749367714,
0.03631358966231346,
0.016780607402324677,
0.021734880283474922,
0.02370593696832657,
0.004337209742516279,
0.059628866612911224,
0.00037678677472285926,
0.014463284984230995,
-0.03750332444906235,
-0.003473763121291995,
-0.09013582766056061,
-0.029015356674790382,
0.0025370679795742035,
-0.0023617150727659464,
0.011923997662961483,
-0.024007810279726982,
0.05938026309013367,
-0.010743139311671257,
-0.0844535082578659,
-0.05692976340651512,
0.04808664694428444,
0.019515223801136017,
0.012598773464560509,
-0.006898693740367889,
0.02553493343293667,
-0.014463284984230995,
-0.025588205084204674,
-0.03304625302553177,
-0.046630553901195526,
-0.08956760168075562,
0.014960488304495811,
0.02049187384545803,
0.06165319308638573,
-0.008354788646101952,
-0.01082304771989584,
0.033312611281871796,
-0.01640770398080349,
0.052206333726644516,
-0.05682322010397911,
0.01360205840319395,
-0.00399760203436017,
-0.01596377231180668,
-0.018716147169470787,
0.029707888141274452,
0.059273719787597656,
-0.0236881785094738,
-0.08651334792375565,
-0.01794370636343956,
0.029068628326058388,
0.09496580064296722,
-0.04066411405801773,
0.003609162289649248,
-0.005447038449347019,
0.028677968308329582,
-0.07053182274103165,
0.01855633221566677,
0.0064991554245352745,
0.0038599835243076086,
-0.01994139887392521,
0.018520817160606384,
-0.06207936629652977,
0.029139656573534012,
0.0736570954322815,
-0.017410989850759506,
-0.06818786263465881,
-0.06726448237895966,
-0.003054247936233878,
0.07330194860696793,
-0.004643522202968597,
0.03995382413268089,
-0.022480685263872147,
-0.07891324162483215,
0.015857229009270668,
0.02370593696832657,
0.05138949677348137,
0.08019176870584488,
0.019532982259988785,
0.004794458858668804,
-0.007475804537534714,
-0.06012606993317604,
-0.010157150216400623,
-0.0240255668759346,
-0.023031160235404968,
0.024629313498735428,
0.012563258409500122,
-0.023031160235404968,
-0.008989610709249973,
-0.02196572534739971,
-0.015102545730769634,
0.01748201809823513,
0.06811683624982834,
-0.01190624013543129,
-0.032868679612874985,
0.01756192557513714,
0.05742696672677994,
0.04975583031773567,
0.019426437094807625,
0.07262717932462692,
-0.05412411689758301,
-0.015528719872236252,
0.007102902512997389,
-0.050963323563337326,
0.014569828286767006,
-0.00831927452236414,
0.041978154331445694,
-0.04499688744544983,
-0.01771286316215992,
0.038213614374399185,
-0.015910500660538673,
0.009446860291063786,
0.016478734090924263,
-0.01333569921553135,
0.012927282601594925,
0.0576755665242672,
0.0098463986068964,
-0.013344577513635159,
0.015857229009270668,
0.053697939962148666,
-0.019568495452404022,
0.041303377598524094,
0.00398206477984786,
-0.04354079067707062,
-0.021166648715734482,
0.032176148146390915,
0.017402110621333122,
-0.03814258426427841,
-0.006645652931183577,
-0.03384532779455185,
-0.024291925132274628,
-0.04609783738851547,
0.02505548857152462,
-0.022622743621468544,
-0.043008074164390564,
-0.027417203411459923,
-0.1123679131269455,
-0.059735409915447235,
0.07514870911836624,
-0.005646807141602039,
-0.03496403619647026,
0.038710817694664,
0.0032229418866336346,
0.007799874525517225,
-0.0010682098800316453,
-0.045742690563201904,
0.009935184381902218,
0.005602414254099131,
-0.06602147966623306,
0.021450765430927277,
-0.03492852300405502,
0.035372454673051834,
0.015368904918432236,
0.0035958443768322468,
-0.030684538185596466,
-0.07046078890562057,
0.01958625391125679,
0.031714458018541336,
-0.031732216477394104,
0.04854833707213402,
-0.009366952814161777,
0.013388970866799355,
0.05110538378357887,
-0.03304625302553177,
-0.003096421482041478,
0.0034049537498503923,
-0.06271862983703613,
-0.050643693655729294,
0.0018201187485828996,
-0.010956226848065853,
0.030897624790668488,
0.001568187610246241,
-0.049152083694934845,
-0.0032429187558591366,
0.00408194912597537,
-0.016629669815301895,
0.00851016491651535,
-0.04375387728214264,
-0.059628866612911224,
-0.08495071530342102,
0.04066411405801773,
-0.019426437094807625,
-0.06758411228656769,
0.022800317034125328,
0.06175973638892174,
-0.018032493069767952,
0.03219390660524368,
-0.03299298137426376,
-0.0021186626981943846,
0.04187161102890968,
-0.003247358137741685,
-0.013557665050029755,
0.027399444952607155,
-0.001763517502695322,
0.014099260792136192,
0.001148672541603446,
0.04290153086185455,
0.05888305976986885,
-0.014747400768101215,
-0.028518153354525566,
0.046772610396146774,
-0.06243451312184334,
-0.001148672541603446,
-0.022303113713860512,
0.0022152175661176443,
0.05224184691905975,
-0.037432294338941574,
-0.002160836011171341,
-0.01037023775279522,
-0.03031163476407528,
-0.05661012977361679,
-0.013735237531363964,
-0.016611913219094276,
-0.006738878786563873,
-0.028979841619729996,
-0.04918759688735008,
0.034005146473646164,
-0.0014427769929170609,
-0.03563881292939186,
-0.05241942033171654,
-0.021166648715734482,
0.07990764826536179,
-0.03959868103265762,
-0.023333033546805382,
0.008088430389761925,
-0.009029564447700977,
-0.015954894945025444,
-0.014791794121265411,
-0.02310219034552574,
-0.07170379906892776,
0.011604366824030876,
-0.028091978281736374,
-0.05082126706838608,
0.0015504304319620132,
0.019905883818864822,
-0.03016957826912403,
0.007364821620285511,
0.014125896617770195,
0.02984994649887085,
-0.04375387728214264,
0.048938997089862823,
-0.008754326961934566,
0.013974959962069988,
-0.0016869392711669207,
-0.01520908996462822,
-0.028873298317193985,
-0.07191688567399979,
0.026831213384866714,
-0.10562016069889069,
-0.004139660391956568,
0.009500131942331791,
-0.05774659663438797,
-0.029299471527338028,
-0.020704960450530052,
-0.024096596986055374,
0.04315013065934181,
0.015075909905135632,
0.003966527059674263,
0.03792949765920639,
0.011160435155034065,
0.013424484990537167,
0.028305064886808395,
0.009420224465429783,
-0.03281540796160698,
0.023386305198073387,
0.005078575108200312,
0.00003390179335838184,
-0.013673086650669575,
0.07244960218667984,
-0.03977625444531441,
-0.0680813193321228,
0.021237678825855255,
0.008976292796432972,
0.013637572526931763,
-0.04339873418211937,
-0.019959155470132828,
-0.030897624790668488,
-0.008909703232347965,
0.010228179395198822,
0.009730976074934006,
0.011027256026864052,
0.001054337015375495,
-0.006801029201596975,
0.009500131942331791,
-0.05249044671654701,
-0.030027519911527634,
0.06570184975862503,
0.010343601927161217,
-0.001976604573428631,
-0.012305778451263905,
0.03006303496658802,
-0.010219301097095013,
-0.020651688799262047,
0.033792056143283844,
0.01994139887392521,
0.05106986686587334,
0.04964928701519966,
-0.013593179173767567,
0.018591847270727158,
0.0033938554115593433,
0.025836806744337082,
0.019568495452404022,
-0.01092959102243185,
-0.06051672622561455,
0.08004970848560333,
-0.012430079281330109,
-0.024238653481006622,
0.022693773731589317,
0.02780786342918873,
-0.0243629552423954,
0.059522323310375214,
0.06698036938905716,
-0.04798010364174843,
-0.021663852035999298,
-0.004807777237147093,
0.026351768523454666,
0.004936517216265202,
-0.0831039547920227,
0.017428746446967125,
-0.02825179323554039,
0.009358073584735394,
-0.02061617374420166,
0.035585541278123856,
0.010148271918296814,
0.0059575592167675495
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.