-
Notifications
You must be signed in to change notification settings - Fork 425
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
Log EValue tag names instead of numeric values #7538
Log EValue tag names instead of numeric values #7538
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7538
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit aa81d29 with merge base 91f09aa (): NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D67888756 |
6c2529a
to
9dc157d
Compare
@GregoryComer has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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. ``` 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
9dc157d
to
7e46386
Compare
This pull request was exported from Phabricator. Differential Revision: D67888756 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D67888756 |
7e46386
to
32632c3
Compare
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: pytorch#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
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: pytorch#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
32632c3
to
74fd01f
Compare
This pull request was exported from Phabricator. Differential Revision: D67888756 |
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. ``` 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, dbort Differential Revision: D67888756 Pulled By: GregoryComer
74fd01f
to
b80e3b5
Compare
This pull request was exported from Phabricator. Differential Revision: D67888756 |
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. ``` 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, dbort Differential Revision: D67888756 Pulled By: GregoryComer
b80e3b5
to
6493a92
Compare
This pull request was exported from Phabricator. Differential Revision: D67888756 |
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. ``` 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, dbort Differential Revision: D67888756 Pulled By: GregoryComer
6493a92
to
d87b878
Compare
This pull request was exported from Phabricator. Differential Revision: D67888756 |
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. ``` 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, dbort Differential Revision: D67888756 Pulled By: GregoryComer
d87b878
to
aa81d29
Compare
This pull request was exported from Phabricator. Differential Revision: D67888756 |
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:
Example New Message:
Differential Revision: D67888756