xnn.trfnn.models.equiformer.IrrepsLinear#

class xnn.trfnn.models.equiformer.IrrepsLinear(irreps_in, irreps_out, bias=True)[source]#

Bases: Module

Equivariant linear map: one weight matrix per pair of equal irreps, a bias on the even scalars.

y_w = sum_u W_uw x_u for every degree (no normalization of the weights in the forward), the weights stored flat in input-major order.

Parameters:
  • irreps_in (e3nn.o3.Irreps or str) – Input and output irreps (at most one even-scalar output entry).

  • irreps_out (e3nn.o3.Irreps or str) – Input and output irreps (at most one even-scalar output entry).

  • bias (bool, optional) – Add a bias to the even scalars, by default True.

forward(x)[source]#

Map (N, irreps_in.dim) to (N, irreps_out.dim).

Parameters:

x (Tensor)

Return type:

Tensor