xnn.ffnn.models.reaxff_train#

The kernels of reaxff_kernels differentiable twice, for training: the per-atom energies of a term kernel, its gradients in the inputs (positions or bond vectors, per-atom and per-bond arrays, parameter tables) as a function that is itself differentiable. The second derivatives run the generated kernels of reaxff_tangents: the adjoint’s tangent along the incoming direction (the Hessian-vector product, into every input) and the forward kernel’s tangent (the gradient of the incoming energy gradients). The cell enters as a constant: a stress loss takes the reference terms.

Functions

kernel_terms_twice(c, inputs)

The per-atom energies (N, K) (float64) of KernelTermsTwice for the launch c of kernel_terms(); the differentiable inputs those with a tangent in the generated kernels.

Classes

KernelTermsTwice(*args, **kwargs)

KernelTerms differentiable twice: the per-atom energies (N, K) (float64) of a term kernel, the backward through _KernelGrad.