junrushao opened a new pull request, #12626:
URL: https://github.com/apache/tvm/pull/12626

   Following #12520, this PR introduces `ScheduleFnDatabase`, a mocked
   database to allow injecting handcrafted schedules provided by a schedule
   function.
   
   The schedule function comes with the following signature:
   
   ```python
   def schedule_fn(
     sch: tir.Schedule,
   ) -> bool:
     task_name = sch.mod.attrs["task_name"]
     # ^^^ provides an optional name of the task queried
     ...
   ```
   
   This mocked database helps incorporate the existing testing utility
   `apply_fixed_schedule` more formally into the MetaSchedule-Relay build
   pipeline, and allows further extension to Relax with the same interface.
   
   Next as another follow-up, we will introduce ConcatDatabase that allows
   mixing multiple databases, including the mocked and ones from JSON
   files.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to