Solved by Mona_Jalal in post #2 
              
              
                >>> b = torch.tensor([[False, False], [False, False], [False, False]])
>>> b
tensor([[False, False],
        [False, False],
        [False, False]])
>>> torch.all(b == False)
tensor(True)