MCPcopy
hub / github.com/dmlc/dgl / hetero_from_shared_memory

Function hetero_from_shared_memory

python/dgl/convert.py:187–205  ·  view source on GitHub ↗

Create a heterograph from shared memory with the given name. The newly created graph will have the same node types and edge types as the original graph. But it does not have node features or edges features. Paramaters ---------- name : str The name of the share memory

(name)

Source from the content-addressed store, hash-verified

185
186
187def hetero_from_shared_memory(name):
188 """Create a heterograph from shared memory with the given name.
189
190 The newly created graph will have the same node types and edge types as the original graph.
191 But it does not have node features or edges features.
192
193 Paramaters
194 ----------
195 name : str
196 The name of the share memory
197
198 Returns
199 -------
200 HeteroGraph (in shared memory)
201 """
202 g, ntypes, etypes = heterograph_index.create_heterograph_from_shared_memory(
203 name
204 )
205 return DGLGraph(g, ntypes, etypes)
206
207
208def heterograph(data_dict, num_nodes_dict=None, idtype=None, device=None):

Callers

nothing calls this directly

Calls 1

DGLGraphClass · 0.85

Tested by

no test coverage detected