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

[MetaSchedule] Handle cases when no features found by FeatureExtractor #14591

Merged
merged 3 commits into from
Apr 12, 2023

Conversation

Ubospica
Copy link
Contributor

@Ubospica Ubospica commented Apr 11, 2023

This PR fixes the problem that ops like topi.full cannot be correctly tuned.

Currently, metaSchedule system adopts a XGBoost model to predict the running performance of an IRModule based on features extracted from it.

However, Some operators like topi.full has so simple IRModule that no feature can be extracted. topi.full contains only one BufferStore node with a FloatImm value, so PerStoreFeature extractor cannot find any feature from it. And the XGBModel also cannot handle cases when there is no features.

This PR specifically handles this case in PerStoreFeatureNode and XGBModel.

Thanks to @junrushao

@tvm-bot
Copy link
Collaborator

tvm-bot commented Apr 11, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@github-actions github-actions bot requested a review from junrushao April 11, 2023 16:34
@Ubospica Ubospica force-pushed the tvm-dev/2023-04-12-ms-update branch from 80e437a to 67b7b38 Compare April 11, 2023 16:37
@Ubospica Ubospica force-pushed the tvm-dev/2023-04-12-ms-update branch from b532991 to 168da76 Compare April 11, 2023 16:47
Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

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

LGTM! Please fix the lint :-)

@junrushao
Copy link
Member

Nice! Should be ready to get in :-)

@junrushao junrushao merged commit 742c5ee into apache:main Apr 12, 2023
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