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

[Fix][Dlight] Fix GeneralReduction for log-sum-exp #16923

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

MasterJH5574
Copy link
Contributor

This PR fixes the GeneralReduction dlight rule so that it can support scheduling log-sum-exp function.

Prior to this issue, the rule makes a strong assumption on the pattern of the given function, which allows scheduling softmax, but fails to schedule log-sum-exp due to pattern mismatch. This PR enhances the rule and makes it able to match the pattern of log-sum-exp and apply subsequent scheduling.

A regression test is added.

@MasterJH5574 MasterJH5574 force-pushed the tvm-dev/2024-04-24-dlight-lse branch 2 times, most recently from c8280e5 to 7907a27 Compare April 25, 2024 13:18
This PR fixes the GeneralReduction dlight rule so that it can support
scheduling log-sum-exp function.

Prior to this issue, the rule makes a strong assumption on the pattern
of the given function, which allows scheduling softmax, but fails to
schedule log-sum-exp due to pattern mismatch. This PR enhances the rule
and makes it able to match the pattern of log-sum-exp and apply
subsequent scheduling.

A regression test is added.
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.

2 participants