dgl.ops.copy_u_sumο
- dgl.ops.copy_u_sum(g, x)ο
Generalized SpMM function. It copies node feature to edge as the message. Then aggregates the message by sum on destination nodes.
- Parameters:
g (DGLGraph) β The input graph
x (tensor) β The source node features.
- Returns:
The result tensor.
- Return type:
tensor
Notes
This function supports autograd (computing input gradients given the output gradient).
The sum function will return zero for nodes with no incoming messages.