Function TVMFFITensorFromDLPackVersioned

Function TVMFFITensorFromDLPackVersioned#

Function Documentation#

int TVMFFITensorFromDLPackVersioned(DLManagedTensorVersioned *from, int32_t require_alignment, int32_t require_contiguous, TVMFFIObjectHandle *out)#

Produce a managed Tensor from a DLPack tensor.

Parameters:
  • from – The source DLPack tensor.

  • require_alignment – The minimum alignment required of the data + byte_offset.

  • require_contiguous – Boolean flag indicating if we need to check for contiguity.

  • out – The output Tensor handle.

Returns:

0 on success, nonzero on failure.