xnn.trfnn.models.equiformer.make_radial_basis#

xnn.trfnn.models.equiformer.make_radial_basis(name, n_rbf, cutoff)[source]#

The radial basis of the Equiformer models.

Parameters:
  • name (str) – "expnorm" (the PhysNet basis of the MD17 models), "gaussian" (learnable Gaussians, the QM9 and OC20 models) or "bessel".

  • n_rbf (int) – Number of basis functions.

  • cutoff (float) – The cutoff radius.

Returns:

Maps distances (E,) to (E, n_rbf).

Return type:

torch.nn.Module

Raises:

ValueError – For an unknown name.