This is an automated email from the ASF dual-hosted git repository.

mousius pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new aa927df6b3 [Metaschedule] EvolutionarySearchNode::State constructor 
typo fix (#14002)
aa927df6b3 is described below

commit aa927df6b3e33856998cb3a4938d8fb4cbdbcec9
Author: Sergey <[email protected]>
AuthorDate: Thu Feb 16 11:12:27 2023 +0300

    [Metaschedule] EvolutionarySearchNode::State constructor typo fix (#14002)
    
    This PR fixes internal object initialization in 
EvolutionarySearchNode::State class. Previously it did not reserve the correct 
amount when generating `design_spaces`.
---
 src/meta_schedule/search_strategy/evolutionary_search.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/meta_schedule/search_strategy/evolutionary_search.cc 
b/src/meta_schedule/search_strategy/evolutionary_search.cc
index cc99951239..eea28fb082 100644
--- a/src/meta_schedule/search_strategy/evolutionary_search.cc
+++ b/src/meta_schedule/search_strategy/evolutionary_search.cc
@@ -283,7 +283,7 @@ class EvolutionarySearchNode : public SearchStrategyNode {
           ed(num_trials_per_iter),
           num_empty_iters(0),
           measured_workloads_(database->GetModuleEquality()) {
-      design_spaces.reserve(design_spaces.size());
+      design_spaces.reserve(design_space_schedules.size());
       for (const Schedule& space : design_space_schedules) {
         design_spaces.push_back(space->trace().value()->Simplified(true));
       }

Reply via email to