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

Add helper to verify output shape matches result type #2269

Conversation

mlevesquedion
Copy link
Contributor

And use the helper to verify shape operands in DynamicBroadcastInDim, DynamicIota and DynamicReshape.

Also, reorganize the isCompatibleForHloTypeInference logic a little bit to avoid duplication.

This is a follow-up/generalization of #2264.

And use the helper to verify shape operands in DynamicBroadcastInDim,
DynamicIota and DynamicReshape.

Also, reorganize the isCompatibleForHloTypeInference logic a little bit
to avoid duplication.
Copy link
Member

@ghpvnist ghpvnist left a comment

Choose a reason for hiding this comment

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

LGTM with few comments.

stablehlo/dialect/TypeInference.cpp Outdated Show resolved Hide resolved
stablehlo/tests/ops_stablehlo.mlir Outdated Show resolved Hide resolved
@ghpvnist ghpvnist assigned mlevesquedion and unassigned ghpvnist and abhigunj May 3, 2024
@mlevesquedion mlevesquedion merged commit ab92ade into openxla:main May 3, 2024
10 checks passed
@mlevesquedion mlevesquedion deleted the always-print-output-shapes-when-mismatch branch May 3, 2024 22:29
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.

3 participants