-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
reimplement ResNeXt based on ResNet #40588
reimplement ResNeXt based on ResNet #40588
Conversation
Thanks for your contribution! |
PR格式检查通过,你的PR将接受Paddle专家以及开源社区的review,请及时关注PR动态。 |
CI显示示例代码有问题~ @SigureMo |
Sorry to inform you that dcf312d's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
dcf312d
to
9e11b17
Compare
|
||
""" | ||
|
||
def __init__(self, | ||
block, | ||
depth=50, | ||
width=64, |
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.
这里造成了ResNet API的不兼容,
- width 替换成width_per_group的原因式什么?
- groups=1 新增参数放到最后,确保兼容
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.
这里width的名称要不就不改变吧,在文档中说明清楚。兼容性比较重要
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.
好的好的,我去修改一下
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
* refactor resnext
PR types
Breaking changes
PR changes
APIs
Describe
通过复用 ResNet 结构来重新实现 ResNeXt,避免额外在 resnext.py 实现一遍相似的结构。
API changes