Skip to content

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
@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