dgl.function.copy_edge

dgl.function.copy_edge(edge, out)[source]

Builtin message function that computes message using edge feature.

Notes

This function is deprecated. Please use copy_e instead.

Parameters
  • edge (str) – The edge feature field.

  • out (str) – The output message field.

Examples

>>> import dgl
>>> message_func = dgl.function.copy_edge('h', 'm')

The above example is equivalent to the following user defined function:

>>> def message_func(edges):
>>>     return {'m': edges.data['h']}