Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
FluidDoc
提交
e7b7be82
F
FluidDoc
项目概览
PaddlePaddle
/
FluidDoc
通知
5
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
23
列表
看板
标记
里程碑
合并请求
111
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FluidDoc
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
23
Issue
23
列表
看板
标记
里程碑
合并请求
111
合并请求
111
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e7b7be82
编写于
9月 10, 2020
作者:
D
dongdaxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add fleet doc
上级
c1d4ce35
变更
16
显示空白变更内容
内联
并排
Showing
16 changed file
with
147 addition
and
25 deletion
+147
-25
doc/fluid/api/distributed.rst
doc/fluid/api/distributed.rst
+6
-6
doc/fluid/api/distributed/ParallelEnv.rst
doc/fluid/api/distributed/ParallelEnv.rst
+11
-3
doc/fluid/api/distributed/all_gather.rst
doc/fluid/api/distributed/all_gather.rst
+11
-0
doc/fluid/api/distributed/all_reduce.rst
doc/fluid/api/distributed/all_reduce.rst
+11
-0
doc/fluid/api/distributed/barrier.rst
doc/fluid/api/distributed/barrier.rst
+11
-0
doc/fluid/api/distributed/broadcast.rst
doc/fluid/api/distributed/broadcast.rst
+11
-0
doc/fluid/api/distributed/get_rank.rst
doc/fluid/api/distributed/get_rank.rst
+4
-3
doc/fluid/api/distributed/get_world_size.rst
doc/fluid/api/distributed/get_world_size.rst
+4
-3
doc/fluid/api/distributed/init_parallel_env.rst
doc/fluid/api/distributed/init_parallel_env.rst
+4
-3
doc/fluid/api/distributed/prepare_context.rst
doc/fluid/api/distributed/prepare_context.rst
+9
-3
doc/fluid/api/distributed/reduce.rst
doc/fluid/api/distributed/reduce.rst
+11
-0
doc/fluid/api/distributed/scatter.rst
doc/fluid/api/distributed/scatter.rst
+11
-0
doc/fluid/api/distributed/spawn.rst
doc/fluid/api/distributed/spawn.rst
+4
-3
doc/fluid/api/fleet.rst
doc/fluid/api/fleet.rst
+13
-0
doc/fluid/api/fleet/Fleet.rst
doc/fluid/api/fleet/Fleet.rst
+13
-0
doc/fluid/api/gen_doc.py
doc/fluid/api/gen_doc.py
+13
-1
未找到文件。
doc/fluid/api/distributed.rst
浏览文件 @
e7b7be82
...
...
@@ -11,9 +11,9 @@ paddle.distributed
distributed/ParallelEnv.rst
distributed/prepare_context.rst
distributed/spawn.rst
distributed/
fleet/DistributedStrategy
.rst
distributed/
fleet/PaddleCloudRoleMaker
.rst
distributed/
fleet/DatasetFactory
.rst
distributed/
fleet/UserDefinedRoleMaker
.rst
distributed/
fleet/UtilBas
e.rst
distributed/
all_gather
.rst
distributed/
all_reduce
.rst
distributed/
barrier
.rst
distributed/
broadcast
.rst
distributed/
reduc
e.rst
distributed/scatter.rst
doc/fluid/api/distributed/ParallelEnv.rst
浏览文件 @
e7b7be82
.. _api_distributed_ParallelEnv:
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_paddle_ParallelEnv:
ParallelEnv
-------------------------------
:doc_source: paddle.fluid.dygraph.parallel.ParallelEnv
\ No newline at end of file
-----------
.. autoclass:: paddle.distributed.paddle.ParallelEnv
:members:
:inherited-members:
:noindex:
doc/fluid/api/distributed/all_gather.rst
0 → 100644
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_paddle_all_gather:
all_gather
----------
.. autofunction:: paddle.distributed.paddle.all_gather
:noindex:
doc/fluid/api/distributed/all_reduce.rst
0 → 100644
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_paddle_all_reduce:
all_reduce
----------
.. autofunction:: paddle.distributed.paddle.all_reduce
:noindex:
doc/fluid/api/distributed/barrier.rst
0 → 100644
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_paddle_barrier:
barrier
-------
.. autofunction:: paddle.distributed.paddle.barrier
:noindex:
doc/fluid/api/distributed/broadcast.rst
0 → 100644
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_paddle_broadcast:
broadcast
---------
.. autofunction:: paddle.distributed.paddle.broadcast
:noindex:
doc/fluid/api/distributed/get_rank.rst
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_get_rank:
.. _api_distributed_
paddle_
get_rank:
get_rank
--------
.. autofunction:: paddle.distributed.get_rank
.. autofunction:: paddle.distributed.
paddle.
get_rank
:noindex:
doc/fluid/api/distributed/get_world_size.rst
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_get_world_size:
.. _api_distributed_
paddle_
get_world_size:
get_world_size
--------------
.. autofunction:: paddle.distributed.get_world_size
.. autofunction:: paddle.distributed.
paddle.
get_world_size
:noindex:
doc/fluid/api/distributed/init_parallel_env.rst
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_init_parallel_env:
.. _api_distributed_
paddle_
init_parallel_env:
init_parallel_env
-----------------
.. autofunction:: paddle.distributed.init_parallel_env
.. autofunction:: paddle.distributed.
paddle.
init_parallel_env
:noindex:
doc/fluid/api/distributed/prepare_context.rst
浏览文件 @
e7b7be82
.. _api_distributed_prepare_context:
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_paddle_prepare_context:
prepare_context
-------------------------------
:doc_source: paddle.fluid.dygraph.parallel.prepare_context
---------------
.. autofunction:: paddle.distributed.paddle.prepare_context
:noindex:
doc/fluid/api/distributed/reduce.rst
0 → 100644
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_paddle_reduce:
reduce
------
.. autofunction:: paddle.distributed.paddle.reduce
:noindex:
doc/fluid/api/distributed/scatter.rst
0 → 100644
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_paddle_scatter:
scatter
-------
.. autofunction:: paddle.distributed.paddle.scatter
:noindex:
doc/fluid/api/distributed/spawn.rst
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_distributed_spawn:
.. _api_distributed_
paddle_
spawn:
spawn
-----
.. autofunction:: paddle.distributed.spawn
.. autofunction:: paddle.distributed.
paddle.
spawn
:noindex:
doc/fluid/api/fleet.rst
0 → 100644
浏览文件 @
e7b7be82
==================
paddle.distributed.fleet
==================
.. toctree::
:maxdepth: 1
fleet/Fleet.rst
fleet/DistributedStrategy.rst
fleet/PaddleCloudRoleMaker.rst
fleet/DatasetFactory.rst
fleet/UserDefinedRoleMaker.rst
fleet/UtilBase.rst
doc/fluid/api/fleet/Fleet.rst
0 → 100644
浏览文件 @
e7b7be82
.. THIS FILE IS GENERATED BY `gen_doc.{py|sh}`
!DO NOT EDIT THIS FILE MANUALLY!
.. _api_fleet_paddle_distributed_Fleet:
Fleet
-----
.. autoclass:: paddle.fleet.paddle.distributed.Fleet
:members:
:inherited-members:
:noindex:
doc/fluid/api/gen_doc.py
浏览文件 @
e7b7be82
...
...
@@ -18,11 +18,14 @@ import sys
import
types
import
os
import
contextlib
import
paddle
as
paddle
import
paddle.fluid
as
fluid
import
paddle.tensor
as
tensor
import
paddle.nn
as
nn
import
paddle.optimizer
as
optimizer
import
paddle.distributed.fleet
as
fleet
import
paddle.distributed
as
distributed
#import paddle.complex as complex
#import paddle.framework as framework
...
...
@@ -174,16 +177,25 @@ def generate_doc(module_name, module_prefix, output, output_name,
if
module_prefix
==
""
:
module_prefix
=
None
print
(
"module_name: {}"
.
format
(
module_name
))
print
(
"module_prefix: {}"
.
format
(
module_prefix
))
print
(
"output: {}"
.
format
(
output
))
print
(
"output_name: {}"
.
format
(
output_name
))
print
(
"output_dir: {}"
.
format
(
output_dir
))
gen
=
DocGenerator
()
if
module_name
is
None
:
gen
.
module
=
eval
(
output_name
)
gen
.
module_name
=
str
(
output_name
)
else
:
print
(
"output name: {}"
.
format
(
output_name
))
gen
.
module
=
eval
(
output_name
)
for
each_module_name
in
module_name
.
split
(
'.'
):
print
(
"forloop module name: {}"
.
format
(
each_module_name
))
print
(
"module"
)
print
(
gen
.
module
)
if
not
hasattr
(
gen
.
module
,
each_module_name
):
raise
ValueError
(
"Cannot find
fluid
.{0}"
.
format
(
module_name
))
raise
ValueError
(
"Cannot find
paddle
.{0}"
.
format
(
module_name
))
else
:
gen
.
module
=
getattr
(
gen
.
module
,
each_module_name
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录