Skip to content

Commit 24fde26

Browse files
authored
Add paddle.distributed dir and docs (#2482)
* add distributed dir and doc * remove start_processes & move DataParallel * add get rank and world size * add cn docs * add index to distributed_cn * add white list api * add api white list * add cn to api name * polish details * add rst suffix * add py function
1 parent b9be73f commit 24fde26

19 files changed

+462
-100
lines changed

doc/fluid/api/distributed.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
==================
2+
paddle.distributed
3+
==================
4+
5+
.. toctree::
6+
:maxdepth: 1
7+
8+
distributed/get_rank.rst
9+
distributed/get_world_size.rst
10+
distributed/init_parallel_env.rst
11+
distributed/ParallelEnv.rst
12+
distributed/prepare_context.rst
13+
distributed/spawn.rst
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. _api_distributed_ParallelEnv:
2+
3+
ParallelEnv
4+
-------------------------------
5+
:doc_source: paddle.fluid.dygraph.parallel.ParallelEnv
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
2+
!DO NOT EDIT THIS FILE MANUALLY!
3+
4+
.. _api_distributed_get_rank:
5+
6+
get_rank
7+
--------
8+
9+
.. autofunction:: paddle.distributed.get_rank
10+
:noindex:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
2+
!DO NOT EDIT THIS FILE MANUALLY!
3+
4+
.. _api_distributed_get_world_size:
5+
6+
get_world_size
7+
--------------
8+
9+
.. autofunction:: paddle.distributed.get_world_size
10+
:noindex:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
2+
!DO NOT EDIT THIS FILE MANUALLY!
3+
4+
.. _api_distributed_init_parallel_env:
5+
6+
init_parallel_env
7+
-----------------
8+
9+
.. autofunction:: paddle.distributed.init_parallel_env
10+
:noindex:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. _api_distributed_prepare_context:
2+
3+
prepare_context
4+
-------------------------------
5+
:doc_source: paddle.fluid.dygraph.parallel.prepare_context
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
2+
!DO NOT EDIT THIS FILE MANUALLY!
3+
4+
.. _api_distributed_spawn:
5+
6+
spawn
7+
-----
8+
9+
.. autofunction:: paddle.distributed.spawn
10+
:noindex:

doc/fluid/api/index_en.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ API Reference
88
../api_guides/index_en.rst
99
dataset.rst
1010
declarative.rst
11+
distributed.rst
1112
framework.rst
1213
imperative.rst
1314
io.rst

doc/fluid/api/paddle.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ paddle
3737
paddle/CUDAPinnedPlace.rst
3838
paddle/CUDAPlace.rst
3939
paddle/cumsum.rst
40+
paddle/DataParallel.rst
4041
paddle/default_main_program.rst
4142
paddle/default_startup_program.rst
4243
paddle/diag.rst
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. _api_paddle_DataParallel:
2+
3+
DataParallel
4+
-------------------------------
5+
:doc_source: paddle.fluid.dygraph.parallel.DataParallel
6+
7+

0 commit comments

Comments
 (0)