mindspore/docs/api/api_python/ops/mindspore.ops.func_le.rst

26 lines
728 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.le
========================
.. py:function:: mindspore.ops.le(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或一个Tensor和一个Scalar。
- 当输入是一个Tensor和一个Scalar时Scalar只能是一个常数。
参数:
- **input** (Union[Tensor, Number, bool]) - 第一个输入。
- **other** (Union[Tensor, Number, bool]) - 第二个输入。
返回:
Tensor