Skip to content

[Docathon][Update Doc No.10] Update program.rst #7298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

QuarryFlow
Copy link
Contributor

增强了 Program、Block、Operator、Variable 和 Name 的描述,解释了 Program 和 Block 的执行结构,以及 Tensor 操作和变量的创建。更新了 Fluid 中层、权重和偏置的命名规则,明确了通过 name 参数和 ParamAttr 来控制命名。删除了过时的示例代码和冗余的命名规则描述。
PaddlePaddle/Paddle#71203
@DrRyanHuang @sunzhongkai588 Thx!

Copy link

paddle-bot bot commented May 3, 2025

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

Copy link
Collaborator

@DrRyanHuang DrRyanHuang left a comment

Choose a reason for hiding this comment

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

辛苦同学查看 preview 修复文档的 rst 语法内容

* 在 Fluid 中,Block 内部执行顺序由控制流决定,如 :ref:`cn_api_fluid_layers_IfElse` , :ref:`cn_api_fluid_layers_While`, :ref:`cn_api_fluid_layers_Switch` 等,更多内容可参考: :ref:`api_guide_control_flow`
* 用户定义的神经网络由 :ref:`cn_api_fluid_Program` 构建。通常一个训练流程中涉及多个 :code:`Program`,如参数初始化用、训练用、测试用等;
* 使用 :ref:`cn_api_fluid_program_guard` 配合 :code:`with` 语句,可对默认的 :ref:`cn_api_fluid_default_startup_program` 和 :ref:`cn_api_fluid_default_main_program` 进行切换;
* 在 Fluid 中,控制流执行顺序通过以下 API 实现:
Copy link
Collaborator

Choose a reason for hiding this comment

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

辛苦同学删除文档中所有 Fluid 相关的内容

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