File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ DataParallel
1414
15151. 使用 ``paddle.distributed.spawn `` 方法启动,例如:
1616
17- ``python demo.py `` (spawn need to be called in ``__main__ `` method)
17+ ``python demo.py `` (spawn need to be called in ``__main__ `` method)
1818
19192. 使用 ``paddle.distributed.launch `` 方法启动,例如:
2020
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ bucketize
1111 - **x ** (Tensor) - 输入的 N 维 Tensor,支持的数据类型:int32、int64、float32、float64。
1212 - **sorted_sequence ** (Tensor) - 输入的一维 Tensor,支持的数据类型:int32、int64、float32、float64。该 Tensor 的数值在其最后一个维度递增。
1313 - **out_int32 ** (bool,可选) - 输出的数据类型支持 int32、int64。默认值为 False,表示默认的输出数据类型为 int64。
14- - **right ** (bool,可选) - 根据给定 ``x `` 在 ``sorted_sequence `` 查找对应的上边界或下边界。如果 ``sorted_sequence``的值为 nan 或 inf,则返回最内层维度的大小。默认值为 False,表示在 ``sorted_sequence `` 的查找给定 ``x `` 的下边界。
14+ - **right ** (bool,可选) - 根据给定 ``x `` 在 ``sorted_sequence `` 查找对应的上边界或下边界。如果 ``sorted_sequence `` 的值为 nan 或 inf,则返回最内层维度的大小。默认值为 False,表示在 ``sorted_sequence `` 的查找给定 ``x `` 的下边界。
1515 - **name ** (str,可选) - 具体用法请参见 :ref: `api_guide_Name `,一般无需设置,默认值为 None。
1616
1717返回
Original file line number Diff line number Diff line change 4242::::::::::::
4343 - **x ** (Tensor) - 输入 Tensor,秩 ``rank >= 1 ``,支持的数据类型包括 int32、int64、float32、float64、complex64、complex128 和 uint8 (CPU)、float16(GPU) 。
4444 - **index ** (Tensor) - 索引 Tensor,秩 ``rank = 0 `` 或者 ``rank = 1 ``,数据类型为 int32 或 int64。
45- - **axis ** (Tensor) - 指定 index 获取输入的维度,``axis `` 的类型可以是 int 或者 Tensor,当 ``axis `` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当``axis``为 None 的时候其值为 0。
45+ - **axis ** (Tensor) - 指定 index 获取输入的维度,``axis `` 的类型可以是 int 或者 Tensor,当 ``axis `` 为 Tensor 的时候其数据类型为 int32 或者 int64。默认值为 None,当 ``axis `` 为 None 的时候其值为 0。
4646 - **name ** (str,可选) - 具体用法请参见 :ref: `api_guide_Name `,一般无需设置,默认值为 None。
4747
4848返回
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ increment
88
99
1010
11- 在控制流程中用来让参数``x`` 的数值增加 ``value `` 。
11+ 在控制流程中用来让参数 ``x `` 的数值增加 ``value ``。
1212
1313参数
1414:::::::::
@@ -20,7 +20,7 @@ increment
2020返回
2121:::::::::
2222
23- Tensor,形状和数据类型同输入 ``x `` 。
23+ Tensor,形状和数据类型同输入 ``x ``。
2424
2525
2626代码示例
You can’t perform that action at this time.
0 commit comments