Created by: guoshengCS
Bug fixes
APIs
[cherry-pick 2.0-beta] Update some used apis in Transformer apis to 2.0 apis. (#26831)