PR #13392: Remove Redundant Shape Comparison in Norm Rewriter
PR #13392: Remove Redundant Shape Comparison in Norm Rewriter

Imported from GitHub PR https://github.com/openxla/xla/pull/13392

Removes a superfluous comparison of the shapes of the input and scale when matching and rewriting layer norm patterns.
Copybara import of the project:

--
f126d2a142015f2b36d8845bdfc991d1302aa57c by Philipp Hack <phack@nvidia.com>:

Removes a redundant shape comparison in the norm rewriter.

Merging this change closes #13392

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/13392 from philipphack:u_layer_shape_xla f126d2a142015f2b36d8845bdfc991d1302aa57c
