-
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
[PaddleHackathon No.14] #41183
[PaddleHackathon No.14] #41183
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
在PR被review前请先通过CI噢~ |
Sorry to inform you that e2763d5's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
PR格式检查通过,你的PR将接受Paddle专家以及开源社区的review,请及时关注PR动态。 |
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.
主要问题:
- 两个单测文件要去掉,如果没修改的话。
- 尽量将paddle.fluid改为paddle.static
python/paddle/fluid/tests/unittests/test_quantile_and_nanquantile.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/test_multilabel_margin_loss.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/test_multilabel_margin_loss.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/test_multilabel_margin_loss.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/test_multilabel_margin_loss.py
Outdated
Show resolved
Hide resolved
|
||
places = [fluid.CPUPlace()] | ||
if fluid.core.is_compiled_with_cuda(): | ||
places.append(fluid.CUDAPlace(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.
看能否改为 paddle.static.cpu_places()
和 paddle.static.cuda_places(0)
python/paddle/nn/layer/loss.py
Outdated
return F.multi_label_soft_margin_loss( | ||
input, | ||
label, | ||
reduction=self.reduction, |
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.
这里建议严谨一点, weight 在前,reduction 在后吧
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
@yangguohao 请解决一下 Code Style 问题 |
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
code is fine, but in RFC the description of parameters of |
* 2022-04-28 * 2022-05-04 * 2022-05-05_V1 * 2022-05-05_V1 * Update loss.py * Update loss.py * 2022-06-01_hook * 2022-06-05 * 2022-06-07 * 2022-06-07_V2 * 2022-06-07_V2 * 2022-06-17_codestyle
PR types
New features
PR changes
APIs
Describe
解决了issues:#40319
添加了paddle.nn.MultiLabelSoftMarginLoss以及paddle.nn.functional.multi_label_soft_margin_loss的函数
设计文档:PaddlePaddle/community#53
中文文档PR链接:PaddlePaddle/docs#4651