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 
S = 10
            a = torch.randn(S, d=d)
            if call_ == 'function':
                torch.median(a)
            elif call_ == 'function with indices':
                torch.median(a, 0)
            elif call_ == 'method':
                a.median()
            elif call_ == 'method with indices':
                a.median(0)
            elif call_ == 'out with indices':
                result = torch.empty_like(a)
                indices = torch.empty((), d=torch.long, d=d)
                torch.median(a, 0, out=(result, indices))
            else:
                self.fail(f"'{call_}' is not a valid call ")
        def test_func_expect_error(call_, should_error):
            self.check_nondeterministic_alert(
                lambda: test_func(call_),
                'median CUDA with indices output',
                should_error)
        is_cuda = torch.d(d). == 'cuda'
        test_func_expect_error('function', False)
        test_func_expect_error('function with indices', is_cuda)
        test_func_expect_error('method', False)
        test_func_expect_error('method with indices', is_cuda)
        test_func_expect_error('out with indices', is_cuda)
    
    def _test_gather_backward_one_dim(self, d, deterministic: bool = False) -> None: