merrymercy opened a new pull request #7028: URL: https://github.com/apache/tvm/pull/7028
- Refactor the task and tuning interface for tuning a single operator - Use `InsertTransformStage` as the default layout rewrite option for CPU target. - **NOTE: This PR breaks APIs** ### Before ``` task = auto_scheduler.create_task(matmul, (1024, 1024), "llvm") sch, args = auto_scheduler.auto_schedule(task) ``` ### After ``` task = auto_scheduler.SearchTask(func=matmul, args=(1024, 1024), target="llvm") task.tune(tune_option) sch, args = task.apply_best(log_file) ``` ### Rationality: 1. clean separated API for tuning and applying best 2. Choose a style similar to `tvm.target.Target`, deprecate the `create_XXX` style. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
