xnn.hybnn.models.byteff.LennardJonesChargeHead#

class xnn.hybnn.models.byteff.LennardJonesChargeHead(node_dim, edge_dim, pre=(512, 512, 4), out=(256, 3), tanh_output=20.0, activation='gelu')[source]#

Bases: Module

Per-atom Lennard-Jones sigma, epsilon and partial charges (ByteFF).

Parameters:
  • node_dim (int) – Widths of the atom and edge states.

  • edge_dim (int) – Widths of the atom and edge states.

  • pre (tuple of int) – (hidden, out, layers) of the charge-increment MLP over bonds.

  • out (tuple of int) – (hidden, layers) of the output MLPs.

  • tanh_output (float) – sigma and epsilon are t (tanh(y) + 1); also the bound of the bond charge increments.

  • activation (str) – Activation of the MLPs.

forward(x, e, g)[source]#

{"charge", "sigma", "epsilon"}, each (n,).

Parameters:
Return type:

dict