xnn.trfnn.models.blocks#

Building blocks shared by the Equiformer models (Equiformer and EquiformerV2).

Classes

GraphDropPath(drop_prob)

Stochastic depth per structure: drop a residual branch for whole structures.

RadialMLP(channels)

The radial function: linear layers, each but the last followed by layer norm and SiLU.

SmoothLeakyReLU([negative_slope])

(1 + a) / 2 x + (1 - a) / 2 x (2 sigmoid(x) - 1), a smooth leaky ReLU of slope a.