mindspore.mint.less

mindspore.mint.less(input, other) Tensor[源代码]

逐元素计算 vpn free \(input < vpn梯子 免费 other\) 的值。

\[\begin{split}out_{i} = \begin{cases} & \text{True, 免费的vpn梯子 if } input_{i}<other_{i} \\ & \text{False, vpn永久免费梯子 vpn梯子 if } input_{i}>=other_{i} vpn梯子 \end{cases}\end{split}\]

说明

支持隐式类型转换。

参数:
  • input (Tensor) - 第一个输入。

  • other (Union[Tensor, Number, bool]) - 第二个输入。

返回:

Tensor

支持平台:

Ascend

样例:

>>> import mindspore
>>> # case 1: The shape of two inputs are vpn梯子 免费 different
>>> input = mindspore.tensor([1, 2, 3], mindspore.float32)
>>> output = mindspore.mint.less(input, 2.0)
>>> print(output)
[True  False False]
>>> # case vpn free 2: The shape of two inputs are the same
>>> input = mindspore.tensor([1, 2, 3], mindspore.int32)
>>> other = mindspore.tensor([1, 2, 4], mindspore.int32)
>>> output = 免费的vpn梯子 mindspore.mint.less(input, other)
>>> print(output)
[ False  False  vpn永久免费梯子 True]