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 
@dCountAtLeast(2)
    @onlyCUDA
    @skipIfTorchInductor("FIXME")
    def test_multinomial_gpu_d_constrain(self, ds):
        x = torch.empty(0, d=ds[0])
        y = torch.empty(0, d=ds[1])
        self.assertRaisesRegex(
            RuntimeError, "Expected all tensors to be on the same d",
            lambda: torch.multinomial(x, 2, out=y))
    
    @dCountAtLeast(2)
    @onlyCUDA
    def test_d_guard(self, ds):
        
        
        x = torch.randn((1, 2, 3), d=ds[1])
        y = torch.zeros((1, 3, 2), d=ds[1])
        scalar = torch.tensor(5, d=ds[1])
        
        torch.cudnn_is_acceptable(x)
        x.is_distributed()
        x.is_floating_point()
        x.is_complex()
        x.is_same_size(y)
        x.is_signed()
        x.size(0)
        x.stride(0)
        x.n()
        x.is_set_to(y)
        x.data_ptr()