forked from tensorflow/tensorflow
-
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.
[XLA] Avoid implicit layout change for non-layout-changing instructions.
Add routine InstructionRequiresInputLayoutEqualToOutputLayout to layout assignment and use it to decide whether the output layout of an instruction need to be propagated to the operands of the instruction during layout assignment. This also fixes the performance issue exposed in b/112646847 where a kSlice instruction with implicit layout change is fused to a multiple output fusion for reduction and causes memory throttle. Add test cases. PiperOrigin-RevId: 210622658
- Loading branch information
1 parent
6729cd7
commit bf7b20e
Showing
3 changed files
with
227 additions
and
10 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