-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[API Compatibility] Add view_as_complex and view_as_real APIs #74466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API Compatibility] Add view_as_complex and view_as_real APIs #74466
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #74466 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 1
Lines ? 4
Branches ? 0
===========================================
Hits ? 4
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
/re-run all-failed |
e040057
to
9770619
Compare
9770619
to
17c568a
Compare
/re-run all-failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/rerun all-failed |
/re-run all-failed |
1 similar comment
/re-run all-failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/re-run all-failed |
PR Category
User Experience
PR Types
New features
Description
新增 view_as_complex 和 view_as_real 两个 API。二者参数与 torch 一致,并将 input 转发到 as_complex 和 as_real。在框架默认开启 Stride 机制的情况下,将返回输入 Tensor 的 view。
PaConvert:PaddlePaddle/PaConvert#618
Docs:PaddlePaddle/docs#7377