Skip to content

Commit

Permalink
Fix unnecessary trigger of lazy copy (dmlc#3585)
Browse files Browse the repository at this point in the history
Co-authored-by: Mufei Li <[email protected]>
  • Loading branch information
VoVAllen and mufeili authored Dec 13, 2021
1 parent 7273a16 commit 02880e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dgl/heterograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -4230,7 +4230,7 @@ def _get_e_repr(self, etid, edges):
"""
# parse argument
if is_all(edges):
return dict(self._edge_frames[etid])
return self._edge_frames[etid]
else:
eid = utils.parse_edges_arg_to_eid(self, edges, etid, 'edges')
return self._edge_frames[etid].subframe(eid)
Expand Down

0 comments on commit 02880e9

Please sign in to comment.