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
0fc7dc2d
Unverified
Commit
0fc7dc2d
authored
Jun 25, 2019
by
Matthias Fey
Committed by
GitHub
Jun 25, 2019
Browse files
Merge pull request #22 from ekagra-ranjan/patch-3
Fix bug in `coalesced` arg of transpose
parents
7c55386b
82fee5a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_sparse/transpose.py
torch_sparse/transpose.py
+1
-1
No files found.
torch_sparse/transpose.py
View file @
0fc7dc2d
...
@@ -23,6 +23,6 @@ def transpose(index, value, m, n, coalesced=True):
...
@@ -23,6 +23,6 @@ def transpose(index, value, m, n, coalesced=True):
row
,
col
=
index
row
,
col
=
index
index
=
torch
.
stack
([
col
,
row
],
dim
=
0
)
index
=
torch
.
stack
([
col
,
row
],
dim
=
0
)
if
coalesce
:
if
coalesce
d
:
index
,
value
=
coalesce
(
index
,
value
,
n
,
m
)
index
,
value
=
coalesce
(
index
,
value
,
n
,
m
)
return
index
,
value
return
index
,
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