展讯推出基于英特尔架构的高端LTE SoC芯片平台

paddle. less_equal ( x: Tensor, y: Tensor, name: str | None = None ) Tensor [source]
百度 双方经过90分钟的激战,火箭队主场以114-91大胜来访的鹈鹕队,纵观全场比赛,火箭队没有给对手任何机会首节便领先对手13分,半场结束火箭队已经建立了27分的领先优势,下半场鹈鹕队开始反攻,但是火箭队稳扎稳打,双方的分差一直保持在20分以上,直到终场。

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, complex64, complex128.

  • 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, complex64, complex128.

  • 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_equal(x, y)
>>> print(result1)
Tensor(shape=[3], dtype=bool, place=Place(cpu), stop_gradient=True,
[True , True , False])