Ë
    ÄÓ^j7  ã                   óF  — d dl Z d dlZd dlmZ d dlmZ ddlmZmZm	Z	m
Z
mZ ede
j                  dz  fd„«       Z e«       Zer e
j                  e«        ej                   «       5   ej"                  dd	e¬
«        e
j&                  «        ddd«       y# 1 sw Y   yxY w)é    N)Úcache)Úcasté   )Úcutedsl_utilsÚdsl_registryÚopsÚregistryÚtriton_utilsÚreturnc                  óH  — t        j                  d«      } | sy	 ddl}| j                  dd«      \  }}|j	                  |«      }t        ||«      }t        |«      st        | › d�«      ‚t        t        j                  |«      S # t        $ r}t        d| › d�«      |‚d}~ww xY w)	ag  
    Get a user-supplied graph-ordering function if specified.

    Pass in a `package.submodule.fn` string to the env variable
    `TORCH_PYTHON_NATIVE_USER_GRAPH_ORDER_FN` that implements the
    calling API described in `torch/_native/README.md`. This function
    must be part of an importable path.

    Return either the imported function or `None`
    Ú'TORCH_PYTHON_NATIVE_USER_GRAPH_ORDER_FNNr   ú.r   z& does not describe a callable functionzCould not resolve z' into an importable & callable function)ÚosÚgetenvÚ	importlibÚrsplitÚimport_moduleÚgetattrÚcallableÚ	TypeErrorr   r	   ÚUserOrderingFnÚ	ExceptionÚ
ValueError)Úenv_varr   Úmodule_nameÚfn_nameÚmoduleÚfnÚes          úa/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/torch/_native/__init__.pyÚget_user_ordering_fnr!      s°   € ô �i‰iÐAÓB€GáØðÛð  'Ÿ~™~¨c°1Ó5Ñˆ�Wà×(Ñ(¨Ó5ˆÜ�V˜WÓ%ˆä˜Œ|Ü˜w˜iÐ'MÐNÓOÐOô ”H×+Ñ+¨RÓ0Ð0øÜò ÜØ   	Ð)PÐQó
àð	ûðús   šA(B Â	B!ÂBÂB!ÚignorezNWarning only once for all operators,  other operators may also be overridden\.)ÚmessageÚcategory)r   ÚwarningsÚ	functoolsr   Útypingr   Ú r   r   r   r	   r
   r   r!   Úuser_order_fnÚ!reorder_graphs_from_user_functionÚcatch_warningsÚfilterwarningsÚUserWarningÚ_register_all_overrides© ó    r    ú<module>r1      s¬   ðÛ 	Û Ý Ý ÷ GÕ Fð ð!˜h×5Ñ5¸Ñ<ò !ó ð!ñH %Ó&€ÙØ.€H×.Ñ.¨}Ô=ð €X×ÑÓñ 'Ø€H×ÑØØaØõð
 %€H×$Ñ$Ô&÷'÷ 'ñ 'ús   Á''BÂB 