Skip to content

Commit

Permalink
[TVMC] Use len of AutoTVM config space in progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Mar 21, 2023
1 parent 2a57e82 commit 1aff401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/driver/tvmc/autotuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def tune_tasks(
early_stopping=early_stopping,
measure_option=measure_option,
callbacks=[
autotvm.callback.progress_bar(trials, prefix=prefix),
autotvm.callback.progress_bar(min(trials, len(tsk.config_space)), prefix=prefix),
autotvm.callback.log_to_file(log_file),
],
)

0 comments on commit 1aff401

Please sign in to comment.