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
08892a31
Commit
08892a31
authored
Jun 25, 2022
by
rusty1s
Browse files
add doc
parent
adc8be24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
torch_sparse/spmm.py
torch_sparse/spmm.py
+5
-2
No files found.
torch_sparse/spmm.py
View file @
08892a31
...
@@ -8,10 +8,13 @@ def spmm(index: Tensor, value: Tensor, m: int, n: int,
...
@@ -8,10 +8,13 @@ def spmm(index: Tensor, value: Tensor, m: int, n: int,
Args:
Args:
index (:class:`LongTensor`): The index tensor of sparse matrix.
index (:class:`LongTensor`): The index tensor of sparse matrix.
value (:class:`Tensor`): The value tensor of sparse matrix.
value (:class:`Tensor`): The value tensor of sparse matrix, either of
floating-point or integer type. Does not work for boolean and
complex number data types.
m (int): The first dimension of sparse matrix.
m (int): The first dimension of sparse matrix.
n (int): The second dimension of sparse matrix.
n (int): The second dimension of sparse matrix.
matrix (:class:`Tensor`): The dense matrix.
matrix (:class:`Tensor`): The dense matrix of same type as
:obj:`value`.
:rtype: :class:`Tensor`
:rtype: :class:`Tensor`
"""
"""
...
...
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