Change a bitwise logical xor to logical wise (#18246)

### Description
Change a bitwise logical xor to logical-wise

### Motivation and Context
For Boolean values we should not use bitwise operations.
This commit is contained in:
Changming Sun 2023-11-03 10:42:51 -07:00 committed by GitHub
parent 192caee81f
commit 4c4d79a612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -967,7 +967,7 @@ Status Xor::Compute(OpKernelContext* context) const {
},
[](BroadcastHelper& per_iter_bh) {
per_iter_bh.OutputEigen<bool>() =
per_iter_bh.EigenInput0<bool>().array() ^ per_iter_bh.EigenInput1<bool>().array();
per_iter_bh.EigenInput0<bool>().array() != per_iter_bh.EigenInput1<bool>().array();
}};
UntypedBroadcastTwo(*context, funcs, 1.0);