"examples/pytorch/vscode:/vscode.git/clone" did not exist on "0435b74c483d44dc000fb636fdfe02be04c0ff0a"
Commit af9d775b authored by rusty1s's avatar rusty1s
Browse files

changed arg order

parent 19d744fd
......@@ -21,7 +21,7 @@ def test_spline_conv_cpu(tensor):
bias = Tensor(tensor, [1])
output = spline_conv(x, edge_index, pseudo, weight, kernel_size,
is_open_spline, root_weight, 1, bias)
is_open_spline, 1, root_weight, bias)
edgewise_output = [
1 * 0.25 * (0.5 + 1.5 + 4.5 + 5.5) + 2 * 0.25 * (1 + 2 + 5 + 6),
......@@ -45,7 +45,7 @@ def test_spline_conv_cpu(tensor):
root_weight, bias = Variable(root_weight), Variable(bias)
output = spline_conv(x, edge_index, pseudo, weight, kernel_size,
is_open_spline, root_weight, 1, bias)
is_open_spline, 1, root_weight, bias)
output = [pytest.approx(x, 0.01) for x in output.data.view(-1).tolist()]
assert output == expected_output
......@@ -81,7 +81,7 @@ def test_spline_conv_gpu(tensor):
bias = Tensor(tensor, [1])
expected_output = spline_conv(x, edge_index, pseudo, weight, kernel_size,
is_open_spline, root_weight, 1, bias)
is_open_spline, 1, root_weight, bias)
x, edge_index, pseudo = x.cuda(), edge_index.cuda(), pseudo.cuda()
weight, kernel_size = weight.cuda(), kernel_size.cuda()
......@@ -89,7 +89,7 @@ def test_spline_conv_gpu(tensor):
bias = bias.cuda()
output = spline_conv(x, edge_index, pseudo, weight, kernel_size,
is_open_spline, root_weight, 1, bias)
is_open_spline, 1, root_weight, bias)
assert output.cpu().tolist() == expected_output.tolist()
......
......@@ -11,8 +11,8 @@ def spline_conv(x,
weight,
kernel_size,
is_open_spline,
root_weight=None,
degree=1,
root_weight=None,
bias=None):
# Convolve over each node.
......
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