yelite commented on PR #79:
URL: https://github.com/apache/tvm-rfcs/pull/79#issuecomment-1159467109

   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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to