Function tvm_sys::ffi::TVMArrayFromDLPack [−][src]
pub unsafe extern "C" fn TVMArrayFromDLPack(
from: *mut DLManagedTensor,
out: *mut TVMArrayHandle
) -> c_int
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