We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b60b7e commit bd94217Copy full SHA for bd94217
python/tvm/driver/tvmc/autotuner.py
@@ -591,7 +591,7 @@ def tune_model(
591
592
# In autotvm, trials is specified per task. We can convert the per-model input
593
# provided to per-task trials by dividing by the number of tasks.
594
- trials = int(trials / max(len(tasks), 1))
+ trials = int(max(1, trials / max(len(tasks), 1)))
595
logger.info("Autotuning with %d trials per task.", trials)
596
597
tuning_options = {
0 commit comments