tvm_ffi.get_global_func_metadata#
- tvm_ffi.get_global_func_metadata(name)[source]#
Get metadata (including type schema) for a global function.
- Parameters:
name (
str) – The name of the global function.- Return type:
- Returns:
metadata – A dictionary containing function metadata. The
type_schemafield encodes the callable signature.
Examples
import tvm_ffi meta = tvm_ffi.get_global_func_metadata("testing.add_one") print(meta)
See also
tvm_ffi.get_global_func()Retrieve a callable for an existing global function.
tvm_ffi.register_global_func()Register a Python callable as a global FFI function.