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

Method to

easygraph/classes/hypergraph.py:149–155  ·  view source on GitHub ↗

r"""Move the hypergraph to the specified device. Args: ``device`` (``torch.device``): The target device.

(self, device: torch.device)

Source from the content-addressed store, hash-verified

147 return hg
148
149 def to(self, device: torch.device):
150 r"""Move the hypergraph to the specified device.
151
152 Args:
153 ``device`` (``torch.device``): The target device.
154 """
155 return super().to(device)
156
157 # =====================================================================================
158 # some construction functions

Callers 12

v2e_aggregationMethod · 0.95
v2e_updateMethod · 0.95
v2e_update_of_groupMethod · 0.95
e2v_aggregationMethod · 0.95
e2v_updateMethod · 0.95
e2v_update_of_groupMethod · 0.95
drop_hyperedgesMethod · 0.45
smoothing_with_HGNNMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected