Skip to content
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

[xdoctest] reformat example code with google style No.186-190 #56166

Merged
merged 15 commits into from
Aug 22, 2023

Conversation

PommesPeter
Copy link
Contributor

@PommesPeter PommesPeter commented Aug 10, 2023

PR types

Others

PR changes

Others

Description

修改如下文件的示例代码,使其通过 xdoctest 检查:

  • ./python/paddle/distributed/auto_parallel/static/engine.py
  • ./python/paddle/distributed/auto_parallel/static/process_mesh_v2.py
  • ./python/paddle/distributed/auto_parallel/static/utils.py
  • ./python/paddle/distributed/auto_parallel/strategy.py
  • ./python/paddle/distributed/collective.py

预览:

en: http://preview-paddle-pr-56166.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/en/api/paddle/abs_en.html
zh: http://preview-paddle-pr-56166.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/abs_cn.html

关联 PR:

@sunzhongkai588 @SigureMo @megemini

@paddle-bot paddle-bot bot added the contributor External developers label Aug 10, 2023
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Aug 11, 2023
python/paddle/distributed/collective.py Outdated Show resolved Hide resolved
python/paddle/distributed/collective.py Outdated Show resolved Hide resolved
python/paddle/distributed/collective.py Show resolved Hide resolved
python/paddle/distributed/auto_parallel/static/utils.py Outdated Show resolved Hide resolved
python/paddle/distributed/auto_parallel/static/utils.py Outdated Show resolved Hide resolved
@SigureMo
Copy link
Member

@megemini 这个 PR 还有什么问题不?我扫了一下好像没啥问题了?

@megemini
Copy link
Contributor

@megemini 这个 PR 还有什么问题不?我扫了一下好像没啥问题了?

有一个 fluid ,直接改掉吧,应该没啥问题了 ~

Copy link
Contributor

@megemini megemini 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 17d6da6 into PaddlePaddle:develop Aug 22, 2023
BeingGod pushed a commit to BeingGod/Paddle that referenced this pull request Sep 9, 2023
…Paddle#56166)

* fix: updated code examples.

* fix: added paddle.seed

* fix: updated code style

* Apply suggestions from code review

* refactor: refine detail of code examples

* Update python/paddle/distributed/auto_parallel/static/process_mesh_v2.py

* fix: refine detail

* fix: refine detail

* Update python/paddle/distributed/auto_parallel/static/process_mesh_v2.py

Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>

* refactor: refine detail

* refactor: refine detail

* fix: refine doc

---------

Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants