Skip to content

新增MultiLabelMarginLoss #7331

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Qin-sx
Copy link
Contributor

@Qin-sx Qin-sx commented Jun 23, 2025

No description provided.

	new file:   docs/api/paddle/nn/MultiLabelMarginLoss_cn
	modified:   docs/api/paddle/nn/Overview_cn.rst
	new file:   docs/api/paddle/nn/functional/multi_label_margin_loss_cn.rst
	new file:   docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.multilabel_margin_loss.md
	new file:   docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MultiLabelMarginLoss.md
Copy link

paddle-bot bot commented Jun 23, 2025

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7331.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pytorch_api_mapping_cn.md中标记了这两个API属于功能缺失(未实现),需要删除掉

infoflow 2025-07-09 12-14-04

| size_average | - | PyTorch 已弃用, Paddle 无此参数,需要转写。 |
| reduce | - | PyTorch 已弃用, Paddle 无此参数,需要转写。 |
| reduction | reduction | 指定应用于输出结果的计算方式。 |
| - | name | Paddle 支持的操作名称,PyTorch 无此参数。 |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 name 参数统一不用管

| size_average | - | 已废弃,和 reduce 组合决定损失计算方式。 |
| reduce | - | 已废弃,和 size_average 组合决定损失计算方式。 |
| reduction | reduction | 指定应用于输出结果的计算方式。 |
| - | name | Paddle 支持的操作名称,PyTorch 无此参数。 |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 name 参数统一不用管

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants