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-sparse
Commits
a9d4d469
Commit
a9d4d469
authored
Oct 14, 2020
by
rusty1s
Browse files
typo
parent
26fa1b3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
torch_sparse/metis.py
torch_sparse/metis.py
+4
-3
No files found.
torch_sparse/metis.py
View file @
a9d4d469
...
...
@@ -19,9 +19,10 @@ def weight2metis(weight: torch.Tensor) -> Optional[torch.Tensor]:
return
weight_ratio
.
to
(
torch
.
long
)
def
partition
(
src
:
SparseTensor
,
num_parts
:
int
,
recursive
:
bool
=
False
,
weighted
=
False
)
->
Tuple
[
SparseTensor
,
torch
.
Tensor
,
torch
.
Tensor
]:
def
partition
(
src
:
SparseTensor
,
num_parts
:
int
,
recursive
:
bool
=
False
,
weighted
:
bool
=
False
)
->
Tuple
[
SparseTensor
,
torch
.
Tensor
,
torch
.
Tensor
]:
assert
num_parts
>=
1
if
num_parts
==
1
:
...
...
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