mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-20 19:12:24 +00:00
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:
parent
192caee81f
commit
4c4d79a612
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue