tlc-pack / tvm-tensorir

Apache License 2.0
8 stars 0 forks source link

[MetaSchedule] RandomComputeLocation refactor. NRM/SFM aligned on CPU #566

Closed MasterJH5574 closed 2 years ago

MasterJH5574 commented 2 years ago

This PR majorly refactors the compute-location related rule/primitive/analysis, including redesign of the primitive. After the refactor, the schedule rule RandomComputeLocation supports transforming blocks with multiple consumers, which wasn't supported before.

With the help of this PR, performances on NRM and SFM are aligned with Ansor's.

However, there still exists some gap in C2D, which needs future investigation.

Most of the code changes are from the unit tests.

Thanks @junrushao1994 for the help throughout this PR.