Function tvm::function::ffi::TVMArrayFromDLPack [−][src]
pub unsafe extern "C" fn TVMArrayFromDLPack(
from: *mut DLManagedTensor,
out: *mut *mut DLTensor
) -> i32
Expand description
\brief Produce an array from the DLManagedTensor that shares data memory with the DLManagedTensor. \param from The source DLManagedTensor. \param out The output array handle. \return 0 when success, nonzero when failure happens