-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API Compatibility] Add nn.Constant/Reflection/Replication/Circular Pad layers #76136
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
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #76136 +/- ##
==========================================
Coverage ? 97.22%
==========================================
Files ? 2
Lines ? 72
Branches ? 0
==========================================
Hits ? 70
Misses ? 2
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/re-run all-failed |
| from .utils.spectral_norm_hook import spectral_norm # noqa: F401 | ||
|
|
||
| SiLU = Silu | ||
| ReflectionPad1d = ReflectionPad1D |
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.
你也可以conv2d=Conv2D那些也挪出来,统一放一个位置。
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.
Done
python/paddle/nn/layer/common.py
Outdated
| return f'padding={self.padding}, value={self.value}, data_format={self._data_format}{name_str}' | ||
|
|
||
|
|
||
| class ReplicationPad1D(Layer): |
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.
1D是不是可以都继承下class PadD
2D都继承Pad2D
3D都继承Pad3D
增加代码复用,减少维护成本。
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.
Done.
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 |
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
|
@SigureMo 求 Review ~ |
Co-authored-by: Nyakku Shigure <[email protected]>
|
/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
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 for skip
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
…ad layers (PaddlePaddle#76136) * Add nn.Constant/Reflection/Replication Pad layers * Refine on comment: Rename 1d/2d/3d to 1D2D3D * Fix sample code * Fix test error * Rerun CI * Refactor pad layers * Fix zeropad test * Fix unittest * Add CircularPad1D/2D/3D * Add CircularPad1D/2D/3D * Skip circular pad 3d test on xpu * Skip circular pad ut on XPU * correct return type of _npairs * correct return type of _npairs with concrete type Co-authored-by: Nyakku Shigure <[email protected]> --------- Co-authored-by: Nyakku Shigure <[email protected]>


PR Category
User Experience
PR Types
New features
Description
PaConvert 测试: