Revert expectFailureIf condition on tests with torch.compile on Windows (#134759)

Fixes #134716

This PR reverts some changes introduced in 6eae569546 (#133987)

torch.compile is not available on Windows, tests should be expected to fail.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/134759
Approved by: https://github.com/malfet
This commit is contained in:
Vadym Khortiuk
2024-09-06 20:51:55 +00:00
committed by PyTorch MergeBot
parent a4030e37be
commit a7643baceb

View File

@ -5141,8 +5141,9 @@ def traceable(f):
@markDynamoStrictTest
class TestCompileTransforms(TestCase):
@skipIfRocm(msg="test leaks memory on ROCm")
# torch.compile is not supported on Windows CUDA.
# Triton only supports GPU with SM70 or later.
@expectedFailureIf(TEST_CUDA and not SM70OrLater)
@expectedFailureIf((IS_WINDOWS and TEST_CUDA) or (TEST_CUDA and not SM70OrLater))
def test_compile_vmap_hessian(self, device):
# The model and inputs are a smaller version
# of code at benchmark repo: