Skip to content

Conversation

@enkilee
Copy link
Contributor

@enkilee enkilee commented Aug 26, 2022

fix call and 控制流转写的links

fix __call__ and 控制流转写的links
@CLAassistant
Copy link

CLAassistant commented Aug 26, 2022

CLA assistant check
All committers have signed the CLA.

@paddle-bot
Copy link

paddle-bot bot commented Aug 26, 2022

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

## 八、再谈控制流

前面[【控制流转写】(./basic_usage_cn.html#sikongzhiliuzhuanxie)]提到,不论控制流 ``if/for/while`` 语句是否需要转为静态图中的 ``cond_op/while_op`` ,都会先进行代码规范化,如 ``IfElse`` 语句会规范为如下范式:
前面[【控制流转写】](./basic_usage_cn.html#sikongzhiliuzhuanxie)提到,不论控制流 ``if/for/while`` 语句是否需要转为静态图中的 ``cond_op/while_op`` ,都会先进行代码规范化,如 ``IfElse`` 语句会规范为如下范式:
Copy link
Collaborator

Choose a reason for hiding this comment

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

此链接bug已有用户提交pr修复,但链接地址好像不正确./basic_usage_cn.html#sikongzhiliuzhuanxie无控制流转写的文档。
文档在./principle_cn.html#kongzhiliuzhuanxie,麻烦确认。#5207 好像有对这个问题的修复

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@momozi1996 momozi1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 0ae4346 into PaddlePaddle:develop Nov 1, 2022
sunzhongkai588 added a commit to sunzhongkai588/docs that referenced this pull request Nov 2, 2022
fix __call__ and 控制流转写的links

Co-authored-by: zachary sun <[email protected]>
jzhang533 pushed a commit to sunzhongkai588/docs that referenced this pull request Nov 3, 2022
fix __call__ and 控制流转写的links

Co-authored-by: zachary sun <[email protected]>
sunzhongkai588 added a commit to sunzhongkai588/docs that referenced this pull request Nov 3, 2022
fix __call__ and 控制流转写的links

Co-authored-by: zachary sun <[email protected]>
jzhang533 pushed a commit that referenced this pull request Nov 3, 2022
* fix some word errors (#5383)

fix some word errors

* Update case_analysis_cn.md (#5210)

fix __call__ and 控制流转写的links

Co-authored-by: zachary sun <[email protected]>

* fix error add links (#5386)

fix error add links

* fix method parameters in guidelines (#5284)

* fix paddle.dist,paddle.roll,paddle.nonzero  (#5365)

* Update dist_cn.rst

把参数从:改成正确的-

* Update dist_cn.rst

* Update roll_cn.rst

* Update nonzero_cn.rst

* fix paddle.meshgrid文档评估 #4417内的标点问题

* Update meshgrid_cn.rst

* Update docs/api/paddle/dist_cn.rst

Co-authored-by: 张春乔 <[email protected]>

* Update docs/api/paddle/nonzero_cn.rst

Co-authored-by: 张春乔 <[email protected]>

* help

* Update nonzero_cn.rst

* Update matmul_cn.rst

Co-authored-by: Ligoml <[email protected]>
Co-authored-by: 张春乔 <[email protected]>

* xpu update (#5372)

* [docs] fix paddle.CUDAPlace Parameter error (#5261)

* rm unnecessary pronouns

* Update basic_usage_cn.md

* rm Macos GPU docker

* Update macos-docker_en.md

* Update macos-docker.md

* rm unnecessary pronouns

* Update grammar_list_cn.md

* fix format

* Update case_analysis_cn.md

* add GPU architecture comparison table link

* Update windows-pip.md

* Update windows-pip_en.md

* Update linux-pip.md

* Update linux-pip_en.md

* fix format docs

* fix url lose

* [docs] fix paddle.CUDAPlace Parameter error

* Update CUDAPlace_cn.rst

* [docs] fix Synchronous English documentation

* Update take_along_axis_cn.rst

* [dosc] Supplementary index description:

* ipu_shard_guard_cn.rst

* set_ipu_shard_cn.rst

Modify note Format:

* mlu_places_cn.rst

* [docs] fix note、returns format

* fix put_along_axis_cn.rst returns format

* fix ipu_shard_guard_cn.rst note format

* fix mlu_places_cn.rst note format

* fix set_ipu_shard_cn.rst note format

* fix url change (#5347)

Co-authored-by: Infinity_lee <[email protected]>
Co-authored-by: Nyakku Shigure <[email protected]>
Co-authored-by: 超级码牛 <[email protected]>
Co-authored-by: Ligoml <[email protected]>
Co-authored-by: 张春乔 <[email protected]>
Co-authored-by: Amberain <[email protected]>
Co-authored-by: gouzil <[email protected]>
Co-authored-by: PuQing <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants