Skip to content

Commit ee0efdd

Browse files
bdhirshzou3519
authored andcommitted
[functorch] fix functioanlization tests
1 parent 21594ff commit ee0efdd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

functorch/test/test_eager_transforms.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,8 +2828,6 @@ def _check_functionalize_correctness(self, f, inpt):
28282828
self.assertEqual(inpt1, inpt2)
28292829
self.assertEqual(inpt1, inpt3)
28302830

2831-
# BUG: RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides
2832-
@unittest.expectedFailure
28332831
def test_simple_view(self, device):
28342832

28352833
def f(x: torch.Tensor) -> torch.Tensor:
@@ -2839,8 +2837,6 @@ def f(x: torch.Tensor) -> torch.Tensor:
28392837
return x
28402838
self._check_functionalize_correctness(f, torch.zeros(4, 2, device=device))
28412839

2842-
# BUG: RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides
2843-
@unittest.expectedFailure
28442840
def test_multioutput_view(self, device):
28452841

28462842
def f(x: torch.Tensor) -> torch.Tensor:
@@ -2852,8 +2848,6 @@ def f(x: torch.Tensor) -> torch.Tensor:
28522848
self._check_functionalize_correctness(f, torch.zeros(4, 2, device=device))
28532849

28542850

2855-
# BUG: RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides
2856-
@unittest.expectedFailure
28572851
def test_inplace_view(self, device):
28582852

28592853
def f(x: torch.Tensor) -> torch.Tensor:
@@ -2879,8 +2873,6 @@ def f(x, y, z) -> torch.Tensor:
28792873
out_actual = functionalize(f)(x, y, z)
28802874
self.assertEqual(out_expected, out_actual)
28812875

2882-
# BUG: RuntimeError: Tensors of type FunctionalTensorWrapper do not have strides
2883-
@unittest.expectedFailure
28842876
def test_multioutput_inplace_slice_view(self, device):
28852877

28862878
def f(x: torch.Tensor) -> torch.Tensor:

0 commit comments

Comments
 (0)