matx.runtime.packed_func module¶
Packed Function namespace.
- class matx.runtime.packed_func.PackedFunc[source]¶
Bases:
PackedFuncBaseThe PackedFunc object used in MATX.
Function plays an key role to bridge front and backend in MATX. Function provide a type-erased interface, you can call function with positional arguments.
The compiled module returns Function. MATX backend also registers and exposes its API as Functions.
The following are list of common usage scenario of matx.runtime.PackedFunc.
Automatic exposure of C++ API into python
To call PackedFunc from python side
To call python callbacks to inspect results in generated code
Bring python hook into C++ backend
See also
matx.register_funcHow to register global function.
matx.get_global_funcHow to get global function.