Skip to content

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!

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
@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.

2 participants