xnn.gnn.fast.painn_kernels.message#
- xnn.gnn.fast.painn_kernels.message(x, W, direction, v, edge_index)[source]#
The fused message block (eq 7 and 8 of the PaiNN paper).
- Parameters:
x (Tensor) –
phi(s), shape(N, 3F), parts in the order(s, vv, vs).W (Tensor) – The block’s filters, the cutoff included, shape
(E, 3F)(rows may be strided, as for one block’s columns of the stacked filters).direction (Tensor) – Unit vectors
r_ij / |r_ij|, shape(E, 3).v (Tensor) – Vector features, shape
(N, 3, F).edge_index (Tensor) – Neighbor (row 0) and center (row 1) of every edge.
- Returns:
dsof shape(N, F)anddvof shape(N, 3, F).- Return type:
tuple of Tensor