-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cn docs for all_gather_object, modified docs for all_gather and s…
…plit
- Loading branch information
Showing
3 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.. _cn_api_distributed_all_gather_object: | ||
|
||
all_gather_object | ||
------------------------------- | ||
|
||
|
||
.. py:function:: paddle.distributed.all_gather_object(object_list, object, group=0) | ||
进程组内所有进程指定的picklable对象进行聚合操作,并返回给所有进程聚合的结果。和all_gather类似,但可以传入自定义的python对象。 | ||
|
||
参数 | ||
::::::::: | ||
- object_list (list) - 操作的输出Object列表。 | ||
- object (Any) - 操作的输入Object,需要保证输入自定义的Object是picklable的。 | ||
- group (int,可选) - 工作的进程组编号,默认为0。 | ||
|
||
返回 | ||
::::::::: | ||
无 | ||
|
||
代码示例 | ||
::::::::: | ||
COPY-FROM: paddle.distributed.all_gather_object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters