xnn.trfnn.models.equiformer.depthwise_tensor_product#
- xnn.trfnn.models.equiformer.depthwise_tensor_product(irreps_in, irreps_sh, irreps_target, internal_weights)[source]#
The depth-wise tensor product: one weight per channel and path (
uvu).Every channel of every input irrep couples with every spherical harmonic to the degrees present in
irreps_target(and to even scalars); the outputs are sorted by degree with the even irrep first.- Parameters:
irreps_in (e3nn.o3.Irreps or str) – The node irreps, the spherical-harmonic irreps and the wanted degrees.
irreps_sh (e3nn.o3.Irreps or str) – The node irreps, the spherical-harmonic irreps and the wanted degrees.
irreps_target (e3nn.o3.Irreps or str) – The node irreps, the spherical-harmonic irreps and the wanted degrees.
internal_weights (bool) – Weights shared by all edges (
True) or given per edge (False, from a radial function).
- Returns:
The tensor product, component-normalized with no path normalization.
- Return type:
e3nn.o3.TensorProduct