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
73146b9b
Commit
73146b9b
authored
Jan 26, 2020
by
rusty1s
Browse files
transpose fix
parent
ac25b416
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
torch_sparse/transpose.py
torch_sparse/transpose.py
+3
-6
No files found.
torch_sparse/transpose.py
View file @
73146b9b
...
...
@@ -29,16 +29,13 @@ def transpose(index, value, m, n, coalesced=True):
def
t
(
src
):
row
,
col
,
value
=
src
.
coo
()
csr2csc
=
src
.
storage
.
csr2csc
row
,
col
=
col
[
csr2csc
],
row
[
csr2csc
]
storage
=
src
.
storage
.
__class__
(
row
=
col
,
row
=
src
.
storage
.
col
[
csr2csc
]
,
rowptr
=
src
.
storage
.
_colptr
,
col
=
row
,
value
=
value
[
csr2csc
]
if
src
.
has_value
()
else
None
,
col
=
src
.
storage
.
row
[
csr2csc
]
,
value
=
src
.
storage
.
value
[
csr2csc
]
if
src
.
has_value
()
else
None
,
sparse_size
=
src
.
storage
.
sparse_size
[::
-
1
],
rowcount
=
src
.
storage
.
_colcount
,
colptr
=
src
.
storage
.
_rowptr
,
...
...
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