mindspore.ops.LogicalOr
- class mindspore.ops.LogicalOr[source]
Computes the “logical OR” of two tensors element-wise.
Refer to
mindspore.ops.logical_or()
for more details.- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> x = Tensor(np.array([True, False, True]), mindspore.bool_) >>> y = Tensor(np.array([True, True, False]), mindspore.bool_) >>> logical_or = ops.LogicalOr() >>> output = logical_or(x, y) >>> print(output) [ True True True]