Skip to content

fix: torch.dropout与 paddle.nn.functional.dropout的映射关系有问题#7877

Closed
JiwaniZakir wants to merge 1 commit intoPaddlePaddle:developfrom
JiwaniZakir:torch-dropout与-paddle-functional-7328

Hidden character warning

The head ref may contain hidden characters: "torch-dropout\u4e0e-paddle-functional-7328"
Closed

fix: torch.dropout与 paddle.nn.functional.dropout的映射关系有问题#7877
JiwaniZakir wants to merge 1 commit intoPaddlePaddle:developfrom
JiwaniZakir:torch-dropout与-paddle-functional-7328

Conversation

@JiwaniZakir
Copy link

Fixes #7328

The mapping document torch.dropout.md incorrectly classified torch.dropout and paddle.nn.functional.dropout as having only parameter name differences, when the two APIs have broader functional and behavioral differences that cannot be accurately described by this simplified mapping. Removes the incorrect file from docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/ to prevent users from following misleading migration guidance.

Copilot AI review requested due to automatic review settings March 19, 2026 20:10
@paddle-bot
Copy link

paddle-bot bot commented Mar 19, 2026

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

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

该 PR 修正文档中关于 torch.dropoutpaddle.nn.functional.dropout 的错误映射说明:原文档将两者误归类为“仅参数名不一致”,但实际上两者在 API 属性/语义层面存在更大差异,继续保留会误导迁移用户,因此直接移除该映射文档以避免错误指引。

Changes:

  • 删除错误的映射文档 torch.dropout.md(原放置在 args_name_diff/ 分类下),避免用户按错误结论进行迁移。

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Mar 20, 2026
@luotao1
Copy link
Collaborator

luotao1 commented Mar 20, 2026

Please sign the CLA.

@zhwesky2010
Copy link
Collaborator

zhwesky2010 commented Mar 24, 2026

无需修改,目前torch.dropoutpaddle.nn.functional.dropout两者用法存在不一致,需保留映射文档。可尝试对齐两者用法后,再删除文档。

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.

torch.dropout与 paddle.nn.functional.dropout的映射关系有问题

5 participants