dgl.function.copy_e¶
-
dgl.function.
copy_e
(e, out)[source]¶ Builtin message function that computes message using edge feature.
Examples
>>> import dgl >>> message_func = dgl.function.copy_e('h', 'm')
The above example is equivalent to the following user defined function:
>>> def message_func(edges): >>> return {'m': edges.data['h']}