Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/api/paddle/distributed/all_reduce_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ all_reduce

参数
:::::::::
- tensor (Tensor) - 操作的输入 Tensor,同时也会将归约结果返回至此 Tensor 中。Tensor 的数据类型为:float16、float32、float64、int32、int64。
- op (ReduceOp.SUM|ReduceOp.MAX|ReduceOp.Min|ReduceOp.PROD,可选) - 归约的具体操作,比如求和,取最大值,取最小值和求乘积,默认为求和归约。
- tensor (Tensor) - 操作的输入 Tensor,同时也会将归约结果返回至此 Tensor 中。Tensor 的数据类型为:float16、float32、float64、int32、int64、int8、uint8、bool
- op (ReduceOp.SUM|ReduceOp.MAX|ReduceOp.MIN|ReduceOp.PROD,可选) - 归约的具体操作,比如求和,取最大值,取最小值和求乘积,默认为求和归约。
- group (int,可选) - 工作的进程组编号,默认为 0。

返回
Expand Down
2 changes: 1 addition & 1 deletion docs/api/paddle/distributed/reduce_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ reduce
:::::::::
- tensor (Tensor) - 操作的输入 Tensor,结果返回至目标进程号的 Tensor 中。Tensor 的数据类型为:float16、float32、float64、int32、int64。
- dst (int) - 返回操作结果的目标进程编号。
- op (ReduceOp.SUM|ReduceOp.MAX|ReduceOp.Min|ReduceOp.PROD,可选) - 归约的具体操作,比如求和,取最大值,取最小值和求乘积,默认为求和归约。
- op (ReduceOp.SUM|ReduceOp.MAX|ReduceOp.MIN|ReduceOp.PROD,可选) - 归约的具体操作,比如求和,取最大值,取最小值和求乘积,默认为求和归约。
- group (int,可选) - 工作的进程组编号,默认为 0。

返回
Expand Down
2 changes: 1 addition & 1 deletion docs/api/paddle/distributed/reduce_scatter_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ reduce_scatter
:::::::::
- tensor (Tensor) – 输出的张量。
- tensor_list (list(Tensor)) – 归约和切分的张量列表。
- op (ReduceOp.SUM|ReduceOp.MAX|ReduceOp.Min|ReduceOp.PROD) – 操作类型,默认 ReduceOp.SUM。
- op (ReduceOp.SUM|ReduceOp.MAX|ReduceOp.MIN|ReduceOp.PROD) – 操作类型,默认 ReduceOp.SUM。
- group: (Group, optional) – 通信组;如果是 None,则使用默认通信组。
- use_calc_stream: (bool, optional) – 决定是在计算流还是通信流上做该通信操作;默认为 True,表示在计算流。

Expand Down