You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/11/22 09:10:42 UTC

[GitHub] [incubator-tvm] FrozenGene commented on a change in pull request #6945: [AutoScheduler] Task scheduler callbacks

FrozenGene commented on a change in pull request #6945:
URL: https://github.com/apache/incubator-tvm/pull/6945#discussion_r528305417



##########
File path: tutorials/auto_scheduler/tune_network_cuda.py
##########
@@ -186,7 +189,9 @@ def run_tuning():
     print("Begin tuning...")
     measure_ctx = auto_scheduler.LocalRPCMeasureContext(repeat=1, min_repeat_ms=400, timeout=10)
 
-    tuner = auto_scheduler.TaskScheduler(tasks, task_weights)
+    tuner = auto_scheduler.TaskScheduler(
+        tasks, task_weights, callbacks=[auto_scheduler.task_scheduler.PrintTableInfoCallback()]

Review comment:
       How about setting `PrintTableInfoCallback` be default callback but allow users pass `callbacks=None` to turn  off ? We could add comment here to explain our design




----------------------------------------------------------------
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:
users@infra.apache.org