xnn.dnn.fast.aev#

Fast path of the ANI atomic environment vectors (Triton kernels).

The reference radial and angular terms evaluate every edge’s or triplet’s (E, P) / (T, P) block of symmetry functions as separate tensor operations, each written to memory and kept for the backward pass, and add them onto the centers. Here the neighbor list, the triplets and their geometry (distances and angles) stay as they are, and one kernel per term evaluates the functions and sums them onto the centers in registers (one program per center, so no atomic adds and the same result in every run): no edge- or triplet-sized block is written. The gradient with respect to the distances and angles is one kernel per term, and that gradient is itself differentiable through two more kernels of the same forms, so a force loss trains through the kernels as well.

Module Attributes

NEVER

the reference.

AUTO_POLICY

When 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.