-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stablehlo_legalize_to_vhlo.0_19_0.mlir bytecode (#2077)
Also, use same header in all tests, and avoid command substitutions since they don't work on Windows: #1764 ### Why does `0_19_0` have a different header? I followed the instructions in https://github.com/openxla/stablehlo/blob/main/docs/vhlo.md, except for the part that says `Replace RUN commands`. That is, I copied `stablehlo_legalize_to_vhlo.mlir`, but I forgot to update the RUN commands to match the other versioned tests. IMO, we should avoid duplicating the RUN commands across tests and documentation, better to just instruct developers to copy the latest versioned test and add their tests in there. ### Why was the bytecode incorrect? I serialized the bytecode a while ago. During review, I ended up changing the order of some attributes, which caused the bytecode to be invalid (e.g. the `name` attribute showed up where `composite_attributes` should be).
- Loading branch information
mlevesquedion
authored
Mar 7, 2024
1 parent
d85ebed
commit 6909631
Showing
13 changed files
with
74 additions
and
33 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
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
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
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
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
12 changes: 6 additions & 6 deletions
12
stablehlo/tests/vhlo/stablehlo_legalize_to_vhlo.0_19_0.mlir
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
Binary file modified
BIN
-7.79 KB
(69%)
stablehlo/tests/vhlo/stablehlo_legalize_to_vhlo.0_19_0.mlir.bc
Binary file not shown.
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