"tests/git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "144e7567a7f5e01e84eb7425d0b239b50d5e9fcf"
Commit 53144855 authored by rusty1s's avatar rusty1s
Browse files

coveragerc

parent 16b976c7
[report]
exclude_lines =
pragma: no cover
cuda
...@@ -5,7 +5,7 @@ dtypes = get_all_dtypes() ...@@ -5,7 +5,7 @@ dtypes = get_all_dtypes()
dtypes.remove(torch.half) dtypes.remove(torch.half)
devices = [torch.device('cpu')] devices = [torch.device('cpu')]
if torch.cuda.is_available(): # pragma: no cover if torch.cuda.is_available():
devices += [torch.device('cuda:{}'.format(torch.cuda.current_device()))] devices += [torch.device('cuda:{}'.format(torch.cuda.current_device()))]
......
...@@ -23,7 +23,7 @@ def graclus_cluster(row, col, weight=None, num_nodes=None): ...@@ -23,7 +23,7 @@ def graclus_cluster(row, col, weight=None, num_nodes=None):
num_nodes = row.max().item() + 1 if num_nodes is None else num_nodes num_nodes = row.max().item() + 1 if num_nodes is None else num_nodes
if row.is_cuda: # pragma: no cover if row.is_cuda:
row, col = sort_row(row, col) row, col = sort_row(row, col)
else: else:
row, col = randperm(row, col) row, col = randperm(row, col)
......
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