mindspore.Tensor.less
- mindspore.Tensor.less(other)
详情请参考
mindspore.ops.less()
。- 支持平台:
Ascend
GPU
CPU
样例:
>>> import mindspore >>> import numpy as np >>> from mindspore import Tensor >>> input = Tensor(np.array([1, 2, 3]), mindspore.int32) >>> other = Tensor(np.array([1, 1, 4]), mindspore.int32) >>> output = input.less(other) >>> print(output) [False False True]