U
    <ºc¡  ã                   @  sd   d dl mZ d dlZd dlmZ d dlmZ G dd„ dƒZG dd„ dƒZej	G d	d
„ d
ej
ƒƒZdS )é    )ÚannotationsN)ÚDict)Ú_Cc                   @  s    e Zd ZdZdZdZdZdZdS )ÚExportTypesz'Specifies how the ONNX model is stored.z+Saves model in the specified protobuf file.z5Saves model in the specified ZIP file (uncompressed).z3Saves model in the specified ZIP file (compressed).z$Saves model in the specified folder.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZPROTOBUF_FILEZZIP_ARCHIVEZCOMPRESSED_ZIP_ARCHIVEZ	DIRECTORY© r
   r
   ú?/tmp/pip-unpacked-wheel-gikjz4vx/torch/onnx/_exporter_states.pyr   	   s
   r   c                   @  s$   e Zd ZdZdddddœdd„Zd	S )
ÚSymbolicContexta¡  Extra context for symbolic functions.

    Args:
        params_dict (Dict[str, _C.IValue]): Mapping from graph initializer name to IValue.
        env (Dict[_C.Value, _C.Value]): Mapping from Torch domain graph Value to ONNX domain graph Value.
        cur_node (_C.Node): Current node being converted to ONNX domain.
        onnx_block (_C.Block): Current ONNX block that converted nodes are being appended to.
    zDict[str, _C.IValue]Údictz_C.Nodez_C.Block©Úparams_dictÚenvÚcur_nodeÚ
onnx_blockc                 C  s   || _ || _|| _|| _d S )Nr   )Úselfr   r   r   r   r
   r
   r   Ú__init__   s    zSymbolicContext.__init__N)r   r   r   r	   r   r
   r
   r
   r   r      s   	r   c                   @  s(   e Zd ZdZe ¡ Ze ¡ Ze ¡ ZdS )ÚRuntimeTypeCheckStatezRuntime type check state.N)	r   r   r   r	   ÚenumÚautoZDISABLEDZWARNINGSZERRORSr
   r
   r
   r   r   +   s   r   )Ú
__future__r   r   Útypingr   Ztorchr   r   r   ÚuniqueÚEnumr   r
   r
   r
   r   Ú<module>   s   	