Function tvm::runtime::function::ffi::TVMDeviceCopyDataFromTo [−][src]
pub unsafe extern "C" fn TVMDeviceCopyDataFromTo(
from: *mut DLTensor,
to: *mut DLTensor,
stream: *mut c_void
) -> i32
Expand description
\brief Copy data from one place to another. \note This API is designed to support special memory with shape dependent layout. We pass in DLTensor* with shape information to support these cases. \param from The source tensor. \param to The target tensor. \param stream Optional stream object. \return 0 when success, nonzero when failure happens.