Skip to content

[API Compatibility No.188] Update nll_loss docs for target alias support -part#7841

Open
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:developfrom
Aidenwu0209:api-compat-no188-nll-loss-docs-part
Open

[API Compatibility No.188] Update nll_loss docs for target alias support -part#7841
Aidenwu0209 wants to merge 1 commit intoPaddlePaddle:developfrom
Aidenwu0209:api-compat-no188-nll-loss-docs-part

Conversation

@Aidenwu0209
Copy link
Contributor

Summary

  • Update nll_loss_cn.rst: add alias annotation 别名:``target``` for label`.
  • Update torch.nn.functional.nll_loss.md: in parameter mapping, clarify Paddle also supports target.

Related PRs

PR Category

User Experience

PR Types

New features

@paddle-bot
Copy link

paddle-bot bot commented Mar 5, 2026

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

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。
  • docs/api/paddle/nn/functional/nll_loss_cn.rst: 点击预览
  • docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.nll_loss.md: 点击预览

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

Labels

contributor HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants