ó
    !Eñi–  ã                  ó¢   • S r SSKJr  / SQrSSKrSSKJr  \(       a  SSKJr   " S S\	5      r
 " S	 S
\5      r " S S\5      r " S S\5      rg)zONNX exporter exceptions.é    )Úannotations)ÚOnnxExporterWarningÚSymbolicValueErrorÚUnsupportedOperatorErrorN)ÚTYPE_CHECKING)Ú_Cc                  ó   • \ rS rSrSrSrg)r   é   zWarnings in the ONNX exporter.© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    ÚN/home/mande/repo/quber/.venv/lib/python3.13/site-packages/torch/onnx/errors.pyr   r      s   † Ü(r   r   c                  ó   • \ rS rSrSrSrg)ÚOnnxExporterErroré   zSErrors raised by the ONNX exporter. This is the base class for all exporter errors.r   Nr   r   r   r   r   r      s   † Ü]r   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   é   z7Raised when an operator is unsupported by the exporter.c                ó�   >• Ub  SU SU SU S3nO&UR                  S5      (       a
  SU SU S3nOSU S3n[        TU ]	  U5        g )	NzExporting the operator 'z' to ONNX opset version zB is not supported. Support for this operator was added in version z!, try exporting with this version)zaten::zprim::zquantized::z is not supportedz>ONNX export failed on an operator with unrecognized namespace zo. If you are trying to export a custom operator, make sure you registered it with the right domain and version.)Ú
startswithÚsuperÚ__init__)ÚselfÚnameÚversionÚsupported_versionÚmsgÚ	__class__s        €r   r   Ú!UnsupportedOperatorError.__init__!   s�   ø€ ØÑ(à*¨4¨&Ð0HÈÈ	ð RTà$Ð%Ð%FðHñ ð
 �_‰_Ð@×AÑAà*¨4¨&Ð0HÈÈ	ð R#ð #ñ ð QÐQUÐPVð W0ð 0ð ô 	‰Ñ˜Õr   r   )r   Ústrr    Úintr!   z
int | NoneÚreturnÚNone©r   r   r   r   r   r   r   Ú__classcell__©r#   s   @r   r   r      s   ø† ÙA÷õ r   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   é7   z+Errors around TorchScript values and nodes.c                ó‚  >• U SU SUR                  5        SUR                  5       R                  5        S3nUR                  5       R                  5       nU(       a	  USU S3-  n US-  nU[        R
                  " SS	R                  S
 [        UR                  5       R                  5       5       5       5      =(       d    S-   S	-   S-   S	R                  S [        UR                  5       R                  5       5       5       5      =(       d    S-   S5      -  n[        TU ]1  U5        g ! [         a    US-  n N!f = f)Nz  [Caused by the value 'z	' (type 'z;') in the TorchScript graph. The containing node has kind 'z'.] z
    (node defined in Ú)z

zInputs:
Ú
c              3  óZ   #   • U  H!  u  pS U SU SUR                  5        S3v •  M#     g7f©z    #z: z	  (type 'z')N©Útype)Ú.0ÚiÚinput_s      r   Ú	<genexpr>Ú.SymbolicValueError.__init__.<locals>.<genexpr>M   s4   é € ð "â-M¡	 ð $ A 3 b¨¨°	¸&¿+¹+»-¸ÈÕKÚ-Mùó   ‚)+z	    Emptyz	Outputs:
c              3  óZ   #   • U  H!  u  pS U SU SUR                  5        S3v •  M#     g7fr2   r3   )r5   r6   Úoutputs      r   r8   r9   V   s4   é € ð "â-N¡	 ð $ A 3 b¨¨°	¸&¿+¹+»-¸ÈÕKÚ-Nùr:   z    zv Failed to obtain its input and output for debugging. Please refer to the TorchScript graph for debugging information.)r4   ÚnodeÚkindÚsourceRangeÚtextwrapÚindentÚjoinÚ	enumerateÚinputsÚoutputsÚAttributeErrorr   r   )r   r"   ÚvalueÚmessageÚcode_locationr#   s        €r   r   ÚSymbolicValueError.__init__<   s\  ø€ àˆeÐ+¨E¨7°)¸E¿J¹J»L¸>ð J@Ø@EÇ
Á
Ã×@QÑ@QÓ@SÐ?TÐTXðZð 	ð
 Ÿ
™
›×0Ñ0Ó2ˆÞØÐ0°°¸qÐAÑAˆGð	à�vÑˆGØ”x—’ààŸ	™	ñ "ä-6°u·z±z³|×7JÑ7JÓ7LÔ-Mó"ó ÷ 'ð 'ñð ñð #ñ	#ð Ÿ	™	ñ "ä-6°u·z±z³|×7KÑ7KÓ7MÔ-Nó"ó ÷ 'ð 'ñð$ ó)ñ ˆGô8 	‰Ñ˜Õ!øô ó 	ØðSñŠGð	ús   Á)B3D, Ä,D>Ä=D>r   )r"   r%   rG   z_C.Valuer'   r(   r)   r+   s   @r   r   r   7   s   ø† Ù5÷)"õ )"r   r   )r   Ú
__future__r   Ú__all__r@   Útypingr   Útorchr   ÚUserWarningr   ÚRuntimeErrorr   r   r   r   r   r   Ú<module>rQ      sV   ðÙ å "ò€ó Ý  ö Ýô)˜+ô )ô^˜ô ^ôÐ0ô ô6."Ð*õ ."r   