Skip to content

Conversation

@apeskov
Copy link
Contributor

@apeskov apeskov commented Apr 27, 2023

Custom rule mechanics allows to have "schedule_rule" attribute equals "None". This value will be ignored by ApplyCustomRuleNode. But also this block will be ignore by all other rules. It happens because of improper check in PostOrderApplyNode.

This patch allows to use regular rules in case of schedule_rule=="None".

Signed-off-by: Alexander Peskov <peskovnn@gmail.com>
@tvm-bot
Copy link
Collaborator

tvm-bot commented Apr 27, 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

@Hzfengsy
Copy link
Member

cc @junrushao

Signed-off-by: Alexander Peskov <peskovnn@gmail.com>
@apeskov
Copy link
Contributor Author

apeskov commented Apr 28, 2023

@junrushao could you please take a look. In your previous patch #13195 with refactoring of custom rules you already had a discussion with @masahi about auto tensorization issue.

But there is an another aspect. In case of schedule_rule == "None", ApplyCustomRule and sch->Unannotate will not be called. So block will not be processed by any schedule rule never. I'm not sure if it was in the design.

@junrushao
Copy link
Member

I vaguely recall that there is a reason that we use custom_rule: None, which means we wanted to design space generator to intentionally skip a block. My assumption was that if we have a good usecase if we want the generator not to skip, then perhaps we could unannotate the block first - but I'm happy to change my mind if the situation above has been taken good consideration

@tqchen tqchen closed this May 8, 2025
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.

5 participants