Function TVMFFIFunctionSetGlobalFromMethodInfo

Function TVMFFIFunctionSetGlobalFromMethodInfo#

Function Documentation#

int TVMFFIFunctionSetGlobalFromMethodInfo(const TVMFFIMethodInfo *method_info, int allow_override)#

Register the function to runtime’s global table with method info. This is the same as TVMFFIFunctionSetGlobal but with method info that can provide extra metadata used in the runtime.

Parameters:
  • method_info – The method info to be registered.

  • allow_override – Whether to allow overriding an already registered function.

Returns:

0 on success, nonzero on failure.