Commit eefc3bd3 authored by rusty1s's avatar rusty1s
Browse files

upgrade to PyTorch 1.10

parent b5fd0ca3
......@@ -11,7 +11,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6]
torch-version: [1.8.0, 1.9.0]
torch-version: [1.9.0, 1.10.0]
steps:
- uses: actions/checkout@v2
......
......@@ -29,7 +29,7 @@ def get_extensions():
for main, suffix in product(main_files, suffices):
define_macros = []
extra_compile_args = {'cxx': ['-O2']}
extra_link_args = ['-s']
extra_link_args = []
if suffix == 'cuda':
define_macros += [('WITH_CUDA', None)]
......
......@@ -58,7 +58,7 @@ def test_spline_conv_forward(test, dtype, device):
@pytest.mark.parametrize('degree,device', product(degrees, devices))
def test_spline_basis_backward(degree, device):
def test_spline_conv_backward(degree, device):
x = torch.rand((3, 2), dtype=torch.double, device=device)
x.requires_grad_()
edge_index = tensor([[0, 1, 1, 2], [1, 0, 2, 1]], torch.long, device)
......
......@@ -69,10 +69,10 @@ def spline_conv(x: torch.Tensor, edge_index: torch.Tensor,
# Weight root node separately (if wished).
if root_weight is not None:
out = out + torch.matmul(x, root_weight)
out += x @ root_weight
# Add bias (if wished).
if bias is not None:
out = out + bias
out += bias
return out
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