Skip to content

[API Compatibility No.185] Update docs for paddle.nn.functional.mish alias#7825

Merged
luotao1 merged 2 commits intoPaddlePaddle:developfrom
Aidenwu0209:api-compat-185-mish
Mar 16, 2026
Merged

[API Compatibility No.185] Update docs for paddle.nn.functional.mish alias#7825
luotao1 merged 2 commits intoPaddlePaddle:developfrom
Aidenwu0209:api-compat-185-mish

Conversation

@Aidenwu0209
Copy link
Contributor

@Aidenwu0209 Aidenwu0209 commented Mar 3, 2026

PR Category

User Experience

PR Types

New features

Description

Update documentation for paddle.nn.functional.mish to reflect the new input parameter alias support.

Changes:

  • Add alias note (别名支持: 参数名 input 可替代 x) in mish_cn.rst
  • Delete torch.nn.functional.mish.md API difference file, since Paddle now fully supports both the input alias and inplace parameter, matching PyTorch API

Related Paddle PR: PaddlePaddle/Paddle#77923
Related PaConvert PR: PaddlePaddle/PaConvert#838

Test plan

  • Verify rst renders correctly with alias note

…alias

- Add alias note for 'input' parameter in mish_cn.rst
- Delete API difference file since paddle.nn.functional.mish now fully
  supports both 'input' alias and 'inplace' parameter, matching PyTorch API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@paddle-bot
Copy link

paddle-bot bot commented Mar 3, 2026

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

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

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


.. py:function:: paddle.nn.functional.mish(x, name=None)

.. note::
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Aidenwu0209 Aidenwu0209 requested a review from zhwesky2010 March 15, 2026 15:14
@luotao1 luotao1 merged commit f1062ce into PaddlePaddle:develop Mar 16, 2026
5 checks passed
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