lloca.equivectors.pelican
Edge convolution with PELICAN.
Classes
|
Initialize internal Module state, shared by both nn.Module and ScriptModule. |
- class lloca.equivectors.pelican.PELICANVectors(n_vectors, num_scalars, net, operation='add', nonlinearity='softmax', aggr='sum', fm_norm=False, layer_norm=False, use_amp=False)[source]
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- forward(fourmomenta, scalars=None, ptr=None, num_graphs=None, **kwargs)[source]
Runs the forward pass of the module.
- message(edge_index, fm_i, fm_j, s_i, s_j, node_ptr, batch, edge_attr, num_graphs=None)[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.