Function TVMFFITensorToDLPackVersioned

Function TVMFFITensorToDLPackVersioned#

Function Documentation#

int TVMFFITensorToDLPackVersioned(TVMFFIObjectHandle from, DLManagedTensorVersioned **out)#

Produce a DLManagedTensor from the array that shares data memory with the array.

Parameters:
  • from – The source array.

  • out – The DLManagedTensor handle.

Returns:

0 on success, nonzero on failure.