Function tvm::function::ffi::TVMArrayCopyFromBytes[][src]

pub unsafe extern "C" fn TVMArrayCopyFromBytes(
    handle: *mut DLTensor,
    data: *mut c_void,
    nbytes: u64
) -> i32
Expand description

\brief Copy array data from CPU byte array. \param handle The array handle. \param data the data pointer \param nbytes The number of bytes to copy. \return 0 when success, nonzero when failure happens