xnn.gnn.models.blocks.tp_path_exists#
- xnn.gnn.models.blocks.tp_path_exists(irreps_in1, irreps_in2, ir_out)[source]#
Whether some tensor-product path
irreps_in1 x irreps_in2 -> ir_outexists.Behaves like
nequip.utils.tp_utils.tp_path_exists(independent implementation): used to prune hidden irreps that no tensor-product path can populate (e.g.0ofeatures in the first NequIP layer, where the node features are still all0e).