用法
__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__。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。