xnn.common.models.ops#
Tensor operations shared across model families (gnn / cnn / dnn).
Kept here, at the models level, because they are common to more than one
architecture type. Per-family helpers live under the family package instead
(e.g. models/gnn/base.py), and graph-level reductions that every model needs
live on InteratomicPotential (aggregate_energy).
Module Attributes
Weight initializations by name ( |
|
From this many elements a training activation ( |
|
Standard atomic weights (u) by atomic number, Z = 0 to 99 (the ASE table), for |
Functions
|
Enumerate neighbour pairs |
|
Volume of row-vector cells |
|
Center of mass of every structure of a batch. |
Evaluate |
|
|
Rows |
|
Initialize a weight matrix as a (semi-)orthogonal matrix with Glorot variance. |
|
He-scaled orthogonal initialization with exact standardization (GemNet, section 6). |
|
Initialize a dense layer by name: its weight by |
|
Apply |
|
Return a fresh activation module from a name or a module instance. |
Per-atom rows with the ghost atoms' rows replaced by their owners' values. |
|
|
Sum rows of |
|
Softmax of row logits over the rows that share a segment. |
|
Sum of consecutive segments of |
Shifted softplus |
|
Element count below which |
|
Return |
|
|
Sum per-atom values into per-structure totals, accumulated in float64. |
|
|
|
|
Classes
|
|
|
Gaussian activation |
|
|
|
Module form of |
|
|
|
Softplus |
|
|