
    ?i~                         d dl mZ d dlmZmZ d dlZ G d d          Zdej        j        deej        j	        ej        j
        f         defd	ZdS )
    )TracebackType)OptionalUnionNc                       e Zd Zdej        j        deej        j        ej        j        f         ddfdZ	ddZ
deee                  dee         d	ee         ddfd
ZdS )_InsertPointinsert_point_graphinsert_pointreturnNc                 0    || _         || _        d | _        d S N)r	   gguard)selfr   r	   s      F/var/www/icac/venv/lib/python3.11/site-packages/torch/jit/_ir_utils.py__init__z_InsertPoint.__init__   s    
 )#


    c                     | j                                         | _        | j                             | j                   d S r   )r   insertPointprev_insert_pointsetInsertPointr	   )r   s    r   	__enter__z_InsertPoint.__enter__   s7    !%!3!3!5!5d/00000r   exc_typeexc_valexc_tbc                 D    | j                             | j                   d S r   )r   r   r   )r   r   r   r   s       r   __exit__z_InsertPoint.__exit__   s#     	d455555r   )r
   N)__name__
__module____qualname__torch_CGraphr   NodeBlockr   r   r   typeBaseExceptionr   r    r   r   r   r      s        !HN EHM58>9: 
	   1 1 1 164./6 -(6 '	6
 
6 6 6 6 6 6r   r   r   r	   r
   c                 "    t          | |          S r   )r   )r   r	   s     r   insert_point_guardr)      s     l+++r   )typesr   typingr   r   r    r   r!   r"   r#   r$   r)   r'   r   r   <module>r,      s          " " " " " " " " 6 6 6 6 6 6 6 6.,
(.,(-ehmUX^.K(L,, , , , , ,r   