Function tvm::runtime::function::ffi::TVMBackendRegisterEnvCAPI[][src]

pub unsafe extern "C" fn TVMBackendRegisterEnvCAPI(
    name: *const i8,
    ptr: *mut c_void
) -> i32
Expand description

\brief Backend function to register execution environment(e.g. python) specific C APIs.

\note We only register the C API function when absolutely necessary (e.g. when signal handler cannot trap back into python). In most cases we should use the PackedFunc FFI.

\param name The name of the symbol \param ptr The symbol address. \return 0 when no error is thrown, -1 when failure happens