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
dgl
Commits
b743f767
Unverified
Commit
b743f767
authored
Jan 12, 2023
by
Hongzhi (Steve), Chen
Committed by
GitHub
Jan 12, 2023
Browse files
fix (#5151)
Co-authored-by:
Steve
<
ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal
>
parent
f94fa9d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
python/dgl/sparse/sparse_matrix.py
python/dgl/sparse/sparse_matrix.py
+4
-2
No files found.
python/dgl/sparse/sparse_matrix.py
View file @
b743f767
...
@@ -103,7 +103,8 @@ class SparseMatrix:
...
@@ -103,7 +103,8 @@ class SparseMatrix:
return
self
.
c_sparse_matrix
.
coo
()
return
self
.
c_sparse_matrix
.
coo
()
def
csr
(
self
)
->
Tuple
[
torch
.
Tensor
,
...]:
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
Returns
-------
-------
...
@@ -114,7 +115,8 @@ class SparseMatrix:
...
@@ -114,7 +115,8 @@ class SparseMatrix:
return
self
.
c_sparse_matrix
.
csr
()
return
self
.
c_sparse_matrix
.
csr
()
def
csc
(
self
)
->
Tuple
[
torch
.
Tensor
,
...]:
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
Returns
-------
-------
...
...
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