jax.dlpack module¶
-
jax.dlpack.
from_dlpack
(dlpack, backend=None)[source]¶ Returns a DeviceArray representation of a DLPack tensor dlpack.
The returned DeviceArray shares memory with dlpack.
Parameters: - dlpack – a DLPack tensor, on either CPU or GPU.
- backend – experimental, optional: the platform on which dlpack lives.