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
33b8700b
Unverified
Commit
33b8700b
authored
Sep 30, 2019
by
Quan (Andy) Gan
Committed by
GitHub
Sep 30, 2019
Browse files
[Bugfix][Hetero] Fix typo (#891)
Don't know why it passed the merging test...
parent
0ca52bfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/convert.py
python/dgl/convert.py
+1
-1
No files found.
python/dgl/convert.py
View file @
33b8700b
...
@@ -320,7 +320,7 @@ def heterograph(data_dict, num_nodes_dict=None):
...
@@ -320,7 +320,7 @@ def heterograph(data_dict, num_nodes_dict=None):
ndst
=
data
.
number_of_nodes
()
-
nsrc
ndst
=
data
.
number_of_nodes
()
-
nsrc
elif
isinstance
(
data
,
DGLHeteroGraph
):
elif
isinstance
(
data
,
DGLHeteroGraph
):
# Do nothing; handled in the next loop
# Do nothing; handled in the next loop
pass
continue
else
:
else
:
raise
DGLError
(
'Unsupported graph data type %s for %s'
%
(
raise
DGLError
(
'Unsupported graph data type %s for %s'
%
(
type
(
data
),
(
srctype
,
etype
,
dsttype
)))
type
(
data
),
(
srctype
,
etype
,
dsttype
)))
...
...
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