Skip to content

Commit d805a4d

Browse files
committed
Fix lint issue
1 parent 4e11e3b commit d805a4d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/xpu/test_utils.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
import torch.nn as nn
1919
import torch.utils.cpp_extension
2020
import torch.utils.data
21-
from .checkpoint import (
22-
_infer_device_type,
23-
checkpoint,
24-
checkpoint_sequential,
25-
get_device_states,
26-
)
2721
from torch._utils import try_import
2822
from torch._utils_internal import deprecated
2923
from torch.testing._internal.common_cuda import TEST_MULTIGPU
@@ -52,6 +46,13 @@
5246
from torch.utils.collect_env import get_pretty_env_info
5347
from torch.utils.data import DataLoader
5448

49+
from .checkpoint import (
50+
_infer_device_type,
51+
checkpoint,
52+
checkpoint_sequential,
53+
get_device_states,
54+
)
55+
5556
# load_tests from torch.testing._internal.common_utils is used to automatically filter tests for
5657
# sharding on sandcastle. This line silences flake warnings
5758
load_tests = load_tests # noqa: PLW0127

0 commit comments

Comments
 (0)