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
d24a4533
Unverified
Commit
d24a4533
authored
May 14, 2020
by
Mario Geiger
Committed by
GitHub
May 14, 2020
Browse files
Update storage.py
parent
9586b8be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_sparse/storage.py
torch_sparse/storage.py
+1
-1
No files found.
torch_sparse/storage.py
View file @
d24a4533
...
...
@@ -277,7 +277,7 @@ class SparseStorage(object):
idx
=
self
.
sparse_size
(
1
)
*
self
.
row
()
+
self
.
col
()
row
=
idx
/
num_cols
row
=
idx
/
/
num_cols
col
=
idx
%
num_cols
return
SparseStorage
(
row
=
row
,
rowptr
=
None
,
col
=
col
,
value
=
self
.
_value
,
...
...
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