mindspore.ops.less_equal ======================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_less_equal.rst :alt: 查看源文件 .. py:function:: mindspore.ops.less_equal(input, other) 逐元素计算 :math:`input <= other` 的值。 .. math:: out_{i} =\begin{cases} & \text{True, if } input_{i}<=other_{i} \\ & \text{False, if } input_{i}>other_{i} \end{cases} .. note:: - 支持隐式类型转换。 - 当输入是一个Tensor和一个Scalar时,Scalar只能是一个常数。 参数: - **input** (Union[Tensor, Number, bool]) - 第一个输入。 - **other** (Union[Tensor, Number, bool]) - 第二个输入。 返回: Tensor