Function tvm::runtime::function::ffi::TVMFuncCall [−][src]
pub unsafe extern "C" fn TVMFuncCall(
func: *mut c_void,
arg_values: *mut TVMValue,
type_codes: *mut i32,
num_args: i32,
ret_val: *mut TVMValue,
ret_type_code: *mut i32
) -> i32
Expand description
\brief Call a Packed TVM Function.
\param func node handle of the function. \param arg_values The arguments \param type_codes The type codes of the arguments \param num_args Number of arguments.
\param ret_val The return value. \param ret_type_code the type code of return value.
\return 0 when success, nonzero when failure happens \note TVM calls always exchanges with type bits=64, lanes=1
\note API calls always exchanges with type bits=64, lanes=1 If API call returns container handles (e.g. FunctionHandle) these handles should be managed by the front-end. The front-end need to call free function (e.g. TVMFuncFree) to free these handles.