Ë
    [^(h¼  ã                   óH   — d Z ddlmc mZ ddlmZ  G d„ d«      Z e«       Zy)zïGlobals used internally by the ONNX exporter.

Do not use this module outside of `torch.onnx` and its tests.

Be very judicious when adding any new global variables. Do not create new global
variables unless they are absolutely necessary.
é    N)Ú
_constantsc                   ó&  — e Zd ZdZdd„Zed„ «       Zej                  dej                  fd„«       Zede
fd„«       Zej                  d	e
fd
„«       Zedefd„«       Zej                  d	efd„«       Zedefd„«       Zej                  d	efd„«       Zy)Ú_InternalGlobalsz·Globals used internally by ONNX exporter.

    NOTE: Be very judicious when adding any new variables. Do not create new
    global variables unless they are absolutely necessary.
    ÚreturnNc                 óâ   — t         j                  | _        t        j                  j
                  | _        d| _        d| _        t        j                  j                  | _        d| _        d| _        y )NFT)r   ÚONNX_DEFAULT_OPSETÚ_export_onnx_opset_versionÚ_C_onnxÚTrainingModeÚEVALÚ_training_modeÚ_in_onnx_exportÚexport_trainingÚOperatorExportTypesÚONNXÚoperator_export_typeÚonnx_shape_inferenceÚ_autograd_inlining©Úselfs    úQ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/torch/onnx/_globals.pyÚ__init__z_InternalGlobals.__init__   s]   € Ü*4×*GÑ*GˆÔ'Ü4;×4HÑ4H×4MÑ4MˆÔØ%*ˆÔà%*ˆÔä×'Ñ'×,Ñ,ð 	Ô!ð +/ˆÔ!Ø(,ˆÕó    c                 ó   — | j                   S )z#The training mode for the exporter.)r   r   s    r   Útraining_modez_InternalGlobals.training_mode$   s   € ð ×"Ñ"Ð"r   r   c                 ó\   — t        |t        j                  «      st        d«      ‚|| _        y )Nz\training_mode must be of type 'torch.onnx.TrainingMode'. This is likely a bug in torch.onnx.)Ú
isinstancer
   r   Ú	TypeErrorr   )r   r   s     r   r   z_InternalGlobals.training_mode)   s.   € ä˜-¬×)=Ñ)=Ô>Üð.óð ð ,ˆÕr   c                 ó   — | j                   S )z!Opset version used during export.)r	   r   s    r   Úexport_onnx_opset_versionz*_InternalGlobals.export_onnx_opset_version2   s   € ð ×.Ñ.Ð.r   Úvaluec                 óŒ   — t        t        j                  t        j                  dz   «      }||vrt	        d|› �«      ‚|| _        y )Né   z Unsupported ONNX opset version: )Úranger   ÚONNX_MIN_OPSETÚONNX_MAX_OPSETÚ
ValueErrorr	   )r   r!   Úsupported_versionss      r   r    z*_InternalGlobals.export_onnx_opset_version7   sI   € ä"Ü×%Ñ%¤z×'@Ñ'@À1Ñ'Dó
Ðð Ð*Ñ*ÜÐ?À¸wÐGÓHÐHØ*/ˆÕ'r   c                 ó   — | j                   S )z+Whether it is in the middle of ONNX export.)r   r   s    r   Úin_onnx_exportz_InternalGlobals.in_onnx_export@   s   € ð ×#Ñ#Ð#r   c                 óJ   — t        |«      t        urt        d«      ‚|| _        y )Nz in_onnx_export must be a boolean)ÚtypeÚboolr   r   ©r   r!   s     r   r*   z_InternalGlobals.in_onnx_exportE   s"   € ä�‹;œdÑ"ÜÐ>Ó?Ð?Ø$ˆÕr   c                 ó   — | j                   S )z!Whether Autograd must be inlined.)r   r   s    r   Úautograd_inliningz"_InternalGlobals.autograd_inliningK   s   € ð ×&Ñ&Ð&r   c                 óJ   — t        |«      t        urt        d«      ‚|| _        y )Nz#autograd_inlining must be a boolean)r,   r-   r   r   r.   s     r   r0   z"_InternalGlobals.autograd_inliningP   s"   € ä�‹;œdÑ"ÜÐAÓBÐBØ"'ˆÕr   )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr
   r   Úintr    r-   r*   r0   © r   r   r   r      sû   „ ñó
-ð ñ#ó ð#ð ×Ñð,¨7×+?Ñ+?ò ,ó ð,ð ð/¨3ò /ó ð/ð ×%Ñ%ð0¨sò 0ó &ð0ð ð$ ò $ó ð$ð ×Ñð% Dò %ó ð%ð
 ð' 4ò 'ó ð'ð ×Ñð( tò (ó ñ(r   r   )	r5   Útorch._C._onnxÚ_CÚ_onnxr
   Ú
torch.onnxr   r   ÚGLOBALSr9   r   r   ú<module>r?      s.   ðñ÷ !Ð  õ "÷C(ñ C(ñL Ó
�r   