Unverified Commit 5d9bc5e5 authored by Omkar Salpekar's avatar Omkar Salpekar Committed by GitHub
Browse files

Assert Runtime Error for torch.compile on Python 3.11 (#7387)

parent 81f0c0c9
......@@ -39,6 +39,8 @@ def smoke_test_compile() -> None:
except RuntimeError:
if 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")
else:
raise
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment