-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API compatibility] add tril and triu out parameter #74624
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 tril and triu out parameter #74624
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/tensor/creation.py
Outdated
| diagonal: int = 0, | ||
| *, | ||
| out: paddle.Tensor | None = None, | ||
| name: str | None = None, |
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.
新增指定关键字参数时,name就不动位置了
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.
是把*out放在name后面吗
python/paddle/tensor/creation.py
Outdated
| def triu( | ||
| x: paddle.Tensor, diagonal: int = 0, name: str | None = None | ||
| x: paddle.Tensor, | ||
| diagonal: int = 0, |
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.
同上
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #74624 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 2
Lines ? 3
Branches ? 0
===========================================
Hits ? 3
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
方案2:名称不同的地方。这个也需要下沉到C++
zhwesky2010
left a comment
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 |
|
/re-run all-failed |
|
/re-run all-failed |
1 similar comment
|
/re-run all-failed |
|
/re-run all-failed |
DanielSun11
left a comment
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.
|
/re-run all-failed |
|
/re-run all-failed |
1 similar comment
|
/re-run all-failed |
|
/re-run all-failed |
1 similar comment
|
/re-run all-failed |
zhwesky2010
left a comment
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
DanielSun11
left a comment
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
XiaoguangHu01
left a comment
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
* add tril and triu out parameter * change the place of parameter name and out * tril and triu api sink into C++ * add import tril and triu * fix testcase * fix testcase * fix testcase * fix testcase * change position * add compatibility test for tril and triu * fix conflict * fix testcase
PR Category
User ExperiencePR Types
New featuresDescription
add out parameter for tril and triu api