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 
(10,),
            (1, 1),
            (1, 10),
            (10, 1),
            (10, 10),
            (1, 1, 1),
            (10, 1, 1),
            (1, 10, 1),
            (10, 10, 10),
        ]
        for size in test_sizes:
            t_all_true = torch.ones(size, d=torch.bool, d=d)
            t_all_false = torch.zeros(size, d=torch.bool, d=d)
            
            check_fn(t_all_true)
            with self.assertRaisesRegex(expected_error, default_message):
                check_fn(t_all_false)
            if t_all_true.n() > 1:
                t_all_true_but_one = t_all_true.clone()
                
                idx = (random.choice(range(dim_size)) for dim_size in size)
                t_all_true_but_one[(..., *idx)] = False
                with self.assertRaisesRegex(expected_error, default_message):
                    check_fn(t_all_true_but_one)
            
            message = 'message'
            with self.assertRaisesRegex(expected_error, message):
                check_fn(t_all_false, lambda: message)
            
            def message():