jcf94 commented on a change in pull request #7197: URL: https://github.com/apache/tvm/pull/7197#discussion_r551816877
########## File path: python/tvm/auto_scheduler/task_scheduler.py ########## @@ -82,11 +82,12 @@ def make_search_policies( if isinstance(search_policy, str): policy_type, model_type = search_policy.split(".") if model_type == "xgb": - cost_model = XGBModel(num_warmup_sample=len(tasks) * num_measures_per_round) - if load_model_file: - logger.info("TaskScheduler: Load pretrained model...") - cost_model.load(load_model_file) - elif load_log_file: + cost_model = XGBModel( + num_warmup_sample=len(tasks) * num_measures_per_round, + model_file=load_model_file, + ) + if load_log_file: + logger.info("TaskScheduler: Reload measured states and train the model...") Review comment: Oh, the old one is fine. I was just going to add a `self.model_file` for cost model saving after training, this was modified by the way. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org