Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
2010bdc3
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
2010bdc3
编写于
10月 14, 2022
作者:
W
Wen Sun
提交者:
GitHub
10月 14, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix collective APIs cannot be recognized when building docs (#46962)
上级
a1b99978
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
11 addition
and
11 deletion
+11
-11
python/paddle/distributed/__init__.py
python/paddle/distributed/__init__.py
+3
-3
python/paddle/distributed/communication/stream/__init__.py
python/paddle/distributed/communication/stream/__init__.py
+3
-3
python/paddle/fluid/tests/unittests/collective/communication_stream_reduce_scatter_api_dygraph.py
...ective/communication_stream_reduce_scatter_api_dygraph.py
+5
-5
未找到文件。
python/paddle/distributed/__init__.py
浏览文件 @
2010bdc3
...
...
@@ -76,7 +76,7 @@ __all__ = [ # noqa
"gloo_release"
,
"QueueDataset"
,
"split"
,
"CountFilterEntry"
,
"ShowClickEntry"
,
"get_world_size"
,
"get_group"
,
"all_gather"
,
"all_gather_object"
,
"InMemoryDataset"
,
"barrier"
,
"all_reduce"
,
"alltoall"
,
"send"
,
"reduce"
,
"recv"
,
"ReduceOp"
,
"wait"
,
"get_rank"
,
"ProbabilityEntry"
,
"ParallelMode"
,
"is_initialized"
,
"isend"
,
"irecv"
,
"
reduce_scatter"
,
"rpc
"
"
alltoall_single"
,
"
send"
,
"reduce"
,
"recv"
,
"ReduceOp"
,
"wait"
,
"get_rank"
,
"ProbabilityEntry"
,
"ParallelMode"
,
"is_initialized"
,
"
destroy_process_group"
,
"isend"
,
"irecv"
,
"reduce_scatter"
,
"rpc"
,
"stream
"
]
python/paddle/distributed/communication/stream/__init__.py
浏览文件 @
2010bdc3
...
...
@@ -18,12 +18,12 @@ from .alltoall import alltoall
from
.alltoall_single
import
alltoall_single
from
.broadcast
import
broadcast
from
.reduce
import
reduce
from
.reduce_scatter
import
_reduce_scatter_base
,
reduce_scatter
from
.reduce_scatter
import
reduce_scatter
from
.recv
import
recv
from
.scatter
import
scatter
from
.send
import
send
__all__
=
[
"
_reduce_scatter_base"
,
"all_reduce"
,
"alltoall"
,
"alltoall_single
"
,
"
broadcast"
,
"
reduce"
,
"reduce_scatter"
,
"recv"
,
"scatter"
,
"send"
"
all_gather"
,
"all_reduce"
,
"alltoall"
,
"alltoall_single"
,
"broadcast
"
,
"reduce"
,
"reduce_scatter"
,
"recv"
,
"scatter"
,
"send"
]
python/paddle/fluid/tests/unittests/collective/communication_stream_reduce_scatter_api_dygraph.py
浏览文件 @
2010bdc3
...
...
@@ -17,6 +17,7 @@ import numpy as np
import
paddle
import
paddle.distributed
as
dist
import
test_collective_api_base
as
test_collective_base
from
paddle.distributed.communication.stream.reduce_scatter
import
_reduce_scatter_base
class
StreamReduceScatterTestCase
():
...
...
@@ -77,8 +78,7 @@ class StreamReduceScatterTestCase():
# case 3: test the legacy API
result_tensor
=
paddle
.
empty_like
(
t1
)
task
=
dist
.
stream
.
_reduce_scatter_base
(
result_tensor
,
task
=
_reduce_scatter_base
(
result_tensor
,
tensor
,
sync_op
=
self
.
_sync_op
,
use_calc_stream
=
self
.
_use_calc_stream
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录