a
    –¥»a²H ã                   @   s†  d Z ddlZddlZddlZddlZddlZddlmZmZm	Z	m
Z
mZmZmZ ddlZddlmZmZmZmZ g d¢Ze d¡ee dœdd„ƒZe d¡ee dœd	d
„ƒZe d¡eeef dœdd„ƒZedœdd„Zee
 e	e
 dœdd„Zeee
 e
dœdd„ZeedƒZeedƒZeedƒZe d¡ee
e	e f dœdd„ƒZe d¡ee dœdd„ƒZ ee!dœdd„Z"d d!„ Z#dS )"aE  
Python implementation of ``__torch_function__``

While most of the torch API and handling for ``__torch_function__`` happens
at the C++ level, some of the torch API is written in Python so we need
python-level handling for ``__torch_function__`` overrides as well. The main
developer-facing functionality in this file are handle_torch_function and
has_torch_function. See torch/functional.py and test/test_overrides.py
for usage examples.

Note
----
heavily inspired by NumPy's ``__array_function__`` (see:
https://github.com/pytorch/pytorch/issues/24015 and
https://www.numpy.org/neps/nep-0018-array-function-protocol.html
)

If changing this file in a way that can affect ``__torch_function__`` overhead,
please report the benchmarks in ``benchmarks/overrides_benchmark``. See the
instructions in the ``README.md`` in that directory.
é    N)ÚDictÚSetÚListÚAnyÚCallableÚIterableÚType)Ú_has_torch_functionÚ_has_torch_function_unaryÚ_has_torch_function_variadicÚ_add_docstr)Úget_ignored_functionsÚget_overridable_functionsÚget_testing_overridesÚhandle_torch_functionÚhas_torch_functionÚis_tensor_likeÚis_tensor_method_or_propertyÚwrap_torch_function)Úreturnc               ¬   C   sî  t j} t jt jt jt jt jt jt jt j	t j
t jt jt jt jt jt jt jt jt jt jt jt jt jt jt jt jt jt jt jt jt jt j t j!t j"t j#t j$t j%t j&t j't j(t j)t j*t j+t j,t j-t j.t j/t j0t j1t j2t j3t j4t j5t j6t j7t j8t j9t j:t j;t j<t j=t j>t j?t j@t jAt jBt jCt jDt jEt jFt jGt jHt jIt jJjKt jJjLt jMt jNt jOt jPt jQt jRt jSt jTt jUt jVt jWt jXt jYt jZt j[t j\t j]t j^t j_t j`t jat jbt jct jdt jet jft jgt jht jit jjjkt jljmjnt jljmjot jljmjpt jljmjqt jljmjrt jljmjst jljmjtt jljmjut jljmjvt jljmjwt jljmjxtrtut jyt jzt j{t j|t j}t j~t jt j€t j�t j‚t jƒt j„t j…t jljmj†t j‡t jˆt j‰t jŠt j‹t jŒt j�t jŽt j�t j�| j‘| j’| j“| j”| j•| j–| j—| j˜| j™| jš| j›| jœ| j�| jž| jŸ| j | j¡| j¢| j£| j¤| j¥| j¦| j§| j¨| j©| jª| j«| j¬j­| j®| j¯| j°h¬S )a%  
    Return public functions that cannot be overridden by ``__torch_function__``.

    Returns
    -------
    Set[Callable]
        A tuple of functions that are publicly available in the torch API but cannot
        be overridden with ``__torch_function__``. Mostly this is because none of the
        arguments of these functions are tensors or tensor-likes.

    Examples
    --------
    >>> torch.Tensor.as_subclass in torch.overrides.get_ignored_functions()
    True
    >>> torch.add in torch.overrides.get_ignored_functions()
    False
    )±ÚtorchÚTensorÚtypenameZ	is_tensorZ
is_storageZset_default_tensor_typeZset_rng_stateZget_rng_stateZmanual_seedZinitial_seedÚseedÚsaveÚloadZset_printoptionsÚforkZget_default_dtypeZget_num_interop_threadsZget_num_threadsZinit_num_threadsZimport_ir_moduleZimport_ir_module_from_bufferZis_anomaly_enabledZis_grad_enabledZmerge_type_from_type_commentZparse_irZparse_schemaZparse_type_commentZset_anomaly_enabledZset_flush_denormalZset_num_interop_threadsZset_num_threadsÚwaitZ	as_tensorZ
from_numpyÚ
get_deviceÚtensorZdefault_generatorZhas_cudaZ	has_cudnnZ
has_lapackÚdeviceÚdtypeZfinfoZhas_mklZ
has_mkldnnZ
has_openmpZiinfoÚmemory_formatÚqschemeZset_grad_enabledZno_gradZenable_gradZinference_modeZis_inference_mode_enabledÚlayoutZalign_tensorsZarangeÚ
as_stridedZbartlett_windowZblackman_windowZbroadcast_shapesZcan_castZcudnn_affine_grid_generatorZcudnn_batch_normZcudnn_convolutionZcudnn_convolution_transposeZcudnn_convolution_reluZcudnn_convolution_add_reluZcudnn_grid_samplerZcudnn_is_acceptableÚemptyZempty_stridedZempty_quantizedZeyeÚfftZfftfreqZrfftfreqÚ	from_fileÚfullZhamming_windowZhann_windowZkaiser_windowZlinspaceZlogspaceZmkldnn_adaptive_avg_pool2dZmkldnn_convolutionZ#mkldnn_convolution_backward_weightsZmkldnn_max_pool2dZmkldnn_max_pool3dZmkldnn_linear_backward_weightsÚnormalZonesZpromote_typesZrandZrandnÚrandintZrandpermÚrangeZresult_typeZscalar_tensorZsparse_coo_tensorZsparse_csr_tensorZtril_indicesZtriu_indicesZvanderÚzerosZ_jit_internalZboolean_dispatchÚnnÚ
functionalZassert_int_or_pairZupsampleZupsample_bilinearZupsample_nearestr   Úhas_torch_function_unaryÚhas_torch_function_variadicr   ÚsigmoidZhardsigmoidÚtanhZset_autocast_enabledZis_autocast_enabledZclear_autocast_cacheZset_autocast_cpu_enabledZis_autocast_cpu_enabledZset_autocast_cpu_dtypeZget_autocast_cpu_dtypeZget_autocast_gpu_dtypeZset_autocast_gpu_dtypeZautocast_increment_nestingZautocast_decrement_nestingZis_autocast_cache_enabledZset_autocast_cache_enabledZ	hardswishZis_vulkan_availableZ$are_deterministic_algorithms_enabledZuse_deterministic_algorithmsZunify_type_listZis_warn_always_enabledZset_warn_alwaysZvitals_enabledZ	set_vitalZread_vitalsZ
frombufferÚ__delitem__Ú__dir__Ú__getattribute__Ú__init__Ú__iter__Ú__init_subclass__Ú__delattr__Ú__setattr__Ú__torch_function__Ú__new__Ú	__class__Ú__subclasshook__Zas_subclassZ	reinforceÚnewZ
new_tensorZ	new_emptyZnew_empty_stridedZ	new_zerosZnew_onesZnew_fullZ_make_subclassÚstrideZ	unflattenZto_sparse_csrZ_reduce_ex_internalZ_fix_weakrefZ_python_dispatchÚ__get__Z_conjZ_conj_physicalZ	_neg_view©r   © rD   úI/home/yuhw/wc/pochoir/venv/lib/python3.9/site-packages/torch/overrides.pyr   /   s^   € Ôr   c                  C   s   t j} | jj| jj| jjhS )a  
    Return public functions that do not wrap in a subclass when invoked by
    the default ``Tensor.__torch_function__`` that preserves subclasses.  Typically,
    these functions represent field accesses (i.e., retrieving a Tensor that
    is stored somewhere on the Tensor) as opposed to computation.  Users of
    these functions expect object identity to be preserved over multiple accesses
    (e.g., ``a.grad is a.grad``) which cannot be upheld if we're wrapping on
    the fly every time (furthermore, the tensor stored here might already be
    the subclass, in which case wrapping really ought not to happen).

    Not ALL property accessors have this property; for example ``Tensor.T`` actually
    just creates a new transposed tensor on the fly, and so we SHOULD interpose on
    these calls (you need to check the implementation of the function to see if
    this is the case or not).  Additionally, if a property accessor doesn't return a Tensor,
    it doesn't have to be on this list (though it is harmless if it is).
    )r   r   Ú_baserB   ÚgradÚ_gradrC   rD   rD   rE   Úget_default_nowrap_functionsó   s
    ýrI   c            
   R  C   sè5  t j} t j�dadd„t j�dbdd„t jdd„ t jdd„ t j�dcdd„t j�dddd„t j�ded	d„t j	�dfd
d„t j
�dgdd„t j�dhdd„t j�didd„t j�djdd„t j�dkdd„t j�dldd„t j�dmdd„t jdd„ t j�dndd„t j�dodd„t j�dpdd„t j�dqdd„t j�drdd„t j�dsdd„t j�dtdd„t j�dudd„t jdd„ t jd d„ t j�dvd!d„t j�dwd"d„t jd#d„ t j�dxd$d„t j �dyd%d„t j!�dzd&d„t j"�d{d'd„t j#�d|d(d„t j$�d}d)d„t j%�d~d*d„t j&�dd+d„t j'd,d„ t j(d-d„ t j)d.d„ t j*�d€d1d„t j+�d�d2d„t j,d3d„ t j-d4d„ t j.d5d„ t j/d6d„ t j0d7d„ t j1d8d„ t j2d9d„ t j3d:d„ t j4�d‚d;d„t j5d<d„ t j6�dƒd>d„t j7�d„d?d„t j8�d…d@d„t j9�d†dAd„t j:�d‡dBd„t j;�dˆdCd„t j<�d‰dDd„t j=�dŠdEd„t j>�d‹dFd„t j?dGd„ t j@�dŒdHd„t jAdId„ t jBdJd„ t jC�d�dKd„t jDdLd„ t jE�dŽdMd„t jF�d�dNd„t jG�d�dQd„t jH�d‘dRd„t jI�d’dTd„t jJddUœdVd„t jKdWd„ t jL�d“dXd„t jMjL�d”dYd„t jMjN�d•dZd„t jO�d–d[d„t jP�d—d\d„t jQd]d„ t jR�d˜d^d„t jS�d™d_d„t jT�dšd`d„t jU�d›dad„t jV�dœdbd„t jW�d�dcd„t jX�džddd„t jYded„ t jZ�dŸdgd„t j[dhd„ t j\�d did„t j]djd„ t jMj^�d¡dkd„t j_�d¢dld„t j`�d£dmd„t ja�d¤dnd„t jb�d¥dod„t jc�d¦dpd„t jd�d§dqd„t je�d¨drd„t jf�d©dsd„t jgdtd„ t jh�dªdud„t ji�d«dvd„t jj�d¬dwd„t jk�d­dxd„t jldyd„ t jm�d®dzd„t jn�d¯d{d„t jo�d°d|d„t jp�d±d}d„t jqd~d„ t jr�d²d€d„t js�d³d�d„t jt�d´d‚d„t ju�dµdƒd„t jv�d¶d„d„t jw�d·d…d„t jx�d¸d†d„t jy�d¹d‡d„t jz�dºdˆd„t j{d‰d„ t j|dŠd„ t jMj|d‹d„ t j}dŒd„ t j~�d»d�d„t j�d¼dŽd„t j€�d½d�d„t j��d¾d�d„t j‚�d¿d‘d„t jƒ�dÀd’d„t j„�dÁd“d„t j…�dÂd”d„t j†�dÃd•d„t j‡�dÄd–d„t jˆ�dÅd—d„t j‰d˜d„ t jŠd™d„ t j‹dšd„ t jŒ�dÆd›d„t j��dÇdœd„t jMj��dÈd�d„t jMjŽ�dÉdžd„t jMj��dÊd d„t jMj��dËd¡d„t j‘d¢d„ t j’�dÌd£d„t j“�dÍd¤d„t j”�dÎd¥d„t j•�dÏd¦d„t j–d§d„ t j—�dÐd¨d„t j˜�dÑd©d„t j™�dÒdªd„t jš�dÓd«d„t j›�dÔd¬d„t jœ�dÕd­d„t j�d®d„ t jžd¯d„ t jŸ�dÖd°d„t j d±d„ t j¡d²d„ t j¢d³d„ t j£d´d„ t j¤dµd„ t j¥d¶d„ t j¦d·d„ t j§d¸d„ t j¨d¹d„ t j©j©�d×dºd„t j©jª�dØd»d„t j©j«�dÙd¼d„t j©j¬�dÚd½d„t j©j­�dÛd¾d„t j©j®�dÜd¿d„t j©j¯�dÝdÀd„t j©j°�dÞdÁd„t j©j±�dßdÂd„t j©j²�dàdÃd„t j©j³�dádÅd„t j©j´�dâdÆd„t j©jµ�dãdÇd„t j©j¶�dädÈd„t j©j·�dådÉd„t j©j¸�dædÊd„t j©j©�dçdËd„t j¹�dèdÌd„t jº�dédÍd„t j»dÎd„ t j¼dÏd„ t j½dÐd„ t j¾�dêdÑd„t j¿�dëdÒd„t jÀdÓd„ t jÁ�dìdÔd„t jÂ�dídÕd„t jÃ�dîdÖd„t jÄ�dïd×d„t jÅddt jÆddfdØd„t jÇ�dðdÙd„t jÈ�dñdÚd„t jÉ�dòdÛd„t jÊ�dódÜd„t jË�dôdÝd„t jÌ�dõdÞd„t jÍ�dödßd„t jÎ�d÷dàd„t jÏ�dødád„t jÐ�dùdâd„t jÑ�dúdãd„t jÒdäd„ t jÓdåd„ t jÔdæd„ t jÕ�dûdçd„t jÖdèd„ t j×�düdéd„t jØ�dýdêd„t jÙ�dþdëd„t jÚ�dÿdíd„t jÛ�d dîd„t jÜ�ddïd„t jÝ�ddñd„t jÞ�ddòd„t jMjßdód„ t jà�ddôd„t jádõd„ t jâ�ddöd„t jã�dd÷d„t jä�ddød„t jå�ddùd„t jæ�d	dúd„t jçdûd„ t jèdüd„ t jé�d
dýd„t jê�ddþd„t jëdÿd„ t jì�d d„ t jí�d�dd„t jî�dd„ t jï�dd„ t jð�d�dd„t jñ�d�dd„t jò�dd„ t jó�dd„ t jô�d�dd„t jMjõ�d�d	d„t jMjö�d�d
d„t j÷�dd„ t jø�dd„ t jù�dd„ t jú�dd„ t jû�dd„ t jü�dd„ t jý�dd„ t jþ�dd„ t jÿ�dd„ t �j �d�dd„t �j�dd„ t �j�d�dd„t �j�d�dd„t �j�dd„ t �j�d�dd„t �j�d�dd„t �j�d�dd„t �j�d�dd„t �j	�d�dd„t �j
�d�dd„t �j�d�dd„t �j�d�d d„t �j�d�d!d„t �j�d�d"d„t �j�d�d#d„t �j�d �d$d„t �j�d!�d%d„t �j�d"�d&d„t �j�d#�d'd„t �j�d$�d(d„t �j�d)d„ t �j�d%�d*d„t �j�d&�d+d„t �j�d'�d,d„t �j�d(�d-d„t �j�d)�d.d„t �j�d*�d/d„t �j�d+�d0d„t �j�d,�d1d„t �j�d2d„ t �j�d-�d3d„t �j�d.�d4d„t �j �d/�d5d„t �j!�d0�d6d„t �j"�d1�d7d„t �j#�d2�d8d„t �j$�d3�d9d„t �j%�d:d„ t �j&�d;d„ t �j'�d4�d<d„t �j(�d5�d=d„t jM�j(�d6�d>d„t �j)�d?d„ t jM�j)�d7�d@d„t �j*�d8�dAd„t jM�j*�d9�dBd„t jM�j+�d:�dCd„t �j,�dDd„ t �j-�d;�dEd„t �j.�d<�dFd„t �j/�d=�dGd„t �j0�d>�dHd„t �j1�d?�dId„t �j2�d@�dJd„t �j3�dA�dKd„t �j4�dB�dLd„t �j5�dC�dMd„t �j6�dD�dNd„t �j7�dE�dOd„t �j8�dPd„ t �j9�dF�dQd„t �j:�dG�dRd„t �j;�dH�dSd„t �j<�dTd„ t �j=�dUd„ t �j>�dVd„ t �j?�dWd„ t �j@�dXd„ t �jA�dI�dYd„t �jB�dJ�dZd„t �jC�d[d„ t �jD�d\d„ t �jE�dK�d]d„t �jF�dL�d^d„t �jG�dM�d_d„t �jH�dN�d`d„t �jI�dO�dad„t �jJ�dbd„ t �jK�dcd„ t �jL�ddd„ t �jM�dP�dfd„t �jN�dgd„ t �jO�dQ�dhd„t �jP�did„ t �jQ�dR�djd„t �jQ�dS�dkd„t �jQ�dT�dld„t �jR�dU�dmd„t �jS�dV�dnd„t �jT�dW�dod„t �jU�dX�dpd„t �jV�dY�dqd„t �jW�jX�jY�drd„ t �jW�jX�jZ�dsd„ t �jW�jXj�dZ�dtd„t �jW�jX�j[�d[�dud„t �jW�jX�j\�d\�dvd„t �jW�jX�j]�d]�dwd„t �jW�jX�j^�d^�dxd„t �jW�jX�j_�d_�dyd„t �jW�jX�j`�d`�dzd„t �jW�jXj�da�d{d„t �jW�jX�ja�db�d|d„t �jW�jX�jb�dc�d}d„t �jW�jXj,�dd�dd„t �jW�jXj5�de�d€d„t �jW�jX�jc�df�d�d„t �jW�jXj6�dg�d‚d„t �jW�jXjI�dh�dƒd„t �jW�jXjn�di�d„d„t �jW�jX�jd�dj�d†d„t �jW�jXjs�dk�d‡d„t �jW�jXjˆ�dl�dˆd„t �jW�jX�je�dm�d‰d„t �jW�jX�jf�dn�dŠd„t �jW�jX�jg�do�d‹d„t �jW�jXj’�dp�dŒd„t �jW�jXj“�dq�d�d„t �jW�jXj§�dr�dŽd„t �jW�jX�jh�ds�d�d„t �jW�jX�ji�dt�d�d„t �jW�jX�jj�du�d‘d„t �jW�jX�jk�dv�d’d„t �jW�jX�jl�dw�d“d„t �jW�jX�jm�dx�d•d„t �jW�jX�jn�d–d„ t �jW�jX�jo�dy�d—d„t �jW�jX�jp�dz�dšd„t �jW�jXjÕ�d{�d›d„t �jW�jX�jq�d|�d�d„t �jW�jXjÚ�d}�džd„t �jW�jX�jr�d~�d d„t �jW�jXjÜ�d�d¡d„t �jW�jXjò�d€�d¢d„t �jW�jX�js�d��d¤d„t �jW�jX�j�d‚�d¥d„t �jW�jX�jt�dƒ�d¦d„t �jW�jX�j�d„�d§d„t �jW�jX�ju�d…�d©d„t �jW�jX�jv�d†�dªd„t �jW�jX�jw�d‡�d­d„t �jW�jX�j�dˆ�d¯d„t �jW�jX�jx�d°d„ t �jW�jX�jy�d‰�d±d„t �jW�jX�jz�dŠ�d²d„t �jW�jX�j$�d‹�d³d„t �jW�jX�j0�dŒ�d´d„t �jW�jX�j3�d��dµd„t �jW�jX�j1�dŽ�d¶d„t �jW�jX�j{�d��d·d„t �jW�jX�j2�d��d¸d„t �jW�jX�j|�d‘�d¹d„t �jW�jX�j}�d’�dºd„t �jW�jX�j~�d“�d»d„t �jW�jX�j�d”�d¼d„t �jW�jX�j€�d•�d½d„t �jW�jX�j��d–�d¾d„t �jW�jX�j‚�d—�d¿d„t �jW�jX�jƒ�d˜�dÀd„t �jW�jX�j„�d™�dÁd„t �jW�jX�j…�dš�dÂd„t �jW�jX�j†�d›�dÄd„t �jW�jX�j‡�dœ�dÅd„t �jW�jX�jˆ�d��dÇd„t �jW�jX�j‰�dž�dÈd„t �jW�jX�jŠ�dŸ�dÉd„t �jW�jX�j‹�dÊd„ t �jW�jX�jŒ�d �dËd„t �jW�jX�j��d¡�dÌd„t �jW�jX�jŽ�d¢�dÏd„t �jW�jX�j��d£�dÐd„t �jW�jX�j��d¤�dÑd„t �jW�jX�j‘�d¥�dÒd„t �jW�jX�j’�d¦�dÓd„t �jW�jX�j“�d§�dÔd„t �jW�jX�j”�d¨�dÕd„t �jW�jX�j•�d©�dÖd„t �jW�jX�j–�dª�d×d„t �jW�jX�j—�d«�dÙd„t �jW�jX�j˜�d¬�dÚd„t �jW�jX�j™�dÛd„ t �jW�jX�jš�dÜd„ t �jW�jX�j›�d­�dÝd„t �jW�jX�jœ�d®�dÞd„t �jW�jX�j�ddSdd=�dßœ�dàd„t �jW�jX�jž�d¯�dád„t �jŸ�d°�dâd„t �j �d±�däd„t jM�j �d²�dåd„t jM�j¡�d³�dæd„t jM�j¢�d´�dçd„t �j£�dµ�dèd„t �j¤�d¶�déd„t �j¥�dêd„ t �j¦�dëd„ t �j§�d·�dìd„t �j‰�d¸�díd„t �j¨�dîd„ t �j©�d¹�dïd„t �jª�dº�dðd„t �j«�d»�dòd„t jM�j¬�d¼�dód„t �j­�dôd„ t �j®�dõd„ t �j¯�d½�död„t �jŠ�d÷d„ t �j°�d¾�død„t �j±�d¿�dùd„t �j‹�dúd„ t �j²�dÀ�dûd„t �j³�dÁ�düd„t �j´�dÂ�dýd„t �jµ�dÃ�dþd„t �j¶�dÿd„ t �j·�d d„ t �j¸�dd„ t �j¹�dd„ t �jº�dd„ t �j»�dÄ�dd„t jM�j»�dÅ�dd„t �j¼�dÆ�dd„t �j½�dÇ�dd„t �j¾�d	d„ t �j¿�d
d„ t �jÀ�dd„ t �jÁ�dd„ t �jÂ�dd„ t �jÃ�tÄƒ �d�ddf�dd„t �jÅ�tÄƒ �d�ddf�dd„t �jÆ�dd„ t �jÇ�dd„ t �jÈ�dÈ�dd„t �jÉ�dÉ�dd„t �jÊdt jÆddf�dd„t �jË�dÊ�dd„t �jÌ�dd„ t �jÍ�dË�dd„t �jÎ�dÌ�dd„t �jÏ�dd„ t �jÐ�dd„ t �jÑ�dÍ�dd„t �jŒ�dÎ�d d„t �jÒ�dÏ�d!d„t �jÓ�dÐ�d"d„t �jÔ�dÑ�d#d„t �jÕ�d$d„ t �jÖ�d%d„ t �j×�dÒ�d&d„t �jØ�d'd„ t �jÙ�dÓ�d(d„t �jÚ�dÔ�d)d„t �jÛ�dÕ�d+d„t �jÜ�dÖ�d,d„t �jÝ�d×�d-d„t �jÞ�d.d„ t �jŽ�dØ�d/d„t �jß�dÙ�d0d„t �jà�dÚ�d1d„t �já�dÛ�d2d„t �jâ�d3d„ t �jã�d4d„ t �jä�dÜ�d5d„t �jå�dÝ�d7d„t �jæ�d8d„ t �j��dÞ�d9d„t �jç�dß�d:d„t �jè�dà�d;d„t �jé�dá�d<d„t �jê�dâ�d=d„t �jë�dã�d>d„t �jì�dä�d?d„t �jí�då�d@d„t �jî�dAd„ t jM�jî�dBd„ t �jï�dCd„ t �jð�dDd„ t �j•�dæ�dEd„t �jñ�dç�dFd„t jM�jñ�dè�dGd„t �jò�dédd�dHœ�dId„t �jó�dê�dJd„t �jô�dë�dKd„t �jõ�dì�dLd„t �jö�dí�dMd„t �j÷�dî�dNd„t �jø�dï�dOd„t �jù�dð�dPd„t �jú�dñ�dQd„t �jû�dò�dRd„t �jü�dó�dTd„t �jý�dô�dUd„t �jþ�dõ�dVd„t �jÿ�dö�dWd„t �j �d÷�dXd„t �j�dø�dYd„t �j�dù�d[d„t jM�j�dú�d\d„t jM�j�dû�d]d„t �j�dü�d^d„t �j�d_d„ t �j�d`d„ t �j�j�dad„ t �jj—�dbd„ t �jj˜�dcd„ t �j�j	�ddd„ t �jj™�ded„ t �jj›�dfd„ t �jjœ�dgd„ t �j�j
�dhd„ t �j�j°�dý�did„t �jjƒ�djd„ t �j�j�dkd„ t �j�j�dþ�dld„t �j�j�dÿ�dmd„t �j�j�dnd„ t �jjÍ�dod„ t �j�j�dpd„ t �j�j�dqd„ t �j�j�drd„ t �j�j�dsd„ t �j�j�d �dtd„t �j�j�dud„ t �j�j�d�dvd„t �j�jÜ�dwd„ t �j�jì�dxd„ t �j�j�dyd„ t �j�j�dzd„ t �j�j�d{d„ t �j�j�d�d|d„t �j�j�d�d}d„t �j�j�d�d~d„t �j�dd„ t �j�d€d„ t �j�d�d�d„t �j�d�d‚d„t �j�d�dƒd„t jM�j�d�d„d„t jM�j�d	�d…d„t �j�d
�d†d„t �j�d�d‡d„t �j›�d�dˆd„t �j �d‰d„ t �j!�d�dŠd„t �j"�d‹d„ t �j#�dŒd„ t �j$�d�d�d„t �j%�d�dŽd„t �j&�d�d�d„t �j'�d�d�d„t �jœ�d�d‘d„t �j(�d�d’d„t �j)�d“d„ t �j*�d�d”d„t �j+�d�d•d„t �j,�d�d–d„t �j-�d�d—d„t �j.�d�d˜d„t �j/�d�d™d„t �j0�d�dšd„t �j1�d�d›d„t �j2�d�dœd„t �j3�d�d�d„t �j4�džd„ t �j5�d�dŸd„t �j6�d�d d„t �j7�d �d¡d„| �j8�d¢d„ | �j9�d£d„ | �j:�d¤d„ | �j;�d¥d„ | �j<�d¦d„ | �j=�d§d„ | �j>�d¨d„ | �j?�d©d„ | �j@�dªd„ | �jA�d«d„ | �jB�d¬d„ | �jC�d­d„ | �jD�d®d„ | �jE�d¯d„ | �jF�d°d„ | �jG�d±d„ | �jH�d²d„ | �jI�d³d„ | �jJ�d´d„ | �jK�dµd„ | �jL�d¶d„ | �jM�d·d„ | �jN�d¸d„ | �jO�d¹d„ | �jP�dºd„ | �jQ�d»d„ | �jR�d¼d„ | �jS�d½d„ | �jT�d¾d„ | �jU�d¿d„ | �jV�dÀd„ | �jW�dÁd„ | �jX�dÂd„ | �jY�dÃd„ | �jZ�dÄd„ | �j[�dÅd„ | �j\�dÆd„ | �j]�dÇd„ | �j^�dÈd„ | �j_�j`�dÉd„ | �ja�j`�dÊd„ | �jb�j`�dËd„ | �jc�j`�dÌd„ | �jd�j`�dÍd„ | �je�j`�dÎd„ | �jf�j`�dÏd„ | �jg�j`�dÐd„ | �jh�j`�dÑd„ | �ji�j`�dÒd„ | �jj�j`�dÓd„ | �jk�j`�dÔd„ | �jl�j`�dÕd„ | �jm�j`�dÖd„ | �jn�j`�d×d„ | �jo�j`�dØd„ | �jp�j`�dÙd„ | �jq�j`�dÚd„ | �jr�j`�dÛd„ | �js�j`�dÜd„ | �jt�j`�dÝd„ | �ju�j`�dÞd„ | �jv�j`�dßd„ | �jw�j`�dàd„ | �jx�j`�dád„ | �jy�j`�dâd„ | �jz�j`�dãd„ | �j{�j`�däd„ | �j|�j`�dåd„ | �j}�j`�dæd„ | �j~�j`�dçd„ | �j�j`�dèd„ | �jÍ�j`�déd„ | jæ�j`�dêd„ | �j€�j`�dëd„ | �j��d!�dìd„| �j‚�díd„ | �jƒ�dîd„ | �j„�dïd„ | �j…�dðd„ | �j†�dñd„ | �j‡�dòd„ | �jˆ�dód„ | �j‰�dôd„ | �jŠ�dõd„ | �j‹�död„ | �jŒ�d÷d„ | �j��død„ | �jŽ�dùd„ | �j��dúd„ | �j��dûd„ | �j‘�d"�düd„| �j’t �j“f�dýd„| �j”t �j“f�dþd„| �j•t �j“f�dÿd„| �j–t �j“f�d d„| �j—�d#d�dœ�dd„| �j˜�dd„ | �j‚�dd„ | �j™t �jšf�dd„| �j›�d$�dd„| �jœt �j“f�dd„| �j�t �j“f�dd„| �jžt �j“f�d	d„| �jŸ�d
d„ | �j �dd„ | �j¡�dd„ | �j¢t �j“f�dd„| �j£t �j“f�dd„| �j¤�dd„ | �j¥�dd„ | �j¦�dd„ | �j§�d%d�dœ�dd„| �j¨�dd„ | �j©�dd„ | �jªt �j“f�dd„| �j«t �j“f�dd„| �j¬d�dœ�dd„| �j­�dd„ | �j®t �j“f�dd„| �j¯�dd„ | �j°�dd„ | �j±t �j“f�dd„| �j²�dd„ | �j³�dd„ | jû�dd„ | �j´�d d„ | �jµ�d!d„ | �j¶�d"d„ | �j·�d#d„ | �j¸�d&d�dœ�d$d„| �j�d%d„ | �j¹t �j“f�d&d„| �jº�d'd„ | �j»�d(d„ | �jA�d)d„ | �jL�d*d„ | �j¼�d+d„ | �j½�d,d„ | �j¾�d-d„ | �j¿�d.d„ | �j¨�d/d„ | �jÀ�d0d„ | �jÁ�d'�d1d„| �jÂ�d2d„ | �jÃ�d(d�dœ�d3d„| �jÄ�d4d„ | �jÅ�d5d„ | �jÆ�d6d„ | �jÇ�d7d„ | �jÈ�d8d„ | �jÉ�d)�d9d„| �jÊ�d:d„ | �jË�d;d„ | �jÌ�d<d„ | �jÍ�d=d„ | �jÎ�d>d„ | �jÏ�d*�d?d„| �jÐ�d@d„ | �jÑt �j“f�dAd„| �jÒ�dBd„ | �jÓ�dCd„ | �jÔ�dDd„ | �jÕ�dEd„ | �jÖ�dFd„ | �jø�d+�dGd„| �j×�dHd„ | �jØ�dId„ | �jÙ�dJd„ | �jÚ�dKd„ | �j �dLd„ | �jÛddt �j“f�dMd„| �jÜ�dNd„ | �jÝ�dOd„ | �jÞ�dPd„ | �jß�dQd„ | �jà�dRd„ | �jž�dSd„ | �já�d,�dTd„| �jâ�dUd„ | �jã�dVd„ | �jä�dWd„ | �jå�dXd„ | �jæ�d-�dYd„| �jç�dZd„ t jM�j�d.�d[d„�i(}i }�tèƒ }|� é¡ D ]ú\}}|�jê|�jê�d\ �d]|�jê �d] �d^|�jê �d] �d_|�jê �d] g}|�jê� ë�d`¡�5r’|�jê�tì�d`ƒd… }|� í�d]| �d] �d^| �d] �d_| �d] g¡ |D ]<}�tî| |dƒ}	�tï|	ƒ�5r–|	|v�5r–|	|v�5r–|||	< �5q–�4qÜ|� ð|¡ |S (/  ar  Return a dict containing dummy overrides for all overridable functions

    Returns
    -------
    Dict[Callable, Callable]
        A dictionary that maps overridable functions in the PyTorch API to
        lambda functions that have the same signature as the real function
        and unconditionally return -1. These lambda functions are useful
        for testing API coverage for a type that defines ``__torch_function__``.

    Examples
    --------
    >>> import inspect
    >>> my_add = torch.overrides.get_testing_overrides()[torch.add]
    >>> inspect.signature(my_add)
    <Signature (input, other, out=None)>
    Nc                 S   s   dS ©NéÿÿÿÿrD   ©ÚinputÚoutrD   rD   rE   Ú<lambda>)  ó    z'get_testing_overrides.<locals>.<lambda>c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   *  rP   c                 S   s   dS rJ   rD   ©rM   Úoutput_sizerD   rD   rE   rO   +  rP   c                 S   s   dS rJ   rD   )ÚinputsrR   rD   rD   rE   rO   ,  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   -  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   .  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   /  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   0  rP   c                 S   s   dS rJ   rD   ©rM   ÚotherrN   rD   rD   rE   rO   1  rP   é   c                 S   s   dS rJ   rD   ©rM   Zbatch1Zbatch2ÚalphaÚbetarN   rD   rD   rE   rO   2  rP   c                 S   s   dS rJ   rD   ©rM   Ztensor1Ztensor2ÚvaluerN   rD   rD   rE   rO   3  rP   c                 S   s   dS rJ   rD   rZ   rD   rD   rE   rO   4  rP   c                 S   s   dS rJ   rD   ©rM   Úmat1Úmat2rY   rX   rN   rD   rD   rE   rO   5  rP   c                 S   s   dS rJ   rD   )rM   ÚmatÚvecrY   rX   rN   rD   rD   rE   rO   6  rP   c                 S   s   dS rJ   rD   )rM   Zvec1Úvec2rY   rX   rN   rD   rD   rE   rO   7  rP   c                 S   s   dS rJ   rD   ©ÚthetaÚsizeÚalign_cornersrD   rD   rE   rO   8  rP   c                 S   s   dS rJ   rD   ©rM   ÚdimrD   rD   rE   rO   9  rP   çñhãˆµøä>ç:Œ0âŽyE>Fc                 S   s   dS rJ   rD   )rM   rU   ZtrolÚatolÚ	equal_nanrD   rD   rE   rO   :  rP   c                 S   s   dS rJ   rD   ©rM   ÚpÚtrainÚinplacerD   rD   rE   rO   ;  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   <  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   =  rP   c                 S   s   dS rJ   rD   ©rM   rg   ÚkeepdimrN   rD   rD   rE   rO   >  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ?  rP   c                 S   s   dS rJ   rD   rp   rD   rD   rE   rO   @  rP   c                 S   s   dS rJ   rD   ©rM   rD   rD   rE   rO   A  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   B  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   C  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   D  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   E  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   F  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   G  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   H  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   I  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   J  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   K  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   L  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   M  rP   c                  W   s   dS rJ   rD   ©ÚtensorsrD   rD   rE   rO   N  rP   c                  W   s   dS rJ   rD   rs   rD   rD   rE   rO   O  rP   c                  W   s   dS rJ   rD   rs   rD   rD   rE   rO   P  rP   r   Tc                 S   s   dS rJ   rD   )rM   Úkernel_sizerA   ÚpaddingÚ	ceil_modeÚcount_include_padrD   rD   rE   rO   Q  rP   c                 S   s   dS rJ   rD   rW   rD   rD   rE   rO   R  rP   c	           	      S   s   dS rJ   rD   )	rM   ÚweightÚbiasÚrunning_meanÚrunning_varÚtrainingÚmomentumÚepsÚcudnn_enabledrD   rD   rE   rO   S  rP   c                 S   s   dS rJ   rD   )Úgrad_outrM   ÚmeanÚinvstdry   Zsum_dyZ
sum_dy_xmuZcount_tensorrD   rD   rE   rO   T  rP   c                 S   s   dS rJ   rD   )r�   rM   r‚   rƒ   ry   Zinput_gZweight_gZbias_grD   rD   rE   rO   U  rP   c                 S   s   dS rJ   rD   )rM   ry   rz   r‚   rƒ   r   rD   rD   rE   rO   V  rP   c                 S   s   dS rJ   rD   ©rM   r‚   rƒ   r{   r|   r~   r   ÚcountrD   rD   rE   rO   W  rP   c                 S   s   dS rJ   rD   r„   rD   rD   rE   rO   X  rP   c                 S   s   dS rJ   rD   ©rM   r   rD   rD   rE   rO   Y  rP   c                 S   s   dS rJ   rD   )rM   r{   r|   r~   rD   rD   rE   rO   Z  rP   c                 S   s   dS rJ   rD   )rM   Ú	generatorrN   rD   rD   rE   rO   [  rP   c                 S   s   dS rJ   rD   ©Úinput1Úinput2ry   rz   rD   rD   rE   rO   \  rP   r‚   c                 S   s   dS rJ   rD   ©rM   Útargetry   Úsize_averageÚreduceÚ	reductionZ
pos_weightrD   rD   rE   rO   ]  s    c                 S   s   dS rJ   rD   )rM   ÚweightsZ	minlengthrD   rD   rE   rO   _  rP   c                 S   s   dS rJ   rD   )r…   Zprobr‡   rD   rD   rE   rO   `  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   a  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   b  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   c  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   d  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   e  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   f  rP   c                  W   s   dS rJ   rD   rs   rD   rD   rE   rO   g  rP   c                 S   s   dS rJ   rD   ©rM   r^   rN   rD   rD   rE   rO   h  rP   c                  W   s   dS rJ   rD   rs   rD   rD   rE   rO   i  rP   c                 S   s   dS rJ   rD   ©Úselfrd   rD   rD   rE   rO   j  rP   c                 S   s   dS rJ   rD   )rM   Z
boundariesÚ	out_int32ÚrightrN   rD   rD   rE   rO   k  rP   c                  W   s   dS rJ   rD   rs   rD   rD   rE   rO   l  rP   c                 S   s   dS rJ   rD   ©rt   rg   rN   rD   rD   rE   rO   m  rP   c                 S   s   dS rJ   rD   r–   rD   rD   rE   rO   n  rP   ç       @Ú#use_mm_for_euclid_dist_if_necessaryc                 S   s   dS rJ   rD   )Úx1Úx2rm   Zcompute_moderD   rD   rE   rO   o  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   p  rP   ç      ð?c                 S   s   dS rJ   rD   )rM   Zalhparo   rD   rD   rE   rO   q  rP   )rN   c                 W   s   dS rJ   rD   )rN   ZmatricesrD   rD   rE   rO   r  rP   c                 S   s   dS rJ   rD   )rM   ÚgroupsrD   rD   rE   rO   s  rP   c                 S   s   dS rJ   rD   ©rM   ÚupperrN   rD   rD   rE   rO   t  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   u  rP   c                 S   s   dS rJ   rD   ©rM   Zcheck_errorsrN   rD   rD   rE   rO   v  rP   c                 S   s   dS rJ   rD   r�   rD   rD   rE   rO   w  rP   c                 S   s   dS rJ   rD   )r‰   rŠ   rž   rN   rD   rD   rE   rO   x  rP   c                 S   s   dS rJ   rD   )rM   ÚnumelZn_binsZratioZ	bit_widthrD   rD   rE   rO   y  rP   c                 S   s   dS rJ   rD   ©rM   Úchunksrg   rD   rD   rE   rO   z  rP   c                 S   s   dS rJ   rD   ©rM   ÚminÚmaxrN   rD   rD   rE   rO   {  rP   c                 S   s   dS rJ   rD   r£   rD   rD   rE   rO   |  rP   c                 S   s   dS rJ   rD   )rM   r¤   rN   rD   rD   rE   rO   }  rP   c                 S   s   dS rJ   rD   )rM   r¥   rN   rD   rD   rE   rO   ~  rP   c                 S   s   dS rJ   rD   ©rt   rN   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )rM   Z
correctionZfweightsZaweightsrD   rD   rE   rO   €  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   �  rP   é   c                 S   s   dS rJ   rD   )rM   ÚrZwith_replacementrD   rD   rE   rO   ‚  rP   c                 S   s   dS rJ   rD   )ÚrealÚimagrD   rD   rE   rO   ƒ  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   „  rP   c                 S   s   dS rJ   rD   )ÚabsÚangrD   rD   rE   rO   …  rP   c                 S   s   dS rJ   rD   )rM   ÚordrD   rD   rE   rO   †  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ‡  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ˆ  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ‰  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   Š  rP   c                 S   s   dS rJ   rD   )rM   Úpadr[   rD   rD   rE   rO   ‹  rP   c                 S   s   dS rJ   rD   ©rM   ry   rz   rA   rv   Údilationrœ   rD   rD   rE   rO   Œ  rP   c                 S   s   dS rJ   rD   r¯   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   r¯   rD   rD   rE   rO   Ž  rP   c	           	      S   s   dS rJ   rD   )	rM   ry   rz   rA   rv   r°   Z
transposedZoutput_addingrœ   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   )rM   ry   rz   r®   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   ©rM   ry   rz   rA   rv   Úoutput_paddingrœ   r°   rD   rD   rE   rO   ‘  rP   c                 S   s   dS rJ   rD   r±   rD   rD   rE   rO   ’  rP   c                 S   s   dS rJ   rD   r±   rD   rD   rE   rO   “  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ”  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   •  rP   c                 S   s   dS rJ   rD   ©r‰   rŠ   rŒ   Úmarginr�   rŽ   r�   rD   rD   rE   rO   –  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   —  rP   c                 S   s   dS rJ   rD   )r™   rš   rg   r   rD   rD   rE   rO   ˜  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ™  rP   rK   c                 S   s   dS rJ   rD   )rM   rU   rg   rN   rD   rD   rE   rO   š  rP   c                 S   s   dS rJ   rD   ©Z	log_probsÚtargetsZinput_lengthsZtarget_lengthsZblankr�   Zzero_infinityrD   rD   rE   rO   ›  s    c                 S   s   dS rJ   rD   ©rM   rg   rN   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   r·   rD   rD   rE   rO   ž  rP   c                 S   s   dS rJ   rD   ©rM   rg   rN   r!   rD   rD   rE   rO   Ÿ  rP   c                 S   s   dS rJ   rD   r¸   rD   rD   rE   rO      rP   c                 S   s   dS rJ   rD   ©ÚyÚxrg   rD   rD   rE   rO   ¡  rP   c                 S   s   dS rJ   rD   r·   rD   rD   rE   rO   ¢  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   £  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¤  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¥  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¦  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   §  rP   c                 S   s   dS rJ   rD   ©rM   ÚdiagonalrN   rD   rD   rE   rO   ¨  rP   c                 S   s   dS rJ   rD   r¼   rD   rD   rE   rO   ©  rP   c                 S   s   dS rJ   rD   )rM   ÚoffsetrD   rD   rE   rO   ª  rP   c                 S   s   dS rJ   rD   )rM   Únrg   ÚprependÚappendrN   rD   rD   rE   rO   «  rP   c                 S   s   dS rJ   rD   )rM   r¾   Údim1Zdim2rD   rD   rE   rO   ¬  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ­  rP   c                 S   s   dS rJ   rD   )rM   rU   rm   rD   rD   rE   rO   ®  rP   c                 S   s   dS rJ   rD   ©rM   rU   Zrounding_moderN   rD   rD   rE   rO   ¯  rP   c                 S   s   dS rJ   rD   rÃ   rD   rD   rE   rO   °  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ±  rP   c                 S   s   dS rJ   rD   rl   rD   rD   rE   rO   ²  rP   c                 S   s   dS rJ   rD   ©rM   r^   rD   rD   rE   rO   ³  rP   c                 S   s   dS rJ   rD   )r]   r^   rD   rD   rE   rO   ´  rP   c                 S   s   dS rJ   rD   ©rM   Úindices_or_sectionsrD   rD   rE   rO   µ  rP   c                 S   s   dS rJ   rD   r¦   rD   rD   rE   rO   ¶  rP   c                 S   s   dS rJ   rD   )rM   ÚeigenvectorsrN   rD   rD   rE   rO   ·  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ¸  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ¹  rP   ÚLc                 S   s   dS rJ   rD   ©rM   ZUPLOrN   rD   rD   rE   rO   º  rP   c                 S   s   dS rJ   rD   rÉ   rD   rD   rE   rO   »  rP   c                 W   s   dS rJ   rD   )ZequationZoperandsrD   rD   rE   rO   ¼  rP   c                 S   s   dS rJ   rD   ©rM   ry   Úpadding_idxÚmax_normÚ	norm_typeÚscale_grad_by_freqÚsparserD   rD   rE   rO   ½  s    c
           
      S   s   dS rJ   rD   )
rM   ry   ÚoffsetsrÌ   rÍ   rÎ   ÚmoderÏ   Úper_sample_weightsrË   rD   rD   rE   rO   ¿  s    c                 S   s   dS rJ   rD   ©rM   r!   r$   r    Úrequires_gradrD   rD   rE   rO   Á  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   Â  rP   c                 S   s   dS rJ   rD   ©rM   rU   rD   rD   rE   rO   Ã  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   Ä  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   Å  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   Æ  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   Ç  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   È  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   É  rP   c                 S   s   dS rJ   rD   )rM   ÚscaleÚ
zero_pointÚaxisÚ	quant_minÚ	quant_maxrD   rD   rE   rO   Ê  rP   c                 S   s   dS rJ   rD   )rM   rÖ   r×   rÙ   rÚ   rD   rD   rE   rO   Ë  rP   c                 S   s   dS rJ   rD   )r»   Zobserver_onZfake_quant_onZaveraging_constZrunning_minZrunning_maxrÖ   r×   rÙ   rÚ   Zch_axisZper_row_fake_quantZsymmetric_quantrD   rD   rE   rO   Ì  s    c                 S   s   dS rJ   rD   ©rM   Zpacked_weightrz   rD   rD   rE   rO   Ï  rP   c                 S   s   dS rJ   rD   rÛ   rD   rD   rE   rO   Ð  rP   c                 S   s   dS rJ   rD   ©rM   ry   ÚpackedZcol_offsetsZweight_scaleZweight_zero_pointrz   rD   rD   rE   rO   Ñ  rP   c                 S   s   dS rJ   rD   rÜ   rD   rD   rE   rO   Ò  s    c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   Ô  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   Õ  rP   c                 S   s   dS rJ   rD   )rM   ÚaÚbrD   rD   rE   rO   Ö  rP   c                 S   s   dS rJ   rD   ©rM   rm   rn   rD   rD   rE   rO   ×  rP   c                 S   s   dS rJ   rD   rà   rD   rD   rE   rO   Ø  rP   c                 S   s   dS rJ   rD   ©rM   r¿   rg   ÚnormrD   rD   rE   rO   Ù  rP   c                 S   s   dS rJ   rD   rá   rD   rD   rE   rO   Ú  rP   c                 S   s   dS rJ   rD   rá   rD   rD   rE   rO   Û  rP   c                 S   s   dS rJ   rD   rá   rD   rD   rE   rO   Ü  rP   c                 S   s   dS rJ   rD   rá   rD   rD   rE   rO   Ý  rP   c                 S   s   dS rJ   rD   rá   rD   rD   rE   rO   Þ  rP   c                 S   s   dS rJ   rD   ©rM   Úsrg   râ   rD   rD   rE   rO   ß  rP   c                 S   s   dS rJ   rD   rã   rD   rD   rE   rO   à  rP   c                 S   s   dS rJ   rD   rã   rD   rD   rE   rO   á  rP   c                 S   s   dS rJ   rD   rã   rD   rD   rE   rO   â  rP   ©éþÿÿÿrK   c                 S   s   dS rJ   rD   rã   rD   rD   rE   rO   ã  rP   c                 S   s   dS rJ   rD   rã   rD   rD   rE   rO   ä  rP   c                 S   s   dS rJ   rD   rã   rD   rD   rE   rO   å  rP   c                 S   s   dS rJ   rD   rã   rD   rD   rE   rO   æ  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   ç  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   è  rP   c                 S   s   dS rJ   rD   rá   rD   rD   rE   rO   é  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ê  rP   c                 S   s   dS rJ   rD   )rM   Z	start_dimZend_dimrD   rD   rE   rO   ë  rP   c                 S   s   dS rJ   rD   ©rM   ÚdimsrD   rD   rE   rO   ì  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   í  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   î  rP   c                 S   s   dS rJ   rD   rp   rD   rD   rE   rO   ï  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ð  rP   c                 S   s   dS rJ   rD   rÕ   rD   rD   rE   rO   ñ  rP   c                 S   s   dS rJ   rD   ©rM   ÚexponentrN   rD   rD   rE   rO   ò  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ó  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ô  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   õ  rP   c                 S   s   dS rJ   rD   )rM   Z
fill_valuerN   r!   r$   r    rÔ   rD   rD   rE   rO   ö  rP   c                 S   s   dS rJ   rD   )ÚLU_dataÚ	LU_pivotsZunpack_dataZunpack_pivotsrD   rD   rE   rO   ÷  rP   c                 S   s   dS rJ   rD   )rM   rg   ÚindexrN   Zsparse_gradrD   rD   rE   rO   ø  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ù  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ú  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   û  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ü  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ý  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   þ  rP   c                 S   s   dS rJ   rD   ©rM   ra   rN   rD   rD   rE   rO   ÿ  rP   c                 S   s   dS rJ   rD   rî   rD   rD   rE   rO      rP   c                 S   s   dS rJ   rD   )rM   Úspacingrg   Z
edge_orderrD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ©rM   ÚgridZinterpolation_modeÚpadding_modere   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rð   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rð   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )rM   Ú
num_groupsry   rz   r   r€   rD   rD   rE   rO     rP   c	           	      S   s   dS rJ   rD   )	rM   ÚhxÚparamsÚ
has_biasesÚ
num_layersZgropoutrn   ÚbidirectionalÚbatch_firstrD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ©rM   rô   Úw_ihÚw_hhÚb_ihÚb_hhrD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   	  rP   ç      à?c                 S   s   dS rJ   rD   ©rM   ÚlambdrD   rD   rE   rO   
  rP   c                 S   s   dS rJ   rD   )rM   ÚvaluesrN   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ©rM   rŒ   r´   r�   rŽ   r�   rD   rD   rE   rO     rP   éd   c                 S   s   dS rJ   rD   )rM   Úbinsr¤   r¥   rN   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )rM   r  r¤   r¥   ry   ZdensityrN   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ©rM   ÚtaurD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )r]   r^   rN   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rÅ   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r¦   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ©rM   rg   rí   ÚsourcerD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )rM   Úindicesr  Ú
accumulaterD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )rM   rg   rí   rN   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )rM   rg   rí   r[   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ©r   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )ÚeÚteZassume_uniqueÚinvertrD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO      rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   !  rP   c	           	      S   s   dS rJ   rD   )	rM   r{   r|   ry   rz   Úuse_input_statsr~   r   r€   rD   rD   rE   rO   "  s    c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   $  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   %  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   &  rP   c                 S   s   dS rJ   rD   rŸ   rD   rD   rE   rO   '  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   (  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   )  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   *  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   +  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ,  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   -  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   .  rP   c                 S   s   dS rJ   rD   rÕ   rD   rD   rE   rO   /  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   0  rP   c                 S   s   dS rJ   rD   )rM   rU   Zrtolrj   rk   rD   rD   rE   rO   1  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   2  rP   c
           
      S   s   dS rJ   rD   )
rM   Ún_fftÚ
hop_lengthÚ
win_lengthÚwindowÚcenterÚ
normalizedÚonesidedÚlengthÚreturn_complexrD   rD   rE   rO   3  s    c                 S   s   dS rJ   rD   ©rM   rŒ   r�   rŽ   r�   Z
log_targetrD   rD   rE   rO   5  rP   c                 S   s   dS rJ   rD   rÕ   rD   rD   rE   rO   6  rP   c                 S   s   dS rJ   rD   )rM   Úkrg   rq   rN   rD   rD   rE   rO   7  rP   c                 S   s   dS rJ   rD   )rM   Únormalized_shapery   rz   Zespr€   rD   rD   rE   rO   8  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   9  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   :  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ;  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   <  rP   c                 S   s   dS rJ   rD   )rM   Úendry   rN   rD   rD   rE   rO   =  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   >  rP   c                 S   s   dS rJ   rD   )rM   r  ÚBÚXr¿   ZiKÚniterÚtolZlargestÚmethodÚtrackerZortho_iparamsZortho_fparamsZortho_bparamsrD   rD   rE   rO   ?  s    c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   A  rP   c                 S   s   dS rJ   rD   ©rM   rg   r!   rD   rD   rE   rO   B  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   C  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   D  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   E  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   F  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   G  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   H  rP   c                 S   s   dS rJ   rD   )r»   rº   rN   rD   rD   rE   rO   I  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   J  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   K  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   L  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   M  rP   c                 S   s   dS rJ   rD   ©rM   Únamesrq   rN   rD   rD   rE   rO   N  rP   c                 S   s   dS rJ   rD   r†   rD   rD   rE   rO   O  rP   c                 S   s   dS rJ   rD   r%  rD   rD   rE   rO   P  rP   c	           	      S   s   dS rJ   rD   )	ÚdataÚbatch_sizesrô   rõ   rö   r÷   Údropoutrn   rø   rD   rD   rE   rO   Q  rP   c                 S   s   dS rJ   rD   rú   rD   rD   rE   rO   R  rP   c                 S   s   dS rJ   rD   ©rM   ÚArN   rD   rD   rE   rO   S  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   T  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   U  rP   c                 S   s   dS rJ   rD   )r+  ZpivotZ	get_infosrN   rD   rD   rE   rO   V  rP   c                 S   s   dS rJ   rD   )rß   rë   rì   rN   rD   rD   rE   rO   W  rP   c                 S   s   dS rJ   rD   r³   rD   rD   rE   rO   X  rP   c                 S   s   dS rJ   rD   )rM   Úmaskr[   rD   rD   rE   rO   Y  rP   c                 S   s   dS rJ   rD   )rM   r,  r	  rD   rD   rE   rO   Z  rP   c                 S   s   dS rJ   rD   )rM   r,  rN   rD   rD   rE   rO   [  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   \  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ]  rP   c                 S   s   dS rJ   rD   )rM   r¿   rD   rD   rE   rO   ^  rP   c                 S   s   dS rJ   rD   ©rM   r¿   rN   rD   rD   rE   rO   _  rP   c                 S   s   dS rJ   rD   )rM   r!  Z	symmetricrD   rD   rE   rO   `  rP   c                 S   s   dS rJ   rD   )rM   r!  Ú	hermitianrD   rD   rE   rO   a  rP   c                 S   s   dS rJ   rD   r¦   rD   rD   rE   rO   b  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   c  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   d  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   e  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   f  rP   c                 S   s   dS rJ   rD   ©rM   ru   rA   rv   r°   rw   rD   rD   rE   rO   g  rP   c                 S   s   dS rJ   rD   r/  rD   rD   rE   rO   h  rP   c                 S   s   dS rJ   rD   r/  rD   rD   rE   rO   i  rP   c                 S   s   dS rJ   rD   ©rM   ru   rA   rv   r°   Úreturn_indicesrw   rD   rD   rE   rO   j  s    c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   l  rP   c                 S   s   dS rJ   rD   )rM   rg   rq   r!   rN   rD   rD   rE   rO   m  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   n  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   o  rP   c                  _   s   dS rJ   rD   )rt   ÚkwargsrD   rD   rE   rO   p  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   q  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   r  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   s  rP   c                 S   s   dS rJ   rD   )rM   ry   rz   r{   r|   r}   Zexponential_average_factorÚepsilonrD   rD   rE   rO   t  s    c	           	      S   s   dS rJ   rD   ©	rM   ry   rz   rv   rA   r°   rœ   Ú	benchmarkÚdeterministicrD   rD   rE   rO   v  rP   c
           
      S   s   dS rJ   rD   )
rM   ry   rz   rv   r²   rA   r°   rœ   r5  r6  rD   rD   rE   rO   w  s    c	           	      S   s   dS rJ   rD   r4  rD   rD   rE   rO   y  s    c                 S   s   dS rJ   rD   )rM   ry   Zweight_stride0rô   ZcxrÑ   Zhidden_sizer÷   rù   r)  rn   rø   r(  Zdropout_staterD   rD   rE   rO   {  s    c                 S   s   dS rJ   rD   r‘   rD   rD   rE   rO   }  rP   c                 S   s   dS rJ   rD   rp   rD   rD   rE   rO   ~  rP   c                 S   s   dS rJ   rD   ©rM   r	  ZdestinationrD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r7  rD   rD   rE   rO   €  rP   c                 S   s   dS rJ   rD   )rM   Ú
descendingrN   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ‚  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ƒ  rP   c                 S   s   dS rJ   rD   )rM   Znum_samplesÚreplacementrN   rD   rD   rE   rO   „  rP   c                 S   s   dS rJ   rD   )rM   r`   rN   rD   rD   rE   rO   …  rP   c                 S   s   dS rJ   rD   ©rM   rm   rD   rD   rE   rO   †  rP   c                 S   s   dS rJ   rD   ©rM   rg   Ústartr  rD   rD   rE   rO   ‡  rP   c                 S   s   dS rJ   rD   r;  rD   rD   rE   rO   ˆ  rP   ç        c                 S   s   dS rJ   rD   )rM   ÚnanZposinfZneginfrN   rD   rD   rE   rO   ‰  rP   c                 S   s   dS rJ   rD   )rM   ry   rz   r{   r|   r}   r~   r   rD   rD   rE   rO   Š  rP   c                 S   s   dS rJ   rD   ©rM   r  ry   rz   r   rD   rD   rE   rO   ‹  rP   c                 S   s   dS rJ   rD   )rM   ry   rz   ÚNÚCZHxWÚgroupr   rD   rD   rE   rO   Œ  rP   c                 S   s   dS rJ   rD   r:  rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   r:  rD   rD   rE   rO   Ž  rP   c                 S   s   dS rJ   rD   )rM   rm   rg   rq   r!   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ‘  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ’  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   “  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ”  rP   c                 S   s   dS rJ   rD   rQ   rD   rD   rE   rO   •  rP   c                 S   s   dS rJ   rD   rQ   rD   rD   rE   rO   –  rP   c                 S   s   dS rJ   rD   ©rM   rR   r1  rD   rD   rE   rO   —  rP   c                 S   s   dS rJ   rD   rC  rD   rD   rE   rO   ˜  rP   c                 S   s   dS rJ   rD   rC  rD   rD   rE   rO   ™  rP   c                 S   s   dS rJ   rD   rC  rD   rD   rE   rO   š  rP   c                 S   s   dS rJ   rD   rC  rD   rD   rE   rO   ›  rP   c                 S   s   dS rJ   rD   rC  rD   rD   rE   rO   œ  rP   c                 S   s   dS rJ   rD   rb   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   ©rM   rm   r}   ro   rD   rD   rE   rO   ž  rP   c                 S   s   dS rJ   rD   ©rM   ru   rA   rv   rw   rx   Zdivisor_overriderD   rD   rE   rO   Ÿ  s    c                 S   s   dS rJ   rD   rE  rD   rD   rE   rO   ¡  s    çš™™™™™¹?c                 S   s   dS rJ   rD   )rM   r{   r|   ry   rz   r}   r~   r   rD   rD   rE   rO   £  s    c                 S   s   dS rJ   rD   rˆ   rD   rD   rE   rO   ¥  rP   c                 S   s   dS rJ   rD   ©rM   rŒ   ry   r�   rŽ   r�   rD   rD   rE   rO   ¦  s    c                 S   s   dS rJ   rD   r‹   rD   rD   rE   rO   ¨  s    c                 S   s   dS rJ   rD   ©rM   rX   ro   rD   rD   rE   rO   ª  rP   c                 S   s   dS rJ   rD   r³   rD   rD   rE   rO   «  s    éœÿÿÿc                 S   s   dS rJ   rD   )rM   rŒ   ry   r�   Úignore_indexrŽ   r�   Zlabel_smoothingrD   rD   rE   rO   ­  s    c                 S   s   dS rJ   rD   rµ   rD   rD   rE   rO   ¯  s    c                 S   s   dS rJ   rD   rD  rD   rD   rE   rO   ±  rP   c                 S   s   dS rJ   rD   rD  rD   rD   rE   rO   ²  rP   c                 S   s   dS rJ   rD   rD  rD   rD   rE   rO   ³  rP   c                 S   s   dS rJ   rD   rH  rD   rD   rE   rO   ´  rP   c                 S   s   dS rJ   rD   rÊ   rD   rD   rE   rO   µ  s    c                 S   s   dS rJ   rD   )rM   ry   rÐ   rÌ   rÍ   rÎ   rÑ   rÏ   rÒ   Zinclude_last_offsetrË   rD   rD   rE   rO   ·  s    c                 S   s   dS rJ   rD   rD  rD   rD   rE   rO   º  rP   c                 S   s   dS rJ   rD   )rM   rR   ru   r°   rv   rA   rD   rD   rE   rO   »  rP   c                 S   s   dS rJ   rD   ©rM   ru   rR   Zoutput_ratior1  Z_random_samplesrD   rD   rE   rO   ¼  s    c                 S   s   dS rJ   rD   rK  rD   rD   rE   rO   ¿  s    c                 S   s   dS rJ   rD   rK  rD   rD   rE   rO   Á  s    c                 S   s   dS rJ   rD   rK  rD   rD   rE   rO   Ä  s    ç�íµ ÷Æ°>c                 S   s   dS rJ   rD   )rM   rŒ   Úvarr)   r   r�   rD   rD   rE   rO   Æ  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   Ç  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   È  rP   Úbilinearr-   c                 S   s   dS rJ   rD   )rM   rñ   rÑ   rò   re   rD   rD   rE   rO   É  rP   c                 S   s   dS rJ   rD   )rM   ró   ry   rz   r   rD   rD   rE   rO   Ê  rP   ç»½×Ùß|Û=c                 S   s   dS rJ   rD   )Zlogitsr  Úhardr   rg   rD   rD   rE   rO   Ë  rP   c                 S   s   dS rJ   rD   r   rD   rD   rE   rO   Ì  rP   ç      ð¿c                 S   s   dS rJ   rD   )rM   Zmin_valZmax_valro   rD   rD   rE   rO   Í  rP   c                 S   s   dS rJ   rD   r  rD   rD   rE   rO   Î  s    c                 S   s   dS rJ   rD   )rM   r{   r|   ry   rz   r  r~   r   rD   rD   rE   rO   Ð  s    Únearestc                 S   s   dS rJ   rD   )rM   rd   Zscale_factorrÑ   re   Zrecompute_scale_factorrD   rD   rE   rO   Ò  s    c                 S   s   dS rJ   rD   r  rD   rD   rE   rO   Ô  rP   c                 S   s   dS rJ   rD   ©rM   rŒ   r�   rŽ   r�   rD   rD   rE   rO   Õ  rP   c                 S   s   dS rJ   rD   r?  rD   rD   rE   rO   Ö  rP   ç{®Gáz„?c                 S   s   dS rJ   rD   )rM   Znegative_slopero   rD   rD   rE   rO   ×  rP   c                 S   s   dS rJ   rD   )rM   ry   rz   rD   rD   rE   rO   Ø  rP   ç-Cëâ6?ç      è?c                 S   s   dS rJ   rD   )rM   rd   rX   rY   r  rD   rD   rE   rO   Ù  rP   é   c                 S   s   dS rJ   rD   ©rM   rg   Z_stacklevelr!   rD   rD   rE   rO   Ú  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   Û  rP   c                 S   s   dS rJ   rD   ©rM   rÍ   ru   rA   rw   rD   rD   rE   rO   Ü  rP   c                 S   s   dS rJ   rD   rY  rD   rD   rE   rO   Ý  rP   c                 S   s   dS rJ   rD   r³   rD   rD   rE   rO   Þ  s    c                 S   s   dS rJ   rD   ©rM   ru   rA   rv   r°   rw   r1  rD   rD   rE   rO   à  s    c                 S   s   dS rJ   rD   r0  rD   rD   rE   rO   â  s    c                 S   s   dS rJ   rD   rZ  rD   rD   rE   rO   ä  s    c                 S   s   dS rJ   rD   r0  rD   rD   rE   rO   æ  s    c                 S   s   dS rJ   rD   r0  rD   rD   rE   rO   è  s    c                 S   s   dS rJ   rD   r0  rD   rD   rE   rO   ê  s    c                 S   s   dS rJ   rD   ©rM   r
  ru   rA   rv   rR   rD   rD   rE   rO   ì  rP   c                 S   s   dS rJ   rD   r[  rD   rD   rE   rO   í  rP   c                 S   s   dS rJ   rD   r[  rD   rD   rE   rO   î  rP   c                 S   s   dS rJ   rD   rS  rD   rD   rE   rO   ï  rP   c                 S   s   dS rJ   rD   )ÚqueryÚkeyr[   Zembed_dim_to_checkZ	num_headsZin_proj_weightZin_proj_biasZbias_kZbias_vZadd_zero_attnZ	dropout_pZout_proj_weightZout_proj_biasr}   Zkey_padding_maskZneed_weightsZ	attn_maskZuse_separate_proj_weightZq_proj_weightZk_proj_weightZv_proj_weightZstatic_kZstatic_vrD   rD   rE   rO   ñ  s    c                 S   s   dS rJ   rD   )rM   rŒ   rm   r´   ry   r�   rŽ   r�   rD   rD   rE   rO   õ  s    c                 S   s   dS rJ   rD   rS  rD   rD   rE   rO   ÷  s    c                 S   s   dS rJ   rD   rG  rD   rD   rE   rO   ù  s    c                 S   s   dS rJ   rD   )rM   rŒ   ry   r�   rJ  rŽ   r�   rD   rD   rE   rO   û  s    çê-�™—q=c                 S   s   dS rJ   rD   )rM   rm   rg   r   rN   rD   rD   rE   rO   ý  rP   c                 S   s   dS rJ   rD   )r   Znum_classesrD   rD   rE   rO   þ  rP   Úconstantc                 S   s   dS rJ   rD   )rM   r®   rÑ   r[   rD   rD   rE   rO   ÿ  rP   c                 S   s   dS rJ   rD   ©r™   rš   rm   r   rq   rD   rD   rE   rO      rP   c                 S   s   dS rJ   rD   )rM   rŒ   Ú	log_inputr)   r�   r   rŽ   r�   rD   rD   rE   rO     s    c                 S   s   dS rJ   rD   ©rM   ry   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ©rM   ro   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rc  rD   rD   rE   rO     rP   ç      À?çUUUUUUÕ?c                 S   s   dS rJ   rD   ©rM   Úlowerrž   r}   ro   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rc  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rc  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rc  rD   rD   rE   rO   	  rP   c                 S   s   dS rJ   rD   )rM   rŒ   r�   rŽ   r�   rY   rD   rD   rE   rO   
  rP   c                 S   s   dS rJ   rD   )rM   rŒ   r�   ÚdeltarD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rS  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rX  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rX  rD   rD   rE   rO     rP   é   c                 S   s   dS rJ   rD   )rM   rY   Ú	thresholdrD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ©rM   rj  r[   ro   rD   rD   rE   rO     rP   c
           
      S   s   dS rJ   rD   ©
ÚanchorÚpositiveÚnegativer´   rm   r   Úswapr�   rŽ   r�   rD   rD   rE   rO     s    )Údistance_functionr´   rp  r�   c                S   s   dS rJ   rD   )rm  rn  ro  rq  r´   rp  r�   rD   rD   rE   rO     s    c                 S   s   dS rJ   rD   )rM   ru   r°   rv   rA   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )rM   Úas_tuplerD   rD   rE   rO     rP   Úfroc                 S   s   dS rJ   rD   ©rM   rm   rg   rq   rN   r!   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ©rM   r­   rg   rq   rN   r!   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ru  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   ru  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   )ÚvÚpowrg   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   rt  rD   rD   rE   rO      rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   !  rP   c                 S   s   dS rJ   rD   r  rD   rD   rE   rO   "  rP   c                 S   s   dS rJ   rD   )rM   rŠ   Zinput3ÚleftÚ	transposerD   rD   rE   rO   #  rP   c                 S   s   dS rJ   rD   r`  rD   rD   rE   rO   $  rP   c                 S   s   dS rJ   rD   ©r“   rg   rD   rD   rE   rO   %  rP   c                 S   s   dS rJ   rD   )rM   Úqr  r   rD   rD   rE   rO   &  rP   c                 S   s   dS rJ   rD   r:  rD   rD   rE   rO   '  rP   çVçž¯Ò<c                 S   s   dS rJ   rD   )rM   ÚrcondrD   rD   rE   rO   (  rP   c                 S   s   dS rJ   rD   )rM   r}  r.  rD   rD   rE   rO   )  rP   c                 S   s   dS rJ   rD   )rM   Zupscale_factorrD   rD   rE   rO   *  rP   c                 S   s   dS rJ   rD   )rM   Zdownscale_factorrD   rD   rE   rO   +  rP   c                 S   s   dS rJ   rD   )rM   r‡   rD   rD   rE   rO   ,  rP   c                 S   s   dS rJ   rD   )rM   rŒ   ra  r)   r   r�   rD   rD   rE   rO   -  rP   c                 S   s   dS rJ   rD   r-  rD   rD   rE   rO   .  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   /  rP   c                 S   s   dS rJ   rD   rb  rD   rD   rE   rO   0  rP   c                 S   s   dS rJ   rD   rÓ   rD   rD   rE   rO   1  rP   c                 S   s   dS rJ   rD   ré   rD   rD   rE   rO   2  rP   c                 S   s   dS rJ   rD   )rM   r!   rD   rD   rE   rO   3  rP   c                 S   s   dS rJ   rD   )rM   rí   r	  r  rD   rD   rE   rO   4  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   5  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   6  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   7  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   8  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   9  rP   c                 S   s   dS rJ   rD   )rM   ÚsomerN   rD   rD   rE   rO   :  rP   Úreducedc                 S   s   dS rJ   rD   )rM   rÑ   rN   rD   rD   rE   rO   ;  rP   c                 S   s   dS rJ   rD   ©rM   r{  rg   rq   rN   rD   rD   rE   rO   <  rP   c                 S   s   dS rJ   rD   r€  rD   rD   rE   rO   =  rP   c                 S   s   dS rJ   rD   )rM   ZscalesZzero_pointsrØ   r!   rD   rD   rE   rO   >  rP   c                 S   s   dS rJ   rD   )rM   rÖ   r×   r!   rD   rD   rE   rO   ?  rP   c                 S   s   dS rJ   rD   )rM   ry   rz   r‚   rM  r   Zoutput_scaleZoutput_zero_pointrD   rD   rE   rO   @  rP   c                 S   s   dS rJ   rD   ©rM   rô   rû   rü   rý   rþ   Z	packed_ihZ	packed_hhZcol_offsets_ihZcol_offsets_hhZscale_ihZscale_hhZzero_point_ihZzero_point_hhrD   rD   rE   rO   A  s    c                 S   s   dS rJ   rD   r�  rD   rD   rE   rO   D  s    )r   )rV   c                 S   s   dS rJ   rD   r/  rD   rD   rE   rO   F  s    )r   r   )rV   rV   c                 S   s   dS rJ   rD   r/  rD   rD   rE   rO   H  s    c                 S   s   dS rJ   rD   r�  rD   rD   rE   rO   J  s    c                 S   s   dS rJ   rD   r�  rD   rD   rE   rO   L  s    c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   N  rP   c                 S   s   dS rJ   rD   rÓ   rD   rD   rE   rO   O  rP   c                 S   s   dS rJ   rD   )rM   Úhighr!   r$   r    rÔ   rD   rD   rE   rO   P  rP   c                 S   s   dS rJ   rD   rÓ   rD   rD   rE   rO   Q  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   R  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   S  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   T  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   U  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   V  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   W  rP   c                 S   s   dS rJ   rD   rc  rD   rD   rE   rO   X  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   Y  rP   c                 S   s   dS rJ   rD   )rM   rm   rg   ZmaxnormrN   rD   rD   rE   rO   Z  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   [  rP   c                 S   s   dS rJ   rD   )rM   ÚshaperD   rD   rE   rO   \  rP   c	           	      S   s   dS rJ   rD   ©	rM   rô   rõ   rö   r÷   r)  rn   rø   rù   rD   rD   rE   rO   ]  rP   c                 S   s   dS rJ   rD   rú   rD   rD   rE   rO   ^  rP   c	           	      S   s   dS rJ   rD   r„  rD   rD   rE   rO   _  rP   c                 S   s   dS rJ   rD   rú   rD   rD   rE   rO   `  rP   c                 S   s   dS rJ   rD   )rM   Zshiftsrè   rD   rD   rE   rO   a  rP   ©r   rV   c                 S   s   dS rJ   rD   )rM   r  rè   rD   rD   rE   rO   b  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   c  rP   c                 S   s   dS rJ   rD   r¦   rD   rD   rE   rO   d  rP   c                 S   s   dS rJ   rD   )ry   r,  Zcompressed_indices_dtyperD   rD   rE   rO   e  rP   c                 S   s   dS rJ   rD   rf  rD   rD   rE   rO   f  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   g  rP   c                 S   s   dS rJ   rD   )rM   rU   rX   rD   rD   rE   rO   h  rP   c                 S   s   dS rJ   rD   r\   rD   rD   rE   rO   i  rP   c                 S   s   dS rJ   rD   ©rM   rg   rí   ÚsrcrD   rD   rE   rO   j  rP   c                 S   s   dS rJ   rD   r†  rD   rD   rE   rO   k  rP   c                 S   s   dS rJ   rD   )Zsorted_sequencerM   r”   r•   rN   rD   rD   rE   rO   l  rP   r¥   c                 S   s   dS rJ   rD   )r'  rŽ   Úlengthsr
  rØ   ÚunsaferD   rD   rE   rO   m  rP   c                 S   s   dS rJ   rD   )rM   rg   rí   rD   rD   rE   rO   n  rP   c                 S   s   dS rJ   rD   rc  rD   rD   rE   rO   o  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   p  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   q  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   r  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   s  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   t  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   u  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   v  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   w  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   x  rP   c                 S   s   dS rJ   rD   rÄ   rD   rD   rE   rO   y  rP   c                 S   s   dS rJ   rD   rÄ   rD   rD   rE   rO   z  rP   c                 S   s   dS rJ   rD   r$  rD   rD   rE   rO   {  rP   c                 S   s   dS rJ   rD   r*  rD   rD   rE   rO   |  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   }  rP   )ÚstablerN   c                S   s   dS rJ   rD   )rM   rg   r8  rŠ  rN   rD   rD   rE   rO   ~  rP   c                 S   s   dS rJ   rD   ©r   Zsplit_size_or_sectionsrg   rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r‹  rD   rD   rE   rO   €  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ‚  rP   c                 S   s   dS rJ   rD   r·   rD   rD   rE   rO   ƒ  rP   c                 S   s   dS rJ   rD   r\   rD   rD   rE   rO   „  rP   c                 S   s   dS rJ   rD   r–   rD   rD   rE   rO   …  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   †  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   ‡  rP   Úreflectc
           
      S   s   dS rJ   rD   )
rM   r  r  r  r  r  Zpad_moder  r  r  rD   rD   rE   rO   ˆ  s    c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   Š  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ‹  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   Œ  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   )rM   r~  Z
compute_uvrN   rD   rD   rE   rO   Ž  rP   é   c                 S   s   dS rJ   rD   )rM   r{  r   ÚMrD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   )rM   Zfull_matricesrN   rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ‘  rP   c                 S   s   dS rJ   rD   )rM   rÇ   rž   rN   rD   rD   rE   rO   ’  rP   c                 S   s   dS rJ   rD   ©rM   Zdim0rÂ   rD   rD   rE   rO   “  rP   c                 S   s   dS rJ   rD   )rM   Zaxis0Zaxis1rD   rD   rE   rO   ”  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   •  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   –  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   —  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ˜  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ™  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   š  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ›  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   œ  rP   c                 S   s   dS rJ   rD   r-  rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ž  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   Ÿ  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO      rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ¡  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¢  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   £  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¤  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¥  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¦  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   §  rP   c                 S   s   dS rJ   rD   rp   rD   rD   rE   rO   ¨  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ©  rP   c                 S   s   dS rJ   rD   r$  rD   rD   rE   rO   ª  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   «  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¬  rP   c                 S   s   dS rJ   rD   r:  rD   rD   rE   rO   ­  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ®  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¯  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   °  rP   c                 S   s   dS rJ   rD   rT   rD   rD   rE   rO   ±  rP   c                 S   s   dS rJ   rD   )r“   rU   rN   rD   rD   rE   rO   ²  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ³  rP   c                 S   s   dS rJ   rD   )rM   rí   rD   rD   rE   rO   ´  rP   c                 S   s   dS rJ   rD   )rM   r
  rg   rN   rD   rD   rE   rO   µ  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ¶  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   ·  rP   c                 S   s   dS rJ   rD   )rÞ   ÚindrD   rD   rE   rO   ¸  rP   c                 S   s   dS rJ   rD   )rÞ   rß   rè   rD   rD   rE   rO   ¹  rP   c                 S   s   dS rJ   rD   )rÞ   rß   rè   rN   rD   rD   rE   rO   º  rP   c                 S   s   dS rJ   rD   )rM   rÆ   rg   rD   rD   rE   rO   »  rP   c                 S   s   dS rJ   rD   rk  rD   rD   rE   rO   ¼  rP   c                 S   s   dS rJ   rD   rç   rD   rD   rE   rO   ½  rP   c                 S   s   dS rJ   rD   )rM   r  rg   r8  rN   rD   rD   rE   rO   ¾  rP   c                 S   s   dS rJ   rD   rr   rD   rD   rE   rO   ¿  rP   c                 S   s   dS rJ   rD   r�  rD   rD   rE   rO   À  rP   c                 S   s   dS rJ   rD   r¹   rD   rD   rE   rO   Á  rP   c                 S   s   dS rJ   rD   r¹   rD   rD   rE   rO   Â  rP   c                 S   s   dS rJ   rD   )rM   r+  rž   ry  ZunitriangularrD   rD   rE   rO   Ã  rP   c                 S   s   dS rJ   rD   r¼   rD   rD   rE   rO   Ä  rP   c
           
      S   s   dS rJ   rD   rl  rD   rD   rE   rO   Å  s    c                 S   s   dS rJ   rD   r¼   rD   rD   rE   rO   È  rP   c                 S   s   dS rJ   rD   rÕ   rD   rD   rE   rO   É  rP   c                 S   s   dS rJ   rD   rL   rD   rD   rE   rO   Ê  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   Ë  rP   c                 S   s   dS rJ   rD   )rM   ÚsortedÚreturn_inverseÚreturn_countsrg   rD   rD   rE   rO   Ì  rP   c                 S   s   dS rJ   rD   )rM   r’  r“  rg   rD   rD   rE   rO   Í  rP   c                 S   s   dS rJ   rD   r¡   rD   rD   rE   rO   Î  rP   c                 S   s   dS rJ   rD   r‹  rD   rD   rE   rO   Ï  rP   c                 S   s   dS rJ   rD   r‹  rD   rD   rE   rO   Ð  rP   c                 S   s   dS rJ   rD   r·   rD   rD   rE   rO   Ñ  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   Ò  rP   c                 S   s   dS rJ   rD   rf   rD   rD   rE   rO   Ó  rP   c                 S   s   dS rJ   rD   rÅ   rD   rD   rE   rO   Ô  rP   c                 S   s   dS rJ   rD   r¦   rD   rD   rE   rO   Õ  rP   c                 S   s   dS rJ   rD   )Ú	conditionr»   rº   rD   rD   rE   rO   Ö  rP   c                 S   s   dS rJ   rD   rÓ   rD   rD   rE   rO   ×  rP   c                 S   s   dS rJ   rD   ©r“   rU   rD   rD   rE   rO   Ø  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   Ù  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   Ú  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   Û  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   Ü  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   Ý  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   Þ  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   ß  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   à  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   á  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   â  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   ã  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   ä  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   å  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   æ  rP   c                 S   s   dS rJ   rD   ©r“   rD   rD   rE   rO   ç  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   è  rP   c                 S   s   dS rJ   rD   )r“   r!   rD   rD   rE   rO   é  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ê  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   ë  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ì  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   í  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   î  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   ï  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   ð  rP   c                 S   s   dS rJ   rD   )r“   ÚarrayrD   rD   rE   rO   ñ  rP   c                 S   s   dS rJ   rD   )r“   ÚidxrD   rD   rE   rO   ò  rP   c                 S   s   dS rJ   rD   )r“   ÚmemorD   rD   rE   rO   ó  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ô  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   õ  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ö  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ÷  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ø  rP   c                 S   s   dS rJ   rD   )r“   Úformat_specrD   rD   rE   rO   ù  rP   c                 S   s   dS rJ   rD   )r“   ÚprotorD   rD   rE   rO   ú  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   û  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ü  rP   c                 S   s   dS rJ   rD   )r“   r  rv  rD   rD   rE   rO   ý  rP   c                 S   s   dS rJ   rD   )r“   ÚdrD   rD   rE   rO   þ  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ÿ  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO      rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   	  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   
  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO      rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   !  rP   c                 [   s   dS rJ   rD   )r“   r!   Únon_blockingr2  rD   rD   rE   rO   "  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   #  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   $  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   %  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   &  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   '  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   (  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   )  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   *  rP   c                 S   s   dS rJ   rD   )r“   r&  ro   rD   rD   rE   rO   +  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ,  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   -  rP   c                 S   s   dS rJ   rD   )r“   ÚorderZellipsis_idxrD   rD   rE   rO   .  rP   c                 S   s   dS rJ   rD   )r“   ÚcallablerD   rD   rE   rO   /  rP   c                 S   s   dS rJ   rD   ©r“   rd   rA   rD   rD   rE   rO   0  rP   c                 S   s   dS rJ   rD   r   rD   rD   rE   rO   1  rP   c                 S   s   dS rJ   rD   )r“   ÚgradientZretain_graphZcreate_graphrS   rD   rD   rE   rO   2  rP   c                 S   s   dS rJ   rD   ©r“   r"   rD   rD   rE   rO   3  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   4  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   5  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   6  rP   )r‡   c                S   s   dS rJ   rD   )r“   ÚmedianÚsigmar‡   rD   rD   rE   rO   7  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   8  rP   c                 S   s   dS rJ   rD   )r“   Z	coalescedrD   rD   rE   rO   9  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   :  rP   c                 S   s   dS rJ   rD   )r“   r‡  r�  rD   rD   rE   rO   ;  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   <  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   =  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   >  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ?  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   @  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   A  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   B  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   C  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   D  rP   c                 S   s   dS rJ   rD   r’   rD   rD   rE   rO   E  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   F  rP   c                S   s   dS rJ   rD   )r“   r  r‡   rD   rD   rE   rO   G  rP   c                 S   s   dS rJ   rD   ©r“   r[   rD   rD   rE   rO   H  rP   c                 S   s   dS rJ   rD   r¥  rD   rD   rE   rO   I  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   J  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   K  rP   c                S   s   dS rJ   rD   )r“   rm   r‡   rD   rD   rE   rO   L  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   M  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   N  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   O  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   P  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   Q  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   R  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   S  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   T  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   U  rP   c                 S   s   dS rJ   rD   )r“   r   rD   rD   rE   rO   V  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   W  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   X  rP   c                S   s   dS rJ   rD   )r“   r‚   Ústdr‡   rD   rD   rE   rO   Y  rP   c                 S   s   dS rJ   rD   rz  rD   rD   rE   rO   Z  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   [  rP   c                 S   s   dS rJ   rD   )r“   r   rŸ  rD   rD   rE   rO   \  rP   c                 S   s   dS rJ   rD   )r“   r»   rº   rŸ  rD   rD   rE   rO   ]  rP   c                 S   s   dS rJ   rD   )r“   r^   rD   rD   rE   rO   ^  rP   c                 S   s   dS rJ   rD   )r“   Ú	dimensionr<  r  rD   rD   rE   rO   _  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   `  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   a  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   b  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   c  rP   c                 S   s   dS rJ   rD   rz  rD   rD   rE   rO   d  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   e  rP   c                 S   s   dS rJ   rD   )r“   r
  r   r  rD   rD   rE   rO   f  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   g  rP   c                S   s   dS rJ   rD   )r“   Úfrom_Útor‡   rD   rD   rE   rO   h  rP   c                 S   s   dS rJ   rD   ©r“   ÚstreamrD   rD   rE   rO   i  rP   c                 S   s   dS rJ   rD   )r“   r&  rD   rD   rE   rO   j  rP   c                 S   s   dS rJ   rD   )r“   ÚhookrD   rD   rE   rO   k  rP   c                 S   s   dS rJ   rD   )r“   ÚnamerD   rD   rE   rO   l  rP   c                 W   s   dS rJ   rD   r’   rD   rD   rE   rO   m  rP   c                 S   s   dS rJ   rD   )r“   rÔ   rD   rD   rE   rO   n  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   o  rP   c                 W   s   dS rJ   rD   r’   rD   rD   rE   rO   p  rP   c                 S   s   dS rJ   rD   r’   rD   rD   rE   rO   q  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   r  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   s  rP   c                 S   s   dS rJ   rD   )r“   r	  Ústorage_offsetrd   rA   rD   rD   rE   rO   t  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   u  rP   c                 S   s   dS rJ   rD   r¢  rD   rD   rE   rO   v  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   w  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   x  rP   c                 S   s   dS rJ   rD   )r“   r,  rD   rD   rE   rO   y  rP   c                 S   s   dS rJ   rD   ©r“   Zsize1Zsize2Ú	dense_dimrD   rD   rE   rO   z  rP   c                 S   s   dS rJ   rD   r¯  rD   rD   rE   rO   {  rP   c                 S   s   dS rJ   rD   )r“   r]   r^   rY   rX   rN   rD   rD   rE   rO   |  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   }  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ~  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO     rP   c                 S   s   dS rJ   rD   r’   rD   rD   rE   rO   €  rP   c                 W   s   dS rJ   rD   )r“   ZrepsrD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   )r“   r!   r�  Úcopyr"   rD   rD   rE   rO   ‚  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   ƒ  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   „  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   …  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   †  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   ‡  rP   c                 S   s   dS rJ   rD   )r“   r§  rd   ÚsteprD   rD   rE   rO   ˆ  rP   c                 S   s   dS rJ   rD   )r“   r¨  r©  rD   rD   rE   rO   ‰  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   Š  rP   c                 S   s   dS rJ   rD   )r“   rƒ  rD   rD   rE   rO   ‹  rP   c                 S   s   dS rJ   rD   r•  rD   rD   rE   rO   Œ  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   rª  rD   rD   rE   rO   Ž  rP   c                 S   s   dS rJ   rD   r–  rD   rD   rE   rO   �  rP   c                 S   s   dS rJ   rD   )r“   rß   ÚcondZdriverrD   rD   rE   rO   �  rP   Ú_Ú__Z__iZ__rZbitwise_)N)N)N)N)N)N)N)rV   rV   N)rV   N)rV   N)rV   rV   N)rV   rV   N)rV   rV   N)N)rh   ri   F)F)N)N)NFN)N)NFN)N)N)N)N)N)N)N)N)N)N)Nr   FT)rV   rV   N)NN)NNNr‚   N)Nr   )N)N)N)N)N)N)N)N)FFN)r   N)r   N)r—   r˜   )N)r›   F)FN)N)FN)FN)FN)r   )NNN)NNN)N)N)N)rV   NN)r§   F)N)N)N)N)N)N)r   )NrV   r   rV   rV   )NrV   r   rV   rV   )NrV   r   rV   rV   )r   )NrV   r   r   rV   rV   )NrV   r   r   rV   rV   )NrV   r   r   rV   rV   )N)r   NNr‚   )N)rV   ri   )rK   N)r   r‚   F)N)N)NN)NN)NrK   )N)N)r   N)r   N)r   )rV   rK   NNN)r   r   rV   )N)r§   )NN)NN)N)F)N)FN)N)N)rÈ   N)rÈ   N)NNr—   FF)Nr§   Fr‚   FNN)NNNF)N)N)N)N)N)N)N)FF)NrK   N)NrK   N)NrK   N)NrK   N)NrK   N)NrK   N)NNN)NNN)NNN)NNN)Nrå   N)Nrå   N)Nrå   N)Nrå   N)N)N)NrK   N)N)r   rK   )NFN)N)N)N)N)N)TT)NF)N)N)N)N)N)N)N)N)NNrV   )NNrh   T)NN)N)N)rÿ   )N)r›   NNr‚   )r  r   r   N)r  NNNFN)N)N)N)N)N)N)F)N)FF)N)N)N)N)FN)rh   ri   F)NNNTFNNF)NNr‚   F)NFN)NNrh   T)N)N)N)N)N)N)NNNNNNNNNNNNN)N)N)N)N)N)N)N)N)N)N)N)N)FN)N)FN)NN)N)N)N)TFN)N)r   NNr‚   )N)N)N)N)NF)NF)N)N)N)N)Nr   rV   F)Nr   rV   F)Nr   rV   F)Nr   rV   FF)N)NFNN)N)N)N)N)N)N)rK   FN)FN)N)N)FN)N)r=  NNN)NNrh   )r§   )r§   )r§   NFN)N)N)N)N)N)F)F)F)F)F)F)N)rÿ   FF)Nr   FTN)Nr   FTN)NNFrF  rh   )N)NNNr‚   )NNNr‚   N)r›   F)r   NNr‚   )NNrI  Nr‚   r=  )r   r‚   F)rÿ   TF)rÿ   TF)rÿ   TF)r›   F)NNr—   FF)	NNr§   Fr‚   FNFN)rÿ   FF)rV   r   rV   )NNFN)NNFN)NNFN)NNFN)FrL  r‚   )rK   )rN  r-   N)NNrh   )rV   FrO  rK   )rÿ   )rQ  r›   F)r›   NNr‚   )NNNNTrF  rh   )NNrR  NN)NNr‚   F)NNr‚   )NNrh   )rT  F)N)rU  rV  r›   )NrW  N)NF)NF)r   NNr‚   )Nr   rV   FF)Nr   rV   FF)Nr   rV   FF)Nr   rV   FF)Nr   rV   FF)Nr   rV   FF)Nr   N)Nr   N)Nr   N)NNr‚   )
TNTNFNNNNN)rV   r›   NNNr‚   )NNr‚   )NNNr‚   )NNrI  Nr‚   )r§   rV   r^  N)rK   )r_  r   )r—   rL  F)TFNri   Nr‚   )F)F)rd  re  FF)F)F)F)NNr‚   r›   )r‚   r›   )NNr‚   )NrW  N)NrW  N)rV   ri  )rÿ   )F)r›   r§   rL  FNNr‚   )rV   r   rV   )F)rs  NFNN)NNFNN)r§   NFNN)rs  rå   FNN)r§   r   )rs  NFNN)TF)r—   rL  F)NTr§   )r§   )r|  )r|  F)N)N)N)NNNF)N)N)F)TN)r  N)NFN)NFN)N)NNNF)NNNF)N)N)N)F)N)N)N)NN)NN)N)rV   r…  )N)N)rd  re  FF)N)rV   )rV   rV   N)FFN)r¥   NNr   F)F)N)N)N)N)N)N)N)N)N)N)rK   F)r   )r   )N)N)NN)rV   rV   N)r   N)N)N)NNNTrŒ  FTN)N)N)N)N)TTN)r�  r§   N)TN)N)FTN)N)N)N)FN)N)N)N)N)NN)N)N)r§   )N)r§   N)r   )F)rK   FN)NrK   )NrK   )TFF)r   N)r›   r§   rL  FNNr‚   )r   N)N)r   )TFFN)FFN)r   )r   )r   )N)N)N)N)NN)NNNF)NF)NNFN)r   rV   )F)rV   )rV   r§   )F)r   N)T)Nr   NN)rV   rV   N)r   rV   )N)NN(ñ  r   r   r«   ÚabsoluteZadaptive_avg_pool1dZadaptive_max_pool1dÚacosZarccosÚacoshZarccoshÚaddZaddbmmZaddcdivZaddcmulZaddmmZaddmvÚaddrZaffine_grid_generatorÚallZallcloseZalpha_dropoutZamaxZaminZaminmaxZangleÚanyZargmaxZargminZargsortÚasinZ_assert_asyncZarcsinÚasinhZarcsinhÚatanZarctanÚatan2ÚatanhZarctanhZ
atleast_1dZ
atleast_2dZ
atleast_3dZ
avg_pool1dZbaddbmmZ
batch_normZbatch_norm_backward_elemtZbatch_norm_backward_reduceZbatch_norm_elemtZbatch_norm_gather_statsZ#batch_norm_gather_stats_with_countsZbatch_norm_statsZbatch_norm_update_statsZ	bernoullirN  Z binary_cross_entropy_with_logitsZbincountZbinomialZbitwise_andZbitwise_notZ
bitwise_orZbitwise_xorZbitwise_left_shiftZbitwise_right_shiftZ
block_diagZbmmZbroadcast_tensorsZbroadcast_toZ	bucketizeZcartesian_prodÚcatÚconcatZcdistÚceilZceluZchain_matmulZchannel_shuffleZcholeskyÚlinalgZcholesky_exZcholesky_inverseZcholesky_solveZchoose_qparams_optimizedÚchunkÚclampZclipZ	clamp_minZ	clamp_maxZcolumn_stackZcovÚcloneÚcombinationsÚcomplexÚcopysignZpolarr³  ZconjZconj_physicalZresolve_conjZresolve_negZconstant_pad_ndZconv1dZconv2dZconv3dZconvolutionZconv_tbcZconv_transpose1dZconv_transpose2dZconv_transpose3dZcorrcoefÚcosZcosine_embedding_lossÚcoshZcosine_similarityZcount_nonzeroZcrossZctc_lossZcummaxZcumminZcumprodZcumsumZcumulative_trapezoidZlogcumsumexpZdeg2radZ
dequantizeZdetÚdetachZdiagZ
diag_embedZdiagflatÚdiffr½   ZdigammaÚdistÚdivÚdivideÚdotr)  ZdsmmZhsmmZdsplitZdstackZeigZeigvalsZeighZeigvalshZeinsumZ	embeddingZembedding_bagZ
empty_likeÚeqÚequalÚerfÚerfcZerfinvÚexpZexp2Úexpm1Z fake_quantize_per_channel_affineZfake_quantize_per_tensor_affineZfused_moving_avg_obs_fake_quantZfbgemm_linear_fp16_weightZ)fbgemm_linear_fp16_weight_fp32_activationZfbgemm_linear_int8_weightZ)fbgemm_linear_int8_weight_fp32_activationZfbgemm_linear_quantize_weightZfbgemm_pack_gemm_matrix_fp16Zfbgemm_pack_quantized_matrixZfeature_alpha_dropoutZfeature_dropoutr'   ZifftZrfftZirfftZhfftZihfftZfftnZifftnZrfftnZirfftnZfft2Zifft2Zrfft2Zirfft2ZfftshiftZ	ifftshiftZfixÚflattenZflipZfliplrZflipudZfrobenius_normÚfloorZfloor_divideZfloat_powerÚfmodÚfracÚfrexpZ	full_likeZstridedZ	lu_unpackZgatherÚgcdÚgeZgreater_equalZgeqrfZi0ÚinnerÚouterZgerr¡  Zgrid_samplerZgrid_sampler_2dZgrid_sampler_3dZ
group_normZgruZgru_cellÚgtZgreaterZ
hardshrinkZ	heavisideZhinge_embedding_lossZhistcZ	histogramZhouseholder_productZhspmmZhsplitZhstackÚhypotZigammaZigammacrª   Z	index_addZ
index_copyZ	index_putZindex_selectZ
index_fillÚisfiniteÚisinÚisinfZisrealZisposinfZisneginfZinstance_normZint_reprZinverseÚinvZinv_exZ
is_complexZis_conjZis_negZis_distributedZis_inferenceZis_floating_pointZ
is_nonzeroZis_same_sizeÚ	is_signedÚiscloseÚisnanZistftZkl_divZkronZkthvalueZ
layer_normÚlcmÚldexpÚleZ
less_equalZlerpÚlgammaZlobpcgÚlogZlog_softmaxÚlog10Úlog1pÚlog2Z	logaddexpZ
logaddexp2ZlogdetZxlogyÚlogical_andZlogical_notÚ
logical_orÚlogical_xorZ	logsumexpZlogitZlstmZ	lstm_cellZlstsqÚltZlessZluZlu_solveZmargin_ranking_lossZmasked_fillZmasked_scatterZmasked_selectÚmatmulZmatrix_powerZmatrix_rankZ	multi_dotZ
matrix_expr¥   ÚmaximumZfmaxZ
max_pool1dZ
max_pool2dZ
max_pool3dZmax_pool1d_with_indicesr‚   Znanmeanr£  Z	nanmedianZmeshgridr¤   ZminimumZfminZmiopen_batch_normZmiopen_convolutionZmiopen_convolution_transposeZmiopen_depthwise_convolutionZ
miopen_rnnÚmmrÑ   ZmovedimZmoveaxisZmsortÚmulÚmultiplyZmultinomialÚmvZmvlgammaZnarrowZnarrow_copyZ
nan_to_numZnative_batch_normZnative_layer_normZnative_group_normZnative_normÚneÚ	not_equalÚnegro  Ú	nextafterr.   r/   Zadaptive_avg_pool2dZadaptive_avg_pool3dZ adaptive_max_pool1d_with_indicesZadaptive_max_pool2dZ adaptive_max_pool2d_with_indicesZadaptive_max_pool3dZ adaptive_max_pool3d_with_indicesZaffine_gridZ
avg_pool2dZ
avg_pool3dZbinary_cross_entropyZcross_entropyZ	dropout2dZ	dropout3dZeluÚfoldZfractional_max_pool2dZ"fractional_max_pool2d_with_indicesZfractional_max_pool3dZ"fractional_max_pool3d_with_indicesZgaussian_nll_lossZgeluZgluZgrid_sampleZgumbel_softmaxZhardtanhZinterpolateZl1_lossZ
leaky_reluZlinearZlocal_response_normZ
logsigmoidZ	lp_pool1dZ	lp_pool2dZmax_pool2d_with_indicesZmax_pool3d_with_indicesZmax_unpool1dZmax_unpool2dZmax_unpool3dZmse_lossZmulti_head_attention_forwardZmulti_margin_lossZmultilabel_margin_lossZmultilabel_soft_margin_lossZnll_lossÚ	normalizeZone_hotr®   Zpairwise_distanceZpoisson_nll_lossZpreluZreluZrelu6ZrreluZseluZsiluZmishZsmooth_l1_lossZ
huber_lossZsoft_margin_lossZsoftmaxZsoftminZsoftplusZ
softshrinkZsoftsignZ
tanhshrinkrj  Ztriplet_margin_lossZ!triplet_margin_with_distance_lossZunfoldZnonzerorâ   Zvector_normZmatrix_normZnorm_except_dimZnuclear_normr    ZorgqrZormqrZpermuteZpca_lowrankZpdistZpinverseZpinvZpixel_shuffleZpixel_unshuffleZpoissonZ	polygammarn  Z	ones_likerw  ÚprodÚputZq_per_channel_axisZq_per_channel_scalesZq_per_channel_zero_pointsZq_scaleZq_zero_pointZqrZquantileZnanquantileZquantize_per_channelZquantize_per_tensorZquantized_batch_normZquantized_gru_cellZquantized_lstm_cellZquantized_max_pool1dÚtupleZquantized_max_pool2dZquantized_rnn_relu_cellZquantized_rnn_tanh_cellZrad2degZ	rand_likeZrandint_likeZ
randn_likeZravelr©   ZvdotZview_as_realZview_as_complexZ
reciprocalÚ	remainderZrenormZrepeat_interleaveZreshapeZrnn_reluZrnn_relu_cellZrnn_tanhZrnn_tanh_cellZrollZrot90ÚroundZ	row_stackZ_rowwise_pruneZrsqrtZrsubZsaddmmZscatterZscatter_addZsearchsortedZsegment_reduceÚselectr2   ÚsignZsignbitZsgnÚsinZsincÚsinhZslogdetZsmmZspmmZsolveÚsortÚsplitZsplit_with_sizesÚsqrtZsquareZsqueezeZsspaddmmÚstackr¦  Zstd_meanZstftÚsubÚsubtractÚsumZnansumZsvdZsvd_lowrankZsvdvalsZsymeigZswapaxesZswapdimsÚspecialZentrZerfcxZexpitÚpsiZgammaincZ	gammainccZgammalnZi0eÚi1Zi1eZmultigammalnZndtriZndtrZxlog1pyÚzetaÚtZtakeZtake_along_dimÚtanr3   Z	tensorinvZtensorsolveZ	tensordotZtensor_splitZtileZtopkÚtracery  ZtrapzZ	trapezoidZtriangular_solveZtrilZtriuZtrue_divideÚtruncZunbindÚuniqueZunique_consecutiveZunsafe_chunkZunsafe_splitZunsafe_split_with_sizesZ	unsqueezerM  Zvar_meanZvsplitZvstackÚwhereZ
zeros_likeÚ__floordiv__Ú__rfloordiv__Ú__ifloordiv__Ú__truediv__Ú__rtruediv__Ú__itruediv__Ú
__lshift__Ú__rlshift__Ú__ilshift__Ú
__rshift__Ú__rrshift__Ú__irshift__Ú__and__Ú__or__Ú__xor__Ú	__float__Ú__complex__Z	__array__Ú__bool__Ú__contains__Ú__neg__Ú
__invert__Ú__mod__Ú__rmod__Ú__imod__Z__array_wrap__Ú__getitem__Ú__deepcopy__Ú__int__Z__long__Ú__hash__Ú	__index__Ú__len__Ú
__format__Ú__reduce_ex__Ú__reversed__Ú__repr__Ú__setitem__Ú__setstate__ÚTrB   Z_backward_hooksrF   Z_cdatarG   rH   Z_grad_fnZgrad_fnÚ_versionr'  r    r!   Zis_cudaZis_xpuZis_leafZretains_gradÚis_metaZis_mlcZis_ortZ	is_mkldnnZis_quantizedZ	is_sparseZis_sparse_csrZ	is_vulkanr$   r­  r&  ÚndimZ	output_nrrÔ   rƒ  ZvolatileZ__cuda_array_interface__ÚtypeZ_coalesced_Z_dimIZ_dimVZ_indicesZ_is_viewZ_nnzZcrow_indicesZcol_indicesZ_update_namesZ_valuesZalign_asZalign_toZapply_r%   Zas_strided_ZbackwardZbfloat16Zpreserve_formatÚboolÚbyteÚcharZcauchy_ZcoalesceÚ
contiguousZcontiguous_formatZcopy_ÚcpuZcudaZxpuZdata_ptrr°  rg   ÚdoubleZcdoubleZelement_sizeÚexpandZ	expand_asZexponential_Zfill_Zfill_diagonal_ÚfloatZcfloatZ
geometric_r   ZhalfZ	has_namesr
  ÚintZis_coalescedZis_contiguousÚ	is_pinnedZ	is_set_toZ	is_sharedÚitemZlog_normal_ÚlongZmap_Zmap2_Z
ndimensionZnelementZnormal_ÚnumpyZ
pin_memoryZput_r#   Zrandom_Zrecord_streamZrefine_namesÚregister_hookÚrenameÚrepeatZrequires_grad_Z
reshape_asÚresizeZresize_Z	resize_asZretain_gradÚset_Zshare_memory_Úshortrd   Z
sparse_dimZsparse_maskZsparse_resize_Zsparse_resize_and_clear_Zstorager®  Zstorage_typeZsum_to_sizer©  Zto_denseZ	to_sparseÚtolistZ	to_mkldnnZtype_asZuniform_r  ÚviewZview_asZzero_Z
__dlpack__Z__dlpack_device__r   ÚitemsÚ__name__Ú
startswithÚlenÚextendÚgetattrrŸ  Úupdate)
r   ÚretZret2Zignoredr  rv  r&  Úsubnamer­  ÚfuncrD   rD   rE   r     sT   

















ÿ











ÿ






ÿÿ


þ




















ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
 þ
ÿ
 ÿ
ÿ
 ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
  ý
ÿ
ÿ
ÿ
ÿ
ÿ
ÿ
þÿ
ÿ
ÿ
þ
€ € € € € € ˜      qûý r   ©Ú
dispatcherc                    s   ‡ fdd„}|S )aƒ  Wraps a given function with ``__torch_function__`` -related functionality.

    Parameters
    ----------
    dispatcher: Callable
        A callable that returns an iterable of Tensor-likes passed into the function.

    Note
    ----
    This decorator may reduce the performance of your code. Generally, it's enough to express
    your code as a series of functions that, themselves, support __torch_function__. If you
    find yourself in the rare situation where this is not the case, e.g. if you're wrapping a
    low-level library and you also need it to work for Tensor-likes, then this function is available.

    Examples
    --------
    >>> def dispatcher(a): # Must have the same signature as func
    ...     return (a,)
    >>> @torch.overrides.wrap_torch_function(dispatcher)
    >>> def func(a): # This will make func dispatchable by __torch_function__
    ...     return a + 0
    c                    s   t  ˆ ¡‡‡ fdd„ƒ}|S )Nc                     s<   ˆ | i |¤Ž}t |ƒr.tˆ|g| ¢R i |¤ŽS ˆ| i |¤ŽS )N)r   r   )Úargsr2  Úrelevant_args)rg  re  rD   rE   ÚwrappedÊ  s    z3wrap_torch_function.<locals>.inner.<locals>.wrapped)Ú	functoolsÚwraps)re  rj  rf  ©re  rE   rá  É  s    z"wrap_torch_function.<locals>.innerrD   )rg  rá  rD   rf  rE   r   ²  s    r   )ri  r   c                 C   s˜   t ƒ }g }| D ]„}t|ƒ}||vrt|dƒr|jtjjkr|r†| |¡ t|ƒ}t	|ƒD ]\}}t
|t|ƒƒrX|} qxqX| ||¡ q|h}|g}q|S )a˜  Returns a list of arguments on which to call __torch_function__.

    Checks arguments in relevant_args for __torch_function__ implementations,
    storing references to the arguments and their types in overloaded_args and
    overloaded_types in order of calling precedence. Only distinct types are
    considered. If a type is a subclass of another type it will have higher
    precedence, otherwise the precedence order is the same as the order of
    arguments in relevant_args, that is, from left-to-right in the argument list.

    The precedence-determining algorithm implemented in this function is
    described in `NEP-0018`_.

    See torch::append_overloaded_arg for the equivalent function in the C++
    implementation.

    Parameters
    ----------
    relevant_args : iterable of array-like
        Iterable of array-like arguments to check for __torch_function__
        methods.

    Returns
    -------
    overloaded_args : list
        Arguments from relevant_args on which to call __torch_function__
        methods, in the order in which they should be called.

    .. _NEP-0018:
       https://numpy.org/neps/nep-0018-array-function-protocol.html
    r<   )ÚsetrF  Úhasattrr<   r   Ú_CZ_disabled_torch_function_implr¹  r_  Ú	enumerateÚ
issubclassÚinsert)ri  Zoverloaded_typesÚoverloaded_argsÚargZarg_typerí   ÚiZold_argrD   rD   rE   Ú_get_overloaded_argsÖ  s$     ÿ
rw  )Ú
public_apiri  r   c           
      O   s’   t |ƒ}ttt|ƒƒ}|D ]H}|j}t|dƒrD|j|u rDt dt	¡ || |||ƒ}|t
ur|  S qd | j| j¡}	td |	dd„ |D ƒ¡ƒ‚dS )aw  Implement a function with checks for ``__torch_function__`` overrides.

    See torch::autograd::handle_torch_function for the equivalent of this
    function in the C++ implementation.

    Arguments
    ---------
    public_api : function
        Function exposed by the public torch API originally called like
        ``public_api(*args, **kwargs)`` on which arguments are now being
        checked.
    relevant_args : iterable
        Iterable of arguments to check for __torch_function__ methods.
    args : tuple
        Arbitrary positional arguments originally passed into ``public_api``.
    kwargs : tuple
        Arbitrary keyword arguments originally passed into ``public_api``.

    Returns
    -------
    object
        Result from calling ``implementation`` or an ``__torch_function__``
        method, as appropriate.

    Raises
    ------
    TypeError : if no implementation is found.

    Example
    -------
    >>> def func(a):
    ...     if type(a) is not torch.Tensor:  # This will make func dispatchable by __torch_function__
    ...         return handle_torch_function(func, (a,), a)
    ...     return a + 0
    Ú__self__zŠDefining your `__torch_function__ as a plain method is deprecated and will be an error in PyTorch 1.11, please define it as a classmethod.z{}.{}zOno implementation found for '{}' on types that implement __torch_function__: {}c                 S   s   g | ]}t |ƒ‘qS rD   )rF  )Ú.0ru  rD   rD   rE   Ú
<listcomp>S  rP   z)handle_torch_function.<locals>.<listcomp>N)rw  r  ÚmaprF  r<   ro  ry  ÚwarningsÚwarnÚDeprecationWarningÚNotImplementedÚformatÚ
__module__r]  Ú	TypeError)
rx  ri  rh  r2  rt  ÚtypesZoverloaded_argZtorch_func_methodÚresultÚ	func_namerD   rD   rE   r     s    &þ
þr   a/  Check for __torch_function__ implementations in the elements of an iterable.
    Considers exact ``Tensor`` s and ``Parameter`` s non-dispatchable.
    Arguments
    ---------
    relevant_args : iterable
        Iterable or aguments to check for __torch_function__ methods.
    Returns
    -------
    bool
        True if any of the elements of relevant_args have __torch_function__
        implementations, False otherwise.
    See Also
    ________
    torch.is_tensor_like
        Checks if something is a Tensor-like, including an exact ``Tensor``.
    zÓSpecial case of `has_torch_function` for single inputs.
    Instead of:
      `has_torch_function((t,))`
    call:
      `has_torch_function_unary(t)`
    which skips unnecessary packing and unpacking work.
    a‹  Special case of `has_torch_function` that skips tuple creation.

    This uses the METH_FASTCALL protocol introduced in Python 3.7; for 3.6
    and before it has roughly equivilent performance compared to
    `has_torch_function`.

    Instead of:
      `has_torch_function((a, b))`
    call:
      `has_torch_function_variadic(a, b)`
    which skips unnecessary packing and unpacking work.
    c               	   C   sî  t  t¡} ttjttjjƒ ftjtjjftj	jttj	jƒftj
ttj
ƒftjttjƒftjttjƒftjttjƒfg}|D �]j\}}|D �]Z}|tj
urÒ| d¡r¨qŠqø| d¡r¶qŠqø|d  ¡ sÆqŠqø|dkrøqŠn&t||ƒ}tt|dƒ|krîqŠ|dkrøqŠt||ƒ}|tj
u �r"tt|dƒ|k�r"qŠt|tjƒ�r2qŠt|tjƒ�rBqŠt|ƒ�sžt|dƒ�rž|jtƒ v �rŒd}|jtƒ vsŠJ | ||j¡ƒ‚qŠn| |  |j¡ qŠt|ƒ�sªqŠ|tƒ v �rØd}|tƒ vsŠJ | ||j¡ƒ‚qŠ| |  |¡ qŠq|| S )a  List functions that are overridable via __torch_function__

    Returns
    -------
    Dict[Any, List[Callable]]
        A dictionary that maps namespaces that contain overridable functions
        to functions in that namespace that can be overridden.
    r´  r   Z
unique_dimNÚ__weakref__rB   zk{}.{} is in the tuple returned by torch._overrides.get_ignored_functions but still has an explicit override) ÚcollectionsÚdefaultdictÚlistr   Ú__all__Údirrp  Z_VariableFunctionsr/   r.   r   rÅ  r'   r  r^  ÚendswithÚislowerra  ÚobjectÚ
isinstancer„  Ú
ModuleTypeÚ
__future__Ú_FeaturerŸ  ro  rB   r   r   r�  r]  rÁ   )Úoverridable_funcsZtested_namespacesÚ	namespaceZns_funcsr†  re  ÚmsgrD   rD   rE   r   „  s^    

ù	






r   c                  C   s   t ƒ } t| tj ƒ}|S )z> Returns a set of the overridable methods on ``torch.Tensor`` )r   rn  r   r   )r”  ÚmethodsrD   rD   rE   Ú_get_tensor_methodsÊ  s    r˜  )re  r   c                 C   s   | t ƒ v p| jdkS )aw  
    Returns True if the function passed in is a handler for a
    method or property belonging to ``torch.Tensor``, as passed
    into ``__torch_function__``.

    .. note::
       For properties, their ``__get__`` method must be passed in.

    This may be needed, in particular, for the following reasons:

    1. Methods/properties sometimes don't contain a `__module__` slot.
    2. They require that the first passed-in argument is an instance
       of ``torch.Tensor``.

    Examples
    --------
    >>> is_tensor_method_or_property(torch.Tensor.add)
    True
    >>> is_tensor_method_or_property(torch.add)
    False
    rB   )r˜  r]  rm  rD   rD   rE   r   Ñ  s    r   c                 C   s   t | ƒtju ptt | ƒdƒS )a9  
    Returns ``True`` if the passed-in input is a Tensor-like.

    Currently, this occurs whenever there's a ``__torch_function__``
    attribute on the type of the input.

    Examples
    --------
    A subclass of tensor is generally a Tensor-like.

    >>> class SubTensor(torch.Tensor): ...
    >>> is_tensor_like(SubTensor([0]))
    True

    Built-in or user types aren't usually Tensor-like.

    >>> is_tensor_like(6)
    False
    >>> is_tensor_like(None)
    False
    >>> class NotATensor: ...
    >>> is_tensor_like(NotATensor())
    False

    But, they can be made Tensor-like by implementing __torch_function__.

    >>> class TensorLike:
    ...     @classmethod
    ...     def __torch_function__(cls, func, types, args, kwargs):
    ...         return -1
    >>> is_tensor_like(TensorLike())
    True
    r<   )rF  r   r   ro  )ÚinprD   rD   rE   r   é  s    "r   )$Ú__doc__r’  rˆ  rk  r„  r}  Útypingr   r   r   r   r   r   r   r   Ztorch._Cr	   r
   r   r   r‹  Ú	lru_cacher   rI   r   r   rw  r   r   r0   r1   r   r˜  rG  r   r   rD   rD   rD   rE   Ú<module>   sZ   $ D       +$@
ÿ@þþþE