-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug with stablehlo canonicalizer which reordered operations that …
…had more than one use. (#14599) The previously-added canonicalizer would reorder unary elementwise operations even when the first operation in the swap had other uses. The swap should only be applied when the elementwise op is the only user of the shape operation (since it may change the value/type of the result).
- Loading branch information
1 parent
4efb894
commit a62652e
Showing
2 changed files
with
25 additions
and
3 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