xnn.ffnn.models.gfnff_export.direct_outputs#
- xnn.ffnn.models.gfnff_export.direct_outputs(model, data)[source]#
The outputs of
forward()with the forces and the strain derivative"virial"(eV) of every structure, fromenergy_and_gradient(). The positions of a periodic structure are first unwrapped against the positions of the model’s hydrogen-bond lists (an atom a driver wraps back into the cell keeps its bonds). The outputs carry no autograd graph.