tvm_ffi.get_global_func

tvm_ffi.get_global_func#

tvm_ffi.get_global_func(name: str, allow_missing: Literal[True]) core.Function | None[source]#
tvm_ffi.get_global_func(name: str, allow_missing: Literal[False] = False) core.Function

Get a global function by name.

Parameters:
  • name (str) – The name of the global function

  • allow_missing (bool) – Whether allow missing function or raise an error.

Returns:

func – The function to be returned, None if function is missing.

Return type:

Function