tvm.hybrid

Hybrid Programming APIs of TVM Python Package.

This package maps a subset of python to HalideIR so that: 1. Users can write some preliminary versions of the computation patterns have not been supported yet and verify it across the real execution and python semantic emulation. 2. Developers can build HalideIR by writing Python code.

tvm.hybrid.parse
tvm.hybrid.script(pyfunc) Decorate a python function function as hybrid script.
tvm.hybrid.script(pyfunc)

Decorate a python function function as hybrid script.

The hybrid function support emulation mode and parsing to the internal language IR.

Returns:hybrid_func – A decorated hybrid script function.
Return type:function