Skip to content

Add parity check of shape/dtype/device of runtime and trace #2069

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

Merged
merged 3 commits into from
Jun 3, 2025

Conversation

crcrpar
Copy link
Collaborator

@crcrpar crcrpar commented May 14, 2025

@crcrpar crcrpar changed the title Check consistency between compile time and runtime Add parity check of shape/dtype/device of runtime and trace May 21, 2025
@IvanYashchuk
Copy link
Collaborator

For all the currently failing cases, you could add xfail(strict=True) decorators, and that would allow merging the pull request as is. Any other pull request that fixes the problems would also include a change in tests to remove the xfails. It would make it clearer that the change is covered with tests.

@t-vi
Copy link
Collaborator

t-vi commented May 30, 2025

Just wanted to shout that I love that we'll be checking this. Thank you @crcrpar

crcrpar and others added 3 commits May 30, 2025 20:53
- shape
- device
- dtype

are supposed to be identical.

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
@crcrpar crcrpar force-pushed the check_consistency_of_compile_and_runtime branch from 90e24e1 to 00bba73 Compare May 30, 2025 11:53
@crcrpar crcrpar marked this pull request as ready for review May 30, 2025 11:54
@crcrpar crcrpar requested review from mruberry, lantiga and t-vi as code owners May 30, 2025 11:54
@mruberry
Copy link
Collaborator

Exciting stuff!

@IvanYashchuk @beverlylytle, would you like to review this?

Copy link
Collaborator

@beverlylytle beverlylytle left a comment

Choose a reason for hiding this comment

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

🎉

Copy link
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Cool! Let's get issues filed for the xfails, too

@mruberry mruberry merged commit 198f492 into main Jun 3, 2025
52 checks passed
@mruberry mruberry deleted the check_consistency_of_compile_and_runtime branch June 3, 2025 16:23
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.

5 participants