Skip to content

Commit 9e4df6e

Browse files
committed
Fixing generated sample init pop size
1 parent 17113f8 commit 9e4df6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meta_schedule/search_strategy/evolutionary_search.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ std::vector<Schedule> EvolutionarySearchNode::State::SampleInitPopulation(int nu
522522
};
523523
support::parallel_for_dynamic(0, num, self->ctx_->num_threads, f_proc_unmeasured);
524524
bool found_new = false;
525-
for (int i = 0; i < num; i++) {
525+
for (int i = static_cast<int>(out_schs.size()); i < num; i++) {
526526
if (results[i].defined()) {
527527
found_new = true;
528528
out_schs.push_back(results[i]);

0 commit comments

Comments
 (0)