dgl.function.copy_uΒΆ
-
dgl.function.
copy_u
(u, out)[source]ΒΆ Builtin message function that computes message using source node feature.
Examples
>>> import dgl >>> message_func = dgl.function.copy_u('h', 'm')
The above example is equivalent to the following user defined function:
>>> def message_func(edges): >>> return {'m': edges.src['h']}