@xqdan Thanks! For your questions,

> For compute fusion. With TE compute, it's easy to concate TE computes with 
> producer-comsuer relation to get a fused compute. for example, conv + 
> elemwise ops fusion. We should have similar function in TVM script. Which 
> thread is related to this requirement?
This will be supported naturally by the F3 (TE compute). F3 will be implemented 
by calling the IRBuilder APIs during parse-time evaluation. So one can write 
multiple TE compute side by side, like
```
x = T.compute(...)
y = T.compute(...)
```
and the actual fusion is done in MetaSchedule and TIR.

> For conditional lowering. We may have some attributtes in graph/relay level, 
> which will further decide how to lower into different tir. With old ir 
> builder/TE compute, we can do that. F4 in this RFC will ensure this,correct?
Yes, this is correct.

> For reducing boilerplate code. F3 is a good idea. Another one is we define a 
> tir function (with or without host python code), and we reuse it other place. 
> We see this in F4 which foucus on conditional lowering, however I think we 
> should define/declare it as standalone Fearture.
Mutual function call will be supported in the new TVMScript parser as well. We 
didn't include it in this RFC because it doesn't belong to the metaprogramming 
category.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm-rfcs/pull/79#issuecomment-1183563695
You are receiving this because you are subscribed to this thread.

Message ID: <apache/tvm-rfcs/pull/79/c1183563...@github.com>

Reply via email to