Skip to content
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

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

lhutton1
Copy link
Contributor

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:
```
Actual, Reference
8.502946, 8.887751
9.810405, 9.108611
8.563767, 9.041000
10.019511, 9.190888
....
```

Change-Id: Ifff729744c74b6a5256b4fd47c8580be3f5c32a9
@lhutton1 lhutton1 marked this pull request as ready for review February 20, 2024 09:07
@ekalda
Copy link
Contributor

ekalda commented Feb 20, 2024

Thanks @lhutton1, would you mind adding a test for this change? There is currently no path that exercises this option.

Change-Id: Iafe63d239dc38980710316179c73e6b8b7c1ea9c
Change-Id: I7f6e905d25832057bd51a6deb7d1c2f8652d539e
Copy link
Contributor

@ekalda ekalda left a 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,
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@ekalda ekalda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lhutton1, LGTM!

@ekalda ekalda merged commit b3fa6cb into apache:main Feb 26, 2024
21 checks passed
@lhutton1 lhutton1 deleted the aot-show-values branch February 26, 2024 16:20
Lunderberg pushed a commit to Lunderberg/tvm that referenced this pull request Mar 12, 2024
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
....
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants