Skip to content

Commit 5314485

Browse files
committed
coveragerc
1 parent 16b976c commit 5314485

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[report]
2+
exclude_lines =
3+
pragma: no cover
4+
cuda

test/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
dtypes.remove(torch.half)
66

77
devices = [torch.device('cpu')]
8-
if torch.cuda.is_available(): # pragma: no cover
8+
if torch.cuda.is_available():
99
devices += [torch.device('cuda:{}'.format(torch.cuda.current_device()))]
1010

1111

torch_cluster/graclus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def graclus_cluster(row, col, weight=None, num_nodes=None):
2323

2424
num_nodes = row.max().item() + 1 if num_nodes is None else num_nodes
2525

26-
if row.is_cuda: # pragma: no cover
26+
if row.is_cuda:
2727
row, col = sort_row(row, col)
2828
else:
2929
row, col = randperm(row, col)

0 commit comments

Comments
 (0)