8000 rebase · pytorch/pytorch@a957bb9 · GitHub
[go: up one dir, main page]

Skip to content

Commit a957bb9

Browse files
rebase
1 parent 1259156 commit a957bb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

torch/_dynamo/backends/inductor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# mypy: ignore-errors
22

3+
import sys
34
from torch._dynamo import register_backend
45

56

67
@register_backend
78
def inductor(*args, **kwargs):
9+
if sys.platform == "win32":
10+
raise RuntimeError("Windows not yet supported for inductor")
11+
812
# do import here to avoid loading inductor into memory when it is not used
913
from torch._inductor.compile_fx import compile_fx
1014

0 commit comments

Comments
 (0)
0