From 5f05fb1a184fb0d8c7bb8880d956849521cb4bb6 Mon Sep 17 00:00:00 2001 From: pytorchbot Date: Fri, 24 Jan 2025 11:34:51 +0000 Subject: [PATCH] 2025-01-24 nightly release (867521ec82c78160b16eec1c3a02d4cef93723ff) --- test/smoke_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/smoke_test.py b/test/smoke_test.py index 38f0054e6b6..6f1ec06da30 100644 --- a/test/smoke_test.py +++ b/test/smoke_test.py @@ -2,6 +2,7 @@ import os import sys +import sysconfig from pathlib import Path import torch @@ -134,8 +135,8 @@ def main() -> None: smoke_test_torchvision_decode_jpeg("cuda") smoke_test_torchvision_resnet50_classify("cuda") - # TODO: remove once pytorch/pytorch#110436 is resolved - if sys.version_info < (3, 12, 0): + # torch.compile is not supported on Python 3.14+ and Python built with GIL disabled + if sys.version_info < (3, 14, 0) and not sysconfig.get_config_var("Py_GIL_DISABLED"): smoke_test_compile() if torch.backends.mps.is_available():