for example,
a = torch.tensor([[0,1],[2,3]])
b = torch.tensor([[4,1],[2,3]])
c = torch.tensor([[5,1],[8,8]])

since the element with value 1 is equal in all 3 tensors, I want to get the result like
result = torch.tensor([[0,1],[0,0]])

or
result = torch.tensor([[False,True],[False,False]])