Skip to content

Commit 5505d82

Browse files
authored
docs: 新增paddle.less,Tensor.less中文文档 (#6989)
1 parent e3413dd commit 5505d82

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

docs/api/paddle/Tensor_cn.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,15 @@ less_than(y, name=None)
16101610

16111611
请参考 :ref:`cn_api_paddle_less_than`
16121612

1613+
less(y, name=None)
1614+
:::::::::
1615+
1616+
返回:计算后的 Tensor
1617+
1618+
返回类型:Tensor
1619+
1620+
请参考 :ref:`cn_api_paddle_less`
1621+
16131622
lgamma(name=None)
16141623
:::::::::
16151624

docs/api/paddle/less_cn.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. _cn_api_paddle_less:
2+
3+
less
4+
-------------------------------
5+
.. py:function:: paddle.less(x, y, name=None)
6+
7+
8+
逐元素地返回 :math:`x < y` 的逻辑值,相同位置前者输入小于后者输入则返回 True,否则返回 False。使用重载算子 `<` 可以有相同的计算函数效果。
9+
10+
.. note::
11+
输出的结果不返回梯度。
12+
13+
参数
14+
::::::::::::
15+
16+
- **x** (Tensor) - 输入 Tensor,支持的数据类型包括 bool、bfloat16、float16、float32、float64、uint8、int8、int16、int32、int64。
17+
- **y** (Tensor) - 输入 Tensor,支持的数据类型包括 bool、bfloat16、float16、float32、float64、uint8、int8、int16、int32、int64。
18+
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
19+
20+
21+
返回
22+
::::::::::::
23+
输出结果的 Tensor,输出 Tensor 的 shape 和输入一致,Tensor 数据类型为 bool。
24+
25+
26+
代码示例
27+
::::::::::::
28+
29+
COPY-FROM: paddle.less

0 commit comments

Comments
 (0)