@@ -2828,7 +2828,8 @@ def _check_functionalize_correctness(self, f, inpt):
2828
2828
self .assertEqual (inpt1 , inpt2 )
2829
2829
self .assertEqual (inpt1 , inpt3 )
2830
2830
2831
- @unittest .skip ("RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides" )
2831
+ # BUG: RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides
2832
+ @unittest .expectedFailure
2832
2833
def test_simple_view (self , device ):
2833
2834
2834
2835
def f (x : torch .Tensor ) -> torch .Tensor :
@@ -2838,7 +2839,8 @@ def f(x: torch.Tensor) -> torch.Tensor:
2838
2839
return x
2839
2840
self ._check_functionalize_correctness (f , torch .zeros (4 , 2 , device = device ))
2840
2841
2841
- @unittest .skip ("RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides" )
2842
+ # BUG: RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides
2843
+ @unittest .expectedFailure
2842
2844
def test_multioutput_view (self , device ):
2843
2845
2844
2846
def f (x : torch .Tensor ) -> torch .Tensor :
@@ -2849,7 +2851,9 @@ def f(x: torch.Tensor) -> torch.Tensor:
2849
2851
return x
2850
2852
self ._check_functionalize_correctness (f , torch .zeros (4 , 2 , device = device ))
2851
2853
2852
- @unittest .skip ("RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides" )
2854
+
2855
+ # BUG: RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides
2856
+ @unittest .expectedFailure
2853
2857
def test_inplace_view (self , device ):
2854
2858
2855
2859
def f (x : torch .Tensor ) -> torch .Tensor :
@@ -2875,7 +2879,8 @@ def f(x, y, z) -> torch.Tensor:
2875
2879
out_actual = functionalize (f )(x , y , z )
2876
2880
self .assertEqual (out_expected , out_actual )
2877
2881
2878
- @unittest .skip ("RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides" )
2882
+ # BUG: RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides
2883
+ @unittest .expectedFailure
2879
2884
def test_multioutput_inplace_slice_view (self , device ):
2880
2885
2881
2886
def f (x : torch .Tensor ) -> torch .Tensor :
0 commit comments