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
13272628
"git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "989702b3638c4cb4b0690f906f688cde28821bc0"
Commit
13272628
authored
Mar 08, 2019
by
mc-robinson
Committed by
Minjie Wang
Mar 08, 2019
Browse files
[Doc] added index [0] to torch.max (#443)
parent
d3cd6014
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/function/reducer.py
python/dgl/function/reducer.py
+1
-1
No files found.
python/dgl/function/reducer.py
View file @
13272628
...
...
@@ -92,6 +92,6 @@ def max(msg, out):
>>> import torch
>>> def reduce_func(nodes):
>>> return {'h': torch.max(nodes.mailbox['m'], dim=1)}
>>> return {'h': torch.max(nodes.mailbox['m'], dim=1)
[0]
}
"""
return
SimpleReduceFunction
(
"max"
,
F
.
max
,
msg
,
out
)
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