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
0576a33b
Unverified
Commit
0576a33b
authored
Mar 28, 2021
by
Jinjing Zhou
Committed by
GitHub
Mar 28, 2021
Browse files
Update convert.py (#2789)
Co-authored-by:
Zihao Ye
<
expye@outlook.com
>
parent
a1b5b42a
Changes
1
Hide 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 @
0576a33b
...
@@ -158,7 +158,7 @@ def graph(data,
...
@@ -158,7 +158,7 @@ def graph(data,
' but got {} and {}.'
.
format
(
num_nodes
,
max
(
urange
,
vrange
)
-
1
))
' but got {} and {}.'
.
format
(
num_nodes
,
max
(
urange
,
vrange
)
-
1
))
urange
,
vrange
=
num_nodes
,
num_nodes
urange
,
vrange
=
num_nodes
,
num_nodes
g
=
create_from_edges
(
u
,
v
,
'_N'
,
'_E'
,
'_N'
,
urange
,
vrange
)
g
=
create_from_edges
(
u
,
v
,
'_N'
,
'_E'
,
'_N'
,
urange
,
vrange
,
validate
=
False
)
return
g
.
to
(
device
)
return
g
.
to
(
device
)
...
...
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