[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
Loading
Please sign in to comment