Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions python/tvm/auto_scheduler/task_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,15 @@ def pre_tune(self, task_scheduler, task_id):
return

_ffi_api.PrintTitle("Task Scheduler")
print("| ID | Latency (ms) | Speed (GFLOPS) | Trials |")
print("-------------------------------------------------")
print(
"| ID "
"| Task Description "
"| Latency (ms) | Speed (GFLOPS) | Trials |"
)
print(
"----------------------------------------------------------------"
"-------------------------------------------------"
)

# content
for i in range(len(task_scheduler.tasks)):
Expand All @@ -588,15 +595,22 @@ def pre_tune(self, task_scheduler, task_id):
if task_scheduler.best_costs[i] < 1e9
else "-"
)
task_desc = task_scheduler.tasks[i].desc
speed_str = (
"%.2f"
% (task_scheduler.tasks[i].compute_dag.flop_ct / task_scheduler.best_costs[i] / 1e9)
if task_scheduler.best_costs[i] < 1e9
else "-"
)
trials_str = "%d" % (task_scheduler.task_cts[i] * task_scheduler.num_measures_per_round)
print("| %4s | %12s | % 14s | %6s |" % (id_str, latency_str, speed_str, trials_str))
print("-------------------------------------------------")
print(
"| %4s | %61s | %12s | % 14s | %6s |"
% (id_str, task_desc, latency_str, speed_str, trials_str)
)
print(
"----------------------------------------------------------------"
"-------------------------------------------------"
)

# overall info
if all(cost < 1e9 for cost in task_scheduler.best_costs):
Expand Down