Skip to content

Commit 7143f06

Browse files
bdhirshzou3519
authored andcommitted
[functorch] Revert "fix functioanlization tests"
This reverts commit e2cc167bab268ab43d9bc9b204735d963c4c6b52.
1 parent ee0efdd commit 7143f06

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

functorch/test/test_eager_transforms.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,6 +2828,8 @@ 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
28312833
def test_simple_view(self, device):
28322834

28332835
def f(x: torch.Tensor) -> torch.Tensor:
@@ -2837,6 +2839,8 @@ def f(x: torch.Tensor) -> torch.Tensor:
28372839
return x
28382840
self._check_functionalize_correctness(f, torch.zeros(4, 2, device=device))
28392841

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

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

28502854

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

28532859
def f(x: torch.Tensor) -> torch.Tensor:
@@ -2873,6 +2879,8 @@ def f(x, y, z) -> torch.Tensor:
28732879
out_actual = functionalize(f)(x, y, z)
28742880
self.assertEqual(out_expected, out_actual)
28752881

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

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

0 commit comments

Comments
 (0)