dgl.function.minΒΆ
-
dgl.function.
min
(msg, out)ΒΆ Builtin reduce function that aggregates messages by min.
Examples
>>> import dgl >>> reduce_func = dgl.function.min('m', 'h')
The above example is equivalent to the following user defined function (if using PyTorch):
>>> import torch >>> def reduce_func(nodes): >>> return {'h': torch.min(nodes.mailbox['m'], dim=1)}