Gromacs  2026.0-dev-20250708-4043d16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Variables
torchmodel.h File Reference
#include <torch/cuda.h>
#include <torch/script.h>
#include <torch/torch.h>
#include <string>
#include "gromacs/applied_forces/nnpot/nnpotmodel.h"
+ Include dependency graph for torchmodel.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares a wrapper class for a TorchScript-compiled neural network model.

Author
Lukas Müllender lukas.nosp@m..mue.nosp@m.llend.nosp@m.er@g.nosp@m.mail..nosp@m.com

Classes

class  gmx::TorchModel
 Class responsible for loading and evaluating a TorchScript-compiled neural network model. Inherits from NNPotModel. More...
 

Variables

static constexpr auto gmx::torchRealType = GMX_DOUBLE ? torch::kFloat64 : torch::kFloat32
 Define the torch datatype according to GMX_DOUBLE. More...