Skip to content

Commit 08892a3

Browse files
committed
add doc
1 parent adc8be2 commit 08892a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

torch_sparse/spmm.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ def spmm(index: Tensor, value: Tensor, m: int, n: int,
88
99
Args:
1010
index (:class:`LongTensor`): The index tensor of sparse matrix.
11-
value (:class:`Tensor`): The value tensor of sparse matrix.
11+
value (:class:`Tensor`): The value tensor of sparse matrix, either of
12+
floating-point or integer type. Does not work for boolean and
13+
complex number data types.
1214
m (int): The first dimension of sparse matrix.
1315
n (int): The second dimension of sparse matrix.
14-
matrix (:class:`Tensor`): The dense matrix.
16+
matrix (:class:`Tensor`): The dense matrix of same type as
17+
:obj:`value`.
1518
1619
:rtype: :class:`Tensor`
1720
"""

0 commit comments

Comments
 (0)