- xorbits.numpy.from_dlpack(x, /)#
x (object) – A Python object that implements the
- Return type
Python specification for DLPack, https://dmlc.github.io/dlpack/latest/python_spec.html
>>> import torch >>> x = torch.arange(10) >>> # create a view of the torch tensor "x" in NumPy >>> y = np.from_dlpack(x)
This method has not been implemented yet. Xorbits will try to execute it with numpy.
This docstring was copied from numpy.