Hello,
I am trying to perform code-generation for an accelerator. I have defined a schedule and created the patterns to partition the Relay graph into the operations that are supported. These things individually work, but I don’t know how to put them together, and I can’t find any examples on how to achieve this.
I found the VTA example that defines Operator strategies, but that is integrated with AutoTVM and I want to use the MetaSchedule since I want to work directly on TIR and not TE. Is there a way for me to combine TIR Scheduling with MetaSchedule and microTVM and AOT compilation (target is baremetal) while using Relay, or do I need to move to Relax for this?
To illustrate a bit more, the compilation flow that I want to achieve is something like this:
Import PyTorch → Relay/Relax? → TIR → MetaSchedule to Optimize → Emit Code through microTVM AOT
I know this would work using TE and AutoTVM throught the TOPI integration, since this implemented already implemented for VTA, but using the newer tools is much more interesting to me I am curious if this is feasible while staying on Relay, or if I need to move everything to the Unity branch.
More specifically, something to replace register_topi_compute
is what I’m interested in.
CC: @tqchen @junrushao