I’m not familiar with TVM and try to figure out what tvm.lower
does when reading this. Because of my poor english, tvm.lower
's docs Lowering step before build into target
doesn’t make any sense to me, what is lowering step
?
Can anyone explain what it means, or share some reading materials about this…
You don’t have to do tvm.lower
before tvm.build
, because the build step will do lowering if necessary.
Before lowering, the schedule is represented using certain data structures that are specific to the building blocks of the schedule. Lowering will translate the schedule into TVM IR.
1 Like
The lower
method accepts the schedule and input and output tensors.
Also tvm.build
. It accepts the same argument as tvm.lower
. In fact, it first calls tvm.lower
to generate the program and then compiles to machine codes.
can find more information in follow document http://tvm.d2l.ai/chapter_getting_started/vector_add.html
1 Like