Skip to content

Commit 62fc610

Browse files
committed
fixed linting
1 parent 6281557 commit 62fc610

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

torch_scatter/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
import torch
22

3-
torch.ops.load_library('torch_scatter/scatter_cpu.so')
4-
torch.ops.load_library('torch_scatter/segment_cpu.so')
5-
torch.ops.load_library('torch_scatter/gather_cpu.so')
6-
7-
try:
8-
torch.ops.load_library('torch_scatter/scatter_cuda.so')
9-
torch.ops.load_library('torch_scatter/segment_cuda.so')
10-
torch.ops.load_library('torch_scatter/gather_cuda.so')
11-
except OSError as e:
12-
if torch.cuda.is_available():
13-
raise e
14-
153
from .add import scatter_add
164
from .sub import scatter_sub
175
from .mul import scatter_mul
@@ -27,6 +15,18 @@
2715

2816
import torch_scatter.composite
2917

18+
torch.ops.load_library('torch_scatter/scatter_cpu.so')
19+
torch.ops.load_library('torch_scatter/segment_cpu.so')
20+
torch.ops.load_library('torch_scatter/gather_cpu.so')
21+
22+
try:
23+
torch.ops.load_library('torch_scatter/scatter_cuda.so')
24+
torch.ops.load_library('torch_scatter/segment_cuda.so')
25+
torch.ops.load_library('torch_scatter/gather_cuda.so')
26+
except OSError as e:
27+
if torch.cuda.is_available():
28+
raise e
29+
3030
__version__ = '1.4.0'
3131

3232
__all__ = [

0 commit comments

Comments
 (0)