xnn.gnn.models.blocks#
Shared E(3)-equivariant building blocks (e3nn) for the GNN potentials.
Holds the pieces used by more than one equivariant model (NequIP / MACE / Allegro): irreps helpers, the tensor-product path test, and a TorchScript-safe normalized scalar activation. Model-specific blocks (MACE’s interaction / product blocks, NequIP’s convnet layer, …) live in the model modules. Requires e3nn.
Functions
|
Hidden feature irreps: |
Shifted softplus |
|
|
Irreps of the one-hot species (node attribute) channels. |
|
(uvu) tensor-product output irreps + instructions, keeping only target paths. |
|
Whether some tensor-product path |
Classes
|
Scriptable stand-in for |