dpctl.tensor.usm_ndarray.__dlpack__

usm_ndarray.__dlpack__(stream=None)

Produces DLPack capsule.

Parameters:

stream (dpctl.SyclQueue, optional) – Execution queue to synchronize with. If None, synchronization is not performed.

Raises:
  • MemoryError – when host memory can not be allocated.

  • DLPackCreationError – when array is allocated on a partitioned SYCL device, or with a non-default context.