is there an equivalent of torch.all torch.all — PyTorch 1.8.1 documentation but for checking to see if all of values of a torch.tensor is false?
>>> a
tensor([[ True, True],
[ True, False],
[ True, True],
[ True, True]])
>>> torch.all(a)
tensor(False)
Here, torch.all checks to see if all values are True or not.