a
    ÞñhÌ  ã                   @   s8   d dl mZ d dl mZ ddlmZ G dd„ deƒZdS )é   )Ú _TensorPipeRpcBackendOptionsBase)Ú	constantsé    )ÚListc                       sB   e Zd ZdZejejejdddœee	e
eedœ‡ fdd„Z‡  ZS )ÚTensorPipeRpcBackendOptionsa%  
    The backend options for
    :class:`~torch.distributed.rpc.TensorPipeAgent`, derived from
    :class:`~torch.distributed.rpc.RpcBackendOptions`.

    Arguments:
        num_worker_threads (int, optional): The number of threads in the
            thread-pool used by
            :class:`~torch.distributed.rpc.TensorPipeAgent` to execute
            requests (default: 16).
        rpc_timeout (float, optional): The default timeout, in seconds,
            for RPC requests (default: 60 seconds). If the RPC has not
            completed in this timeframe, an exception indicating so will
            be raised. Callers can override this timeout for individual
            RPCs in :meth:`~torch.distributed.rpc.rpc_sync` and
            :meth:`~torch.distributed.rpc.rpc_async` if necessary.
        init_method (str, optional): The URL to initialize the distributed
            store used for rendezvous. It takes any value accepted for the
            same argument of :meth:`~torch.distributed.init_process_group`
            (default: ``env://``).
    N)Únum_worker_threadsÚrpc_timeoutÚinit_methodÚ_transportsÚ	_channelsc                   s   t ƒ  |||||¡ d S )N)ÚsuperÚ__init__)Úselfr   r   r	   r
   r   ©Ú	__class__© ú]/home/yuhw/wc/uboone-dl-vtx/venv/lib/python3.9/site-packages/torch/distributed/rpc/options.pyr      s    	ûz$TensorPipeRpcBackendOptions.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úrpc_contantsZDEFAULT_NUM_WORKER_THREADSZDEFAULT_RPC_TIMEOUT_SECZDEFAULT_INIT_METHODÚintÚfloatÚstrr   r   Ú__classcell__r   r   r   r   r      s   ùùr   N)Ú r   r   r   Útypingr   r   r   r   r   r   Ú<module>   s   