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

19 lines
682 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.LogicalXor
========================
.. py:class:: mindspore.ops.LogicalXor
逐元素计算两个Tensor的逻辑异或运算。
.. warning::
这是一个实验性API后续可能修改或删除。
详情请查看 :func:`mindspore.ops.logical_xor`
输入:
- **x** (Union[Tensor, bool]) - 第一个输入是bool或数据类型可被隐式转换为bool的Tensor。
- **y** (Union[Tensor, bool]) - 当第一个输入是Tensor的时候第二个输入是bool或者数据类型可被隐式转换为bool的Tensor。
输出:
Tensor其shape与 `x``y` 广播后的shape相同数据类型为bool。