o
    i                     @   s,   d dl Zd dlZdd Zdd Zdd ZdS )    Nc                 C      t jj| S )zReturn tensor ids and eager tensors for DeviceData nodes in the
    IR for the passed in lazy tensors.

    TODO: This API is currently ts backend specific. We are working on
    generalizing it to all backends including XLA.
    )torch_C_lazy_ts_backend _get_tensors_ts_device_data_nodetensors r	   Y/sda-disk/www/egybert/egybert_env/lib/python3.10/site-packages/torch/_lazy/computation.pyget_tensors_ts_device_data_node   s   r   c                 C   r   )z4Return the graph hash for the passed in lazy tensors)r   r   _lazy_get_graph_hashr   r	   r	   r
   get_graph_hash   s   r   c                 C   s   t jj| |S )zRunning the cached computation graph with the given inputs

    TODO: This API is currently ts backend specific. We are working on
    generalizing it to all backends including XLA.
    )r   r   r   _run_cached_graph)hash_strgraph_inputsr	   r	   r
   run_cached_graph   s   r   )torch._C._lazyr   torch._C._lazy_ts_backendr   r   r   r	   r	   r	   r
   <module>   s
   
