Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
5d9bc5e5
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "c36f8487df35895421c15f351c7d360bd6800e5c"
Unverified
Commit
5d9bc5e5
authored
Mar 03, 2023
by
Omkar Salpekar
Committed by
GitHub
Mar 03, 2023
Browse files
Assert Runtime Error for torch.compile on Python 3.11 (#7387)
parent
81f0c0c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
test/smoke_test.py
test/smoke_test.py
+2
-0
No files found.
test/smoke_test.py
View file @
5d9bc5e5
...
@@ -39,6 +39,8 @@ def smoke_test_compile() -> None:
...
@@ -39,6 +39,8 @@ def smoke_test_compile() -> None:
except
RuntimeError
:
except
RuntimeError
:
if
platform
==
"win32"
:
if
platform
==
"win32"
:
print
(
"Successfully caught torch.compile RuntimeError on win"
)
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
:
else
:
raise
raise
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment