Modify the implementation of BlockXReduce to fit more scenes (#39554)
Modify the implementation of BlockXReduce to fit more scenes (#39554)

* Modify the implementation of BlockYReduce to fit more scenes

* fix

* fix
PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle