matx.runtime.packed_func module¶
Packed Function namespace.
- class matx.runtime.packed_func.PackedFunc[源代码]¶
基类:
PackedFuncBase
The 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
参见
matx.register_func
How to register global function.
matx.get_global_func
How to get global function.