File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 11import 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-
153from .add import scatter_add
164from .sub import scatter_sub
175from .mul import scatter_mul
2715
2816import 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__ = [
You can’t perform that action at this time.
0 commit comments