Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/smoke_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Run smoke tests"""

import os
import sys
from pathlib import Path
from sys import platform

import torch
import torch.nn as nn
Expand Down Expand Up @@ -37,7 +37,7 @@ def smoke_test_compile() -> None:
out = model(x)
print(f"torch.compile model output: {out.shape}")
except RuntimeError:
if platform == "win32":
if sys.platform == "win32":
print("Successfully caught torch.compile RuntimeError on win")
elif sys.version_info >= (3, 11, 0):
print("Successfully caught torch.compile RuntimeError on Python 3.11")
Expand Down