Skip to content

Commit fe212ea

Browse files
author
shiyanxing
committed
modify doc
1 parent 9012e89 commit fe212ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/api/paddle/searchsorted_cn.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ searchsorted
88
将根据给定的``values``在``sorted_sequence``的最后一个维度查找合适的索引。
99

1010
参数:
11-
- **sorted_sequence** (Tensor) - 输入的多维Tensor,支持的数据类型:float32、float64、int32、int64。该Tensor的数值在其最后一个维度递增。
12-
- **values** (Tensor) - 输入的多维Tensor,支持的数据类型:float32、float64、int32、int64。
11+
- **sorted_sequence** (Tensor) - 输入的N维或一维Tensor,支持的数据类型:float32、float64、int32、int64。该Tensor的数值在其最后一个维度递增。
12+
- **values** (Tensor) - 输入的N维Tensor,支持的数据类型:float32、float64、int32、int64。
1313
- **out_int32** (bool,可选) - 输出的数据类型支持int32、int64。默认值为False,表示默认的输出数据类型为int64。
1414
- **right** (bool,可选) - 根据给定``values``在``sorted_sequence``查找对应的上边界或下边界。默认值为False,表示在``sorted_sequence``的查找给定``values``的下边界。
1515
- **name** (str,可选) – 具体用法请参见 :ref:`api_guide_Name` ,一般无需设置,默认值为None。
1616

17-
返回:Tensor(与 ``values`` 维度信息一致),如果参数``out_int32``为False,则返回数据类型为int32的Tensor,否则将返回int64的tensor。
17+
返回:Tensor(与``values``维度信息一致),如果参数``out_int32``为False,则返回数据类型为int32的Tensor,否则将返回int64的tensor。
1818

1919

2020

@@ -44,4 +44,4 @@ searchsorted
4444
# Tensor(shape=[2, 4], dtype=int64, place=CUDAPlace(0), stop_gradient=True,
4545
# [[1, 3, 4, 5],
4646
# [1, 3, 4, 5]])
47-
47+

0 commit comments

Comments
 (0)