// We can kick off the search and let the auto-scheduler do its magic.
// After some measurement trials, it will return the best schedule it found.
sch, args = auto_scheduler.auto_schedule(task, tuning_options=tune_option)
// Kill the process for measurement
del measure_ctx
After Change
print(task.print_best(log_file, print_mode="schedule"))
print("CUDA source code:")
print(task.print_best(log_file, print_mode="cuda"))
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// A more complicated example is to resume the search.
// In this case, we need to create the search policy and cost model by ourselves