You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log EValue tag names instead of numeric values (#7538)
Summary:
Update error log messages that include EValue tags to use a string representation of the tag rather than the numerical index. This improves readability for users.
Example Old Message:
```
[method.cpp:814] The 0-th input of method should have the same type as the input_evalue, but get tag 1 and tag 4
```
Example New Message:
```
[method.cpp:813] Input 0 was expected to be Tensor but was Int.
```
Pull Request resolved: #7538
Test Plan:
Locally built the executorch bento kernel and tested with an invalid EValue input to capture the example new message above. Repeated with "-c executorch.enable_enum_strings=false" to verify fallback behavior.
Added tests for `tag_to_string` to tag_test.cpp, runnable via
```
buck test executorch/runtime/core/test:tag_test
```
Reviewed By: digantdesai, manuelcandales
Differential Revision: D67888756
Pulled By: GregoryComer
0 commit comments