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 2d964b4 commit 138b765Copy full SHA for 138b765
src/meta_schedule/search_strategy/evolutionary_search.cc
@@ -592,6 +592,7 @@ std::vector<Schedule> EvolutionarySearchNode::State::EvolveWithCostModel(
592
// Loop until success
593
for (int fail_count = 0; fail_count <= self->genetic_max_fail_count; ++fail_count) {
594
sampled_trace_id = trace_sampler();
595
+ sampled_trace_id = sampled_trace_id % self->population_size;
596
tir::Trace trace = population.at(sampled_trace_id)->trace().value();
597
if (Optional<Mutator> opt_mutator = mutator_sampler()) {
598
// Decision: mutate
0 commit comments