Commit f1e596e7 authored by Jacques Pienaar's avatar Jacques Pienaar Committed by TensorFlower Gardener
Browse files

Remove code that is no longer valid post change away from lowering to while loops.

When if op was lowered via while loops, the inputs and outputs matched. When
changed to the conditional this no longer holds. Resource variables are appended
at the end of the inputs & outputs, use the count of resource variables in the
input to identify the outputs due to resource variables.

This still requires that all the variables are last in the input to the op and that every variable read/written to is an output of the if.

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