-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API compatibility] support inplace and input parameter for silu api #74788
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] support inplace and input parameter for silu api #74788
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/nn/layer/activation.py
Outdated
| def extra_repr(self) -> str: | ||
| name_str = f'name={self._name}' if self._name else '' | ||
| return name_str | ||
| name_str = f', name={self._name}' if self._name else '' |
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.
这个inplace直接填到上面字符串里去吧
| y_ref = silu(x) | ||
|
|
||
| place = base.CPUPlace() | ||
| with dg.guard(place) as g: |
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.
PIR下也需要测试一下,这个分支有可能跑不过
|
/re-run all-failed |
|
/re-run all-failed |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (88.88%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #74788 +/- ##
==========================================
Coverage ? 88.88%
==========================================
Files ? 3
Lines ? 9
Branches ? 0
==========================================
Hits ? 8
Misses ? 1
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/re-run all-failed |
|
/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
|
/re-run all-failed |
|
/re-run all-failed |
2 similar comments
|
/re-run all-failed |
|
/re-run all-failed |
|
/re-run all-failed |
c924834
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
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
|
/re-run all-failed |
|
/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.
加下PIR的测试case吧
3fffaab
|
/re-run all-failed |
|
/re-run all-failed |
1 similar comment
|
/re-run all-failed |
|
/re-run all-failed |
PR Category
User ExperiencePR Types
New featuresDescription
support
_C_ops.silu_andinplaceparameter for nn.functional.silusupport
inplaceparameter for nn.Silusupport
inputparameter for nn.functional.silu