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

[Unity][Analysis] Handle PrimStructInfo in EraseToWellDefined #16304

Merged

Conversation

Lunderberg
Copy link
Contributor

Prior to this commit, the EraseToWellDefined pass would update symbolic variable definitions in ShapeStructInfo and TensorStructInfo, but did not in PrimStructInfo. This commit updates the WellDefinedEraser to include symbolic variables defined in PrimStructInfo.

Prior to this commit, the `EraseToWellDefined` pass would update
symbolic variable definitions in `ShapeStructInfo` and
`TensorStructInfo`, but did not in `PrimStructInfo`.  This commit
updates the `WellDefinedEraser` to include symbolic variables defined
in `PrimStructInfo`.
Copy link
Contributor

@slyubomirsky slyubomirsky left a comment

Choose a reason for hiding this comment

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

Good addition, and the test cases are also nice to have. Thank you!

`tests/python/relax/test_frontend_onnx.py::test_attention` fails for
some inputs.  Failures on `unity` head occurred 3/100 test cases
Lunderberg added a commit to Lunderberg/tvm that referenced this pull request Jan 3, 2024
The `tests/python/relax/test_frontend_onnx.py::test_attention` unit
test currently has sporadic failures (5/200 executions), which can
cause failures for unrelated changes
(e.g. [PR#16304](apache#16304), [CI
link](https://ci.tlcpack.ai/blue/organizations/jenkins/tvm-unity/detail/PR-16304/3/pipeline)).

This commit specifies a tolerance to use for comparisons, to avoid
these spurious CI failures.
masahi pushed a commit that referenced this pull request Jan 3, 2024
The `tests/python/relax/test_frontend_onnx.py::test_attention` unit
test currently has sporadic failures (5/200 executions), which can
cause failures for unrelated changes
(e.g. [PR#16304](#16304), [CI
link](https://ci.tlcpack.ai/blue/organizations/jenkins/tvm-unity/detail/PR-16304/3/pipeline)).

This commit specifies a tolerance to use for comparisons, to avoid
these spurious CI failures.
@Lunderberg Lunderberg merged commit d509661 into apache:unity Jan 4, 2024
14 checks passed
@Lunderberg Lunderberg deleted the unity_erase_to_well_defined_in_prim_sinfo branch January 4, 2024 17:02
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