-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[AOT][Testing] Print output values on test failure #16611
Conversation
This commit enhances the AOT test harness to print the "actual" and "reference" values when there is a mismatch. This helps when debugging a failing test. Sample output: ``` Actual, Reference 8.502946, 8.887751 9.810405, 9.108611 8.563767, 9.041000 10.019511, 9.190888 .... ``` Change-Id: Ifff729744c74b6a5256b4fd47c8580be3f5c32a9
Thanks @lhutton1, would you mind adding a test for this change? There is currently no path that exercises this option. |
1cc9822
to
1d9d600
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lhutton1, LGTM, there was just one thing that was puzzling me, but I think in general it is good to go!
@@ -93,6 +93,7 @@ def test_conv_with_params(interface_api, use_unpacked_api, test_runner): | |||
test_runner, | |||
interface_api, | |||
use_unpacked_api, | |||
print_output_on_mismatch=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for setting that option for this specific test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this just to exercise the case when the option is used, but there is no output mismatch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lhutton1, LGTM!
This commit enhances the AOT test harness to print the "actual" and "reference" values when there is a mismatch. This helps when debugging a failing test. Sample output: ``` Actual, Reference 8.502946, 8.887751 9.810405, 9.108611 8.563767, 9.041000 10.019511, 9.190888 .... ```
This commit enhances the AOT test harness to print the "actual" and "reference" values when there is a mismatch. This helps when debugging a failing test. Sample output: