tvm_ffi.system_lib

Contents

tvm_ffi.system_lib#

tvm_ffi.system_lib(symbol_prefix='')[source]#

Get system-wide library module singleton.

System lib is a global module that contains self register functions in startup. Unlike normal dso modules which need to be loaded explicitly. It is useful in environments where dynamic loading api like dlopen is banned.

The system lib is intended to be linked and loaded during the entire life-cyle of the program. If you want dynamic loading features, use dso modules instead.

Parameters:

symbol_prefix (str = "") – Optional symbol prefix that can be used for search. When we lookup a symbol symbol_prefix + name will first be searched, then the name without symbol_prefix.

Returns:

module – The system-wide library module.

Return type:

runtime.Module