mliap_interface module
Full Documentation for hippynn.interfaces.lammps_interface.mliap_interface module.
Click here for a summary page.
Interface for creating LAMMPS MLIAP Unified models.
- class LocalAtomEnergyNode(name, parents, module='auto', **kwargs)[source]
Bases:
AutoNoKw,ExpandParents,MultiNode
- class LocalAtomsEnergy[source]
Bases:
Module- forward(all_atom_energies, nlocal)[source]
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- class MLIAPInterface(*args: Any, **kwargs: Any)[source]
Bases:
MLIAPUnifiedClass for creating ML-IAP Unified model based on hippynn graphs.
- class ReIndexAtomMod(*args, **kwargs)[source]
Bases:
Module- forward(raw_atom_index_array, inverse_real_atoms)[source]
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- class ReIndexAtomNode(name, parents, module='auto', **kwargs)[source]
Bases:
AutoNoKw,SingleNode