tvm_tirx.script.parser.pyfunc#
- tvm_tirx.script.parser.pyfunc(function)#
Keep an ordinary Python callable for collection in a module.
- Parameters:
function (callable) – Python function to retain in the module.
- Returns:
callable – The same function, unchanged.
- Return type:
_Callable
Notes
The function body remains ordinary Python. Shared module parsing attaches it to the result’s
__pyfuncs__mapping. This decorator enters no frame and preserves callable identity for the function’s lifetime.