xnn.gnn.fast.schnet_kernels.cfconv#
- xnn.gnn.fast.schnet_kernels.cfconv(h, z, envelope, edge_index, activated=False)[source]#
The fused continuous-filter convolution of one block (see
xnn.gnn.fast.schnet).- Parameters:
h (Tensor) – Features after the block’s input layer, shape
(N, F).z (Tensor) – Output of the filter network’s second dense layer, shape
(E, F).envelope (Tensor or None) – Filter envelope per edge, shape
(E,).edge_index (Tensor) – Source (row 0) and destination (row 1) of every edge.
activated (bool, optional) – Whether the shifted softplus follows the second dense layer.
- Returns:
sum_j h_j o W(r_ij)per atom, shape(N, F).- Return type:
Tensor