enerzyme.models.leftnet.core.NeighborEmb#

class enerzyme.models.leftnet.core.NeighborEmb(hid_dim: int)[source]#

Bases: MessagePassing

__init__(hid_dim: int)[source]#

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(z, s, edge_index, embs)[source]#

Runs the forward pass of the module.

message(x_j, norm)[source]#

Constructs messages from node \(j\) to node \(i\) in analogy to \(\phi_{\mathbf{\Theta}}\) for each edge in edge_index. This function can take any argument as input which was initially passed to propagate(). Furthermore, tensors passed to propagate() can be mapped to the respective nodes \(i\) and \(j\) by appending _i or _j to the variable name, .e.g. x_i and x_j.