Commit 3bfbcb2a authored by Bixia Zheng's avatar Bixia Zheng Committed by TensorFlower Gardener
Browse files

[XLA] Fix algebraic simplifier to handle instruction without layout when

transforming A / Const to A * (1 / Const).

If the instruction that contains the constant value doesn't have a layout,
algebraic simplifier crashes when creating the inverse of the constant value.
The change is to always use the shape of the literal to create the new value.

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