What is the difference between tvm.var and tvm.relay.var?



I’m a bit confused at tvm.var and tvm.relay.var. What’s major difference between these two data types? Current document is not very clear about this



tvm.var produces a HalideIR variable while tvm.relay.var produces a Relay IR variable, so you use each one depending on what graph/ast you’re trying to construct. Halide and Relay nodes can’t be mixed.


Hi Joshpoll,
Can I say Relay IR is graph level IR, and Relay IR is converted into HalideIR by lowering ?
Thank you in advacne.


Yes, you’re correct.