Skip to content

Commit

Permalink
fix (dmlc#5151)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve <[email protected]>
  • Loading branch information
frozenbugs and Steve authored Jan 12, 2023
1 parent f94fa9d commit b743f76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/dgl/sparse/sparse_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def coo(self) -> Tuple[torch.Tensor, ...]:
return self.c_sparse_matrix.coo()

def csr(self) -> Tuple[torch.Tensor, ...]:
"""Get the coordinate (COO) representation of the sparse matrix.
r"""Get the compressed sparse row (CSR) representation of the sparse
matrix.
Returns
-------
Expand All @@ -114,7 +115,8 @@ def csr(self) -> Tuple[torch.Tensor, ...]:
return self.c_sparse_matrix.csr()

def csc(self) -> Tuple[torch.Tensor, ...]:
"""Get the coordinate (COO) representation of the sparse matrix.
r"""Get the compressed sparse column (CSC) representation of the sparse
matrix.
Returns
-------
Expand Down

0 comments on commit b743f76

Please sign in to comment.