Commit 58143d36 authored by Justin Lebar's avatar Justin Lebar Committed by TensorFlower Gardener
Browse files

[XLA] Add dead tuple elem removal to WhileLoopSimplifier.

Specifically, if a while loop has tuple element that

 - is not used by the while condition, and
 - is not used by the while body, except to pass it along to the next
   iteration of the loop,

then we can reshape the while loop's computations to eliminate this
tuple element.

PiperOrigin-RevId: 174413683
parent 02608ead
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment