mindspore.Tensor.logical_not
- mindspore.Tensor.logical_not()
详情请参考
mindspore.ops.logical_not()
。- 支持平台:
Ascend
GPU
CPU
样例:
>>> import mindspore >>> import numpy as np >>> from mindspore import Tensor >>> x = Tensor(np.array([True, False, True]), mindspore.bool_) >>> output = x.logical_not() >>> print(output) [False True False]