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

[Debug] Improve error message for codegen pattern mismatches #16587

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

Lunderberg
Copy link
Contributor

If there is a mis-match between the pattern used in FuseOpsByPattern and the expected relax function used in a relax codegen function (e.g. "relax.ext.cublas"), this will raise an error when attempting to unpack the primitive relax function. This commit improves the error message provided when this occurs, stating what pattern was expected, and what function was expected to match the pattern.

If there is a mis-match between the pattern used in `FuseOpsByPattern`
and the expected relax function used in a relax codegen
function (e.g. `"relax.ext.cublas"`), this will raise an error when
attempting to unpack the primitive relax function.  This commit
improves the error message provided when this occurs, stating what
pattern was expected, and what function was expected to match the
pattern.
@tqchen tqchen merged commit 9ed9f7a into apache:main Feb 17, 2024
19 checks passed
@Lunderberg Lunderberg deleted the relax_codegen_improve_error_message branch February 17, 2024 15:05
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