You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by JC Li via TVM Discuss <no...@discuss.tvm.ai> on 2020/04/23 18:45:54 UTC
[TVM Discuss] [Questions] TVM terms: relay, topi, tir, te
I've been studying TVM for quite a few weeks, still not crystal-clear about the relationship between these items: ***relay, tir, topi, te.*** I'll try to summarize my understanding and please correct me in my description below. Thanks in advance.
1. ***Relay***
Relay is the replacement for NNVM, which is a graph optimization toolset.
It works on tensor expressions (***te***, question: is relay te same as tir te?).
Input *te* is either extracted from imported trained neural network or manually constructed using relay.\<op>, those are so-called Relay IR, a high-level IR.
There are certain *attr* are defined or extracted for each relay operator. These attributes are used to later match or find *best* implementations in ***topi*** using so-called FTVMStrategy.
2. ***tir***
Tir is low-level IR before "translating" to target-specific backends. E.g. if x86 is target, then tir is first mapped to llvm IR, then x86 codegen is called to generate target binary.
3. ***topi***
A bridge between Relay IR and tir. A repository of operator implementations, describing what to compute and how to compute (schedule). The FTVMSTrategy mechanism allows relay operator to be mapped to highest scored implementation.
---
[Visit Topic](https://discuss.tvm.ai/t/tvm-terms-relay-topi-tir-te/6474/1) to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/59c601308ca3aa3dc28ca46b88348fc08dd9c346702acfbf23e3bc8d0605cd6e).
[TVM Discuss] [Questions] TVM terms: relay, topi, tir, te
Posted by Cxcxcxcx via TVM Discuss <no...@discuss.tvm.ai>.
Thanks for the summary. I noticed that relay.build runs all the way and runs codegen. Does relay explicitly convert RelayIR to tir? Is there an interface for that? (Presumably, it would be a way to see/debug what relay has done. Or maybe there is a better way to do the debugging?)
---
[Visit Topic](https://discuss.tvm.ai/t/tvm-terms-relay-topi-tir-te/6474/2) to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/ca60480746365b13631291da3127f89618f679a7baef098663b52413536ed12c).