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
c2350bb6
Commit
c2350bb6
authored
Jul 20, 2021
by
rusty1s
Browse files
bugfix
parent
cca4e78e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
benchmark/ptr2ind.py
benchmark/ptr2ind.py
+1
-1
No files found.
benchmark/ptr2ind.py
View file @
c2350bb6
...
@@ -62,7 +62,7 @@ def bucketize(matrix):
...
@@ -62,7 +62,7 @@ def bucketize(matrix):
def
convert_coo_to_csr
(
matrix
):
def
convert_coo_to_csr
(
matrix
):
row_indices
=
matrix
.
indices
()[
0
]
row_indices
=
matrix
.
indices
()[
0
]
return
torch
.
_convert_coo_to_csr
(
row_indices
,
matrix
.
size
(
0
)
+
1
)
return
torch
.
_convert_coo_to_csr
(
row_indices
,
matrix
.
size
(
0
))
for
device
in
[
'cpu'
,
'cuda'
]:
for
device
in
[
'cpu'
,
'cuda'
]:
...
...
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