a
    “º”hv  ã                   @   s\   d dl mZ d dlmZmZ d dlZG dd„ dƒZejjeejj	ejj
f edœdd„ZdS )	é    )ÚTracebackType)ÚOptionalÚUnionNc                   @   sb   e Zd Zejjeejjejjf dœdd„Z	ddœdd„Z
eee  ee ee ddœd	d
„ZdS )Ú_InsertPoint)Úinsert_point_graphÚinsert_pointc                 C   s   || _ || _d | _d S ©N)r   ÚgZguard)Úselfr   r   © r   úA/var/www/auris/lib/python3.9/site-packages/torch/jit/_ir_utils.pyÚ__init__   s    z_InsertPoint.__init__N)Úreturnc                 C   s   | j  ¡ | _| j  | j¡ d S r   )r	   ZinsertPointÚprev_insert_pointÚsetInsertPointr   )r
   r   r   r   Ú	__enter__   s    z_InsertPoint.__enter__)Úexc_typeÚexc_valÚexc_tbr   c                 C   s   | j  | j¡ d S r   )r	   r   r   )r
   r   r   r   r   r   r   Ú__exit__   s    z_InsertPoint.__exit__)Ú__name__Ú
__module__Ú__qualname__ÚtorchÚ_CÚGraphr   ÚNodeÚBlockr   r   r   ÚtypeÚBaseExceptionr   r   r   r   r   r   r      s   ý	
ûr   )r
   r   r   c                 C   s
   t | |ƒS r   )r   )r
   r   r   r   r   Úinsert_point_guard   s    r    )Útypesr   Útypingr   r   r   r   r   r   r   r   r    r   r   r   r   Ú<module>   s   þ