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 
def isBinary(t):
            return torch.ne(t, 0).mul_(torch.ne(t, 1)).sum().item() == 0
        t = torch.empty(10, 10, d=d, d=d)
        t.fill_(2)
        t.bernoulli_(0.5)
        self.assertTrue(isBinary(t))
        for p_d in floating_s_and(*[torch.half] if d.startswith('cuda') else []):
            p = torch.rand(10, d=p_d, d=d).expand(10, 10)
            t.fill_(2)
            t.bernoulli_(p)
            self.assertTrue(isBinary(t))
            t.fill_(2)
            torch.bernoulli(torch.rand_like(t, d=p_d), out=t)
            self.assertTrue(isBinary(t))
            t.fill_(2)
            t.bernoulli_(torch.rand_like(t, d=p_d))
            self.assertTrue(isBinary(t))
    @slowTest
    @ds(*floating_s())
    @dsIfCUDA(*floating_s_and(torch.half))
    def test_bernoulli_edge_s(self, d, d):