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

Method e2v_update

easygraph/classes/hypergraph.py:1638–1646  ·  view source on GitHub ↗

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

(self, X: torch.Tensor)

Source from the content-addressed store, hash-verified

1636 return X
1637
1638 def e2v_update(self, X: torch.Tensor):
1639 r"""Message update step of ``hyperedges to vertices``.
1640
1641 Args:
1642 ``X`` (``torch.Tensor``): Vertex feature matrix. Size :math:`(|\mathcal{V}|, C)`.
1643 """
1644 if self.device != X.device:
1645 self.to(X.device)
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.

Callers 1

e2vMethod · 0.95

Calls 1

toMethod · 0.95

Tested by

no test coverage detected