MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / e2v_update_of_group

Method e2v_update_of_group

easygraph/classes/hypergraph.py:1648–1660  ·  view source on GitHub ↗

r"""Message update step of ``hyperedges to vertices`` in specified hyperedge group. Args: ``group_name`` (``str``): The specified hyperedge group. ``X`` (``torch.Tensor``): Vertex feature matrix. Size :math:`(|\mathcal{V}|, C)`.

(self, group_name: str, X: torch.Tensor)

Source from the content-addressed store, hash-verified

1646 return X
1647
1648 def e2v_update_of_group(self, group_name: str, X: torch.Tensor):
1649 r"""Message update step of ``hyperedges to vertices`` in specified hyperedge group.
1650
1651 Args:
1652 ``group_name`` (``str``): The specified hyperedge group.
1653 ``X`` (``torch.Tensor``): Vertex feature matrix. Size :math:`(|\mathcal{V}|, C)`.
1654 """
1655 assert (
1656 group_name in self.group_names
1657 ), f"The specified {group_name} is not in existing hyperedge groups."
1658 if self.device != X.device:
1659 self.to(X.device)
1660 return X
1661
1662 def e2v(
1663 self,

Callers 1

e2v_of_groupMethod · 0.95

Calls 1

toMethod · 0.95

Tested by

no test coverage detected