xnn.common.models.dispersion_fast.cpu.d3_direct#

xnn.common.models.dispersion_fast.cpu.d3_direct(term, data)[source]#

D3 of a batched graph on the C++ kernels with its forces, without autograd: the energies per atom and per structure (B, 3) (total, two-body, three-body; eV) and the features in the model dtype, the forces (N, 3) (eV / A) and dE / d(strain) (B, 3, 3) (eV) in the dtype of the positions.

Return type:

Tuple[Tensor, …]