tvm_ffi.load_module#
- tvm_ffi.load_module(path)[source]#
Load module from file.
- Parameters:
path (str | PathLike) – The path to the module file.
- Return type:
- Returns:
module – The loaded module
Examples
# Works with string paths mod = tvm_ffi.load_module("path/to/module.so") mod.func_name(*args) # Also works with pathlib.Path objects from pathlib import Path mod = tvm_ffi.load_module(Path("path/to/module.so")) mod.func_name(*args)
See also