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
6418c1c5
Unverified
Commit
6418c1c5
authored
Dec 17, 2021
by
Zeyan Li 李则言
Committed by
GitHub
Dec 17, 2021
Browse files
fix reducer qualname and name to support pickle (#3540)
parent
4bb94b15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/dgl/function/reducer.py
python/dgl/function/reducer.py
+2
-1
No files found.
python/dgl/function/reducer.py
View file @
6418c1c5
...
@@ -77,7 +77,8 @@ def _gen_reduce_builtin(reducer):
...
@@ -77,7 +77,8 @@ def _gen_reduce_builtin(reducer):
def
func
(
msg
,
out
):
def
func
(
msg
,
out
):
return
SimpleReduceFunction
(
reducer
,
msg
,
out
)
return
SimpleReduceFunction
(
reducer
,
msg
,
out
)
func
.
__name__
=
reducer
func
.
__name__
=
str
(
reducer
)
func
.
__qualname__
=
str
(
reducer
)
func
.
__doc__
=
docstring
func
.
__doc__
=
docstring
return
func
return
func
...
...
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