Gromacs
2026.0-dev-20241213-9ac17bb
|
#include <gromacs/applied_forces/nnpot/nnpotmodel.h>
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 | initModel ()=0 |
Initialize the neural network model. | |
virtual void | evaluateModel ()=0 |
call inference on NN model | |
virtual void | getOutputs (std::vector< int > &, gmx_enerdata_t &, const ArrayRef< RVec > &, bool)=0 |
retrieve NN model outputs | |
virtual void | setCommRec (const t_commrec *)=0 |
set communication record for possible communication of input/output data between ranks | |
virtual void | prepareAtomPositions (std::vector< RVec > &)=0 |
Prepare inputs for NN model. More... | |
virtual void | prepareAtomNumbers (std::vector< int > &)=0 |
virtual void | prepareBox (matrix &)=0 |
virtual void | preparePbcType (PbcType &)=0 |
|
pure virtual |
Prepare inputs for NN model.
Currently supported inputs:
Implemented in gmx::TorchModel.