I cannot reproduce this issue on 1.7.0:
>>> import torch
>>> x1 = torch.tensor([[[0, 1, 1],
...                     [0, 1, 0],
...                     [0, 1, 1]]])
>>> x2 = torch.tensor([[[1, 0, 0],
...                     [1, 0, 1],
...                     [1, 0, 0]]])
>>> x3 = x1 | x2
>>> print(x3)
tensor([[[1, 1, 1],
         [1, 1, 1],
         [1, 1, 1]]])
>>> print(torch.__version__)
1.7.0