tvm_ffi.remove_global_func

tvm_ffi.remove_global_func#

tvm_ffi.remove_global_func(name)[source]#

Remove a global function by name.

Parameters:

name (str) – The name of the global function.

Return type:

None

Examples

import tvm_ffi

@tvm_ffi.register_global_func("my.temp")
def temp():
    return 42

assert tvm_ffi.get_global_func("my.temp", allow_missing=True) is not None
tvm_ffi.remove_global_func("my.temp")
assert tvm_ffi.get_global_func("my.temp", allow_missing=True) is None