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
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. |
|
Initialize a weight matrix as a (semi-)orthogonal matrix with Glorot variance. |
|
Return a fresh activation module from a name or a module instance. |
|
Sum rows of |
|
Sum of consecutive segments of |
Shifted softplus |
|
Return |
|
|
Sum per-atom values into per-structure totals, accumulated in float64. |
Classes
|
Gaussian activation |
|
|
|
Module form of |
|
Softplus |
|
|