We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6c6643 commit 5f05fb1Copy full SHA for 5f05fb1
test/smoke_test.py
@@ -2,6 +2,7 @@
2
3
import os
4
import sys
5
+import sysconfig
6
from pathlib import Path
7
8
import torch
@@ -134,8 +135,8 @@ def main() -> None:
134
135
smoke_test_torchvision_decode_jpeg("cuda")
136
smoke_test_torchvision_resnet50_classify("cuda")
137
- # TODO: remove once pytorch/pytorch#110436 is resolved
138
- if sys.version_info < (3, 12, 0):
+ # torch.compile is not supported on Python 3.14+ and Python built with GIL disabled
139
+ if sys.version_info < (3, 14, 0) and not sysconfig.get_config_var("Py_GIL_DISABLED"):
140
smoke_test_compile()
141
142
if torch.backends.mps.is_available():
0 commit comments