You are right. I didn’t run into this error, as I was using your originally posted tensors.
For these bool operations, I would transform the tensors via .long() or byte() to get the right result or use torch.logical_or(x1, x2) alternatively.