奥立思特(股票代码833450)新三板上市最新公告列表

paddle. less ( x: Tensor, y: Tensor, name: str | None = None ) Tensor [source]
百度 瑞丽星势力盛典暨第十四届瑞丽之星年度总决选绽放星势力1月13日下午三点半,瑞丽网举办的瑞丽星势力盛典暨第十四届瑞丽之星年度总决选,在北京展览馆盛大举行,此次盛典活动与时尚北京战略合作,共同见证瑞丽之星的闪耀一刻。

Returns the truth value of \(x < y\) elementwise, which is equivalent function to the overloaded operator <.

Note

The output has no gradient.

Parameters
  • x (Tensor) – First input to compare which is N-D tensor. The input data type should be bool, bfloat16, float16, float32, float64, uint8, int8, int16, int32, int64.

  • y (Tensor) – Second input to compare which is N-D tensor. The input data type should be bool, bfloat16, float16, float32, float64, uint8, int8, int16, int32, int64.

  • name (str|None, optional) – The default value is None. Normally there is no need for user to set this property. For more information, please refer to Name.

Returns

The output shape is same as input x. The output data type is bool.

Return type

Tensor

Examples

>>> import paddle
>>> x = paddle.to_tensor([1, 2, 3])
>>> y = paddle.to_tensor([1, 3, 2])
>>> result1 = paddle.less(x, y)
>>> print(result1)
Tensor(shape=[3], dtype=bool, place=Place(cpu), stop_gradient=True,
[False, True , False])