Function tvm::runtime::function::ffi::TVMBackendGetFuncFromEnv [−][src]
pub unsafe extern "C" fn TVMBackendGetFuncFromEnv(
mod_node: *mut c_void,
func_name: *const i8,
out: *mut *mut c_void
) -> i32
Expand description
\brief Backend function for modules to get function from its environment mod_node (its imports and global function). The user do should not call TVMFuncFree on func.
\param mod_node The module handle. \param func_name The name of the function. \param out The result function. \return 0 when no error is thrown, -1 when failure happens