Function tvm_sys::ffi::TVMFuncCreateFromCFunc  [−][src]
pub unsafe extern "C" fn TVMFuncCreateFromCFunc(
    func: TVMPackedCFunc, 
    resource_handle: *mut c_void, 
    fin: TVMPackedCFuncFinalizer, 
    out: *mut TVMFunctionHandle
) -> c_intExpand description
\brief Wrap a TVMPackedCFunc to become a FunctionHandle.
The resource_handle will be managed by TVM API, until the function is no longer used.
\param func The packed C function. \param resource_handle The resource handle from front-end, can be NULL. \param fin The finalizer on resource handle when the FunctionHandle get freed, can be NULL \param out the result function handle. \return 0 when success, nonzero when failure happens
