Skip to content

Commit

Permalink
Support ahb from tune_relay.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxybazh committed Jun 29, 2022
1 parent 2e7c6b7 commit fb2e184
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/tvm/meta_schedule/tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,9 @@ def tune_extracted_tasks(
cost_model=cost_model,
measure_callbacks=measure_callbacks,
)
task_scheduler.tune()
cost_model.save(osp.join(work_dir, "cost_model.xgb"))
if config.max_trials_global > 0:
task_scheduler.tune()
cost_model.save(osp.join(work_dir, "cost_model.xgb"))
return database


Expand Down

0 comments on commit fb2e184

Please sign in to comment.