Platforms: linux

This test was disabled because it is failing on master ([recent examples](http://torch-ci.com/failure/test_torch.py%3A%3ATestTorch%3A%3Atest_equal)).

The cause seems to point to https://github.com/pytorch/pytorch/pull/100024 (or D45282119 as it was landed internally)

cc @mruberry @houseroad @ezyang 
for trivial_p in ([0, 1], [1, 0, 1, 1, 0, 1]):
            x = torch.tensor(trivial_p, d=d, d=d)
            self.assertEqual(x.bernoulli().tolist(), trivial_p)
        def isBinary(t):
            return torch.ne(t, 0).mul_(torch.ne(t, 1)).sum().item() == 0
        p = torch.rand(5, 5, d=d, d=d)
        self.assertTrue(isBinary(p.bernoulli()))
        p = torch.rand(5, d=d, d=d).expand(5, 5)
        self.assertTrue(isBinary(p.bernoulli()))
        p = torch.rand(5, 5, d=d, d=d)
        torch.bernoulli(torch.rand_like(p), out=p)
        self.assertTrue(isBinary(p))
    
    @ds(*floating_s())
    @dsIfCPU(*all_s_and(torch.bool))
    @dsIfCUDA(*all_s_and(torch.bool, torch.half))
    def test_bernoulli_self(self, d, d):