Skip to content

Commit 121263f

Browse files
committed
fix docs
1 parent 82f13f5 commit 121263f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/sparse/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def mm(mat1, mat2):
2929
r"""
3030
Performs a matrix multiplication of the sparse matrix :attr:`mat1`
3131
and dense matrix :attr:`mat2`. Similar to :func:`torch.mm`, If :attr:`mat1` is a
32-
(n \times m)(n×m) tensor, :attr:`mat2` is a (m \times p)(m×p) tensor, out will be a
33-
(n \times p)(n×p) dense tensor. :attr:`mat1` need to have `sparse_dim = 2`.
32+
:math:`(n \times m)` tensor, :attr:`mat2` is a :math:`(m \times p)` tensor, out will be a
33+
:math:`(n \times p)` dense tensor. :attr:`mat1` need to have `sparse_dim = 2`.
3434
This function also supports backward for both matrices. Note that the gradients of
3535
:attr:`mat1` is a coalesced sparse tensor.
3636

0 commit comments

Comments
 (0)