-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A couple of changes from the original change: 1. Don't use HloInstruction::operand_index() - this only returns the *first* occurence of an instruction in the operand sequence, thus if the same instruction is used in place of multiple orepards, we'll miss the subsequent ones. 2. Handle propagating throught root instructions better. We originally only fixed up entry computation roots but we need should the same for any while/conditional root, otherwise inserting tokens in these types of roots is non-trivial. Simplify things by explicitly disjoining these instructions from being roots during canonicalization. Reverts 1162b7e PiperOrigin-RevId: 677963786
- Loading branch information
1 parent
90693a5
commit a141e1d
Showing
7 changed files
with
1,228 additions
and
6 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
Oops, something went wrong.