Created by: wangchaochaohu
Bug fixes
APIs
cherry-pick https://github.com/PaddlePaddle/Paddle/pull/27085