Commit 62fc6106 authored by rusty1s's avatar rusty1s
Browse files

fixed linting

parent 62815576
import torch import torch
torch.ops.load_library('torch_scatter/scatter_cpu.so')
torch.ops.load_library('torch_scatter/segment_cpu.so')
torch.ops.load_library('torch_scatter/gather_cpu.so')
try:
torch.ops.load_library('torch_scatter/scatter_cuda.so')
torch.ops.load_library('torch_scatter/segment_cuda.so')
torch.ops.load_library('torch_scatter/gather_cuda.so')
except OSError as e:
if torch.cuda.is_available():
raise e
from .add import scatter_add from .add import scatter_add
from .sub import scatter_sub from .sub import scatter_sub
from .mul import scatter_mul from .mul import scatter_mul
...@@ -27,6 +15,18 @@ from .gather import gather_coo, gather_csr ...@@ -27,6 +15,18 @@ from .gather import gather_coo, gather_csr
import torch_scatter.composite import torch_scatter.composite
torch.ops.load_library('torch_scatter/scatter_cpu.so')
torch.ops.load_library('torch_scatter/segment_cpu.so')
torch.ops.load_library('torch_scatter/gather_cpu.so')
try:
torch.ops.load_library('torch_scatter/scatter_cuda.so')
torch.ops.load_library('torch_scatter/segment_cuda.so')
torch.ops.load_library('torch_scatter/gather_cuda.so')
except OSError as e:
if torch.cuda.is_available():
raise e
__version__ = '1.4.0' __version__ = '1.4.0'
__all__ = [ __all__ = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment