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 
with CudaSyncGuard(level):
                f()
        def _ind_put_fn(x, ind, val):
            x[ind] = val
            return x
        def _ind_get_fn(x, ind):
            return x[ind]
        def _cond_fn(x):
            if x:  
                return x
            else:
                return 2 * x
        
        size = 4
        x = torch.rand(size, d=d)
        y = torch.rand((), d=d)
        ind = torch.randint(size, (3,), d=d)
        ind_cpu = ind.cpu()
        repeats = torch.full((1,), 2, d=d)
        mask = torch.randint(2, (size,), d=d, d=bool)
        expect_no_sync = (lambda: _ind_put_fn(x, mask, 1.),
                          lambda: _ind_put_fn(x, ind, y),
                          lambda: _ind_get_fn(x, ind),
                          lambda: torch.nn.functional.one_hot(ind, num_classes=size),