Skip to content

Commit

Permalink
Auto-tuning a Convolutional Network for ARM CPU (tutorial error, bug …
Browse files Browse the repository at this point in the history
…reports) (apache#8103)

* tune_relay_arm.py tutorial modify

* Lint fix

* Re-trigger CI

Co-authored-by: Chenfan <[email protected]>
  • Loading branch information
2 people authored and Trevor Morris committed Jun 17, 2021
1 parent 4edf009 commit 7e4928e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tutorials/autotvm/tune_relay_arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ def tune_tasks(
tuner_obj = XGBTuner(tsk, loss_type="rank")
elif tuner == "xgb_knob":
tuner_obj = XGBTuner(tsk, loss_type="rank", feature_type="knob")
elif tuner == "xgb_itervar":
tuner_obj = XGBTuner(tsk, loss_type="rank", feature_type="itervar")
elif tuner == "xgb_curve":
tuner_obj = XGBTuner(tsk, loss_type="rank", feature_type="curve")
elif tuner == "ga":
tuner_obj = GATuner(tsk, pop_size=50)
elif tuner == "random":
Expand All @@ -291,7 +295,7 @@ def tune_tasks(
if os.path.isfile(tmp_log_file):
tuner_obj.load_history(autotvm.record.load_from_file(tmp_log_file))

# do tuning
# process tuning
tsk_trial = min(n_trial, len(tsk.config_space))
tuner_obj.tune(
n_trial=tsk_trial,
Expand Down

0 comments on commit 7e4928e

Please sign in to comment.