-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RUNTIME] Improve error messages for TypedPackedFunc (#7152)
* [RUNTIME] Improve error messages for TypedPackedFunc - TypedPackedFunc now prints the function name when the incorrect number of arguments is passed. - TypedPackedFunc now prints the function name and which argument when an argument cannot be converted to the correct type. * check argument conversion by template deducing argument types * switch from template approach to TVMMovableArgValueWithContext * move passes back into cc files * remove error message prefixes * Remove TVM_ICHECK_TYPE_CODE. Rename name to optional_name. * revert changes to module pass for later PR * reverted too much * documentation * formatting * more docs * unify error message language. TypedPackedFunc contrustor that does not take a name * Update include/tvm/runtime/packed_func.h Co-authored-by: Junru Shao <junrushao1994@gmail.com> Co-authored-by: Junru Shao <junrushao1994@gmail.com>
- Loading branch information
Showing
6 changed files
with
137 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.