[TF2XLA] Use xla::GetDimensionSize in reduce_mean.
In the future when XLA has dynamic shapes, the MeanOp needs to divide the real dimension size. [XLA] Add a HloGetDimensionSizeRewritter pass which converts a GetDimensionSize op into a Constant. The lowering of GetDimensionSize is not yet implemented on any platforms. So add a pass that replaces it with Constant. PiperOrigin-RevId: 222144256
Loading
Please sign in to comment