Skip to content

Commit 241bf04

Browse files
zou3519pytorchmergebot
authored andcommitted
[Dynamo] Skip some unresolvable tests (pytorch#142508)
Fixes pytorch#127738 Fixes pytorch#127755 In the discussion in pytorch#127738 we determined that this is not fixable, so we're just going to skip the test. Test Plan: - tests Pull Request resolved: pytorch#142508 Approved by: https://github.com/StrongerXi, https://github.com/yanboliang, https://github.com/mlazos ghstack dependencies: pytorch#142502, pytorch#142503
1 parent 00ac423 commit 241bf04

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/nn/test_parametrization.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ def forward(self, x):
382382
# FIXME: Rewrite this test using functions not depending on LAPACK
383383
# and remove the `@skipIfNoLapack` (see #70995)
384384
@skipIfNoLapack
385+
@skipIfTorchDynamo(
386+
"Not applicable; see https://github.com/pytorch/pytorch/issues/127738"
387+
)
385388
@swap([True, False])
386389
def test_serialization_parametrization(self):
387390
r"""Test that it is possible to serialize a parametrized model via state_dict"""
@@ -932,6 +935,9 @@ def forward(self, X):
932935
parametrize.type_before_parametrizations(model) == original_type
933936
)
934937

938+
@skipIfTorchDynamo(
939+
"Not applicable; see https://github.com/pytorch/pytorch/issues/127738"
940+
)
935941
@swap([True, False])
936942
def test_deepcopy_after_parametrization(self):
937943
r"""Test that we are able to create a deepcopy of the module when it's parametrized."""

0 commit comments

Comments
 (0)