[XLA] Fix AlgebraicSimplifier to handle reshape instructions without layouts.
The AlgebraicSimplifier pass is run before layout assignment and may encounter instructions without layouts. Fix the pass to use a default layout to create the resulting literal when handling a reshape instruction without a layout. Add a test case. PiperOrigin-RevId: 231844361
Loading
Please sign in to comment