Interpretable Error Message for ScalarType Mismatch #6850
Labels
actionable
Items in the backlog waiting for an appropriate impl/fix
good first issue
Good for newcomers
module: runtime
Issues related to the core runtime and code under runtime/
triaged
This 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
3
corresponds toInt
and4
corresponds toLong
. This lack of clarity can cause confusionPossible solutions
boost/preprocessor
usage in this stack overflow answer.ScalarType
class (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
The text was updated successfully, but these errors were encountered: