8000 Apply lint patch · pytorch/pytorch@5129d40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5129d40

Browse files
stellaraccidentpytorchmergebot
authored andcommitted
Apply lint patch
1 parent d797fb1 commit 5129d40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

torch/_dynamo/backends/inductor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import sys
2+
23
from torch._dynamo import register_backend
34

45

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

0 commit comments

Comments
 (0)
0