-
Notifications
You must be signed in to change notification settings - Fork 961
Interpretable Error Message for ScalarType Mismatch #6850
Copy link
Copy link
Closed
Labels
actionableItems in the backlog waiting for an appropriate impl/fixItems in the backlog waiting for an appropriate impl/fixgood first issueGood for newcomersGood for newcomersmodule: runtimeIssues related to the core runtime and code under runtime/Issues related to the core runtime and code under runtime/triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Metadata
Metadata
Assignees
Labels
actionableItems in the backlog waiting for an appropriate impl/fixItems in the backlog waiting for an appropriate impl/fixgood first issueGood for newcomersGood for newcomersmodule: runtimeIssues related to the core runtime and code under runtime/Issues related to the core runtime and code under runtime/triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
🚀 The feature, motivation and pitch
Currently, when a module is provided with input of a wrong type (ex. long instead of integer), an error is raised with a message like below:
It is not immediately obvious that
3corresponds toIntand4corresponds toLong. This lack of clarity can cause confusionPossible solutions
boost/preprocessorusage in this stack overflow answer.ScalarTypeclass (as far as I can see the link is: https://github.com/pytorch/pytorch/blob/main/torchgen/executorch/model.py)While this is a small improvement, I believe it would make the error message more clear and helpful
Thank you for executorch :)
Alternatives
No response
Additional context
No response
RFC (Optional)
No response