We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9193ce2 commit bbedf5bCopy full SHA for bbedf5b
test/smoke_test.py
@@ -1,8 +1,8 @@
1
"""Run smoke tests"""
2
3
import os
4
+import sys
5
from pathlib import Path
-from sys import platform
6
7
import torch
8
import torch.nn as nn
@@ -37,7 +37,7 @@ def smoke_test_compile() -> None:
37
out = model(x)
38
print(f"torch.compile model output: {out.shape}")
39
except RuntimeError:
40
- if platform == "win32":
+ if sys.platform == "win32":
41
print("Successfully caught torch.compile RuntimeError on win")
42
elif sys.version_info >= (3, 11, 0):
43
print("Successfully caught torch.compile RuntimeError on Python 3.11")
0 commit comments