graph_setup module

Full Documentation for hippynn.interfaces.lammps_interface.graph_setup module. Click here for a summary page.

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 Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

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 Module instance 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

setup_LAMMPS_graph(energy)[source]
Parameters:

energy – energy node for lammps interface

Returns:

graph for computing from lammps MLIAP unified inputs.