How to optimize the AlexNet model in the TIR level?

From the tutorial, I can only find the method to optimize the relay function. However this is a lot of schedule primitives in TIR. What can I do to use these primitives?