Skip to content

Conversation

zhiminzhang0830
Copy link
Contributor

@zhiminzhang0830 zhiminzhang0830 commented Aug 13, 2025

Copy link

paddle-bot bot commented Aug 13, 2025

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

@zhiminzhang0830 zhiminzhang0830 changed the title add paddle.nn.init.* [API Compatibility] add paddle.nn.init.* Sep 1, 2025
Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

  • 感觉都放在一个文档里会有点奇怪,可以单独穿件一个 init 文件夹,然后把每个 init.* 下的 API 文档分别加到该目录下,参考 paddle.nn.function。
  • 另外问一下,这个和 paddle.nn.initializer 有什么区别?

@zhiminzhang0830
Copy link
Contributor Author

  • 感觉都放在一个文档里会有点奇怪,可以单独穿件一个 init 文件夹,然后把每个 init.* 下的 API 文档分别加到该目录下,参考 paddle.nn.function。
  • 另外问一下,这个和 paddle.nn.initializer 有什么区别?
  1. 已修改,辛苦review;
  2. nn.init是nn.initializer的函数形式;

Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

在 paddle.nn 的 overview 里加一下相关描述

@@ -0,0 +1,14 @@
.. _cn_api_paddle_nn_init_constant_:

constant_
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
constant_
constant\_

@@ -0,0 +1,14 @@
.. _cn_api_paddle_nn_init_dirac_:

dirac_
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
dirac_
dirac\_

@zhiminzhang0830
Copy link
Contributor Author

在 paddle.nn 的 overview 里加一下相关描述

已添加

@sunzhongkai588 sunzhongkai588 merged commit 598deb3 into PaddlePaddle:develop Sep 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants