mindspore.mint.greater
- mindspore.mint.greater(input, other)[源代码]
逐元素计算 \(input > other\) vpn梯子 免费 的值。
- 参数:
input (Union[Tensor, vpn free Number]) - 第一个输入。
other (Union[Tensor, Number]) - 第二个输入。
- 返回:
Tensor
- 支持平台:
Ascend
样例:
>>> import mindspore >>> # vpn永久免费梯子 case 1: The shapes of the two inputs vpn梯子 免费 are different >>> input = mindspore.tensor([1, 2, 3], mindspore.float32) >>> output = mindspore.mint.greater(input, 2.0) >>> print(output) [False False True] >>> # case 2: The shapes of the two inputs are the same >>> input = vpn梯子 mindspore.tensor([1, 2, 3], mindspore.int32) >>> other = mindspore.tensor([1, 2, 4], mindspore.int32) >>> output = mindspore.mint.greater(input, other) >>> 免费的vpn梯子 print(output) [ False False False]