
    JTh                     H    S r SSKJs  Jr  SSKJr   " S S5      r\" 5       rg)zGlobals 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                   >   \ rS rSrSrSS jr\S 5       r\R                  S\	R                  4S j5       r\S\4S	 j5       r\R                  S
\4S j5       r\S\4S j5       r\R                  S
\4S j5       r\S\4S j5       r\R                  S
\4S j5       rSrg)_InternalGlobals   zGlobals 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                     [         R                  U l        [        R                  R
                  U l        SU l        SU l        [        R                  R                  U l        SU l        SU l        g )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    K/var/www/auris/envauris/lib/python3.13/site-packages/torch/onnx/_globals.py__init___InternalGlobals.__init__   s]    *4*G*G'4;4H4H4M4M%*%*'',, 	! +/!(,    c                     U R                   $ )z#The training mode for the exporter.)r   r   s    r   training_mode_InternalGlobals.training_mode$   s     """r   r   c                 d    [        U[        R                  5      (       d  [        S5      eXl        g )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   r   )   s/    -)=)=>>.  ,r   c                     U R                   $ )z!Opset version used during export.)r
   r   s    r   export_onnx_opset_version*_InternalGlobals.export_onnx_opset_version2   s     ...r   valuec                     [        [        R                  [        R                  S-   5      nX;  a  [	        SU 35      eXl        g )N   z Unsupported ONNX opset version: )ranger   ONNX_MIN_OPSETONNX_MAX_OPSET
ValueErrorr
   )r   r%   supported_versionss      r   r#   r$   7   sD    "%%z'@'@1'D
 *?wGHH*/'r   c                     U R                   $ )z+Whether it is in the middle of ONNX export.)r   r   s    r   in_onnx_export_InternalGlobals.in_onnx_export@   s     ###r   c                 J    [        U5      [        La  [        S5      eXl        g )Nz in_onnx_export must be a boolean)typeboolr!   r   r   r%   s     r   r.   r/   E   s     ;d">??$r   c                     U R                   $ )z!Whether Autograd must be inlined.)r   r   s    r   autograd_inlining"_InternalGlobals.autograd_inliningK   s     &&&r   c                 J    [        U5      [        La  [        S5      eXl        g )Nz#autograd_inlining must be a boolean)r1   r2   r!   r   r3   s     r   r5   r6   P   s     ;d"ABB"'r   )r   r
   r   r   r   r   r   )r   N)__name__
__module____qualname____firstlineno____doc__r   propertyr   setterr   r   intr#   r2   r.   r5   __static_attributes__ r   r   r   r      s    
- # # ,7+?+? , , /3 / / %%0s 0 &0 $ $ $ %D % %
 '4 ' ' (t ( (r   r   )	r<   torch._C._onnx_C_onnxr   
torch.onnxr   r   GLOBALSrA   r   r   <module>rG      s.    !   "C( C(L 
r   