Function TVMFFIFunctionSetGlobal#
Defined in File c_api.h
Function Documentation#
-
int TVMFFIFunctionSetGlobal(const TVMFFIByteArray *name, TVMFFIObjectHandle f, int allow_override)#
Register the function to runtime’s global table. The registered function can then be retrieved by the backend using its name.
- Parameters:
name – The name of the function.
f – The function to be registered.
allow_override – Whether to allow overriding an already registered function.
- Returns:
0 on success, nonzero on failure.