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

[UnitTests] Use tvm.ir.assert_structural_equal whenever possible #17092

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

Lunderberg
Copy link
Contributor

Prior to commit, many unit tests were implemented as assert tvm.ir.structural_equal(output, expected). While this is correct, it doesn't provide much information when the test fails. The tvm.ir.assert_structural_equal method performs the equivalent check, but displays the exact location where a mismatch occurs.

This commit replaces all use of assert tvm.ir.structural_equal with tvm.ir.assert_structural_equal.

Prior to commit, many unit tests were implemented as `assert
tvm.ir.structural_equal(output, expected)`.  While this is correct, it
doesn't provide much information when the test fails.  The
`tvm.ir.assert_structural_equal` method performs the equivalent check,
but displays the exact location where a mismatch occurs.

This commit replaces all use of `assert tvm.ir.structural_equal` with
`tvm.ir.assert_structural_equal`.
@Lunderberg Lunderberg merged commit 292ecfd into apache:main Jun 14, 2024
19 checks passed
@Lunderberg Lunderberg deleted the unittest_assert_structural_equal branch June 14, 2024 20:16
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