Function tvm::runtime::function::ffi::TVMBackendRunOnce [−][src]
pub unsafe extern "C" fn TVMBackendRunOnce(
handle: *mut *mut c_void,
f: Option<unsafe extern "C" fn(*mut c_void) -> i32>,
cdata: *mut c_void,
nbytes: i32
) -> i32
Expand description
\brief Simple static initialization function. Run f once and set handle to be not null. This function is mainly used for test purpose.
\param handle A global address to indicate f \param f The function to be run \param cdata The closure data to pass to the function. \param nbytes Number of bytes in the closure data. \return 0 when no error is thrown, -1 when failure happens