o
    iT                     @   sf   d dl Z d dlmZ d dlmZ d dlmZ eed dd Zdd	 Zd
d Z	eed ee	d dS )    N)_Await)_register_builtin)
set_modulez	torch.jitc                 O   s   t jj| g|R i |S )zpCreate Await object that will call specified functioni with specified args, when it is requested for the result.)torch_C
_awaitable)funcargskwargs r   M/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/torch/jit/_await.pyr      s   r   c                 C      t j| S )zjRequest await the result of execution, if Await is not completed yet, the func will be called immediately.)r   r   _awaitable_wait)awr   r   r   r         r   c                 C   r   )z-Create completed Await with specified result.)r   r   _awaitable_nowait)or   r   r   r      r   r   zprim::awaitable_waitzprim::awaitable_nowait)
r   torch._jit_internalr   torch.jit._builtinsr   torch.utilsr   r   r   r   r   r   r   r   <module>   s   

