Created by: grygielski
Bug fixes
OPs
Cherry-pick of https://github.com/PaddlePaddle/Paddle/pull/25137