dgl.ops.copy_v

dgl.ops.copy_v(g, x)[source]

Generalized SDDMM function that copies destination node features to edges.

Parameters
  • g (DGLHeteroGraph) – The input graph.

  • x (tensor) – The destination node features.

Returns

The result tensor.

Return type

tensor

Notes

This function supports autograd (computing input gradients given the output gradient).