Skip to content

Commit 01b8b70

Browse files
committed
changelog
1 parent e17b547 commit 01b8b70

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

test/nn/conv/test_point_conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_point_net_conv():
1515
edge_index = torch.tensor([[0, 1, 2, 3], [0, 0, 1, 1]])
1616
row, col = edge_index
1717
adj1 = SparseTensor(row=row, col=col, sparse_sizes=(4, 4))
18-
adj2 = adj1.to_torch_sparse_coo_tensor()
18+
adj2 = adj1.to_torch_sparse_csc_tensor()
1919

2020
local_nn = Seq(Lin(16 + 3, 32), ReLU(), Lin(32, 32))
2121
global_nn = Seq(Lin(32, 32))
@@ -43,7 +43,7 @@ def test_point_net_conv():
4343
assert torch.allclose(jit(x1, pos1, adj1.t()), out, atol=1e-6)
4444

4545
adj1 = adj1.sparse_resize((4, 2))
46-
adj2 = adj1.to_torch_sparse_coo_tensor()
46+
adj2 = adj1.to_torch_sparse_csc_tensor()
4747
out = conv(x1, (pos1, pos2), edge_index)
4848
assert out.size() == (2, 32)
4949
assert conv((x1, None), (pos1, pos2), edge_index).tolist() == out.tolist()

test/nn/conv/test_point_gnn_conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
from torch_geometric.testing import is_full_test
66

77

8-
def test_pointgnn_conv():
8+
def test_point_gnn_conv():
99
x = torch.randn(6, 8)
1010
pos = torch.randn(6, 3)
1111
edge_index = torch.tensor([[0, 1, 1, 1, 2, 5], [1, 2, 3, 4, 3, 4]])
1212
row, col = edge_index
1313
adj1 = SparseTensor(row=row, col=col, sparse_sizes=(6, 6))
14-
adj2 = adj1.to_torch_sparse_coo_tensor()
14+
adj2 = adj1.to_torch_sparse_csc_tensor()
1515

1616
conv = PointGNNConv(
1717
mlp_h=MLP([8, 16, 3]),

test/nn/conv/test_point_transformer_conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_point_transformer_conv():
1414
edge_index = torch.tensor([[0, 1, 2, 3], [0, 0, 1, 1]])
1515
row, col = edge_index
1616
adj1 = SparseTensor(row=row, col=col, sparse_sizes=(4, 4))
17-
adj2 = adj1.to_torch_sparse_coo_tensor()
17+
adj2 = adj1.to_torch_sparse_csc_tensor()
1818

1919
conv = PointTransformerConv(in_channels=16, out_channels=32)
2020
assert str(conv) == 'PointTransformerConv(16, 32)'
@@ -44,7 +44,7 @@ def test_point_transformer_conv():
4444

4545
conv = PointTransformerConv((16, 8), 32)
4646
adj1 = adj1.sparse_resize((4, 2))
47-
adj2 = adj1.to_torch_sparse_coo_tensor()
47+
adj2 = adj1.to_torch_sparse_csc_tensor()
4848

4949
out = conv((x1, x2), (pos1, pos2), edge_index)
5050
assert out.size() == (2, 32)

test/nn/conv/test_ppf_conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_ppf_conv():
1818
edge_index = torch.tensor([[0, 1, 2, 3], [0, 0, 1, 1]])
1919
row, col = edge_index
2020
adj1 = SparseTensor(row=row, col=col, sparse_sizes=(4, 4))
21-
adj2 = adj1.to_torch_sparse_coo_tensor()
21+
adj2 = adj1.to_torch_sparse_csc_tensor()
2222

2323
local_nn = Seq(Lin(16 + 4, 32), ReLU(), Lin(32, 32))
2424
global_nn = Seq(Lin(32, 32))
@@ -46,7 +46,7 @@ def test_ppf_conv():
4646
assert torch.allclose(jit(x1, pos1, n1, adj1.t()), out, atol=1e-6)
4747

4848
adj1 = adj1.sparse_resize((4, 2))
49-
adj2 = adj1.to_torch_sparse_coo_tensor()
49+
adj2 = adj1.to_torch_sparse_csc_tensor()
5050
out = conv(x1, (pos1, pos2), (n1, n2), edge_index)
5151
assert out.size() == (2, 32)
5252
assert torch.allclose(conv((x1, None), (pos1, pos2), (n1, n2), edge_index),

test/nn/conv/test_res_gated_graph_conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_res_gated_graph_conv():
1111
edge_index = torch.tensor([[0, 1, 2, 3], [0, 0, 1, 1]])
1212
row, col = edge_index
1313
adj1 = SparseTensor(row=row, col=col, sparse_sizes=(4, 4))
14-
adj2 = adj1.to_torch_sparse_coo_tensor()
14+
adj2 = adj1.to_torch_sparse_csc_tensor()
1515

1616
conv = ResGatedGraphConv(8, 32)
1717
assert str(conv) == 'ResGatedGraphConv(8, 32)'
@@ -30,7 +30,7 @@ def test_res_gated_graph_conv():
3030
assert torch.allclose(jit(x1, adj1.t()), out, atol=1e-6)
3131

3232
adj1 = adj1.sparse_resize((4, 2))
33-
adj2 = adj1.to_torch_sparse_coo_tensor()
33+
adj2 = adj1.to_torch_sparse_csc_tensor()
3434
conv = ResGatedGraphConv((8, 32), 32)
3535
assert str(conv) == 'ResGatedGraphConv((8, 32), 32)'
3636
out = conv((x1, x2), edge_index)

0 commit comments

Comments
 (0)