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
02880e9f
Unverified
Commit
02880e9f
authored
Dec 13, 2021
by
Jinjing Zhou
Committed by
GitHub
Dec 13, 2021
Browse files
Fix unnecessary trigger of lazy copy (#3585)
Co-authored-by:
Mufei Li
<
mufeili1996@gmail.com
>
parent
7273a166
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/heterograph.py
python/dgl/heterograph.py
+1
-1
No files found.
python/dgl/heterograph.py
View file @
02880e9f
...
@@ -4230,7 +4230,7 @@ class DGLHeteroGraph(object):
...
@@ -4230,7 +4230,7 @@ class DGLHeteroGraph(object):
"""
"""
# parse argument
# parse argument
if
is_all
(
edges
):
if
is_all
(
edges
):
return
dict
(
self
.
_edge_frames
[
etid
]
)
return
self
.
_edge_frames
[
etid
]
else
:
else
:
eid
=
utils
.
parse_edges_arg_to_eid
(
self
,
edges
,
etid
,
'edges'
)
eid
=
utils
.
parse_edges_arg_to_eid
(
self
,
edges
,
etid
,
'edges'
)
return
self
.
_edge_frames
[
etid
].
subframe
(
eid
)
return
self
.
_edge_frames
[
etid
].
subframe
(
eid
)
...
...
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