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
4c8a4155
Commit
4c8a4155
authored
Mar 11, 2020
by
rusty1s
Browse files
fix default value for matmul
parent
2eff4072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
torch_sparse/matmul.py
torch_sparse/matmul.py
+3
-3
No files found.
torch_sparse/matmul.py
View file @
4c8a4155
...
@@ -109,9 +109,9 @@ def matmul(src: SparseTensor, other: Union[torch.Tensor, SparseTensor],
...
@@ -109,9 +109,9 @@ def matmul(src: SparseTensor, other: Union[torch.Tensor, SparseTensor],
raise
ValueError
raise
ValueError
SparseTensor
.
spmm
=
lambda
self
,
other
,
reduce
=
None
:
spmm
(
self
,
other
,
reduce
)
SparseTensor
.
spmm
=
lambda
self
,
other
,
reduce
=
"sum"
:
spmm
(
self
,
other
,
reduce
)
SparseTensor
.
spspmm
=
lambda
self
,
other
,
reduce
=
None
:
spspmm
(
SparseTensor
.
spspmm
=
lambda
self
,
other
,
reduce
=
"sum"
:
spspmm
(
self
,
other
,
reduce
)
self
,
other
,
reduce
)
SparseTensor
.
matmul
=
lambda
self
,
other
,
reduce
=
None
:
matmul
(
SparseTensor
.
matmul
=
lambda
self
,
other
,
reduce
=
"sum"
:
matmul
(
self
,
other
,
reduce
)
self
,
other
,
reduce
)
SparseTensor
.
__matmul__
=
lambda
self
,
other
:
matmul
(
self
,
other
,
'sum'
)
SparseTensor
.
__matmul__
=
lambda
self
,
other
:
matmul
(
self
,
other
,
'sum'
)
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