U
    MhU                     @  sD   d dl mZ d dlmZ d dlmZ G dd dZG dd dZdS )	    )annotations)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
   M/var/www/html/venv/lib/python3.8/site-packages/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   N)
__future__r   typingr   Ztorchr   r   r   r
   r
   r
   r   <module>   s   	