[XLA] Run ZeroSizedHloElimination after BatchNormExpander.
BatchNormExpander can create zero-sized HLOs even if it's run after ZeroSizedHloElimination. For example, you might have a BatchNormTraining op with shape (f32[0, 10], f32[10], f32[10]). This won't be eliminated by ZeroSizedHloElimination, but when it's decomposed, it will result in many zero-sized HLOs. PiperOrigin-RevId: 179885417
Loading
Please sign in to comment