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
98e11533
Unverified
Commit
98e11533
authored
Dec 03, 2020
by
Zihao Ye
Committed by
GitHub
Dec 03, 2020
Browse files
[hotfix] Produce empty tensor in data frame for emtpy graphs. (#2387)
* upd * lint * lint1
parent
1a932926
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
python/dgl/core.py
python/dgl/core.py
+2
-5
No files found.
python/dgl/core.py
View file @
98e11533
...
...
@@ -274,10 +274,7 @@ def message_passing(g, mfunc, rfunc, afunc):
dict[str, Tensor]
Results from the message passing computation.
"""
if
g
.
number_of_edges
()
==
0
:
# No message passing is triggered.
ndata
=
{}
elif
(
is_builtin
(
mfunc
)
and
is_builtin
(
rfunc
)
and
if
(
is_builtin
(
mfunc
)
and
is_builtin
(
rfunc
)
and
getattr
(
ops
,
'{}_{}'
.
format
(
mfunc
.
name
,
rfunc
.
name
),
None
)
is
not
None
):
# invoke fused message passing
ndata
=
invoke_gspmm
(
g
,
mfunc
,
rfunc
)
...
...
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