a
    ßñh‚  ã                   @   s@   d dl Z d dlmZ d dlmZ e j ed¡ e j ed¡ dS )é    N)Ú_from_dlpack)Ú
_to_dlpackzófrom_dlpack(dlpack) -> Tensor

Decodes a DLPack to a tensor.

Args:
    dlpack: a PyCapsule object with the dltensor

The tensor will share the memory with the object represented
in the dlpack.
Note that each dlpack can only be consumed once.
zÍto_dlpack(tensor) -> PyCapsule

Returns a DLPack representing the tensor.

Args:
    tensor: a tensor to be exported

The dlpack shares the tensors memory.
Note that each dlpack can only be consumed once.
)ZtorchZtorch._Cr   Zfrom_dlpackr   Z	to_dlpackZ_CZ_add_docstr© r   r   úR/home/yuhw/wc/uboone-dl-vtx/venv/lib/python3.9/site-packages/torch/utils/dlpack.pyÚ<module>   s   