8000 lint · pytorch/pytorch@1da4a3f · GitHub
[go: up one dir, main page]

Skip to content

Commit 1da4a3f

Browse files
lint
1 parent dcba235 commit 1da4a3f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

torch/_dynamo/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sys
2+
23
import torch
34
from . import convert_frame, eval_frame, resume_execution
45
from .backends.registry import list_backends, lookup_backend, register_backend
@@ -85,6 +86,7 @@ def reset() -> None:
8586
torch._C._dynamo.compiled_autograd.clear_cache()
8687
code_context.clear()
8788

89+
8890
def is_win32():
8991
if sys.platform == "win32":
9092
return True

torch/_dynamo/backends/inductor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# mypy: ignore-errors
22

3-
from torch._dynamo import register_backend, is_win32
3+
from torch._dynamo import is_win32, register_backend
44

55

66
@register_backend

torch/_dynamo/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,8 +2118,8 @@ def build_checkpoint_variable(**options):
21182118

21192119

21202120
def is_compile_supported(device_type):
2121-
from .eval_frame import is_dynamo_supported
21222121
from . import is_win32
2122+
from .eval_frame import is_dynamo_supported
21232123

21242124
compile_supported = is_dynamo_supported()
21252125
if device_type == "cpu":

0 commit comments

Comments
 (0)
0