from_dlpackΒΆ
Returns a new array containing the data from another (array) object with a __dlpack__ method.
Abstract Signature:
from_dlpack(x: object, device: Optional[device], copy: Optional[bool])
Returns a new array containing the data from another (array) object with a __dlpack__ method.
Abstract Signature:
from_dlpack(x: object, device: Optional[device], copy: Optional[bool])