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 
make_arg = partial(
            make_tensor, d=d, d=torch.float64, requires_grad=True)
        inputs = (
            
            ((5, 5, 5, 5, 5,), (1, 1, 1, 4, 4,)),  
            ((5, 5, 5, 5,), (1, 1, 4, 4,)),  
        )
        interpolation_mode = 0
        padding_mode = 0
        align_corners = True
        err = "expected grid and input to have same batch size"
        for input, grid in inputs:
            input = make_arg(input)
            grid = make_arg(grid, low=-1, high=1)
            
            with self.assertRaisesRegex(RuntimeError, err):
                torch.grid_sampler(
                    input, grid, interpolation_mode, padding_mode,
                    align_corners)
            
            with self.assertRaisesRegex(RuntimeError, err):
                torch.grid_sampler_2d(
                    input, grid, interpolation_mode, padding_mode,
                    align_corners)