File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -1610,6 +1610,15 @@ less_than(y, name=None)
1610
1610
1611
1611
请参考 :ref: `cn_api_paddle_less_than `
1612
1612
1613
+ less(y, name=None)
1614
+ :::::::::
1615
+
1616
+ 返回:计算后的 Tensor
1617
+
1618
+ 返回类型:Tensor
1619
+
1620
+ 请参考 :ref: `cn_api_paddle_less `
1621
+
1613
1622
lgamma(name=None)
1614
1623
:::::::::
1615
1624
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments