I’m confused by the following two message functions:
message_func1 = dgl.function.copy_u(‘h’, ‘m’)
message_func2 = dgl.function.copy_u(‘h’, ‘e’)
I understand that, the first one will only generate mesages, while the second one will generate both messages AND edge features (called ‘e’). Am I right?
The document tells the message function will return messages OR edge features. So when return messages and when return edge feature? thanks.
def edge_udf(edges):
“”"
Parameters
----------
edges : EdgeBatch
A batch of edges.
Returns
-------
dict[str, tensor]
The messages or edge features generated. It maps a message/feature name to the
corresponding messages/features of all edges in the batch. The order of the
messages/features is the same as the order of the edges in the input argument.
"""