Skip to content

Commit

Permalink
[Doc] added index [0] to torch.max (dmlc#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-robinson authored and jermainewang committed Mar 8, 2019
1 parent d3cd601 commit 1327262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dgl/function/reducer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 1327262

Please sign in to comment.