|
Gromacs
2026.0-dev-20251105-11eb1db
|
#include <gromacs/applied_forces/nnpot/nnpotmodel.h>
Inheritance diagram for gmx::INNPotModel:NNPot Module.
Abstract class for a neural network potential model. Inherit from this class to implement a specific neural network backend/framework. Refer to torchmodel.h for an example implementation.
Public Member Functions | |
| virtual void | evaluateModel (gmx_enerdata_t *, ArrayRef< RVec >, ArrayRef< const int >, ArrayRef< const std::string >, ArrayRef< RVec >, ArrayRef< int >, ArrayRef< const LinkFrontierAtom >, matrix *, PbcType *)=0 |
| Evaluate NN model. More... | |
| virtual void | setComm (const MpiComm &)=0 |
| set communication object for possible communication of input/output data between ranks | |
| virtual bool | outputsForces () const =0 |
| helper function to check if model outputs forces | |
|
pure virtual |
Evaluate NN model.
Includes the preparation of inputs, calling inference of the model, and retrieval of outputs. Currently supported inputs:
Implemented in gmx::TorchModel.
1.8.5