Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoScheduler] Add tips on resuming the search from a log file #7039

Merged
merged 2 commits into from
Dec 5, 2020

Conversation

merrymercy
Copy link
Member

@merrymercy merrymercy commented Dec 5, 2020

Auto-scheduler has very good support for resuming the search from a log file. We just need to add one more parameter when creating the task scheduler.

tuner = auto_scheduler.TaskScheduler(tasks, task_weights, load_log_file=log_file)

@merrymercy merrymercy requested review from comaniac and masahi December 5, 2020 05:18
@@ -94,8 +94,18 @@ def make_search_policies(
raise ValueError("Invalid search policy: " + search_policy)

if policy_type == "sketch":
if load_log_file:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to check if the log file exists?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. This function correctly handles this case and prints

SearchPolicy: No measurement records found in XXX.json

@masahi
Copy link
Member

masahi commented Dec 5, 2020

@merrymercy merrymercy merged commit 750e7f4 into apache:main Dec 5, 2020
@merrymercy merrymercy deleted the pr-continue-tuning branch December 5, 2020 23:38
TusharKanekiDey pushed a commit to TusharKanekiDey/tvm that referenced this pull request Jan 20, 2021
…he#7039)

* [AutoScheduler] Add tips on resuming the search from a log file

* Trigger CI
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jan 21, 2021
…he#7039)

* [AutoScheduler] Add tips on resuming the search from a log file

* Trigger CI
electriclilies pushed a commit to electriclilies/tvm that referenced this pull request Feb 18, 2021
…he#7039)

* [AutoScheduler] Add tips on resuming the search from a log file

* Trigger CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants