forked from openxla/stablehlo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure result shape is static before folding (openxla#2279)
Added test case which crashes before this change due to pattern application order. There's probably some overly safe checks here (like checking that ops which cannot have dynamic output shapes - broadcast_in_dim / get_dimension_size) but there's no harm, and its safer if we ever add any additional constraints on result types that can be folded in the future.
- Loading branch information
Showing
2 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters