to_dlpack

dragon.dlpack.to_dlpack(tensor)[source]

Return a dlpack tensor sharing the data.

Parameters:
Returns:

PyCapsule The dlpack tensor.