Skip to content

[API Compatibility No.114] update torch.masked_fill docs for input kwarg compatibility -part#7753

Open
Aidenwu0209 wants to merge 3 commits intoPaddlePaddle:developfrom
Aidenwu0209:api-compat-no114-masked-fill-docs-part
Open

[API Compatibility No.114] update torch.masked_fill docs for input kwarg compatibility -part#7753
Aidenwu0209 wants to merge 3 commits intoPaddlePaddle:developfrom
Aidenwu0209:api-compat-no114-masked-fill-docs-part

Conversation

@Aidenwu0209
Copy link
Contributor

PR Category

User Experience

PR Types

New features

Description

  • Update torch.masked_fill conversion doc to reflect latest compatibility.
  • Clarify that Paddle supports both x= and torch-style input= keyword usage.
  • Keep parameter mapping notes consistent with current behavior.

Related PRs

@paddle-bot
Copy link

paddle-bot bot commented Feb 15, 2026

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

@github-actions
Copy link

github-actions bot commented Feb 27, 2026

📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。

- Revert category from invalid "参数名兼容" to valid "仅参数名不一致"
- Fix PaddlePaddle param column from "x / input" to "x" (matches signature)
- Keep input kwarg compatibility info in remarks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

需要修改的是masked_fill_cn.rst这个文档

Copy link
Collaborator

Choose a reason for hiding this comment

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

如果完全对齐了,直接删掉这个api_difference文档。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改,删除了 api_difference 文档,改为更新 masked_fill_cn.rst 添加 input 别名关键字参数的说明。

…n.rst

Per reviewer feedback:
- Remove torch.masked_fill.md since API params are now fully aligned
- Update masked_fill_cn.rst to document `input` as alias for `x` kwarg

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

4 participants