|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
High-performance TorchScript MACE inference engine for atomic systems. More...
#include <MaceGNNModel.hpp>


Classes | |
| struct | Impl |
Public Member Functions | |
| MaceGNNModel (std::string model_path, std::string device="cpu", real_t cutoff=static_cast< real_t >(5.0)) | |
| Constructs a MACE TorchScript model from a serialized .pt or .model file. | |
| ~MaceGNNModel () override | |
| MaceGNNModel (MaceGNNModel &&) noexcept | |
| MaceGNNModel & | operator= (MaceGNNModel &&) noexcept |
| MaceGNNModel (const MaceGNNModel &)=delete | |
| MaceGNNModel & | operator= (const MaceGNNModel &)=delete |
| std::string | getModelName () const override |
| Returns the model architecture and source path identifier. | |
| MLIPOutput | evaluate (const correlation::core::Cell &cell) const override |
| Evaluates potential properties (energy, forces, stress) on an atomic Cell. | |
| real_t | cutoff () const noexcept |
| Gets the radial neighbor cutoff radius. | |
| void | setCutoff (real_t cutoff) noexcept |
| Sets the radial neighbor cutoff radius. | |
| bool | isLoaded () const noexcept |
| Checks if LibTorch backend is compiled and model successfully loaded. | |
| Public Member Functions inherited from correlation::mlip::MLIPInterface | |
| virtual | ~MLIPInterface ()=default |
Private Attributes | |
| std::unique_ptr< Impl > | impl_ |
| std::string | model_path_ |
| std::string | device_str_ |
| real_t | cutoff_ {static_cast<real_t>(5.0)} |
High-performance TorchScript MACE inference engine for atomic systems.
Ingests serialized MACE TorchScript models (.pt or .model exported via mace.cli.create_lammps_model) and evaluates potential energy, atomic forces, and virial stress tensors over periodic boundary condition structures.
|
explicit |
Constructs a MACE TorchScript model from a serialized .pt or .model file.
| [in] | model_path | Path to the compiled MACE TorchScript model artifact. |
| [in] | device | Execution target device (e.g. "cpu", "cuda", "cuda:0"). |
| [in] | cutoff | Radial neighbor cutoff radius in Angstroms (default: 5.0). |


|
overridedefault |
|
defaultnoexcept |

|
delete |

|
inlinenodiscardnoexcept |
Gets the radial neighbor cutoff radius.


|
nodiscardoverridevirtual |
Evaluates potential properties (energy, forces, stress) on an atomic Cell.
| [in] | cell | Atomic configuration cell. |
Implements correlation::mlip::MLIPInterface.


|
nodiscardoverridevirtual |
Returns the model architecture and source path identifier.
Implements correlation::mlip::MLIPInterface.


|
nodiscardnoexcept |
Checks if LibTorch backend is compiled and model successfully loaded.

|
delete |

|
defaultnoexcept |

|
inlinenoexcept |
Sets the radial neighbor cutoff radius.
| [in] | cutoff | New cutoff distance in Angstroms. |

|
private |
|
private |
|
private |