xnn.dnn.fast.physnet#

Fast path of the PhysNet message sums (Triton kernels).

PhysNet’s interaction layer sums G g(r_ij) * (W_J act(x_j) + b_J) over the neighbors of every atom: the attention-masked features of the neighbors with a filter linear in the radial basis. That is SchNet’s continuous-filter convolution without the filter activation and envelope, so the fast path is the same fused kernel (xnn.gnn.fast.schnet): it gathers, multiplies and sums in registers, one program per atom, without writing an edge-sized tensor. The kernel is twice differentiable, so force training takes it as well.

Module Attributes

AUTO_POLICY

Edge counts above which use_fast="auto" takes the kernels in evaluation mode (energy and forces).

AUTO_POLICY_TRAINING

The same for training mode (a step with a force loss, second derivatives included).

Functions

supported(device, dtype)

Triton kernels on a CUDA device in float32 or float64.