Cross post from https://discuss.tvm.apache.org/t/rfc-tvmscript-metaprogramming/12969/2 for more visibility.
>From @Johnson9009, > Thanks for the work, for F4,do you mean we can write some impreative code > that can be execute by Python? Yes, that’s right. Actually you can write imperative code to construct IR graph now, by calling IR node constructors from tvm.tir.stmt|expr manually. The new things behind F4 are: 1. IRBuilder API, which can be used to construct IR nodes in a more concise way compared to calling node constructor directly. 2. The ability to embed these functions inside TVMScript. This means you can use imperative code to construct small fragments inside a large T.prim_func. I update the RFC to clarify when and where the imperative code gets evaluated. -- Reply to this email directly or view it on GitHub: https://github.com/apache/tvm-rfcs/pull/79#issuecomment-1159467109 You are receiving this because you are subscribed to this thread. Message ID: <apache/tvm-rfcs/pull/79/c1159467...@github.com>