enerzyme.models.schnet.interaction.CFConv#
- class enerzyme.models.schnet.interaction.CFConv(in_channels: int, out_channels: int, num_filters: int, nn: Sequential, cutoff: float)[source]#
Bases:
MessagePassing- __init__(in_channels: int, out_channels: int, num_filters: int, nn: Sequential, cutoff: float)[source]#
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- forward(x: Tensor, edge_index: Tensor, edge_weight: Tensor, edge_attr: Tensor) Tensor[source]#
Runs the forward pass of the module.
- message(x_j: Tensor, W: Tensor) Tensor[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 topropagate(). Furthermore, tensors passed topropagate()can be mapped to the respective nodes \(i\) and \(j\) by appending_ior_jto the variable name, .e.g.x_iandx_j.