dgl.ops.v_div_u

dgl.ops.v_div_u(g, x, y)

广义SDDMM函数。 它通过目标节点特征和源节点特征来计算边特征。

Parameters:
  • g (DGLGraph) – The input graph

  • x (tensor) – The destination node features.

  • y (tensor) – The source node features.

Returns:

结果张量。

Return type:

张量

注释

此函数支持自动求导(根据输出梯度计算输入梯度)。如果两个输入操作数的特征形状不匹配,我们首先将特征广播到统一的形状(注意内存使用不会相应增加),然后执行操作。

Broadcasting follows NumPy semantics. Please see https://docs.scipy.org/doc/numpy/user/basics.broadcasting.html for more details about the NumPy broadcasting semantics.