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
b2ba34bd
Commit
b2ba34bd
authored
Oct 02, 2018
by
rusty1s
Browse files
bw fix
parent
1a4bdd30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
torch_sparse/spspmm.py
torch_sparse/spspmm.py
+8
-6
No files found.
torch_sparse/spspmm.py
View file @
b2ba34bd
...
...
@@ -81,11 +81,13 @@ def from_scipy(A):
def
lift
(
indexA
,
valueA
,
indexB
,
n
):
# pragma: no cover
i
nde
xA
=
indexA
[
0
]
*
n
+
indexA
[
1
]
i
nde
xB
=
indexB
[
0
]
*
n
+
indexB
[
1
]
i
d
xA
=
indexA
[
0
]
*
n
+
indexA
[
1
]
i
d
xB
=
indexB
[
0
]
*
n
+
indexB
[
1
]
value
=
valueA
.
new_zeros
(
indexB
.
max
().
item
()
+
1
)
value
[
indexA
]
=
valueA
value
=
value
[
indexB
]
max_value
=
max
(
idxA
.
max
().
item
(),
idxB
.
max
().
item
())
+
1
valueB
=
valueA
.
new_zeros
(
max_value
)
return
value
valueB
[
idxA
]
=
valueA
valueB
=
valueB
[
idxB
]
return
valueB
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