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
328aaf2f
Commit
328aaf2f
authored
Feb 11, 2020
by
Maurits Diephuis
Browse files
fixed a bracket placement
parent
1ffbee24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_sparse/coalesce.py
torch_sparse/coalesce.py
+1
-1
No files found.
torch_sparse/coalesce.py
View file @
328aaf2f
...
@@ -20,6 +20,6 @@ def coalesce(index, value, m, n, op="add"):
...
@@ -20,6 +20,6 @@ def coalesce(index, value, m, n, op="add"):
"""
"""
storage
=
SparseStorage
(
row
=
index
[
0
],
col
=
index
[
1
],
value
=
value
,
storage
=
SparseStorage
(
row
=
index
[
0
],
col
=
index
[
1
],
value
=
value
,
sparse_sizes
=
torch
.
Size
([
m
,
n
],
is_sorted
=
False
)
)
sparse_sizes
=
torch
.
Size
([
m
,
n
]
)
,
is_sorted
=
False
)
storage
=
storage
.
coalesce
(
reduce
=
op
)
storage
=
storage
.
coalesce
(
reduce
=
op
)
return
torch
.
stack
([
storage
.
row
(),
storage
.
col
()],
dim
=
0
),
storage
.
value
()
return
torch
.
stack
([
storage
.
row
(),
storage
.
col
()],
dim
=
0
),
storage
.
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