Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-cluster
Commits
53144855
Commit
53144855
authored
Aug 07, 2018
by
rusty1s
Browse files
coveragerc
parent
16b976c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
.coveragerc
.coveragerc
+4
-0
test/utils.py
test/utils.py
+1
-1
torch_cluster/graclus.py
torch_cluster/graclus.py
+1
-1
No files found.
.coveragerc
0 → 100644
View file @
53144855
[report]
exclude_lines =
pragma: no cover
cuda
test/utils.py
View file @
53144855
...
@@ -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
()))]
...
...
torch_cluster/graclus.py
View file @
53144855
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment