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

[TIR] Improved parameter name in DLTensor unpacking error messages #14776

Merged
merged 2 commits into from
May 10, 2023

Conversation

Lunderberg
Copy link
Contributor

Previously, the parameter name depending only on the TIR variable name. In large IRModules, such as those used when executing end-to-end models, these parameter names may be resued across functions, and so the error message doesn't identify which PrimFunc should be investigated.

This commit updates the parameter name to include the function name (e.g. my_function.arg.my_param) to help debugging in these cases.

Previously, the parameter name depending only on the TIR variable
name.  In large IRModules, such as those used when executing
end-to-end models, these parameter names may be resued across
functions, and so the error message doesn't identify which `PrimFunc`
should be investigated.

This commit updates the parameter name to include the function
name (e.g. `my_function.arg.my_param`) to help debugging in these
cases.
@tvm-bot
Copy link
Collaborator

tvm-bot commented May 5, 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

@junrushao junrushao merged commit afa1f63 into apache:main May 10, 2023
@Lunderberg Lunderberg deleted the funcname_in_parameter_error_message branch May 10, 2023 13:08
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