Skip to content

Commit 858a722

Browse files
committed
[TVMC] Use len of AutoTVM config space in progress bar
1 parent bd94217 commit 858a722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/driver/tvmc/autotuner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ def tune_tasks(
805805
early_stopping=early_stopping,
806806
measure_option=measure_option,
807807
callbacks=[
808-
autotvm.callback.progress_bar(trials, prefix=prefix),
808+
autotvm.callback.progress_bar(min(trials, len(tsk.config_space)), prefix=prefix),
809809
autotvm.callback.log_to_file(log_file),
810810
],
811811
)

0 commit comments

Comments
 (0)