Skip to content

Commit a597b82

Browse files
committed
only cpu test
1 parent eda4b3d commit a597b82

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/test_saint.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
import pytest
21
import torch
32
from torch_sparse.tensor import SparseTensor
43

5-
from .utils import devices
64

7-
8-
@pytest.mark.parametrize('device', devices)
9-
def test_saint_subgraph(device):
5+
def test_saint_subgraph():
106
row = torch.tensor([0, 0, 1, 1, 2, 2, 2, 3, 3, 4])
117
col = torch.tensor([1, 2, 0, 2, 0, 1, 3, 2, 4, 3])
12-
adj = SparseTensor(row=row, col=col).to(device)
8+
adj = SparseTensor(row=row, col=col)
139
node_idx = torch.tensor([0, 1, 2])
1410

1511
adj, edge_index = adj.saint_subgraph(node_idx)

0 commit comments

Comments
 (0)