Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions python/tvm/auto_scheduler/task_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,11 @@ def tune(
self.best_ct = self.ct
self.best_score = self.cur_score

# put task without schedule on warm up to dead state
for task_idx, cost in enumerate(self.best_costs):
if cost == 1e10:
self.dead_tasks.add(task_idx)

# use the specific strategy to choose workload to tune
task_idx = -1
while self.ct < tune_option.num_measure_trials and len(self.dead_tasks) < len(self.tasks):
Expand All @@ -367,6 +372,7 @@ def tune(
task_idx = (task_idx + 1) % len(self.tasks)
elif self.strategy == "gradient":
gradients = []

for i in range(len(self.tasks)):
if i in self.dead_tasks:
gradients.append(0)
Expand Down