mindspore/docs/api/api_python/ops/mindspore.ops.LogicalOr.rst

16 lines
595 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.LogicalOr
========================
.. py:class:: mindspore.ops.LogicalOr
逐元素计算两个Tensor的逻辑或运算。
详情请查看 :func:`mindspore.ops.logical_or`
输入:
- **x** (Union[Tensor, bool]) - 第一个输入是bool或数据类型可被隐式转换为bool的Tensor。
- **y** (Union[Tensor, bool]) - 当第一个输入是Tensor的时候第二个输入是bool或者数据类型可被隐式转换为bool的Tensor。
输出:
Tensor其shape与 `x``y` 广播后的shape相同数据类型为bool。