用法
__xor__(
y
)
"xor" 门(有时是 EOR,或 EXOR,发音为异或)是一种数字逻辑门,当真输入的数量为奇数时,它会提供真(1 或 HIGH)输出。异或门实现了数学逻辑的异或;也就是说,如果门的一个且只有一个输入为真,则输出为真。如果两个输入都为假 (0/LOW) 或两者都为真,则会产生假输出。 XOR 表示不等式函数,即如果输入不相同则输出为真,否则输出为假。记住 XOR 的一种方法是“必须有一个或另一个,但不能两者都有”。
目前没有"Tensor.__xor__" 的示例。参考函数:tf.math.logical_xor
相关用法
- Python tf.Tensor.__rsub__用法及代码示例
- Python tf.Tensor.__lt__用法及代码示例
- Python tf.Tensor.__abs__用法及代码示例
- Python tf.Tensor.__getitem__用法及代码示例
- Python tf.Tensor.__ge__用法及代码示例
- Python tf.Tensor.__rmatmul__用法及代码示例
- Python tf.Tensor.__bool__用法及代码示例
- Python tf.Tensor.__sub__用法及代码示例
- Python tf.Tensor.__rpow__用法及代码示例
- Python tf.Tensor.__gt__用法及代码示例
- Python tf.Tensor.__le__用法及代码示例
- Python tf.Tensor.__pow__用法及代码示例
- Python tf.Tensor.__matmul__用法及代码示例
- Python tf.Tensor.set_shape用法及代码示例
- Python tf.Tensor.ref用法及代码示例
- Python tf.Tensor.get_shape用法及代码示例
- Python tf.TensorSpec.from_spec用法及代码示例
- Python tf.Tensor用法及代码示例
- Python tf.TensorSpec.from_tensor用法及代码示例
- Python tf.TensorShape.merge_with用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.Tensor.__xor__。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。