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
40afdf7c
Commit
40afdf7c
authored
Feb 13, 2019
by
Lingfan Yu
Committed by
Minjie Wang
Feb 13, 2019
Browse files
[Bugfix] Remove unnecessary assert in from_scipy_sparse_matrix (#391)
parent
91b73823
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
python/dgl/graph_index.py
python/dgl/graph_index.py
+0
-2
No files found.
python/dgl/graph_index.py
View file @
40afdf7c
...
@@ -756,8 +756,6 @@ class GraphIndex(object):
...
@@ -756,8 +756,6 @@ class GraphIndex(object):
----------
----------
adj : scipy sparse matrix
adj : scipy sparse matrix
"""
"""
assert
isinstance
(
adj
,
(
scipy
.
sparse
.
csr_matrix
,
scipy
.
sparse
.
coo_matrix
)),
\
"The input matrix has to be a SciPy sparse matrix."
if
not
self
.
is_readonly
():
if
not
self
.
is_readonly
():
self
.
clear
()
self
.
clear
()
num_nodes
=
max
(
adj
.
shape
[
0
],
adj
.
shape
[
1
])
num_nodes
=
max
(
adj
.
shape
[
0
],
adj
.
shape
[
1
])
...
...
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