forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XLA] Fix big memory allocation and compile time slowdown for WhileLo…
…opInvariantCodeMotion. The pass allocates in some cases the input for the while-cond computation, but it really only needs one of the tuple elements of the parameter, not the whole tuple. Allocating the whole tuple (because the inputs to the loop can be big) can result in very large memory allocations an significant time spent on memory allocation/initialization. PiperOrigin-RevId: 567543997
- Loading branch information
1 parent
41154a6
commit 2635d85
Showing
2 changed files
with
19 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