Thanks fo the RFC. Although I didn't involve the actual Relax development, I've 
been attended the weekly open design review meeting for a while and I'm glad 
that I could share our experience to help improve the Relax design. Thus, I 
don't have specific questions to the design.

Regarding to the point that mentioned above about whether we really need a 
brand new IR to replace Relay, in fact, we at AWS already attempted to build a 
compiler-based training framework, [RAF](https://github.com/awslabs/raf), by 
extending Relay. Based on our experience working on RAF for the past 1.5-2 
years, we agreed with the Relax group that Relay does have some limitations in 
its design, and these limitations prevent us from easily adding some new 
features such as dynamic shape, flexible fusion, etc. Note that I'm not saying 
it's impossible to implement these feature by extending Relay. My point is even 
it's possible, it is hard to keep a clean system/infra without a large scale 
refactoring. To me, it is even safer to build a new infra from scratch, so that 
existing workloads and use cases won't be affected at all. This is also the 
reason why we noticed Relax and tried our best to involve the early stage 
design in the first place.

Meanwhile, in terms of maintaining two IRs, I don't really think this would add 
many overheads to the community, because these two IRs are basically 
independent and can be developed separately. In other words, it's up to the 
developers to work on Relay or Relax. As long as there's still a number of 
Relay developers in the community, we shouldn't deprecate it. On the other 
hand, if people found that Relax is better over time, then developers will 
gradually move to Relax. Until then, we will bring the Relay deprecation on the 
table, just like nnvm in the past.



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

Message ID: <apache/tvm-rfcs/pull/89/c1221091...@github.com>

Reply via email to