34 explicit MaceGNNModel(std::string model_path, std::string device =
"cpu",
74 [[nodiscard]]
bool isLoaded() const noexcept;
Abstract interface for Machine Learning Interatomic Potentials (MLIP).
Abstract interface for machine learning interatomic potential evaluation engines (ORB-v3,...
Definition MLIPInterface.hpp:75
bool isLoaded() const noexcept
Checks if LibTorch backend is compiled and model successfully loaded.
Definition MaceGNNModel.cpp:69
std::string device_str_
Definition MaceGNNModel.hpp:80
MLIPOutput evaluate(const correlation::core::Cell &cell) const override
Evaluates potential properties (energy, forces, stress) on an atomic Cell.
Definition MaceGNNModel.cpp:131
real_t cutoff_
Definition MaceGNNModel.hpp:81
std::string model_path_
Definition MaceGNNModel.hpp:79
std::unique_ptr< Impl > impl_
Definition MaceGNNModel.hpp:78
real_t cutoff() const noexcept
Gets the radial neighbor cutoff radius.
Definition MaceGNNModel.hpp:62
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.
Definition MaceGNNModel.cpp:31
void setCutoff(real_t cutoff) noexcept
Sets the radial neighbor cutoff radius.
Definition MaceGNNModel.hpp:68
MaceGNNModel(MaceGNNModel &&) noexcept
std::string getModelName() const override
Returns the model architecture and source path identifier.
Definition MaceGNNModel.cpp:67
Definition ITrajectoryCalculator.hpp:13
Definition GraphDescriptors.hpp:18
Definition AnalysisTypes.hpp:11
double real_t
Definition Precision.hpp:18
Output container for machine learning interatomic potential calculations.
Definition MLIPInterface.hpp:24
Definition MaceGNNModel.cpp:21