Skip to content

[MetaSchedule] Enable Task Filtering#11512

Merged
junrushao merged 1 commit into
apache:mainfrom
junrushao:feature/2022-05-30/task-filtering
May 31, 2022
Merged

[MetaSchedule] Enable Task Filtering#11512
junrushao merged 1 commit into
apache:mainfrom
junrushao:feature/2022-05-30/task-filtering

Conversation

@junrushao

@junrushao junrushao commented May 31, 2022

Copy link
Copy Markdown
Member

This PR allows relay.backend.MetaScheduleExtractTask to take an extra argument filter_func which filters out tasks that don't need tuning. The counterpart of AutoScheduler is traverse_to_get_io_tensors.

@junrushao

Copy link
Copy Markdown
Member Author

CC: @comaniac @Hzfengsy @zxybazh

@Hzfengsy

Copy link
Copy Markdown
Member

Can we add testcases?

@comaniac comaniac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall LGTM. Echo @Hzfengsy's comment that we may need a test case.

Comment thread src/relay/backend/task_extraction.cc
@junrushao

Copy link
Copy Markdown
Member Author

@Hzfengsy thanks for asking! It's pretty hard to add a unittest given we will need an actual end-to-end network that takes hours to run...In this particular case, it might be good to leave it to future integration test instead

@junrushao junrushao requested a review from comaniac May 31, 2022 07:42

@comaniac comaniac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IIUC, unit tests for task extraction don't need to run tune. Instead, it only needs to extract tasks and verify their number and workloads. However, if MetaSchedule doesn't have unit tests for task extractions yet, we could of course add it later.

@junrushao

Copy link
Copy Markdown
Member Author

I'm happy to add a simple unittest without tuning :-)

@junrushao junrushao force-pushed the feature/2022-05-30/task-filtering branch from 16a8851 to 5f96e8a Compare May 31, 2022 20:28
@junrushao junrushao merged commit a71536a into apache:main May 31, 2022
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