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

Lower FakeParamOp to appropriately sized zeros output.

FakeParamOp is used in CondV2 to signify a value that is defined along one
branch but not the other. These values should only be used along the
corresponding branch. For the lowering to XLA create a zero output of the
appropriate shape and type for the FakeParam (the value should never be used,
so any value could be set, zero is convenient).

This could be extended in future to instead be a dead value so that additional
verification could be done post lowering.

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