from_dlpack

dragon.dlpack.from_dlpack(dlpack)[source]

Create a tensor sharing the dlpack data.

Parameters:
  • dlpack (PyCapsule) – The capsule object of a dlpack tensor.
Returns:

dragon.EagerTensor – The tensor with the dlpack data.